Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001384/0.001384, allocations: 198.4 kB / 16.14 MB, free: 6.793 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.434/1.434, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.837/2.837, allocations: 461.9 MB / 0.7342 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 74.92 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3627, allocations: 157.4 MB / 1.052 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.00579/0.3685, allocations: 3.792 MB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002136/0.3688, allocations: 163.5 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.864e-05/0.3688, allocations: 0 / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.3689, allocations: 3.938 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.268e-05/0.369, allocations: 7.984 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.3694, allocations: 86.88 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.823e-05/0.3695, allocations: 59.81 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.081e-05/0.3695, allocations: 4 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.743e-05/0.3696, allocations: 11.94 kB / 1.056 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.554e-05/0.3697, allocations: 15.97 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.3697, allocations: 0 / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005824/0.3703, allocations: 203.5 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.185e-05/0.3703, allocations: 0 / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.076e-05/0.3704, allocations: 11.92 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.3705, allocations: 52.17 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3705, allocations: 0 / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3705, allocations: 0 / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.3705, allocations: 0 / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004099/0.371, allocations: 331.5 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.371, allocations: 11.97 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.832e-05/0.371, allocations: 12.88 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.3712, allocations: 164.4 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.865e-05/0.3712, allocations: 26.27 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.3712, allocations: 8.375 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.3714, allocations: 41.62 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.3714, allocations: 0 / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.3714, allocations: 0 / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.3714, allocations: 3.938 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.695e-05/0.3715, allocations: 19.98 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004561/0.372, allocations: 341.9 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.84e-05/0.372, allocations: 18.58 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.583e-05/0.372, allocations: 4.859 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.397e-05/0.3721, allocations: 89.16 kB / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.3722, allocations: 30.56 kB / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.383e-06/0.3722, allocations: 4 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001455/0.3723, allocations: 37.64 kB / 1.057 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.3724, allocations: 55.41 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.163e-05/0.3725, allocations: 101.8 kB / 1.058 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.3725, allocations: 25.7 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.62e-05/0.3725, allocations: 92.03 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.833e-06/0.3725, allocations: 3.906 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.041e-05/0.3726, allocations: 13.72 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.971e-05/0.3727, allocations: 326.9 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.676e-05/0.3727, allocations: 4 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.49e-05/0.3727, allocations: 13.91 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.536e-05/0.3728, allocations: 25.64 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3728, allocations: 0 / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.724e-05/0.3729, allocations: 49.7 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.3729, allocations: 7.984 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3729, allocations: 0 / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3729, allocations: 96 / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.608e-05/0.373, allocations: 11.92 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.373, allocations: 4 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.864e-05/0.373, allocations: 4 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.373, allocations: 0 / 1.058 GB, free: 2.305 MB / 0.8106 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 (3): * Single equations (assignments): 3 * 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 8.281e-05/0.3731, allocations: 119.2 kB / 1.058 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.3731, allocations: 4.062 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.3733, allocations: 124.9 kB / 1.058 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.799e-05/0.3733, allocations: 180.2 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.075e-05/0.3734, allocations: 176.3 kB / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.995e-05/0.3735, allocations: 184.2 kB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002184/0.3737, allocations: 409.2 kB / 1.059 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.202e-05/0.3737, allocations: 109 kB / 1.059 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.844e-05/0.3738, allocations: 104.9 kB / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.912e-05/0.3738, allocations: 180.3 kB / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.369e-05/0.3739, allocations: 180.2 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.61e-05/0.374, allocations: 180.3 kB / 1.06 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-05/0.374, allocations: 188.2 kB / 1.06 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001463/0.3742, allocations: 307.7 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.789e-05/0.3743, allocations: 186 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.819e-05/0.3744, allocations: 184.2 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.3745, allocations: 105 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.456e-05/0.3746, allocations: 184.5 kB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.481e-05/0.3746, allocations: 101 kB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.62e-05/0.3747, allocations: 87.27 kB / 1.061 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3747, allocations: 0 / 1.061 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002429/0.3749, allocations: 15.94 kB / 1.061 GB, free: 14.85 MB / 0.8262 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 (0): * Single equations (assignments): 0 * 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.0002828/0.3752, allocations: 206.4 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.171e-05/0.3753, allocations: 11.97 kB / 1.062 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3753, allocations: 4 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.775e-06/0.3753, allocations: 4 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004034/0.3757, allocations: 0.5252 MB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000246/0.376, allocations: 179.6 kB / 1.062 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.3762, allocations: 0.677 MB / 1.063 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.015e-05/0.3763, allocations: 4 kB / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.552e-05/0.3763, allocations: 7.438 kB / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.3763, allocations: 4 kB / 1.063 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of Templates: time 0.002769/0.3791, allocations: 0.6213 MB / 1.064 GB, free: 12.57 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches