Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.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: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) [: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 1.966/1.966, allocations: 390.4 MB / 397.7 MB, free: 5.156 MB / 318.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 180.9 kB / 490.8 MB, free: 4.742 MB / 382.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 221.4 MB / 0.7863 GB, free: 0.9922 MB / 0.5606 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009725/0.0009726, allocations: 88.12 kB / 0.9264 GB, free: 64.21 MB / 0.67 GB Notification: Performance of FrontEnd - loaded program: time 0.3296/0.3306, allocations: 149.1 MB / 1.072 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.6481, allocations: 143 MB / 1.212 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.95/1.598, allocations: 407 MB / 1.609 GB, free: 15.71 MB / 1.092 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/1.598, allocations: 80.98 kB / 1.609 GB, free: 15.63 MB / 1.092 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.7638/2.362, allocations: 107.2 MB / 1.714 GB, free: 334.5 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/2.362, allocations: 9.219 kB / 1.714 GB, free: 334.5 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002452/2.363, allocations: 45.12 kB / 1.714 GB, free: 334.5 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0149/2.378, allocations: 6.842 MB / 1.721 GB, free: 331.9 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/2.378, allocations: 12.12 kB / 1.721 GB, free: 331.9 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.051e-05/2.378, allocations: 19.09 kB / 1.721 GB, free: 331.9 MB / 1.123 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004086/2.378, allocations: 143.2 kB / 1.721 GB, free: 331.9 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004445/2.379, allocations: 245.7 kB / 1.721 GB, free: 331.8 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/2.379, allocations: 0 / 1.721 GB, free: 331.8 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/2.379, allocations: 3.984 kB / 1.721 GB, free: 331.8 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/2.379, allocations: 6.781 kB / 1.721 GB, free: 331.8 MB / 1.123 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/2.381, allocations: 1.439 MB / 1.722 GB, free: 330.7 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/2.381, allocations: 112.4 kB / 1.723 GB, free: 330.6 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.418e-05/2.381, allocations: 43.11 kB / 1.723 GB, free: 330.6 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/2.381, allocations: 87.47 kB / 1.723 GB, free: 330.5 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001471/2.381, allocations: 100.4 kB / 1.723 GB, free: 330.5 MB / 1.123 GB Notification: Performance of pre-optimization done (n=15): time 1.893e-06/2.381, allocations: 0 / 1.723 GB, free: 330.5 MB / 1.123 GB Notification: Performance of matching and sorting (n=15): time 0.0003714/2.382, allocations: 142 kB / 1.723 GB, free: 330.4 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.445e-05/2.382, allocations: 51.41 kB / 1.723 GB, free: 330.4 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/2.382, allocations: 278.7 kB / 1.723 GB, free: 330.2 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/2.382, allocations: 25.7 kB / 1.723 GB, free: 330.2 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 9.106e-05/2.382, allocations: 187 kB / 1.723 GB, free: 330 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 4.192e-05/2.382, allocations: 47.36 kB / 1.724 GB, free: 330 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.076e-05/2.382, allocations: 4 kB / 1.724 GB, free: 330 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 6.255e-05/2.382, allocations: 341.2 kB / 1.724 GB, free: 329.7 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.833e-05/2.382, allocations: 48.36 kB / 1.724 GB, free: 329.7 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/2.382, allocations: 116.2 kB / 1.724 GB, free: 329.6 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/2.383, allocations: 77.83 kB / 1.724 GB, free: 329.6 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/2.383, allocations: 0 / 1.724 GB, free: 329.6 MB / 1.123 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004373/2.383, allocations: 229.2 kB / 1.724 GB, free: 329.5 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/2.383, allocations: 9.609 kB / 1.724 GB, free: 329.5 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/2.383, allocations: 2.875 kB / 1.724 GB, free: 329.5 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/2.383, allocations: 6.562 kB / 1.724 GB, free: 329.5 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/2.383, allocations: 63.47 kB / 1.724 GB, free: 329.5 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/2.384, allocations: 2.812 kB / 1.724 GB, free: 329.5 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/2.384, allocations: 31.92 kB / 1.724 GB, free: 329.5 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/2.384, allocations: 14.44 kB / 1.724 GB, free: 329.5 MB / 1.123 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 9.571e-05/2.384, allocations: 119.9 kB / 1.725 GB, free: 329.3 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.548e-05/2.384, allocations: 37.33 kB / 1.725 GB, free: 329.3 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000358/2.384, allocations: 152.1 kB / 1.725 GB, free: 329.2 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.351e-06/2.384, allocations: 1.781 kB / 1.725 GB, free: 329.2 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/2.384, allocations: 0.5625 kB / 1.725 GB, free: 329.2 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002918/2.385, allocations: 442 kB / 1.725 GB, free: 328.8 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004568/2.385, allocations: 305.5 kB / 1.725 GB, free: 328.6 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/2.385, allocations: 1.406 kB / 1.725 GB, free: 328.6 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/2.385, allocations: 42.84 kB / 1.725 GB, free: 328.6 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/2.385, allocations: 1.031 kB / 1.725 GB, free: 328.6 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/2.386, allocations: 1.625 kB / 1.725 GB, free: 328.6 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/2.386, allocations: 1.438 kB / 1.725 GB, free: 328.6 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/2.386, allocations: 3.938 kB / 1.725 GB, free: 328.6 MB / 1.123 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004191/2.386, allocations: 235.8 kB / 1.726 GB, free: 328.5 MB / 1.123 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005386/2.387, allocations: 0.6558 MB / 1.726 GB, free: 328 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000166/2.387, allocations: 126.6 kB / 1.726 GB, free: 327.9 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.455e-05/2.387, allocations: 1 kB / 1.726 GB, free: 327.9 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000257/2.387, allocations: 23.08 kB / 1.726 GB, free: 327.9 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.941e-05/2.387, allocations: 13.84 kB / 1.726 GB, free: 327.9 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/2.387, allocations: 14.83 kB / 1.727 GB, free: 327.8 MB / 1.123 GB Notification: Performance of sort global known variables: time 0.0002251/2.387, allocations: 214.5 kB / 1.727 GB, free: 327.8 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.001417/2.389, allocations: 157.5 kB / 1.727 GB, free: 327.7 MB / 1.123 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.000458/2.389, allocations: 234.6 kB / 1.727 GB, free: 327.6 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.0003045/2.39, allocations: 161 kB / 1.727 GB, free: 327.5 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/2.39, allocations: 4.562 kB / 1.727 GB, free: 327.5 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0001029/2.39, allocations: 54.86 kB / 1.727 GB, free: 327.5 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009254/2.391, allocations: 164 kB / 1.727 GB, free: 327.5 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/2.392, allocations: 0.5335 MB / 1.728 GB, free: 327.1 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/2.392, allocations: 0.8508 MB / 1.729 GB, free: 326.4 MB / 1.123 GB Notification: Performance of SimCode: time 3.71e-07/2.392, allocations: 0 / 1.729 GB, free: 326.4 MB / 1.123 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)