Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterProperties.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.WaterProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterProperties") translateModel(Buildings.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterProperties") [: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.97/1.97, allocations: 387.2 MB / 394.5 MB, free: 13.59 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.001061/0.001061, allocations: 192.3 kB / 487 MB, free: 5.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.307/1.307, allocations: 221.3 MB / 0.7819 GB, free: 1.348 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.000973/0.000973, allocations: 98 kB / 0.9213 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.212e-06/6.242e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2655, allocations: 142.3 MB / 1.205 GB, free: 26.19 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8732/1.139, allocations: 391.6 MB / 1.588 GB, free: 15.59 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/1.139, allocations: 65.91 kB / 1.588 GB, free: 15.56 MB / 1.026 GB Notification: Performance of FrontEnd: time 0.04714/1.186, allocations: 19.84 MB / 1.607 GB, free: 15.64 MB / 1.042 GB Notification: Performance of Transformations before backend: time 1.556e-05/1.186, allocations: 4 kB / 1.607 GB, free: 15.63 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0007113/1.187, allocations: 480.6 kB / 1.608 GB, free: 15.13 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/1.187, allocations: 9.031 kB / 1.608 GB, free: 15.12 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/1.187, allocations: 19.81 kB / 1.608 GB, free: 15.1 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/1.188, allocations: 221.7 kB / 1.608 GB, free: 14.86 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/1.188, allocations: 4 kB / 1.608 GB, free: 14.85 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.294e-05/1.188, allocations: 8 kB / 1.608 GB, free: 14.84 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005068/1.188, allocations: 411.4 kB / 1.608 GB, free: 14.51 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003174/1.188, allocations: 213.9 kB / 1.608 GB, free: 14.33 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/1.188, allocations: 0 / 1.608 GB, free: 14.33 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/1.189, allocations: 4 kB / 1.608 GB, free: 14.32 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.495e-05/1.189, allocations: 7.812 kB / 1.608 GB, free: 14.32 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/1.19, allocations: 0.9511 MB / 1.609 GB, free: 13.38 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/1.19, allocations: 144.5 kB / 1.609 GB, free: 13.26 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.418e-05/1.19, allocations: 47.2 kB / 1.61 GB, free: 13.22 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001554/1.192, allocations: 1.921 MB / 1.611 GB, free: 10.98 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/1.192, allocations: 37.06 kB / 1.611 GB, free: 10.94 MB / 1.042 GB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/1.192, allocations: 0 / 1.611 GB, free: 10.94 MB / 1.042 GB Notification: Performance of matching and sorting (n=15): time 0.0005047/1.192, allocations: 138.7 kB / 1.612 GB, free: 10.81 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.903e-05/1.192, allocations: 58.38 kB / 1.612 GB, free: 10.74 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/1.193, allocations: 132.1 kB / 1.612 GB, free: 10.62 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/1.193, allocations: 29.7 kB / 1.612 GB, free: 10.58 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 8.022e-05/1.193, allocations: 142.7 kB / 1.612 GB, free: 10.45 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 3.284e-05/1.193, allocations: 46.41 kB / 1.612 GB, free: 10.41 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-06/1.193, allocations: 0 / 1.612 GB, free: 10.41 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0001203/1.193, allocations: 330.1 kB / 1.612 GB, free: 10.08 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.3e-05/1.193, allocations: 30.56 kB / 1.612 GB, free: 10.06 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/1.193, allocations: 123.9 kB / 1.612 GB, free: 9.902 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/1.193, allocations: 86.42 kB / 1.612 GB, free: 9.828 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/1.193, allocations: 0 / 1.612 GB, free: 9.828 MB / 1.042 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004866/1.194, allocations: 205.9 kB / 1.613 GB, free: 9.645 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/1.194, allocations: 4.469 kB / 1.613 GB, free: 9.641 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/1.194, allocations: 4 kB / 1.613 GB, free: 9.637 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/1.194, allocations: 15.84 kB / 1.613 GB, free: 9.621 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/1.194, allocations: 67.53 kB / 1.613 GB, free: 9.559 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/1.194, allocations: 8 kB / 1.613 GB, free: 9.551 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/1.194, allocations: 27.67 kB / 1.613 GB, free: 9.523 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/1.194, allocations: 8 kB / 1.613 GB, free: 9.516 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 29 * Array equations: 1 * 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 8.53e-05/1.194, allocations: 112.4 kB / 1.613 GB, free: 9.402 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.631e-05/1.195, allocations: 15.81 kB / 1.613 GB, free: 9.387 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005298/1.195, allocations: 191.9 kB / 1.613 GB, free: 9.215 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/1.195, allocations: 3.984 kB / 1.613 GB, free: 9.211 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/1.195, allocations: 0 / 1.613 GB, free: 9.211 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/1.195, allocations: 0 / 1.613 GB, free: 9.211 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001982/1.195, allocations: 183.3 kB / 1.613 GB, free: 9.008 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/1.195, allocations: 4 kB / 1.613 GB, free: 9.004 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/1.195, allocations: 31.97 kB / 1.613 GB, free: 8.973 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/1.195, allocations: 4 kB / 1.613 GB, free: 8.969 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/1.195, allocations: 0 / 1.613 GB, free: 8.969 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/1.195, allocations: 0 / 1.613 GB, free: 8.969 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.195, allocations: 7.906 kB / 1.613 GB, free: 8.961 MB / 1.042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000431/1.196, allocations: 243.2 kB / 1.614 GB, free: 8.727 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.868e-05/1.196, allocations: 115 kB / 1.614 GB, free: 8.602 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/1.196, allocations: 0 / 1.614 GB, free: 8.602 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/1.196, allocations: 19.98 kB / 1.614 GB, free: 8.582 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.533e-05/1.196, allocations: 15.39 kB / 1.614 GB, free: 8.57 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/1.196, allocations: 11.98 kB / 1.614 GB, free: 8.559 MB / 1.042 GB Notification: Performance of sort global known variables: time 6.181e-05/1.196, allocations: 109 kB / 1.614 GB, free: 8.461 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0003789/1.197, allocations: 75 kB / 1.614 GB, free: 8.391 MB / 1.042 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 (15): * Single equations (assignments): 14 * Array equations: 1 * 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.0002849/1.197, allocations: 184 kB / 1.614 GB, free: 8.207 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0002225/1.197, allocations: 113.4 kB / 1.614 GB, free: 8.113 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.197, allocations: 0 / 1.614 GB, free: 8.113 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 6.737e-05/1.197, allocations: 46.06 kB / 1.614 GB, free: 8.078 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/1.198, allocations: 25.17 kB / 1.614 GB, free: 8.059 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004665/1.198, allocations: 165.4 kB / 1.614 GB, free: 7.883 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003313/1.198, allocations: 0.7472 MB / 1.615 GB, free: 7.109 MB / 1.042 GB Notification: Performance of SimCode: time 2.8e-07/1.198, allocations: 3.938 kB / 1.615 GB, free: 7.105 MB / 1.042 GB Notification: Performance of Templates: time 0.007725/1.206, allocations: 3.328 MB / 1.618 GB, free: 3.812 MB / 1.042 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_9_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterProperties.csv","../files/Buildings_9_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches