Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.473/1.473, allocations: 249.3 MB / 261.8 MB, free: 5.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001023/0.001023, allocations: 184.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.2 MB / 0.572 GB, free: 10.58 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008475/0.0008476, allocations: 100.1 kB / 0.6764 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.307e-05, allocations: 4 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2429, allocations: 106.3 MB / 0.8918 GB, free: 6.691 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9904/1.233, allocations: 370 MB / 1.253 GB, free: 12.89 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003213/1.234, allocations: 68.59 kB / 1.253 GB, free: 12.86 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02454/1.258, allocations: 11.67 MB / 1.265 GB, free: 1.391 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.254e-06/1.258, allocations: 0 / 1.265 GB, free: 1.391 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.315e-05/1.258, allocations: 0 / 1.265 GB, free: 1.391 MB / 0.8698 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.0004213/1.259, allocations: 330.4 kB / 1.265 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.674e-05/1.259, allocations: 8.031 kB / 1.265 GB, free: 1.016 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.482e-05/1.259, allocations: 4 kB / 1.265 GB, free: 1.012 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/1.259, allocations: 167 kB / 1.265 GB, free: 0.8086 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.99e-05/1.259, allocations: 25.7 kB / 1.265 GB, free: 0.7773 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/1.259, allocations: 12 kB / 1.265 GB, free: 0.7656 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/1.259, allocations: 37.69 kB / 1.265 GB, free: 0.7227 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/1.259, allocations: 3.938 kB / 1.265 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/1.259, allocations: 0 / 1.265 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/1.259, allocations: 0 / 1.265 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.702e-05/1.26, allocations: 15.98 kB / 1.265 GB, free: 0.7031 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005132/1.26, allocations: 330 kB / 1.265 GB, free: 320 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.994e-05/1.26, allocations: 22.58 kB / 1.266 GB, free: 288 kB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.025e-05/1.26, allocations: 8.859 kB / 1.266 GB, free: 276 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.422e-05/1.26, allocations: 89.16 kB / 1.266 GB, free: 168 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/1.26, allocations: 30.56 kB / 1.266 GB, free: 128 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/1.26, allocations: 0 / 1.266 GB, free: 128 kB / 0.8698 GB Notification: Performance of matching and sorting (n=1): time 0.0001502/1.26, allocations: 37.64 kB / 1.266 GB, free: 84 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/1.261, allocations: 55.36 kB / 1.266 GB, free: 16 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6158/1.876, allocations: 97.66 kB / 1.266 GB, free: 324.3 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/1.876, allocations: 26.75 kB / 1.266 GB, free: 324.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.967e-05/1.876, allocations: 87.97 kB / 1.266 GB, free: 324.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.475e-06/1.877, allocations: 1.625 kB / 1.266 GB, free: 324.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.958e-06/1.877, allocations: 0.5625 kB / 1.266 GB, free: 324.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.14e-05/1.877, allocations: 314.7 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.474e-05/1.877, allocations: 2.594 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.26e-05/1.877, allocations: 18.09 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.634e-05/1.877, allocations: 9.484 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.877, allocations: 0 / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001215/1.877, allocations: 49.86 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/1.877, allocations: 5.344 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/1.877, allocations: 1.75 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/1.877, allocations: 0.8438 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.785e-05/1.877, allocations: 5.672 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/1.877, allocations: 4.594 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.039e-05/1.877, allocations: 12.56 kB / 1.266 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/1.877, allocations: 2.5 kB / 1.266 GB, free: 323.8 MB / 0.8698 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.944e-05/1.877, allocations: 107.6 kB / 1.266 GB, free: 323.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/1.877, allocations: 1.906 kB / 1.266 GB, free: 323.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001247/1.877, allocations: 118.5 kB / 1.267 GB, free: 323.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.051e-05/1.877, allocations: 188.3 kB / 1.267 GB, free: 323.4 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.441e-05/1.877, allocations: 178.8 kB / 1.267 GB, free: 323.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-05/1.877, allocations: 188.8 kB / 1.267 GB, free: 323 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001818/1.878, allocations: 412.3 kB / 1.267 GB, free: 322.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.192e-05/1.878, allocations: 105.9 kB / 1.268 GB, free: 322.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.107e-05/1.878, allocations: 102.6 kB / 1.268 GB, free: 322.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.217e-05/1.878, allocations: 180.1 kB / 1.268 GB, free: 322.2 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.68e-05/1.878, allocations: 180.6 kB / 1.268 GB, free: 322 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.139e-05/1.878, allocations: 185.1 kB / 1.268 GB, free: 321.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.448e-05/1.878, allocations: 180 kB / 1.268 GB, free: 321.7 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.838e-05/1.878, allocations: 305.2 kB / 1.269 GB, free: 321.4 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.642e-05/1.878, allocations: 187.3 kB / 1.269 GB, free: 321.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.892e-05/1.878, allocations: 188.2 kB / 1.269 GB, free: 321 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/1.878, allocations: 107.7 kB / 1.269 GB, free: 320.9 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.977e-05/1.878, allocations: 184.7 kB / 1.269 GB, free: 320.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/1.878, allocations: 102.8 kB / 1.269 GB, free: 320.6 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.566e-05/1.878, allocations: 88.52 kB / 1.269 GB, free: 320.5 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/1.878, allocations: 0 / 1.269 GB, free: 320.5 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000298/1.879, allocations: 13.44 kB / 1.269 GB, free: 320.5 MB / 0.8698 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002959/1.879, allocations: 210.6 kB / 1.27 GB, free: 320.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 8.283e-05/1.879, allocations: 9.672 kB / 1.27 GB, free: 320.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/1.879, allocations: 0.625 kB / 1.27 GB, free: 320.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 4.579e-06/1.879, allocations: 3.922 kB / 1.27 GB, free: 320.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/1.879, allocations: 0.5243 MB / 1.27 GB, free: 319.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002004/1.88, allocations: 126.4 kB / 1.27 GB, free: 319.7 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001678/1.88, allocations: 0.6798 MB / 1.271 GB, free: 319 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.43e-05/1.88, allocations: 10.14 kB / 1.271 GB, free: 319 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.283e-05/1.88, allocations: 10.81 kB / 1.271 GB, free: 319 MB / 0.8698 GB Notification: Performance of SimCode: time 2.3e-07/1.88, allocations: 0.75 kB / 1.271 GB, free: 319 MB / 0.8698 GB Notification: Performance of Templates: time 0.003951/1.884, allocations: 0.836 MB / 1.272 GB, free: 318.9 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches