Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009433/0.009433, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001713/0.001713, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.591/2.591, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 60.12 kB / 1.054 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7744/0.7757, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005653/0.7814, allocations: 4.035 MB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002128/0.7817, allocations: 151.5 kB / 1.212 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.198e-05/0.7817, allocations: 0 / 1.212 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.7818, allocations: 11.92 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.394e-05/0.7819, allocations: 7.984 kB / 1.212 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003797/0.7823, allocations: 77.94 kB / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.497e-05/0.7824, allocations: 31.92 kB / 1.212 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.68e-05/0.7825, allocations: 7.984 kB / 1.212 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.966e-05/0.7825, allocations: 23.86 kB / 1.212 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.608e-05/0.7826, allocations: 11.98 kB / 1.212 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.7826, allocations: 0 / 1.212 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002181/0.7828, allocations: 59.8 kB / 1.212 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.476e-05/0.7829, allocations: 4 kB / 1.212 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.174e-05/0.7829, allocations: 15.92 kB / 1.212 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.7831, allocations: 35.97 kB / 1.212 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.7831, allocations: 3.938 kB / 1.212 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.383e-06/0.7831, allocations: 0 / 1.212 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.7831, allocations: 8 kB / 1.212 GB, free: 9.137 MB / 0.9356 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.0004661/0.7836, allocations: 335.4 kB / 1.212 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.7836, allocations: 8.031 kB / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.888e-05/0.7837, allocations: 4.844 kB / 1.212 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.7838, allocations: 168.3 kB / 1.213 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.338e-05/0.7839, allocations: 26.27 kB / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-06/0.7839, allocations: 384 / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.784, allocations: 53.61 kB / 1.213 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.7841, allocations: 4 kB / 1.213 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.7841, allocations: 0 / 1.213 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/0.7841, allocations: 3.984 kB / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.632e-05/0.7842, allocations: 8 kB / 1.213 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004668/0.7846, allocations: 334 kB / 1.213 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 3.973e-05/0.7847, allocations: 26.52 kB / 1.213 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.8e-05/0.7847, allocations: 12.84 kB / 1.213 GB, free: 8 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.551e-05/0.7848, allocations: 89.16 kB / 1.213 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.7848, allocations: 38.5 kB / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.7848, allocations: 0 / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001498/0.785, allocations: 33.69 kB / 1.213 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.785, allocations: 55.34 kB / 1.213 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.371e-05/0.7851, allocations: 101.9 kB / 1.213 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.7852, allocations: 25.7 kB / 1.213 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.648e-05/0.7852, allocations: 97.98 kB / 1.213 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.163e-06/0.7852, allocations: 3.906 kB / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.102e-05/0.7853, allocations: 13.72 kB / 1.213 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.7854, allocations: 318.8 kB / 1.214 GB, free: 7.16 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.743e-05/0.7854, allocations: 4 kB / 1.214 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.374e-05/0.7854, allocations: 17.7 kB / 1.214 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.664e-05/0.7855, allocations: 25.72 kB / 1.214 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.7855, allocations: 0 / 1.214 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.747e-05/0.7855, allocations: 49.62 kB / 1.214 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.7856, allocations: 8 kB / 1.214 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.7856, allocations: 3.938 kB / 1.214 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.7856, allocations: 0 / 1.214 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.647e-05/0.7857, allocations: 4 kB / 1.214 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.7857, allocations: 0 / 1.214 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.316e-05/0.7857, allocations: 7.938 kB / 1.214 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.7857, allocations: 8.047 kB / 1.214 GB, free: 7.016 MB / 0.9356 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 7.767e-05/0.7858, allocations: 117.7 kB / 1.214 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.7858, allocations: 0 / 1.214 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.7859, allocations: 120.9 kB / 1.214 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.178e-05/0.786, allocations: 184.2 kB / 1.214 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.507e-05/0.7861, allocations: 180.3 kB / 1.214 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.318e-05/0.7861, allocations: 176.3 kB / 1.215 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002226/0.7864, allocations: 413.1 kB / 1.215 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.315e-05/0.7864, allocations: 101 kB / 1.215 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.071e-05/0.7865, allocations: 112.9 kB / 1.215 GB, free: 5.531 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.974e-05/0.7865, allocations: 176.3 kB / 1.215 GB, free: 5.352 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.03e-05/0.7866, allocations: 188.2 kB / 1.216 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.747e-05/0.7866, allocations: 180.2 kB / 1.216 GB, free: 4.977 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.573e-05/0.7867, allocations: 184.3 kB / 1.216 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001269/0.7868, allocations: 303.7 kB / 1.216 GB, free: 4.469 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.806e-05/0.7869, allocations: 190.1 kB / 1.216 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.138e-05/0.787, allocations: 180.2 kB / 1.217 GB, free: 4.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.7871, allocations: 105 kB / 1.217 GB, free: 3.965 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.785e-05/0.7872, allocations: 184.2 kB / 1.217 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.591e-05/0.7873, allocations: 105 kB / 1.217 GB, free: 3.668 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.801e-05/0.7873, allocations: 83.28 kB / 1.217 GB, free: 3.586 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7873, allocations: 7.938 kB / 1.217 GB, free: 3.578 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002426/0.7876, allocations: 12 kB / 1.217 GB, free: 3.566 MB / 0.9356 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.0002436/0.7878, allocations: 198.7 kB / 1.217 GB, free: 3.363 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 7.859e-05/0.7879, allocations: 15.92 kB / 1.217 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.7879, allocations: 0 / 1.217 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.523e-06/0.7879, allocations: 0 / 1.217 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003999/0.7883, allocations: 463.8 kB / 1.218 GB, free: 2.891 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002792/0.7886, allocations: 189.9 kB / 1.218 GB, free: 2.676 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.7889, allocations: 0.669 MB / 1.219 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.203e-05/0.7889, allocations: 15.97 kB / 1.219 GB, free: 1.965 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.945e-05/0.7889, allocations: 11.44 kB / 1.219 GB, free: 1.957 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.7889, allocations: 3.938 kB / 1.219 GB, free: 1.953 MB / 0.9356 GB Notification: Performance of Templates: time 0.002812/0.7918, allocations: 0.6324 MB / 1.219 GB, free: 1.328 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches