Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 105.1 kB / 16.27 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 191.8 kB / 17.2 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00241/0.00241, allocations: 281.1 kB / 291.3 MB, free: 14.57 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.127/1.127, allocations: 178.5 MB / 0.5079 GB, free: 12.75 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00265/0.00265, allocations: 91.84 kB / 0.6071 GB, free: 9.348 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1665, allocations: 89.13 MB / 0.6941 GB, free: 128 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.4195/0.5861, allocations: 148.3 MB / 0.8389 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.000152/0.5863, allocations: 49.77 kB / 0.839 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.557e-05/0.5864, allocations: 0 / 0.839 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.5866, allocations: 4.828 kB / 0.839 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.919e-05/0.5867, allocations: 10.03 kB / 0.839 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008883/0.5875, allocations: 218.8 kB / 0.8392 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.428e-05/0.5877, allocations: 34.92 kB / 0.8392 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.934e-05/0.5877, allocations: 5.672 kB / 0.8392 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.765e-05/0.5877, allocations: 15.5 kB / 0.8393 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.93e-05/0.5878, allocations: 16.84 kB / 0.8393 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.382e-05/0.5878, allocations: 1 kB / 0.8393 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004749/0.5883, allocations: 190.8 kB / 0.8395 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.577e-05/0.5884, allocations: 17.86 kB / 0.8395 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.808e-05/0.5884, allocations: 5.906 kB / 0.8395 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002655/0.5887, allocations: 119.9 kB / 0.8396 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.5887, allocations: 1.031 kB / 0.8396 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5887, allocations: 0 / 0.8396 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.5887, allocations: 0 / 0.8396 GB, free: 13.36 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004245/0.5891, allocations: 340 kB / 0.8399 GB, free: 13 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.5892, allocations: 9.281 kB / 0.8399 GB, free: 13 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003138/0.5895, allocations: 33.45 kB / 0.84 GB, free: 12.99 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.5896, allocations: 164.1 kB / 0.8401 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.944e-05/0.5897, allocations: 30.77 kB / 0.8401 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.5897, allocations: 1.125 kB / 0.8402 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001345/0.5899, allocations: 51.86 kB / 0.8402 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.5899, allocations: 0 / 0.8402 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.5899, allocations: 1.844 kB / 0.8402 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.5899, allocations: 5.875 kB / 0.8402 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.514e-05/0.59, allocations: 16.56 kB / 0.8402 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003881/0.5904, allocations: 265.5 kB / 0.8405 GB, free: 12.44 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 5.817e-05/0.5905, allocations: 20.17 kB / 0.8405 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.502e-05/0.5905, allocations: 9.109 kB / 0.8405 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001827/0.5907, allocations: 99.2 kB / 0.8406 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.5907, allocations: 40.36 kB / 0.8406 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.5907, allocations: 0 / 0.8406 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0002495/0.591, allocations: 48.67 kB / 0.8407 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.591, allocations: 51.41 kB / 0.8407 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.658e-05/0.5911, allocations: 107.2 kB / 0.8408 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.5912, allocations: 27.06 kB / 0.8409 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.145e-05/0.5912, allocations: 93.88 kB / 0.841 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.042e-05/0.5913, allocations: 5.688 kB / 0.841 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.656e-05/0.5913, allocations: 17.69 kB / 0.841 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.5915, allocations: 313.2 kB / 0.8413 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.141e-05/0.5915, allocations: 8.328 kB / 0.8413 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.125e-05/0.5915, allocations: 24.62 kB / 0.8413 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.734e-05/0.5916, allocations: 33.72 kB / 0.8413 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.5916, allocations: 0 / 0.8413 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.254e-05/0.5917, allocations: 56.97 kB / 0.8414 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.5917, allocations: 8.094 kB / 0.8414 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.5917, allocations: 0 / 0.8414 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.5917, allocations: 1.031 kB / 0.8414 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.043e-05/0.5918, allocations: 11.47 kB / 0.8414 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.5918, allocations: 5.656 kB / 0.8414 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.013e-05/0.5919, allocations: 4.688 kB / 0.8414 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.5919, allocations: 5.484 kB / 0.8414 GB, free: 11.48 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.152e-05/0.592, allocations: 114.4 kB / 0.8415 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.592, allocations: 2.031 kB / 0.8415 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.273e-05/0.592, allocations: 4.25 kB / 0.8415 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.592, allocations: 0.75 kB / 0.8415 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.247e-06/0.5921, allocations: 1.094 kB / 0.8415 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/0.5921, allocations: 3.938 kB / 0.8415 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000375/0.5925, allocations: 368.4 kB / 0.8419 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.5925, allocations: 0 / 0.8419 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.696e-05/0.5925, allocations: 4.391 kB / 0.8419 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.5925, allocations: 5.859 kB / 0.8419 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.5925, allocations: 1.594 kB / 0.8419 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.5925, allocations: 0.6094 kB / 0.8419 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5925, allocations: 1.688 kB / 0.8419 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.815e-05/0.5926, allocations: 82.52 kB / 0.842 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.344e-05/0.5927, allocations: 83.2 kB / 0.8421 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.5927, allocations: 9.844 kB / 0.8421 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.363e-05/0.5928, allocations: 4.562 kB / 0.8421 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.735e-05/0.5928, allocations: 1.062 kB / 0.8421 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.5928, allocations: 2.062 kB / 0.8421 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.514e-05/0.5929, allocations: 83.78 kB / 0.8422 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5929, allocations: 0 / 0.8422 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001984/0.5931, allocations: 6.562 kB / 0.8422 GB, free: 10.68 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001616/0.5933, allocations: 103.7 kB / 0.8423 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 8.93e-05/0.5934, allocations: 15.75 kB / 0.8423 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.5934, allocations: 0 / 0.8423 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.159e-05/0.5934, allocations: 9.797 kB / 0.8423 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.5936, allocations: 13.52 kB / 0.8423 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003077/0.5939, allocations: 143.6 kB / 0.8424 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.5943, allocations: 0.6765 MB / 0.8431 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.683e-05/0.5943, allocations: 8.531 kB / 0.8431 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of SimCode: time 3.4e-07/0.5943, allocations: 4.125 kB / 0.8431 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of Templates: time 0.002337/0.5967, allocations: 0.6123 MB / 0.8437 GB, free: 9.695 MB / 0.6075 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)