Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.59/2.59, allocations: 393.5 MB / 408.4 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 186.7 kB / 0.4902 GB, free: 2.207 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.848/1.848, allocations: 223.1 MB / 0.7992 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009412/0.0009411, allocations: 99.08 kB / 0.9396 GB, free: 1.895 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004495/0.0004496, allocations: 6.938 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2721, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.141/1.413, allocations: 456.8 MB / 1.675 GB, free: 6.422 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/1.413, allocations: 72.34 kB / 1.675 GB, free: 6.387 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 0.05755/1.471, allocations: 23.5 MB / 1.698 GB, free: 2.996 MB / 1.01 GB Notification: Performance of FrontEnd: time 2.294e-06/1.471, allocations: 0 / 1.698 GB, free: 2.996 MB / 1.01 GB Notification: Performance of Transformations before backend: time 7.424e-06/1.471, allocations: 0 / 1.698 GB, free: 2.996 MB / 1.01 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.000458/1.471, allocations: 363 kB / 1.699 GB, free: 2.598 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/1.471, allocations: 8.031 kB / 1.699 GB, free: 2.59 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.96e-05/1.471, allocations: 3.953 kB / 1.699 GB, free: 2.586 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/1.471, allocations: 167.1 kB / 1.699 GB, free: 2.383 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.281e-05/1.472, allocations: 29.64 kB / 1.699 GB, free: 2.348 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/1.472, allocations: 3.984 kB / 1.699 GB, free: 2.344 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001481/1.472, allocations: 49.41 kB / 1.699 GB, free: 2.293 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/1.472, allocations: 0 / 1.699 GB, free: 2.293 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/1.472, allocations: 0 / 1.699 GB, free: 2.293 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/1.472, allocations: 7.953 kB / 1.699 GB, free: 2.285 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.41e-05/1.472, allocations: 11.98 kB / 1.699 GB, free: 2.273 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007542/1.473, allocations: 0.5901 MB / 1.699 GB, free: 1.574 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 4.301e-05/1.473, allocations: 18.52 kB / 1.699 GB, free: 1.547 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003961/1.473, allocations: 0.4942 MB / 1.7 GB, free: 0.9492 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/1.473, allocations: 38.52 kB / 1.7 GB, free: 0.9023 MB / 1.01 GB Notification: Performance of pre-optimization done (n=1): time 1.552e-06/1.473, allocations: 0 / 1.7 GB, free: 0.9023 MB / 1.01 GB Notification: Performance of matching and sorting (n=1): time 0.0001928/1.473, allocations: 37.69 kB / 1.7 GB, free: 0.8594 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/1.473, allocations: 55.09 kB / 1.7 GB, free: 0.7969 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.987e-05/1.473, allocations: 92.94 kB / 1.7 GB, free: 0.6992 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/1.473, allocations: 29.64 kB / 1.7 GB, free: 0.6641 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 6.629e-05/1.474, allocations: 95.84 kB / 1.7 GB, free: 0.5703 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 6.272e-06/1.474, allocations: 0 / 1.7 GB, free: 0.5703 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-06/1.474, allocations: 128 / 1.7 GB, free: 0.5703 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001256/1.474, allocations: 314.8 kB / 1.701 GB, free: 260 kB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.824e-05/1.474, allocations: 4 kB / 1.701 GB, free: 256 kB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.565e-05/1.474, allocations: 21.52 kB / 1.701 GB, free: 232 kB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.116e-05/1.474, allocations: 4 kB / 1.701 GB, free: 228 kB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/1.474, allocations: 0 / 1.701 GB, free: 228 kB / 1.01 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.348e-05/1.474, allocations: 49.25 kB / 1.701 GB, free: 176 kB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/1.474, allocations: 12 kB / 1.701 GB, free: 164 kB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/1.474, allocations: 4 kB / 1.701 GB, free: 160 kB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/1.474, allocations: 3.953 kB / 1.701 GB, free: 156 kB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.042e-05/1.474, allocations: 4 kB / 1.701 GB, free: 152 kB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/1.474, allocations: 3.938 kB / 1.701 GB, free: 148 kB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.197e-05/1.474, allocations: 7.906 kB / 1.701 GB, free: 140 kB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/1.474, allocations: 0 / 1.701 GB, free: 140 kB / 1.01 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 7.461e-05/1.474, allocations: 110.3 kB / 1.701 GB, free: 24 kB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/1.474, allocations: 4 kB / 1.701 GB, free: 20 kB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001546/1.474, allocations: 124.9 kB / 1.701 GB, free: 15.89 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.575e-05/1.474, allocations: 180.2 kB / 1.701 GB, free: 15.71 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-05/1.474, allocations: 180.1 kB / 1.701 GB, free: 15.53 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.169e-05/1.475, allocations: 184.2 kB / 1.701 GB, free: 15.34 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002213/1.475, allocations: 409.2 kB / 1.702 GB, free: 14.88 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.884e-05/1.475, allocations: 108.7 kB / 1.702 GB, free: 14.77 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.383e-05/1.475, allocations: 105 kB / 1.702 GB, free: 14.66 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.229e-05/1.475, allocations: 176.3 kB / 1.702 GB, free: 14.48 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.05e-05/1.475, allocations: 180.2 kB / 1.702 GB, free: 14.3 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.944e-05/1.475, allocations: 176.3 kB / 1.703 GB, free: 14.12 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-05/1.475, allocations: 200.2 kB / 1.703 GB, free: 13.92 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001316/1.475, allocations: 303.4 kB / 1.703 GB, free: 13.6 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 7.579e-05/1.475, allocations: 182.4 kB / 1.703 GB, free: 13.4 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.581e-05/1.475, allocations: 180 kB / 1.703 GB, free: 13.22 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/1.476, allocations: 112.9 kB / 1.704 GB, free: 13.1 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.559e-05/1.476, allocations: 184.2 kB / 1.704 GB, free: 12.91 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.415e-05/1.476, allocations: 112.9 kB / 1.704 GB, free: 12.8 MB / 1.026 GB Notification: Performance of sorting global known variables: time 4.553e-05/1.476, allocations: 83.03 kB / 1.704 GB, free: 12.72 MB / 1.026 GB Notification: Performance of sort global known variables: time 2.71e-07/1.476, allocations: 0 / 1.704 GB, free: 12.72 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.0004196/1.476, allocations: 86.42 kB / 1.704 GB, free: 12.65 MB / 1.026 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.0009101/1.477, allocations: 0.6481 MB / 1.705 GB, free: 12 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 7.992e-05/1.477, allocations: 11.98 kB / 1.705 GB, free: 11.99 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/1.477, allocations: 8.062 kB / 1.705 GB, free: 11.98 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 1.843e-06/1.477, allocations: 0 / 1.705 GB, free: 11.98 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/1.478, allocations: 0.527 MB / 1.705 GB, free: 11.46 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002619/1.478, allocations: 188.4 kB / 1.705 GB, free: 11.25 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/1.478, allocations: 0.677 MB / 1.706 GB, free: 10.54 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 4.691e-05/1.478, allocations: 4 kB / 1.706 GB, free: 10.54 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.822e-05/1.478, allocations: 7.438 kB / 1.706 GB, free: 10.53 MB / 1.026 GB Notification: Performance of SimCode: time 3.7e-07/1.478, allocations: 4 kB / 1.706 GB, free: 10.53 MB / 1.026 GB Notification: Performance of Templates: time 0.01164/1.49, allocations: 7.347 MB / 1.713 GB, free: 3.184 MB / 1.026 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","../files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches