Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.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.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck") [: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 10.0.0-master/package.mo): time 2.128/2.128, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009961/0.0009961, allocations: 185.2 kB / 490.8 MB, free: 1.977 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.423/1.423, allocations: 221.3 MB / 0.7863 GB, free: 13.73 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.001067/0.001067, allocations: 102.3 kB / 0.9264 GB, free: 14.26 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.304e-06/7.334e-06, allocations: 3.938 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2766, allocations: 143 MB / 1.212 GB, free: 40.16 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9472/1.224, allocations: 378.4 MB / 1.581 GB, free: 4.535 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/1.224, allocations: 69.28 kB / 1.581 GB, free: 4.5 MB / 0.9948 GB Notification: Performance of FrontEnd: time 0.02733/1.252, allocations: 13.03 MB / 1.594 GB, free: 10.35 MB / 1.01 GB Notification: Performance of Transformations before backend: time 6.873e-06/1.252, allocations: 4 kB / 1.594 GB, free: 10.35 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003091/1.252, allocations: 337.4 kB / 1.594 GB, free: 9.977 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 3.992e-05/1.252, allocations: 8.031 kB / 1.594 GB, free: 9.969 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.512e-05/1.252, allocations: 11.89 kB / 1.594 GB, free: 9.957 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/1.252, allocations: 159.1 kB / 1.594 GB, free: 9.762 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/1.252, allocations: 4 kB / 1.594 GB, free: 9.758 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/1.252, allocations: 3.312 kB / 1.594 GB, free: 9.758 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.607e-05/1.252, allocations: 19.98 kB / 1.594 GB, free: 9.738 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.099e-05/1.252, allocations: 48.98 kB / 1.594 GB, free: 9.688 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/1.252, allocations: 3.906 kB / 1.594 GB, free: 9.684 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/1.253, allocations: 3.938 kB / 1.594 GB, free: 9.68 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/1.253, allocations: 3.984 kB / 1.594 GB, free: 9.676 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000154/1.253, allocations: 141.5 kB / 1.595 GB, free: 9.508 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 5.742e-05/1.253, allocations: 28.59 kB / 1.595 GB, free: 9.477 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.516e-05/1.253, allocations: 20.41 kB / 1.595 GB, free: 9.457 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006451/1.253, allocations: 0.6102 MB / 1.595 GB, free: 8.746 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/1.253, allocations: 30.56 kB / 1.595 GB, free: 8.707 MB / 1.01 GB Notification: Performance of pre-optimization done (n=5): time 2.746e-06/1.253, allocations: 0 / 1.595 GB, free: 8.707 MB / 1.01 GB Notification: Performance of matching and sorting (n=7): time 0.0005153/1.254, allocations: 285.5 kB / 1.596 GB, free: 8.391 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.371e-05/1.254, allocations: 55.41 kB / 1.596 GB, free: 8.324 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.8e-05/1.254, allocations: 96.97 kB / 1.596 GB, free: 8.223 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/1.254, allocations: 25.7 kB / 1.596 GB, free: 8.191 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 4.1e-05/1.254, allocations: 87.98 kB / 1.596 GB, free: 8.105 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/1.254, allocations: 22.72 kB / 1.596 GB, free: 8.086 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-06/1.254, allocations: 0 / 1.596 GB, free: 8.086 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 9.335e-05/1.254, allocations: 318.7 kB / 1.596 GB, free: 7.766 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.031e-05/1.254, allocations: 11.56 kB / 1.596 GB, free: 7.758 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/1.254, allocations: 54.59 kB / 1.596 GB, free: 7.691 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.316e-05/1.254, allocations: 15.42 kB / 1.596 GB, free: 7.68 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/1.254, allocations: 0 / 1.596 GB, free: 7.68 MB / 1.01 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001145/1.255, allocations: 87.27 kB / 1.596 GB, free: 7.598 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/1.255, allocations: 4 kB / 1.596 GB, free: 7.594 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.255, allocations: 7.906 kB / 1.596 GB, free: 7.586 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/1.255, allocations: 0 / 1.596 GB, free: 7.586 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.939e-05/1.255, allocations: 20 kB / 1.596 GB, free: 7.566 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/1.255, allocations: 3.984 kB / 1.596 GB, free: 7.562 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.603e-05/1.255, allocations: 0 / 1.596 GB, free: 7.562 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/1.255, allocations: 4.25 kB / 1.596 GB, free: 7.559 MB / 1.01 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 (12): * Single equations (assignments): 12 * 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.506e-05/1.255, allocations: 108.9 kB / 1.596 GB, free: 7.445 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.827e-05/1.255, allocations: 12 kB / 1.596 GB, free: 7.434 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3e-05/1.255, allocations: 7.625 kB / 1.596 GB, free: 7.43 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/1.255, allocations: 0 / 1.596 GB, free: 7.43 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/1.255, allocations: 4 kB / 1.596 GB, free: 7.426 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/1.255, allocations: 0 / 1.596 GB, free: 7.426 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/1.255, allocations: 153.3 kB / 1.597 GB, free: 7.242 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/1.255, allocations: 0 / 1.597 GB, free: 7.242 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.599e-05/1.255, allocations: 19.05 kB / 1.597 GB, free: 7.227 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/1.255, allocations: 0 / 1.597 GB, free: 7.227 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/1.255, allocations: 7.906 kB / 1.597 GB, free: 7.219 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/1.255, allocations: 7.938 kB / 1.597 GB, free: 7.211 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/1.255, allocations: 0 / 1.597 GB, free: 7.211 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001425/1.255, allocations: 165.8 kB / 1.597 GB, free: 7.043 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 4.709e-05/1.256, allocations: 81.09 kB / 1.597 GB, free: 6.945 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/1.256, allocations: 7.938 kB / 1.597 GB, free: 6.938 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/1.256, allocations: 3.906 kB / 1.597 GB, free: 6.934 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.654e-05/1.256, allocations: 0 / 1.597 GB, free: 6.934 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/1.256, allocations: 7.984 kB / 1.597 GB, free: 6.926 MB / 1.01 GB Notification: Performance of sort global known variables: time 2.707e-05/1.256, allocations: 83.28 kB / 1.597 GB, free: 6.844 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0002295/1.256, allocations: 11.88 kB / 1.597 GB, free: 6.836 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001634/1.256, allocations: 127.8 kB / 1.597 GB, free: 6.699 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 9.262e-05/1.256, allocations: 31.69 kB / 1.597 GB, free: 6.672 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/1.256, allocations: 7.75 kB / 1.597 GB, free: 6.668 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 1.765e-05/1.256, allocations: 11.94 kB / 1.597 GB, free: 6.656 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001605/1.256, allocations: 4 kB / 1.597 GB, free: 6.652 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004717/1.257, allocations: 257.6 kB / 1.597 GB, free: 6.383 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002266/1.257, allocations: 0.6997 MB / 1.598 GB, free: 5.656 MB / 1.01 GB Notification: Performance of SimCode: time 2.5e-07/1.257, allocations: 4 kB / 1.598 GB, free: 5.652 MB / 1.01 GB Notification: Performance of Templates: time 0.002615/1.26, allocations: 0.7986 MB / 1.599 GB, free: 4.863 MB / 1.01 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterDerivativeCheck.csv","../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches