Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.371 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.463/2.463, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 67.91 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7467/0.7481, allocations: 140.4 MB / 0.9496 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.006118/0.7542, allocations: 3.283 MB / 0.9528 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001225/0.7544, allocations: 56.28 kB / 0.9528 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.922e-05/0.7545, allocations: 0 / 0.9528 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.7547, allocations: 3.938 kB / 0.9528 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.971e-05/0.7548, allocations: 10.58 kB / 0.9528 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005986/0.7554, allocations: 185.8 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001047/0.7555, allocations: 38.48 kB / 0.9531 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.428e-05/0.7555, allocations: 5.391 kB / 0.9531 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.663e-05/0.7556, allocations: 17.36 kB / 0.9531 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.728e-05/0.7557, allocations: 10.27 kB / 0.9531 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.7557, allocations: 1.219 kB / 0.9531 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003654/0.7561, allocations: 175.5 kB / 0.9533 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.213e-05/0.7562, allocations: 5.344 kB / 0.9533 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.706e-05/0.7562, allocations: 9.188 kB / 0.9533 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003233/0.7565, allocations: 135.5 kB / 0.9534 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.7565, allocations: 0 / 0.9534 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.7566, allocations: 4 kB / 0.9534 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.415e-05/0.7566, allocations: 1.188 kB / 0.9534 GB, free: 6.07 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.0004367/0.757, allocations: 354.7 kB / 0.9537 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.7571, allocations: 10.06 kB / 0.9538 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.595e-05/0.7571, allocations: 1.844 kB / 0.9538 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.7572, allocations: 161.7 kB / 0.9539 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.234e-05/0.7573, allocations: 31.48 kB / 0.9539 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.491e-05/0.7573, allocations: 1.562 kB / 0.9539 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.7575, allocations: 59.62 kB / 0.954 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.7575, allocations: 0 / 0.954 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.7575, allocations: 0 / 0.954 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.7575, allocations: 1.281 kB / 0.954 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.311e-05/0.7576, allocations: 18.05 kB / 0.954 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000563/0.7582, allocations: 0.5798 MB / 0.9546 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.739e-05/0.7582, allocations: 25.55 kB / 0.9546 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.572e-05/0.7582, allocations: 10.2 kB / 0.9546 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001643/0.7584, allocations: 338 kB / 0.9549 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.615e-05/0.7584, allocations: 30.56 kB / 0.955 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.7584, allocations: 0.9688 kB / 0.955 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001538/0.7586, allocations: 43.69 kB / 0.955 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.031e-05/0.7586, allocations: 51.41 kB / 0.9551 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.248e-05/0.7587, allocations: 108 kB / 0.9552 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.656e-06/0.7587, allocations: 27.05 kB / 0.9552 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.837e-05/0.7587, allocations: 89.47 kB / 0.9553 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.829e-06/0.7587, allocations: 0 / 0.9553 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.802e-05/0.7588, allocations: 14 kB / 0.9553 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.449e-05/0.7588, allocations: 326.7 kB / 0.9556 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.459e-05/0.7588, allocations: 7.578 kB / 0.9556 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.952e-05/0.7589, allocations: 12.56 kB / 0.9556 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.13e-05/0.7589, allocations: 25.03 kB / 0.9556 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.7589, allocations: 0 / 0.9556 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.226e-05/0.759, allocations: 55.22 kB / 0.9557 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.759, allocations: 5.156 kB / 0.9557 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.759, allocations: 1.438 kB / 0.9557 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.759, allocations: 1.344 kB / 0.9557 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.185e-05/0.7591, allocations: 3.719 kB / 0.9557 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.7591, allocations: 9.484 kB / 0.9557 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.907e-05/0.7591, allocations: 1 kB / 0.9557 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.7591, allocations: 1.375 kB / 0.9557 GB, free: 3.477 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.381e-05/0.7592, allocations: 111.8 kB / 0.9558 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/0.7592, allocations: 5.312 kB / 0.9558 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.959e-05/0.7593, allocations: 124.9 kB / 0.956 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.329e-05/0.7593, allocations: 180.3 kB / 0.9561 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.61e-05/0.7594, allocations: 181.7 kB / 0.9563 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.447e-05/0.7594, allocations: 177.5 kB / 0.9565 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000135/0.7595, allocations: 415.7 kB / 0.9569 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/0.7596, allocations: 106.4 kB / 0.957 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.329e-05/0.7596, allocations: 101 kB / 0.9571 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.579e-05/0.7596, allocations: 193.6 kB / 0.9572 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.7596, allocations: 177.7 kB / 0.9574 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-05/0.7597, allocations: 181.6 kB / 0.9576 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.282e-05/0.7597, allocations: 176.5 kB / 0.9578 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.206e-05/0.7598, allocations: 320.1 kB / 0.9581 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.359e-05/0.7598, allocations: 179.4 kB / 0.9582 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.894e-05/0.7599, allocations: 181.8 kB / 0.9584 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.76, allocations: 107.7 kB / 0.9585 GB, free: 452 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.01e-05/0.7601, allocations: 177.8 kB / 0.9587 GB, free: 268 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.7601, allocations: 109.9 kB / 0.9588 GB, free: 152 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.09e-05/0.7602, allocations: 84.75 kB / 0.9589 GB, free: 72 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7602, allocations: 0 / 0.9589 GB, free: 72 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003168/0.7605, allocations: 39.55 kB / 0.9589 GB, free: 56 kB / 0.7169 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.000293/0.7608, allocations: 237.3 kB / 0.9591 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 7.919e-05/0.7609, allocations: 6.125 kB / 0.9591 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.7609, allocations: 0 / 0.9591 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.21e-06/0.7609, allocations: 9.062 kB / 0.9591 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000465/0.7614, allocations: 469.1 kB / 0.9596 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002967/0.7617, allocations: 182.8 kB / 0.9598 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.762, allocations: 0.6795 MB / 0.9604 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.596e-05/0.762, allocations: 4.281 kB / 0.9604 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.106e-05/0.7621, allocations: 9.812 kB / 0.9604 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of SimCode: time 4.81e-07/0.7621, allocations: 4 kB / 0.9604 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of Templates: time 0.004448/0.7665, allocations: 1.204 MB / 0.9616 GB, free: 13.88 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches