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.001428/0.001428, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.0014/0.0014, allocations: 187 kB / 17.34 MB, free: 5.719 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.662/2.662, allocations: 461.9 MB / 0.7354 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 71.89 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7452/0.7464, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006042/0.7525, allocations: 4.028 MB / 1.212 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002077/0.7527, allocations: 143.5 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.788e-05/0.7528, allocations: 3.938 kB / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.7529, allocations: 0 / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.7531, allocations: 19.91 kB / 1.212 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003737/0.7535, allocations: 83.38 kB / 1.213 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.391e-05/0.7536, allocations: 35.8 kB / 1.213 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.106e-05/0.7536, allocations: 4 kB / 1.213 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.372e-05/0.7537, allocations: 15.97 kB / 1.213 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.101e-05/0.7537, allocations: 7.938 kB / 1.213 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.7538, allocations: 4 kB / 1.213 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.754, allocations: 63.8 kB / 1.213 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.317e-05/0.754, allocations: 11.92 kB / 1.213 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.069e-05/0.7541, allocations: 8 kB / 1.213 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001409/0.7542, allocations: 47.89 kB / 1.213 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.7542, allocations: 0 / 1.213 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7542, allocations: 0 / 1.213 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.7542, allocations: 0 / 1.213 GB, free: 9.121 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.0004279/0.7547, allocations: 331.4 kB / 1.213 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.7547, allocations: 8.031 kB / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.097e-05/0.7548, allocations: 8.844 kB / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.7549, allocations: 164.4 kB / 1.213 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.78e-05/0.755, allocations: 30.25 kB / 1.213 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.755, allocations: 4.375 kB / 1.213 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.7552, allocations: 45.62 kB / 1.213 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.7552, allocations: 7.875 kB / 1.213 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.7552, allocations: 4 kB / 1.213 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.7552, allocations: 3.984 kB / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.769e-05/0.7553, allocations: 15.98 kB / 1.213 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004664/0.7557, allocations: 338 kB / 1.214 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 3.578e-05/0.7558, allocations: 14.58 kB / 1.214 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.757e-05/0.7559, allocations: 12.86 kB / 1.214 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.061e-05/0.756, allocations: 89.16 kB / 1.214 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.756, allocations: 34.5 kB / 1.214 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.756, allocations: 4 kB / 1.214 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001388/0.7561, allocations: 37.69 kB / 1.214 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.7562, allocations: 51.41 kB / 1.214 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.951e-05/0.7563, allocations: 101.8 kB / 1.214 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.7563, allocations: 25.7 kB / 1.214 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.233e-05/0.7564, allocations: 89.88 kB / 1.214 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.763e-06/0.7564, allocations: 3.906 kB / 1.214 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.552e-05/0.7564, allocations: 17.72 kB / 1.214 GB, free: 7.465 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.7565, allocations: 322.8 kB / 1.214 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.713e-05/0.7565, allocations: 7.984 kB / 1.214 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.753e-05/0.7566, allocations: 21.66 kB / 1.214 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.167e-05/0.7566, allocations: 13.72 kB / 1.214 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.7566, allocations: 0 / 1.214 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.646e-05/0.7567, allocations: 53.69 kB / 1.215 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.7567, allocations: 8 kB / 1.215 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.7567, allocations: 0 / 1.215 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.7568, allocations: 0 / 1.215 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.69e-05/0.7568, allocations: 11.98 kB / 1.215 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.7568, allocations: 0 / 1.215 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.041e-05/0.7568, allocations: 3.938 kB / 1.215 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.7569, allocations: 4 kB / 1.215 GB, free: 7 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 6.824e-05/0.7569, allocations: 113.8 kB / 1.215 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.664e-05/0.757, allocations: 0 / 1.215 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.7571, allocations: 132.7 kB / 1.215 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-05/0.7572, allocations: 180.3 kB / 1.215 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.757e-05/0.7572, allocations: 184.2 kB / 1.215 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-05/0.7573, allocations: 176.3 kB / 1.215 GB, free: 6.191 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002625/0.7576, allocations: 413.2 kB / 1.216 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.691e-05/0.7576, allocations: 104.9 kB / 1.216 GB, free: 5.621 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.556e-05/0.7577, allocations: 109 kB / 1.216 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001122/0.7578, allocations: 180.2 kB / 1.216 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.732e-05/0.7579, allocations: 180.3 kB / 1.216 GB, free: 5.141 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.894e-05/0.758, allocations: 176.3 kB / 1.216 GB, free: 4.961 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.78e-05/0.7581, allocations: 188.1 kB / 1.217 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001395/0.7582, allocations: 311.7 kB / 1.217 GB, free: 4.441 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.7583, allocations: 178.1 kB / 1.217 GB, free: 4.242 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.84e-05/0.7584, allocations: 180.3 kB / 1.217 GB, free: 4.059 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.7586, allocations: 124.9 kB / 1.217 GB, free: 3.93 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.7587, allocations: 176.3 kB / 1.218 GB, free: 3.75 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.952e-05/0.7587, allocations: 104.9 kB / 1.218 GB, free: 3.641 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.541e-05/0.7587, allocations: 87.27 kB / 1.218 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7588, allocations: 0 / 1.218 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002484/0.759, allocations: 12 kB / 1.218 GB, free: 3.543 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.0002524/0.7593, allocations: 210.4 kB / 1.218 GB, free: 3.328 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 7.117e-05/0.7593, allocations: 4 kB / 1.218 GB, free: 3.324 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7594, allocations: 0 / 1.218 GB, free: 3.324 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.553e-06/0.7594, allocations: 0 / 1.218 GB, free: 3.324 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.7598, allocations: 463.6 kB / 1.218 GB, free: 2.867 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002639/0.7601, allocations: 211.8 kB / 1.219 GB, free: 2.625 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.7603, allocations: 0.6768 MB / 1.219 GB, free: 1.922 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.103e-05/0.7603, allocations: 7.438 kB / 1.219 GB, free: 1.918 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.7604, allocations: 0 / 1.219 GB, free: 1.918 MB / 0.9356 GB Notification: Performance of Templates: time 0.002198/0.7626, allocations: 0.756 MB / 1.22 GB, free: 1.168 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches