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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001424/0.001423, allocations: 100.1 kB / 15.88 MB, free: 12 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.001563/0.001563, allocations: 200 kB / 16.79 MB, free: 6.809 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.369/1.369, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.369/2.369, allocations: 390.2 MB / 0.6649 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 63.89 kB / 0.8125 GB, free: 14.92 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5903/0.5917, allocations: 140.4 MB / 0.9496 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004053/0.5958, allocations: 3.349 MB / 0.9529 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 8.694e-05/0.5959, allocations: 47.55 kB / 0.9529 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.55e-05/0.5959, allocations: 0 / 0.9529 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.4e-05/0.5961, allocations: 3.938 kB / 0.9529 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.125e-05/0.5961, allocations: 15.89 kB / 0.9529 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004365/0.5966, allocations: 175.4 kB / 0.9531 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.136e-05/0.5967, allocations: 55.92 kB / 0.9531 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.487e-05/0.5967, allocations: 7.094 kB / 0.9531 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.534e-05/0.5968, allocations: 16.06 kB / 0.9532 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.628e-05/0.5968, allocations: 7.156 kB / 0.9532 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.5968, allocations: 1.188 kB / 0.9532 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003186/0.5972, allocations: 175 kB / 0.9533 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.28e-05/0.5972, allocations: 15.33 kB / 0.9533 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.645e-05/0.5973, allocations: 7.781 kB / 0.9534 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001815/0.5974, allocations: 92.53 kB / 0.9534 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.5975, allocations: 1.531 kB / 0.9534 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5975, allocations: 0 / 0.9534 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.5975, allocations: 0 / 0.9534 GB, free: 6.152 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.0003237/0.5978, allocations: 347.5 kB / 0.9538 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.5978, allocations: 8.906 kB / 0.9538 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.886e-05/0.5979, allocations: 2.062 kB / 0.9538 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.843e-05/0.598, allocations: 169.6 kB / 0.9539 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.045e-05/0.598, allocations: 27.64 kB / 0.954 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.598, allocations: 5.594 kB / 0.954 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.5982, allocations: 55.58 kB / 0.954 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.5982, allocations: 0 / 0.954 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.5982, allocations: 0 / 0.954 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.5982, allocations: 1.5 kB / 0.954 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.445e-05/0.5983, allocations: 17.39 kB / 0.9541 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005132/0.5988, allocations: 0.5854 MB / 0.9546 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.081e-05/0.5988, allocations: 20.02 kB / 0.9546 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.268e-05/0.5988, allocations: 6.109 kB / 0.9546 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001434/0.599, allocations: 346.5 kB / 0.955 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.599, allocations: 30.56 kB / 0.955 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.599, allocations: 1.75 kB / 0.955 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001365/0.5992, allocations: 42.31 kB / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/0.5992, allocations: 52.5 kB / 0.9551 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.541e-05/0.5993, allocations: 111.2 kB / 0.9552 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.596e-06/0.5993, allocations: 26.86 kB / 0.9552 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.68e-05/0.5993, allocations: 89.64 kB / 0.9553 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.799e-06/0.5993, allocations: 0 / 0.9553 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.5993, allocations: 14.03 kB / 0.9553 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.847e-05/0.5994, allocations: 324.1 kB / 0.9556 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.416e-05/0.5994, allocations: 5.406 kB / 0.9556 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.03e-05/0.5994, allocations: 14.84 kB / 0.9557 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.948e-05/0.5995, allocations: 22.97 kB / 0.9557 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.5995, allocations: 1.5 kB / 0.9557 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.62e-05/0.5996, allocations: 49.53 kB / 0.9557 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.5996, allocations: 7.688 kB / 0.9557 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.5996, allocations: 5.156 kB / 0.9557 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.5996, allocations: 0 / 0.9557 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.339e-05/0.5997, allocations: 9.141 kB / 0.9558 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.5997, allocations: 5.719 kB / 0.9558 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.75e-05/0.5997, allocations: 0 / 0.9558 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.5997, allocations: 1.562 kB / 0.9558 GB, free: 3.559 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 4.79e-05/0.5998, allocations: 112.1 kB / 0.9559 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-05/0.5998, allocations: 9.188 kB / 0.9559 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8e-05/0.5999, allocations: 124.5 kB / 0.956 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/0.5999, allocations: 177.7 kB / 0.9562 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.04e-05/0.5999, allocations: 180.2 kB / 0.9563 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.129e-05/0.5999, allocations: 182 kB / 0.9565 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.6001, allocations: 411.6 kB / 0.9569 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/0.6001, allocations: 106.5 kB / 0.957 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.332e-05/0.6001, allocations: 105 kB / 0.9571 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.238e-05/0.6001, allocations: 181.5 kB / 0.9573 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.6002, allocations: 177.6 kB / 0.9574 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-05/0.6002, allocations: 189.2 kB / 0.9576 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.229e-05/0.6002, allocations: 177.8 kB / 0.9578 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.714e-05/0.6003, allocations: 311.2 kB / 0.9581 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.869e-05/0.6003, allocations: 183.5 kB / 0.9583 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.954e-05/0.6004, allocations: 182.1 kB / 0.9584 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.6005, allocations: 107.4 kB / 0.9585 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.799e-05/0.6005, allocations: 185.5 kB / 0.9587 GB, free: 348 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.6006, allocations: 106 kB / 0.9588 GB, free: 236 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.875e-05/0.6006, allocations: 88.39 kB / 0.9589 GB, free: 152 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6006, allocations: 0 / 0.9589 GB, free: 152 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002754/0.6009, allocations: 32.09 kB / 0.9589 GB, free: 144 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.0002636/0.6011, allocations: 242.2 kB / 0.9592 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.865e-05/0.6012, allocations: 18.14 kB / 0.9592 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.6012, allocations: 0 / 0.9592 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.913e-06/0.6012, allocations: 0.9688 kB / 0.9592 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.6017, allocations: 0.526 MB / 0.9597 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002545/0.6019, allocations: 213.9 kB / 0.9599 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.6022, allocations: 0.6757 MB / 0.9606 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.233e-05/0.6022, allocations: 12.84 kB / 0.9606 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of SimCode: time 3.9e-07/0.6022, allocations: 0 / 0.9606 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of Templates: time 0.002547/0.6048, allocations: 1.176 MB / 0.9617 GB, free: 13.87 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/jenkins1/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