Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.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.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001238/0.001238, allocations: 168.7 kB / 15.95 MB, free: 204 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.488/1.488, allocations: 223.3 MB / 240 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.859/2.859, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000391/0.000391, allocations: 13.12 kB / 0.9021 GB, free: 36.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3939/0.3943, allocations: 159.6 MB / 1.058 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1656/0.56, allocations: 134.1 MB / 1.189 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0001278/0.5601, allocations: 47.89 kB / 1.189 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.187e-05/0.5602, allocations: 0 / 1.189 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.5603, allocations: 0 / 1.189 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.794e-05/0.5604, allocations: 19.91 kB / 1.189 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003893/0.5608, allocations: 83.75 kB / 1.189 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 9.163e-05/0.5609, allocations: 47.81 kB / 1.189 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 5.086e-05/0.561, allocations: 0 / 1.189 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.995e-05/0.561, allocations: 12 kB / 1.189 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.595e-05/0.5611, allocations: 23.84 kB / 1.189 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.485e-05/0.5611, allocations: 4 kB / 1.189 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.5613, allocations: 39.84 kB / 1.189 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.759e-05/0.5614, allocations: 15.92 kB / 1.189 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.546e-05/0.5614, allocations: 29.7 kB / 1.189 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 9.814e-05/0.5615, allocations: 36.23 kB / 1.189 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.5615, allocations: 0 / 1.189 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.963e-06/0.5615, allocations: 0 / 1.189 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.5615, allocations: 0 / 1.189 GB, free: 14.55 MB / 0.9512 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.0003797/0.5619, allocations: 331.4 kB / 1.19 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.562, allocations: 8.031 kB / 1.19 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000246/0.5622, allocations: 19.98 kB / 1.19 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.5623, allocations: 167 kB / 1.19 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.87e-05/0.5624, allocations: 33.69 kB / 1.19 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-06/0.5624, allocations: 0 / 1.19 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001534/0.5626, allocations: 49.67 kB / 1.19 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.5626, allocations: 0 / 1.19 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.5626, allocations: 0 / 1.19 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.5626, allocations: 0 / 1.19 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.453e-05/0.5627, allocations: 19.98 kB / 1.19 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003955/0.5631, allocations: 272.7 kB / 1.19 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 4.142e-05/0.5631, allocations: 14.58 kB / 1.19 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.932e-05/0.5632, allocations: 8.922 kB / 1.19 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 6.211e-06/0.5632, allocations: 0 / 1.19 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.5632, allocations: 38.56 kB / 1.19 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.5632, allocations: 0 / 1.19 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0001441/0.5634, allocations: 33.64 kB / 1.19 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.5634, allocations: 59.39 kB / 1.19 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.545e-05/0.5635, allocations: 105.8 kB / 1.19 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.5635, allocations: 25.7 kB / 1.19 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.705e-05/0.5636, allocations: 91.97 kB / 1.19 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.005e-06/0.5636, allocations: 7.906 kB / 1.191 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-06/0.5636, allocations: 0 / 1.191 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.5637, allocations: 319 kB / 1.191 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.333e-05/0.5637, allocations: 0 / 1.191 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.045e-05/0.5638, allocations: 30.56 kB / 1.191 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.175e-05/0.5638, allocations: 4 kB / 1.191 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.5638, allocations: 0 / 1.191 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.23e-05/0.5639, allocations: 57.62 kB / 1.191 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.5639, allocations: 4 kB / 1.191 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.5639, allocations: 0 / 1.191 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.564, allocations: 4 kB / 1.191 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.042e-05/0.564, allocations: 7.938 kB / 1.191 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.564, allocations: 0 / 1.191 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.828e-05/0.5641, allocations: 11.95 kB / 1.191 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-06/0.5641, allocations: 4.188 kB / 1.191 GB, free: 12.62 MB / 0.9512 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.96e-05/0.5642, allocations: 117.8 kB / 1.191 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.5642, allocations: 8 kB / 1.191 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.672e-05/0.5642, allocations: 7.125 kB / 1.191 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.5642, allocations: 4 kB / 1.191 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.5642, allocations: 0 / 1.191 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.5642, allocations: 0 / 1.191 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002818/0.5645, allocations: 354.7 kB / 1.191 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.5645, allocations: 0 / 1.191 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.44e-05/0.5646, allocations: 3.984 kB / 1.191 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.5646, allocations: 8.031 kB / 1.191 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.5646, allocations: 0 / 1.191 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.5646, allocations: 0 / 1.191 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5646, allocations: 3.953 kB / 1.191 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.078e-05/0.5646, allocations: 53.14 kB / 1.191 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.404e-05/0.5647, allocations: 77.11 kB / 1.192 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.5647, allocations: 7.984 kB / 1.192 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.779e-05/0.5648, allocations: 8.031 kB / 1.192 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.347e-05/0.5648, allocations: 0 / 1.192 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.5648, allocations: 3.953 kB / 1.192 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.233e-05/0.5649, allocations: 83.27 kB / 1.192 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5649, allocations: 3.938 kB / 1.192 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001898/0.5651, allocations: 8 kB / 1.192 GB, free: 11.79 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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.0001023/0.5652, allocations: 103.3 kB / 1.192 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 7.421e-05/0.5653, allocations: 12.06 kB / 1.192 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5653, allocations: 0 / 1.192 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 4.719e-06/0.5653, allocations: 4 kB / 1.192 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.5655, allocations: 4 kB / 1.192 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002714/0.5658, allocations: 128.5 kB / 1.192 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.5661, allocations: 0.6731 MB / 1.193 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.556e-05/0.5661, allocations: 16.16 kB / 1.193 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.016e-05/0.5662, allocations: 7.438 kB / 1.193 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of SimCode: time 2.41e-07/0.5662, allocations: 0 / 1.193 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of Templates: time 0.002493/0.5687, allocations: 476.3 kB / 1.193 GB, free: 10.35 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches