Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_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.001164/0.001164, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008545/0.008545, allocations: 169.3 kB / 16.26 MB, free: 6.652 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.409/1.409, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.442/2.442, allocations: 390.9 MB / 0.6663 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003937/0.0003938, allocations: 12 kB / 0.8159 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7743/0.7747, allocations: 142.4 MB / 0.955 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.004725/0.7795, allocations: 3.417 MB / 0.9584 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001746/0.7797, allocations: 158.1 kB / 0.9585 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.725e-05/0.7797, allocations: 3.938 kB / 0.9585 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.7798, allocations: 3.938 kB / 0.9585 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.604e-05/0.7799, allocations: 7.328 kB / 0.9585 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.7802, allocations: 78.7 kB / 0.9586 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.669e-05/0.7803, allocations: 56.53 kB / 0.9587 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.184e-05/0.7804, allocations: 10.28 kB / 0.9587 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.132e-05/0.7804, allocations: 12.17 kB / 0.9587 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.345e-05/0.7805, allocations: 18.97 kB / 0.9587 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.7805, allocations: 1.062 kB / 0.9587 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005996/0.7811, allocations: 190.7 kB / 0.9589 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.904e-05/0.7812, allocations: 11.02 kB / 0.9589 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.943e-05/0.7813, allocations: 29.52 kB / 0.9589 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001273/0.7814, allocations: 50.45 kB / 0.959 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.7814, allocations: 4 kB / 0.959 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.585e-06/0.7814, allocations: 5.422 kB / 0.959 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.596e-06/0.7814, allocations: 0 / 0.959 GB, free: 4.535 MB / 0.7169 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.0002926/0.7817, allocations: 324.4 kB / 0.9593 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.7818, allocations: 8.312 kB / 0.9593 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.931e-05/0.7818, allocations: 7.406 kB / 0.9593 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.498e-05/0.7819, allocations: 168.3 kB / 0.9595 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.564e-05/0.782, allocations: 28.42 kB / 0.9595 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.782, allocations: 1.562 kB / 0.9595 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001187/0.7821, allocations: 51.12 kB / 0.9595 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/0.7821, allocations: 0 / 0.9595 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.7821, allocations: 0 / 0.9595 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.7822, allocations: 1.438 kB / 0.9595 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.615e-05/0.7822, allocations: 13.52 kB / 0.9596 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003547/0.7826, allocations: 337.1 kB / 0.9599 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.482e-05/0.7826, allocations: 19.92 kB / 0.9599 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.384e-05/0.7826, allocations: 6.578 kB / 0.9599 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.931e-05/0.7827, allocations: 90.28 kB / 0.96 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.7827, allocations: 39.97 kB / 0.96 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.7828, allocations: 0 / 0.96 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001385/0.7829, allocations: 35.08 kB / 0.9601 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.077e-05/0.7829, allocations: 56.81 kB / 0.9601 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.548e-05/0.783, allocations: 107.8 kB / 0.9602 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.897e-06/0.783, allocations: 25.7 kB / 0.9602 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.195e-05/0.783, allocations: 89.81 kB / 0.9603 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.31e-06/0.783, allocations: 5.688 kB / 0.9603 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.941e-05/0.7831, allocations: 13.72 kB / 0.9603 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.638e-05/0.7831, allocations: 320.5 kB / 0.9606 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.252e-05/0.7831, allocations: 1.844 kB / 0.9606 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.706e-05/0.7831, allocations: 13.38 kB / 0.9607 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.844e-05/0.7832, allocations: 29.03 kB / 0.9607 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.7832, allocations: 0 / 0.9607 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.485e-05/0.7833, allocations: 50.19 kB / 0.9607 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.7833, allocations: 5.375 kB / 0.9607 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.7833, allocations: 0 / 0.9607 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.7833, allocations: 1.781 kB / 0.9607 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.444e-05/0.7834, allocations: 13.33 kB / 0.9608 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.7834, allocations: 4.062 kB / 0.9608 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.986e-05/0.7834, allocations: 1.781 kB / 0.9608 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.7834, allocations: 2.062 kB / 0.9608 GB, free: 2.551 MB / 0.7169 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 5.096e-05/0.7835, allocations: 115.6 kB / 0.9609 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.563e-05/0.7835, allocations: 5.312 kB / 0.9609 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.027e-05/0.7836, allocations: 123.7 kB / 0.961 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.397e-05/0.7836, allocations: 185.6 kB / 0.9612 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-05/0.7836, allocations: 176.3 kB / 0.9613 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.698e-05/0.7837, allocations: 185.6 kB / 0.9615 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.7838, allocations: 403.9 kB / 0.9619 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/0.7838, allocations: 102.4 kB / 0.962 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.051e-05/0.7838, allocations: 114.3 kB / 0.9621 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.901e-05/0.7839, allocations: 180.3 kB / 0.9623 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.7839, allocations: 181.6 kB / 0.9625 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.741e-05/0.7839, allocations: 177.6 kB / 0.9626 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.522e-05/0.784, allocations: 177.6 kB / 0.9628 GB, free: 352 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.447e-05/0.7841, allocations: 315.8 kB / 0.9631 GB, free: 16 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.7842, allocations: 187.3 kB / 0.9633 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.203e-05/0.7843, allocations: 185.6 kB / 0.9635 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.7845, allocations: 109.1 kB / 0.9636 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.423e-05/0.7845, allocations: 184.1 kB / 0.9637 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.7846, allocations: 102.4 kB / 0.9638 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.569e-05/0.7846, allocations: 88.77 kB / 0.9639 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7846, allocations: 0 / 0.9639 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002561/0.7849, allocations: 20.38 kB / 0.9639 GB, free: 15.13 MB / 0.7325 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.0002684/0.7852, allocations: 196.7 kB / 0.9641 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 7.01e-05/0.7853, allocations: 9.438 kB / 0.9641 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.7853, allocations: 5.5 kB / 0.9641 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.744e-06/0.7853, allocations: 0 / 0.9641 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005318/0.7858, allocations: 0.5303 MB / 0.9647 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003313/0.7862, allocations: 189.7 kB / 0.9648 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.7866, allocations: 0.6758 MB / 0.9655 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.505e-05/0.7866, allocations: 4.125 kB / 0.9655 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.744e-05/0.7866, allocations: 8.812 kB / 0.9655 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of SimCode: time 5.71e-07/0.7867, allocations: 1.375 kB / 0.9655 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of Templates: time 0.003029/0.7897, allocations: 0.6129 MB / 0.9661 GB, free: 13.19 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches