Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.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.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel") translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel") [: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.212/1.212, allocations: 249.4 MB / 256.7 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009694/0.0009693, allocations: 176.6 kB / 316 MB, free: 3.574 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.066/1.066, allocations: 205.1 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008059/0.0008059, allocations: 90.12 kB / 0.671 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.861e-06/5.881e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1588, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8968/1.056, allocations: 387.8 MB / 1.263 GB, free: 286.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/1.056, allocations: 85 kB / 1.263 GB, free: 286.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.1769/1.233, allocations: 100.8 MB / 1.362 GB, free: 237.3 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.107e-05/1.233, allocations: 8 kB / 1.362 GB, free: 237.3 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0008148/1.234, allocations: 0.6528 MB / 1.362 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/1.234, allocations: 12.03 kB / 1.362 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/1.234, allocations: 47.47 kB / 1.362 GB, free: 236.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01161/1.245, allocations: 6.516 MB / 1.369 GB, free: 230 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/1.246, allocations: 8 kB / 1.369 GB, free: 230 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/1.246, allocations: 16 kB / 1.369 GB, free: 230 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002836/1.246, allocations: 144.9 kB / 1.369 GB, free: 229.8 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/1.246, allocations: 244.3 kB / 1.369 GB, free: 229.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/1.246, allocations: 0 / 1.369 GB, free: 229.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.523e-05/1.246, allocations: 4 kB / 1.369 GB, free: 229.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/1.246, allocations: 11.98 kB / 1.369 GB, free: 229.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/1.248, allocations: 1.42 MB / 1.371 GB, free: 228 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/1.248, allocations: 110.7 kB / 1.371 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.982e-05/1.248, allocations: 52.86 kB / 1.371 GB, free: 227.8 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001023/1.248, allocations: 85.09 kB / 1.371 GB, free: 227.7 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001145/1.248, allocations: 99.3 kB / 1.371 GB, free: 227.6 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/1.248, allocations: 0 / 1.371 GB, free: 227.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15): time 0.0002593/1.248, allocations: 141.2 kB / 1.371 GB, free: 227.5 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.676e-05/1.248, allocations: 51.41 kB / 1.371 GB, free: 227.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/1.249, allocations: 267.5 kB / 1.371 GB, free: 227.1 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/1.249, allocations: 37.69 kB / 1.371 GB, free: 227.1 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.485e-05/1.249, allocations: 179.8 kB / 1.372 GB, free: 226.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.074e-05/1.249, allocations: 55.2 kB / 1.372 GB, free: 226.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/1.249, allocations: 0 / 1.372 GB, free: 226.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.755e-05/1.249, allocations: 338.8 kB / 1.372 GB, free: 226.5 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.759e-05/1.249, allocations: 51.98 kB / 1.372 GB, free: 226.5 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.964e-05/1.249, allocations: 121.4 kB / 1.372 GB, free: 226.3 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/1.249, allocations: 85.05 kB / 1.372 GB, free: 226.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/1.249, allocations: 4 kB / 1.372 GB, free: 226.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003243/1.249, allocations: 215.3 kB / 1.372 GB, free: 226 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/1.249, allocations: 7.984 kB / 1.372 GB, free: 226 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/1.249, allocations: 4 kB / 1.372 GB, free: 226 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/1.249, allocations: 4.312 kB / 1.372 GB, free: 226 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/1.25, allocations: 67.91 kB / 1.372 GB, free: 225.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/1.25, allocations: 4 kB / 1.372 GB, free: 225.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/1.25, allocations: 35.73 kB / 1.372 GB, free: 225.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/1.25, allocations: 8 kB / 1.373 GB, free: 225.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * 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 5.86e-05/1.25, allocations: 128.6 kB / 1.373 GB, free: 225.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.443e-05/1.25, allocations: 35.61 kB / 1.373 GB, free: 225.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/1.25, allocations: 147.7 kB / 1.373 GB, free: 225.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/1.25, allocations: 0 / 1.373 GB, free: 225.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/1.25, allocations: 4 kB / 1.373 GB, free: 225.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001936/1.251, allocations: 443.7 kB / 1.373 GB, free: 225.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/1.251, allocations: 305.5 kB / 1.374 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/1.251, allocations: 0 / 1.374 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/1.251, allocations: 31.98 kB / 1.374 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/1.251, allocations: 7.938 kB / 1.374 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/1.251, allocations: 7.984 kB / 1.374 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/1.251, allocations: 0 / 1.374 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.251, allocations: 0 / 1.374 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002669/1.251, allocations: 228.6 kB / 1.374 GB, free: 224.4 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.936e-05/1.251, allocations: 120.9 kB / 1.374 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.032e-05/1.252, allocations: 7.906 kB / 1.374 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/1.252, allocations: 23.92 kB / 1.374 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.42e-05/1.252, allocations: 15.97 kB / 1.374 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/1.252, allocations: 11.98 kB / 1.374 GB, free: 224.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0001417/1.252, allocations: 207.1 kB / 1.374 GB, free: 224 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003843/1.252, allocations: 135.9 kB / 1.374 GB, free: 223.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002816/1.253, allocations: 239.4 kB / 1.375 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002067/1.253, allocations: 157.5 kB / 1.375 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/1.253, allocations: 0.625 kB / 1.375 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.291e-05/1.253, allocations: 55.92 kB / 1.375 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007448/1.254, allocations: 171.4 kB / 1.375 GB, free: 223.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008088/1.255, allocations: 0.5114 MB / 1.375 GB, free: 222.8 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002333/1.255, allocations: 0.8338 MB / 1.376 GB, free: 221.9 MB / 0.8698 GB Notification: Performance of SimCode: time 2.5e-07/1.255, allocations: 3.938 kB / 1.376 GB, free: 221.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.008596/1.263, allocations: 6.259 MB / 1.382 GB, free: 215.7 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches