Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Media.Examples.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamProperties") translateModel(Buildings.Media.Examples.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamProperties") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.958/1.958, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.001152/0.001152, allocations: 185.2 kB / 487 MB, free: 5.332 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.302/1.302, allocations: 221.3 MB / 0.7819 GB, free: 1.359 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009702/0.00097, allocations: 98.58 kB / 0.9213 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.223e-06/7.243e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2517, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9674/1.219, allocations: 460.1 MB / 1.655 GB, free: 12.56 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003221/1.22, allocations: 78.94 kB / 1.655 GB, free: 12.52 MB / 1.089 GB Notification: Performance of FrontEnd: time 0.9581/2.178, allocations: 188 MB / 1.838 GB, free: 283.3 MB / 1.135 GB Notification: Performance of Transformations before backend: time 1.671e-05/2.178, allocations: 6.531 kB / 1.838 GB, free: 283.3 MB / 1.135 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.006565/2.184, allocations: 1.218 MB / 1.839 GB, free: 282.5 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/2.184, allocations: 9.594 kB / 1.839 GB, free: 282.5 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002007/2.186, allocations: 90.27 kB / 1.84 GB, free: 282.5 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/2.187, allocations: 230.7 kB / 1.84 GB, free: 282.3 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/2.187, allocations: 5.375 kB / 1.84 GB, free: 282.3 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.571e-05/2.187, allocations: 9.25 kB / 1.84 GB, free: 282.3 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007926/2.188, allocations: 403.9 kB / 1.84 GB, free: 282.3 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/2.188, allocations: 201.8 kB / 1.84 GB, free: 282.2 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/2.188, allocations: 5.547 kB / 1.84 GB, free: 282.2 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/2.188, allocations: 0 / 1.84 GB, free: 282.2 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/2.188, allocations: 8.125 kB / 1.84 GB, free: 282.2 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001256/2.189, allocations: 0.8536 MB / 1.841 GB, free: 281.6 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/2.19, allocations: 138.5 kB / 1.841 GB, free: 281.5 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/2.19, allocations: 63.83 kB / 1.841 GB, free: 281.5 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1651/2.355, allocations: 48.34 MB / 1.889 GB, free: 246.6 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/2.355, allocations: 34.25 kB / 1.889 GB, free: 246.5 MB / 1.135 GB Notification: Performance of pre-optimization done (n=25): time 2.034e-06/2.355, allocations: 0 / 1.889 GB, free: 246.5 MB / 1.135 GB Notification: Performance of matching and sorting (n=25): time 0.001085/2.356, allocations: 237.6 kB / 1.889 GB, free: 246.4 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.925e-05/2.356, allocations: 51.41 kB / 1.889 GB, free: 246.3 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.426e-05/2.356, allocations: 117.7 kB / 1.889 GB, free: 246.2 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/2.356, allocations: 25.7 kB / 1.889 GB, free: 246.2 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 4.151e-05/2.356, allocations: 111.5 kB / 1.889 GB, free: 246 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 4.292e-05/2.356, allocations: 83.47 kB / 1.889 GB, free: 246 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.397e-06/2.356, allocations: 0 / 1.889 GB, free: 246 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 5.002e-05/2.357, allocations: 322.6 kB / 1.89 GB, free: 245.7 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.124e-05/2.357, allocations: 40.91 kB / 1.89 GB, free: 245.6 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.094e-05/2.357, allocations: 93.25 kB / 1.89 GB, free: 245.6 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003877/2.357, allocations: 74.84 kB / 1.89 GB, free: 245.5 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/2.357, allocations: 0 / 1.89 GB, free: 245.5 MB / 1.135 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000823/2.358, allocations: 256.6 kB / 1.89 GB, free: 245.3 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/2.358, allocations: 4 kB / 1.89 GB, free: 245.3 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/2.358, allocations: 3.938 kB / 1.89 GB, free: 245.3 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/2.358, allocations: 8.953 kB / 1.89 GB, free: 245.3 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/2.358, allocations: 60.78 kB / 1.89 GB, free: 245.3 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/2.358, allocations: 0.5625 kB / 1.89 GB, free: 245.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/2.358, allocations: 20.31 kB / 1.89 GB, free: 245.3 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/2.358, allocations: 9.312 kB / 1.89 GB, free: 245.3 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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 6.401e-05/2.358, allocations: 107.9 kB / 1.89 GB, free: 245.1 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000314/2.359, allocations: 69.69 kB / 1.89 GB, free: 245.1 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/2.36, allocations: 0.8069 MB / 1.891 GB, free: 244.6 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/2.36, allocations: 11.7 kB / 1.891 GB, free: 244.6 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/2.36, allocations: 10.22 kB / 1.891 GB, free: 244.6 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/2.36, allocations: 1.219 kB / 1.891 GB, free: 244.6 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/2.361, allocations: 1.146 MB / 1.892 GB, free: 243.7 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/2.361, allocations: 4 kB / 1.892 GB, free: 243.7 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/2.361, allocations: 43.53 kB / 1.892 GB, free: 243.7 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/2.361, allocations: 0 / 1.892 GB, free: 243.7 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/2.361, allocations: 11.25 kB / 1.892 GB, free: 243.7 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/2.361, allocations: 0 / 1.892 GB, free: 243.7 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/2.361, allocations: 8 kB / 1.892 GB, free: 243.7 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001169/2.362, allocations: 0.7539 MB / 1.893 GB, free: 243.1 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 8.654e-05/2.362, allocations: 136.1 kB / 1.893 GB, free: 242.9 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.722e-05/2.363, allocations: 0 / 1.893 GB, free: 242.9 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/2.363, allocations: 19.89 kB / 1.893 GB, free: 242.9 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.465e-05/2.363, allocations: 12.22 kB / 1.893 GB, free: 242.9 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/2.363, allocations: 14.86 kB / 1.893 GB, free: 242.9 MB / 1.135 GB Notification: Performance of sort global known variables: time 3.374e-05/2.363, allocations: 93.09 kB / 1.893 GB, free: 242.8 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.006079/2.369, allocations: 1.676 MB / 1.895 GB, free: 241.2 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.01141/2.38, allocations: 2.689 MB / 1.897 GB, free: 238.8 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.0003829/2.381, allocations: 348.3 kB / 1.898 GB, free: 238.6 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/2.381, allocations: 0 / 1.898 GB, free: 238.6 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0002387/2.381, allocations: 330.1 kB / 1.898 GB, free: 238.4 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003913/2.381, allocations: 51.22 kB / 1.898 GB, free: 238.3 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007058/2.382, allocations: 497.2 kB / 1.899 GB, free: 238 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/2.382, allocations: 0.8076 MB / 1.899 GB, free: 237.1 MB / 1.135 GB Notification: Performance of SimCode: time 2.41e-07/2.382, allocations: 0 / 1.899 GB, free: 237.1 MB / 1.135 GB Notification: Performance of Templates: time 0.04778/2.43, allocations: 44.35 MB / 1.943 GB, free: 192.9 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamProperties.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamProperties.sim & ./Buildings_9_Buildings.Media.Examples.SteamProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamProperties.csv","../files/Buildings_9_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches