Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.199/1.199, allocations: 249.4 MB / 256.7 MB, free: 0.7227 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009936/0.0009934, allocations: 177.3 kB / 316 MB, free: 8.926 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.117/1.117, allocations: 205.1 MB / 0.5667 GB, free: 13.45 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008021/0.0008021, allocations: 90.97 kB / 0.671 GB, free: 51.66 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 5.47e-06/5.49e-06, allocations: 0 / 0.7807 GB, free: 9.988 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4585/0.4586, allocations: 106.3 MB / 0.8845 GB, free: 89.11 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5956/1.054, allocations: 358.7 MB / 1.235 GB, free: 269.8 MB / 0.8309 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/1.054, allocations: 63.28 kB / 1.235 GB, free: 269.8 MB / 0.8309 GB Notification: Performance of FrontEnd: time 0.02475/1.079, allocations: 12.4 MB / 1.247 GB, free: 267.6 MB / 0.8309 GB Notification: Performance of Transformations before backend: time 6.863e-06/1.079, allocations: 4 kB / 1.247 GB, free: 267.5 MB / 0.8309 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.000249/1.08, allocations: 340.2 kB / 1.247 GB, free: 267.2 MB / 0.8309 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/1.08, allocations: 8.031 kB / 1.247 GB, free: 267.2 MB / 0.8309 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.091e-05/1.08, allocations: 7.938 kB / 1.247 GB, free: 267.2 MB / 0.8309 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.161e-05/1.08, allocations: 170.9 kB / 1.247 GB, free: 267 MB / 0.8309 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/1.08, allocations: 4 kB / 1.247 GB, free: 267 MB / 0.8309 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.364e-05/1.08, allocations: 0 / 1.247 GB, free: 267 MB / 0.8309 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.102e-05/1.08, allocations: 23.12 kB / 1.248 GB, free: 266.9 MB / 0.8309 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.015e-05/1.08, allocations: 47.94 kB / 1.248 GB, free: 266.9 MB / 0.8309 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/1.08, allocations: 0 / 1.248 GB, free: 266.9 MB / 0.8309 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/1.08, allocations: 0 / 1.248 GB, free: 266.9 MB / 0.8309 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/1.08, allocations: 2.25 kB / 1.248 GB, free: 266.9 MB / 0.8309 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001362/1.08, allocations: 146 kB / 1.248 GB, free: 266.7 MB / 0.8309 GB Notification: Performance of preOpt comSubExp (simulation): time 7.7e-05/1.08, allocations: 37.8 kB / 1.248 GB, free: 266.7 MB / 0.8309 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.178e-05/1.08, allocations: 16.36 kB / 1.248 GB, free: 266.7 MB / 0.8309 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005707/1.081, allocations: 0.6042 MB / 1.248 GB, free: 266 MB / 0.8309 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.4e-05/1.081, allocations: 30.56 kB / 1.248 GB, free: 266 MB / 0.8309 GB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/1.081, allocations: 0 / 1.248 GB, free: 266 MB / 0.8309 GB Notification: Performance of matching and sorting (n=7): time 0.0004541/1.081, allocations: 286.2 kB / 1.249 GB, free: 265.7 MB / 0.8309 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.102e-05/1.081, allocations: 55.41 kB / 1.249 GB, free: 265.6 MB / 0.8309 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.994e-05/1.081, allocations: 96.06 kB / 1.249 GB, free: 265.5 MB / 0.8309 GB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/1.081, allocations: 25.7 kB / 1.249 GB, free: 265.5 MB / 0.8309 GB Notification: Performance of collectInitialEqns (initialization): time 2.736e-05/1.081, allocations: 85.25 kB / 1.249 GB, free: 265.4 MB / 0.8309 GB Notification: Performance of collectInitialBindings (initialization): time 1.269e-05/1.081, allocations: 26.28 kB / 1.249 GB, free: 265.4 MB / 0.8309 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/1.081, allocations: 3.938 kB / 1.249 GB, free: 265.4 MB / 0.8309 GB Notification: Performance of setup shared object (initialization): time 4.253e-05/1.082, allocations: 314.8 kB / 1.249 GB, free: 265 MB / 0.8309 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.982e-05/1.082, allocations: 11.62 kB / 1.249 GB, free: 265 MB / 0.8309 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.572e-05/1.082, allocations: 52.94 kB / 1.249 GB, free: 265 MB / 0.8309 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.978e-05/1.082, allocations: 20.92 kB / 1.249 GB, free: 265 MB / 0.8309 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.92e-07/1.082, allocations: 0 / 1.249 GB, free: 265 MB / 0.8309 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.875e-05/1.082, allocations: 84.97 kB / 1.249 GB, free: 264.9 MB / 0.8309 GB Notification: Performance of prepare postOptimizeDAE: time 9.829e-06/1.082, allocations: 4 kB / 1.249 GB, free: 264.9 MB / 0.8309 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/1.082, allocations: 4 kB / 1.249 GB, free: 264.9 MB / 0.8309 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/1.082, allocations: 0 / 1.249 GB, free: 264.9 MB / 0.8309 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.515e-05/1.082, allocations: 28.44 kB / 1.249 GB, free: 264.9 MB / 0.8309 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/1.082, allocations: 0.6094 kB / 1.249 GB, free: 264.9 MB / 0.8309 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.67e-05/1.082, allocations: 3 kB / 1.249 GB, free: 264.9 MB / 0.8309 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/1.082, allocations: 4 kB / 1.249 GB, free: 264.9 MB / 0.8309 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 4.99e-05/1.082, allocations: 113.5 kB / 1.25 GB, free: 264.7 MB / 0.8309 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.727e-05/1.082, allocations: 8.656 kB / 1.25 GB, free: 264.7 MB / 0.8309 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.021e-05/1.082, allocations: 8.703 kB / 1.25 GB, free: 264.7 MB / 0.8309 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/1.082, allocations: 3.906 kB / 1.25 GB, free: 264.7 MB / 0.8309 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/1.082, allocations: 0 / 1.25 GB, free: 264.7 MB / 0.8309 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/1.082, allocations: 2.859 kB / 1.25 GB, free: 264.7 MB / 0.8309 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/1.082, allocations: 148.6 kB / 1.25 GB, free: 264.6 MB / 0.8309 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/1.082, allocations: 0 / 1.25 GB, free: 264.6 MB / 0.8309 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.574e-05/1.082, allocations: 14.58 kB / 1.25 GB, free: 264.5 MB / 0.8309 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/1.082, allocations: 0 / 1.25 GB, free: 264.5 MB / 0.8309 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/1.082, allocations: 4 kB / 1.25 GB, free: 264.5 MB / 0.8309 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/1.082, allocations: 4 kB / 1.25 GB, free: 264.5 MB / 0.8309 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/1.082, allocations: 0 / 1.25 GB, free: 264.5 MB / 0.8309 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001178/1.083, allocations: 175.6 kB / 1.25 GB, free: 264.4 MB / 0.8309 GB Notification: Performance of postOpt removeConstants (simulation): time 3.079e-05/1.083, allocations: 81.02 kB / 1.25 GB, free: 264.3 MB / 0.8309 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/1.083, allocations: 5.359 kB / 1.25 GB, free: 264.3 MB / 0.8309 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.945e-05/1.083, allocations: 3.188 kB / 1.25 GB, free: 264.3 MB / 0.8309 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.271e-05/1.083, allocations: 3.938 kB / 1.25 GB, free: 264.3 MB / 0.8309 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/1.083, allocations: 4 kB / 1.25 GB, free: 264.3 MB / 0.8309 GB Notification: Performance of sort global known variables: time 1.659e-05/1.083, allocations: 83.28 kB / 1.25 GB, free: 264.2 MB / 0.8309 GB Notification: Performance of remove unused functions: time 0.0002197/1.083, allocations: 11.56 kB / 1.25 GB, free: 264.2 MB / 0.8309 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.0001412/1.083, allocations: 117.8 kB / 1.25 GB, free: 264 MB / 0.8309 GB Notification: Performance of simCode: created initialization part: time 8.849e-05/1.083, allocations: 42.94 kB / 1.25 GB, free: 264 MB / 0.8309 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/1.083, allocations: 3.188 kB / 1.25 GB, free: 264 MB / 0.8309 GB Notification: Performance of simCode: created simulation system equations: time 1.464e-05/1.083, allocations: 8 kB / 1.25 GB, free: 264 MB / 0.8309 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001692/1.083, allocations: 25.47 kB / 1.25 GB, free: 264 MB / 0.8309 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004113/1.084, allocations: 250.2 kB / 1.251 GB, free: 263.8 MB / 0.8309 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/1.084, allocations: 0.6998 MB / 1.251 GB, free: 263.1 MB / 0.8309 GB Notification: Performance of SimCode: time 2.3e-07/1.084, allocations: 0 / 1.251 GB, free: 263.1 MB / 0.8309 GB Notification: Performance of Templates: time 0.002396/1.086, allocations: 0.7966 MB / 1.252 GB, free: 262.6 MB / 0.8309 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Examples_WaterDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches