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.394/1.394, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001196/0.001196, allocations: 177.2 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.887/1.887, allocations: 205.4 MB / 0.5775 GB, free: 20.55 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.000901/0.0009011, allocations: 91.73 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003333, allocations: 12.05 kB / 0.7962 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2129, allocations: 106.3 MB / 0.9001 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8733/1.086, allocations: 370.1 MB / 1.261 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/1.086, allocations: 69.61 kB / 1.262 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 0.02369/1.11, allocations: 11.72 MB / 1.273 GB, free: 4.613 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.314e-06/1.11, allocations: 0 / 1.273 GB, free: 4.613 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 7.223e-06/1.11, allocations: 0 / 1.273 GB, free: 4.613 MB / 0.7761 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.0003637/1.111, allocations: 345.8 kB / 1.273 GB, free: 4.23 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/1.111, allocations: 8.031 kB / 1.273 GB, free: 4.223 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.483e-05/1.111, allocations: 4 kB / 1.273 GB, free: 4.219 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/1.111, allocations: 168.5 kB / 1.274 GB, free: 4.016 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-05/1.111, allocations: 25.7 kB / 1.274 GB, free: 3.984 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/1.111, allocations: 4 kB / 1.274 GB, free: 3.98 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001525/1.111, allocations: 40.81 kB / 1.274 GB, free: 3.938 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/1.111, allocations: 0 / 1.274 GB, free: 3.938 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/1.111, allocations: 0 / 1.274 GB, free: 3.938 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/1.111, allocations: 4 kB / 1.274 GB, free: 3.934 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.445e-05/1.111, allocations: 17.61 kB / 1.274 GB, free: 3.918 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004736/1.112, allocations: 337.8 kB / 1.274 GB, free: 3.527 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 4.044e-05/1.112, allocations: 16.2 kB / 1.274 GB, free: 3.504 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 8.922e-05/1.112, allocations: 81.17 kB / 1.274 GB, free: 3.406 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/1.112, allocations: 43.98 kB / 1.274 GB, free: 3.355 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/1.112, allocations: 4 kB / 1.274 GB, free: 3.352 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 0.0001398/1.112, allocations: 33.64 kB / 1.274 GB, free: 3.312 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.393e-05/1.112, allocations: 56.98 kB / 1.274 GB, free: 3.246 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.027e-05/1.112, allocations: 102.2 kB / 1.274 GB, free: 3.141 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/1.112, allocations: 27.14 kB / 1.274 GB, free: 3.109 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.922e-05/1.112, allocations: 80.14 kB / 1.274 GB, free: 3.027 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 8.916e-06/1.112, allocations: 5.156 kB / 1.274 GB, free: 3.023 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-06/1.112, allocations: 0 / 1.274 GB, free: 3.023 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001353/1.112, allocations: 320.3 kB / 1.275 GB, free: 2.703 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.383e-05/1.112, allocations: 1.188 kB / 1.275 GB, free: 2.703 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.723e-05/1.112, allocations: 19.7 kB / 1.275 GB, free: 2.68 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.12e-05/1.113, allocations: 4 kB / 1.275 GB, free: 2.676 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/1.113, allocations: 3.938 kB / 1.275 GB, free: 2.672 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.009e-05/1.113, allocations: 45.12 kB / 1.275 GB, free: 2.625 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/1.113, allocations: 12.06 kB / 1.275 GB, free: 2.613 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/1.113, allocations: 0 / 1.275 GB, free: 2.613 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/1.113, allocations: 0 / 1.275 GB, free: 2.613 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.753e-05/1.113, allocations: 4 kB / 1.275 GB, free: 2.609 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/1.113, allocations: 4 kB / 1.275 GB, free: 2.605 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.159e-05/1.113, allocations: 17.39 kB / 1.275 GB, free: 2.59 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/1.113, allocations: 0 / 1.275 GB, free: 2.59 MB / 0.7761 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.195e-05/1.113, allocations: 117.6 kB / 1.275 GB, free: 2.469 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.179e-05/1.113, allocations: 0 / 1.275 GB, free: 2.469 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/1.113, allocations: 123.9 kB / 1.275 GB, free: 2.344 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.467e-05/1.113, allocations: 181.3 kB / 1.275 GB, free: 2.16 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.432e-05/1.113, allocations: 180.2 kB / 1.275 GB, free: 1.977 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.406e-05/1.113, allocations: 181.6 kB / 1.276 GB, free: 1.793 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/1.114, allocations: 408.2 kB / 1.276 GB, free: 1.34 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.383e-05/1.114, allocations: 109 kB / 1.276 GB, free: 1.227 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.534e-05/1.114, allocations: 108.9 kB / 1.276 GB, free: 1.113 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.376e-05/1.114, allocations: 181.2 kB / 1.276 GB, free: 0.9297 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.372e-05/1.114, allocations: 181.2 kB / 1.276 GB, free: 0.7461 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.125e-05/1.114, allocations: 188.2 kB / 1.277 GB, free: 0.5547 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.762e-05/1.114, allocations: 177 kB / 1.277 GB, free: 384 kB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001413/1.114, allocations: 313.3 kB / 1.277 GB, free: 52 kB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/1.114, allocations: 182.1 kB / 1.277 GB, free: 15.85 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.664e-05/1.114, allocations: 184.2 kB / 1.277 GB, free: 15.66 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/1.115, allocations: 105 kB / 1.278 GB, free: 15.55 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.442e-05/1.115, allocations: 191.4 kB / 1.278 GB, free: 15.36 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.574e-05/1.115, allocations: 102.3 kB / 1.278 GB, free: 15.25 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 4.757e-05/1.115, allocations: 83.28 kB / 1.278 GB, free: 15.17 MB / 0.7917 GB Notification: Performance of sort global known variables: time 1.4e-07/1.115, allocations: 3.938 kB / 1.278 GB, free: 15.17 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.0002627/1.115, allocations: 15.44 kB / 1.278 GB, free: 15.16 MB / 0.7917 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 (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.000214/1.115, allocations: 209.5 kB / 1.278 GB, free: 14.95 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 7.232e-05/1.115, allocations: 15.75 kB / 1.278 GB, free: 14.93 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/1.115, allocations: 0 / 1.278 GB, free: 14.93 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 1.282e-06/1.115, allocations: 0 / 1.278 GB, free: 14.93 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/1.116, allocations: 0.5293 MB / 1.279 GB, free: 14.4 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002661/1.116, allocations: 195.7 kB / 1.279 GB, free: 14.18 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/1.116, allocations: 0.6809 MB / 1.28 GB, free: 13.48 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 4.521e-05/1.116, allocations: 11.98 kB / 1.28 GB, free: 13.46 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.84e-05/1.116, allocations: 7.438 kB / 1.28 GB, free: 13.46 MB / 0.7917 GB Notification: Performance of SimCode: time 2.1e-07/1.116, allocations: 0 / 1.28 GB, free: 13.46 MB / 0.7917 GB Notification: Performance of Templates: time 0.002906/1.119, allocations: 0.7839 MB / 1.28 GB, free: 12.68 MB / 0.7917 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