Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.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.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.969/1.969, allocations: 387.2 MB / 394.5 MB, free: 13.71 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.0009831/0.0009831, allocations: 173.3 kB / 487 MB, free: 5.391 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.319/1.319, allocations: 221.3 MB / 0.7819 GB, free: 1.422 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.001034/0.001034, allocations: 92.61 kB / 0.9213 GB, free: 2.672 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.282e-06/6.292e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2618, allocations: 142.3 MB / 1.205 GB, free: 26.3 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9195/1.181, allocations: 377.6 MB / 1.574 GB, free: 13.31 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001809/1.182, allocations: 66.41 kB / 1.574 GB, free: 13.28 MB / 1.01 GB Notification: Performance of FrontEnd: time 0.02904/1.211, allocations: 13.03 MB / 1.587 GB, free: 3.133 MB / 1.01 GB Notification: Performance of Transformations before backend: time 7.444e-06/1.211, allocations: 0 / 1.587 GB, free: 3.133 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.0003012/1.211, allocations: 338.2 kB / 1.587 GB, free: 2.762 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/1.211, allocations: 8.031 kB / 1.587 GB, free: 2.754 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.566e-05/1.211, allocations: 7.906 kB / 1.587 GB, free: 2.746 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/1.211, allocations: 167 kB / 1.587 GB, free: 2.543 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/1.211, allocations: 3.984 kB / 1.587 GB, free: 2.539 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/1.211, allocations: 8 kB / 1.587 GB, free: 2.531 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.042e-05/1.211, allocations: 11.19 kB / 1.587 GB, free: 2.523 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.301e-05/1.212, allocations: 56.88 kB / 1.587 GB, free: 2.465 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/1.212, allocations: 0 / 1.587 GB, free: 2.465 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/1.212, allocations: 0 / 1.587 GB, free: 2.465 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/1.212, allocations: 0 / 1.587 GB, free: 2.465 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001622/1.212, allocations: 141.7 kB / 1.587 GB, free: 2.293 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 6.621e-05/1.212, allocations: 44.27 kB / 1.587 GB, free: 2.25 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.856e-05/1.212, allocations: 16.36 kB / 1.588 GB, free: 2.234 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006984/1.213, allocations: 0.5972 MB / 1.588 GB, free: 1.539 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/1.213, allocations: 33.69 kB / 1.588 GB, free: 1.5 MB / 1.01 GB Notification: Performance of pre-optimization done (n=5): time 1.092e-06/1.213, allocations: 0 / 1.588 GB, free: 1.5 MB / 1.01 GB Notification: Performance of matching and sorting (n=7): time 0.0005835/1.213, allocations: 293.1 kB / 1.588 GB, free: 1.172 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.537e-05/1.213, allocations: 55.41 kB / 1.588 GB, free: 1.105 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.45e-05/1.213, allocations: 92.31 kB / 1.589 GB, free: 1.012 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/1.213, allocations: 25.7 kB / 1.589 GB, free: 0.9805 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 4.745e-05/1.213, allocations: 84.05 kB / 1.589 GB, free: 0.8945 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/1.213, allocations: 30.98 kB / 1.589 GB, free: 0.8672 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-06/1.213, allocations: 0 / 1.589 GB, free: 0.8672 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001102/1.213, allocations: 318.8 kB / 1.589 GB, free: 0.5508 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.026e-05/1.214, allocations: 7.875 kB / 1.589 GB, free: 0.5469 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.494e-05/1.214, allocations: 52.77 kB / 1.589 GB, free: 492 kB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.374e-05/1.214, allocations: 15.62 kB / 1.589 GB, free: 480 kB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/1.214, allocations: 3.938 kB / 1.589 GB, free: 476 kB / 1.01 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001186/1.214, allocations: 84.45 kB / 1.589 GB, free: 392 kB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/1.214, allocations: 8 kB / 1.589 GB, free: 384 kB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/1.214, allocations: 0 / 1.589 GB, free: 384 kB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/1.214, allocations: 7.938 kB / 1.589 GB, free: 376 kB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.503e-05/1.214, allocations: 27.8 kB / 1.589 GB, free: 352 kB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/1.214, allocations: 0 / 1.589 GB, free: 352 kB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.033e-05/1.214, allocations: 4 kB / 1.589 GB, free: 348 kB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/1.214, allocations: 4 kB / 1.589 GB, free: 344 kB / 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 7.189e-05/1.214, allocations: 109 kB / 1.589 GB, free: 228 kB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.015e-05/1.214, allocations: 7.906 kB / 1.589 GB, free: 220 kB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/1.214, allocations: 11.98 kB / 1.589 GB, free: 212 kB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/1.214, allocations: 0 / 1.589 GB, free: 212 kB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/1.214, allocations: 0 / 1.589 GB, free: 212 kB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/1.214, allocations: 0 / 1.589 GB, free: 212 kB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002158/1.214, allocations: 146.2 kB / 1.589 GB, free: 32 kB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/1.214, allocations: 0 / 1.589 GB, free: 32 kB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.223e-05/1.214, allocations: 19.89 kB / 1.589 GB, free: 12 kB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/1.214, allocations: 4 kB / 1.589 GB, free: 8 kB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/1.214, allocations: 0 / 1.589 GB, free: 8 kB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/1.214, allocations: 4 kB / 1.589 GB, free: 4 kB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.155e-06/1.214, allocations: 0 / 1.589 GB, free: 4 kB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002491/1.215, allocations: 169.8 kB / 1.59 GB, free: 15.83 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 4.787e-05/1.215, allocations: 81.42 kB / 1.59 GB, free: 15.73 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/1.215, allocations: 7.906 kB / 1.59 GB, free: 15.73 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/1.215, allocations: 3.984 kB / 1.59 GB, free: 15.72 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.928e-05/1.215, allocations: 4 kB / 1.59 GB, free: 15.72 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/1.215, allocations: 4 kB / 1.59 GB, free: 15.71 MB / 1.026 GB Notification: Performance of sort global known variables: time 3.655e-05/1.215, allocations: 86.52 kB / 1.59 GB, free: 15.63 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.000232/1.215, allocations: 12 kB / 1.59 GB, free: 15.62 MB / 1.026 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.0001693/1.215, allocations: 119.2 kB / 1.59 GB, free: 15.49 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 9.158e-05/1.216, allocations: 39.81 kB / 1.59 GB, free: 15.46 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/1.216, allocations: 0 / 1.59 GB, free: 15.46 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 2.051e-05/1.216, allocations: 15.98 kB / 1.59 GB, free: 15.45 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001638/1.216, allocations: 0 / 1.59 GB, free: 15.45 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004904/1.216, allocations: 266.5 kB / 1.59 GB, free: 15.17 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002607/1.217, allocations: 0.7036 MB / 1.591 GB, free: 14.44 MB / 1.026 GB Notification: Performance of SimCode: time 2.6e-07/1.217, allocations: 0 / 1.591 GB, free: 14.44 MB / 1.026 GB Notification: Performance of Templates: time 0.002793/1.219, allocations: 0.7948 MB / 1.592 GB, free: 13.66 MB / 1.026 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches