Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001278/0.001278, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.588/2.588, allocations: 436.5 MB / 0.7104 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003124/0.0003124, allocations: 8 kB / 0.8707 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6352/0.6355, allocations: 153.6 MB / 1.021 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1355/0.7711, allocations: 125.3 MB / 1.143 GB, free: 3.543 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0002014/0.7714, allocations: 127.7 kB / 1.143 GB, free: 3.418 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.226e-05/0.7714, allocations: 4 kB / 1.143 GB, free: 3.414 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 9.132e-05/0.7715, allocations: 0 / 1.143 GB, free: 3.414 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.716e-05/0.7715, allocations: 15.97 kB / 1.143 GB, free: 3.398 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005402/0.7721, allocations: 153 kB / 1.143 GB, free: 3.25 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.188e-05/0.7722, allocations: 15.97 kB / 1.143 GB, free: 3.234 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.873e-05/0.7722, allocations: 4 kB / 1.143 GB, free: 3.23 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.625e-05/0.7722, allocations: 19.97 kB / 1.143 GB, free: 3.211 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.136e-05/0.7723, allocations: 7.938 kB / 1.143 GB, free: 3.203 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.7723, allocations: 0 / 1.143 GB, free: 3.203 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000302/0.7726, allocations: 107.8 kB / 1.144 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.007e-05/0.7727, allocations: 4 kB / 1.144 GB, free: 3.094 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.559e-05/0.7727, allocations: 33.7 kB / 1.144 GB, free: 3.055 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.7729, allocations: 45.91 kB / 1.144 GB, free: 3.012 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.7729, allocations: 7.875 kB / 1.144 GB, free: 3.004 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.512e-06/0.7729, allocations: 0 / 1.144 GB, free: 3.004 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.7729, allocations: 4 kB / 1.144 GB, free: 3 MB / 0.8887 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.0003412/0.7732, allocations: 335.3 kB / 1.144 GB, free: 2.625 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.7733, allocations: 15.98 kB / 1.144 GB, free: 2.609 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003083/0.7736, allocations: 23.97 kB / 1.144 GB, free: 2.586 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.7737, allocations: 163 kB / 1.144 GB, free: 2.387 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.409e-05/0.7738, allocations: 25.7 kB / 1.144 GB, free: 2.355 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.7738, allocations: 4 kB / 1.144 GB, free: 2.352 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.7739, allocations: 53.67 kB / 1.144 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.7739, allocations: 0 / 1.144 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.7739, allocations: 0 / 1.144 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.774, allocations: 4 kB / 1.144 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.972e-05/0.774, allocations: 19.92 kB / 1.144 GB, free: 2.27 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003332/0.7744, allocations: 260.9 kB / 1.145 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 4.815e-05/0.7744, allocations: 30.61 kB / 1.145 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.7745, allocations: 0 / 1.145 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.7745, allocations: 34.62 kB / 1.145 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.7745, allocations: 0 / 1.145 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0002287/0.7747, allocations: 57.53 kB / 1.145 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.7748, allocations: 59.34 kB / 1.145 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.797e-05/0.7748, allocations: 106 kB / 1.145 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.7749, allocations: 29.7 kB / 1.145 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.759e-05/0.7749, allocations: 91.98 kB / 1.145 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 6.882e-06/0.7749, allocations: 7.984 kB / 1.145 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.786e-06/0.7749, allocations: 0 / 1.145 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.628e-05/0.775, allocations: 314.8 kB / 1.145 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.873e-05/0.7751, allocations: 8 kB / 1.145 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.718e-05/0.7751, allocations: 17.7 kB / 1.145 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.414e-05/0.7751, allocations: 16 kB / 1.145 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.7751, allocations: 0 / 1.145 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.204e-05/0.7752, allocations: 57.53 kB / 1.145 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.7752, allocations: 4 kB / 1.145 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.7753, allocations: 0 / 1.145 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.427e-06/0.7753, allocations: 4 kB / 1.145 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.811e-05/0.7753, allocations: 7.984 kB / 1.145 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.7753, allocations: 0 / 1.145 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.979e-05/0.7754, allocations: 4 kB / 1.145 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-06/0.7754, allocations: 0 / 1.145 GB, free: 1.055 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.631e-05/0.7755, allocations: 125.8 kB / 1.145 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.7755, allocations: 0 / 1.145 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.059e-05/0.7755, allocations: 3.125 kB / 1.145 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.7755, allocations: 3.938 kB / 1.145 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.7755, allocations: 0 / 1.145 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.7755, allocations: 4 kB / 1.145 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003046/0.7759, allocations: 379.4 kB / 1.146 GB, free: 488 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.7759, allocations: 0 / 1.146 GB, free: 488 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.034e-05/0.7759, allocations: 4 kB / 1.146 GB, free: 484 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.7759, allocations: 0 / 1.146 GB, free: 484 kB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.7759, allocations: 4 kB / 1.146 GB, free: 480 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.7759, allocations: 0 / 1.146 GB, free: 480 kB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.7759, allocations: 0 / 1.146 GB, free: 480 kB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.684e-05/0.776, allocations: 91.72 kB / 1.146 GB, free: 360 kB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 3.975e-05/0.7761, allocations: 81.11 kB / 1.146 GB, free: 260 kB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.7761, allocations: 0 / 1.146 GB, free: 260 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.082e-05/0.7762, allocations: 7.984 kB / 1.146 GB, free: 252 kB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.658e-05/0.7762, allocations: 11.83 kB / 1.146 GB, free: 240 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.7762, allocations: 4 kB / 1.146 GB, free: 236 kB / 0.8887 GB Notification: Performance of sorting global known variables: time 3.432e-05/0.7763, allocations: 79.28 kB / 1.146 GB, free: 156 kB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7763, allocations: 4.031 kB / 1.146 GB, free: 152 kB / 0.8887 GB Notification: Performance of remove unused functions: time 0.000195/0.7765, allocations: 8 kB / 1.146 GB, free: 144 kB / 0.8887 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001216/0.7766, allocations: 99.25 kB / 1.146 GB, free: 36 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 7.492e-05/0.7767, allocations: 19.98 kB / 1.146 GB, free: 16 kB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.7767, allocations: 0 / 1.146 GB, free: 16 kB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 1.543e-05/0.7767, allocations: 7.938 kB / 1.146 GB, free: 8 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/0.7769, allocations: 8.359 kB / 1.146 GB, free: 0 / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002328/0.7772, allocations: 129.8 kB / 1.146 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.7774, allocations: 0.677 MB / 1.147 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.096e-05/0.7775, allocations: 19.92 kB / 1.147 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.983e-05/0.7775, allocations: 7.438 kB / 1.147 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.7775, allocations: 0 / 1.147 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of Templates: time 0.002389/0.7799, allocations: 0.5333 MB / 1.148 GB, free: 14.58 MB / 0.9044 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","../files/Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches