Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.ExpansionVessel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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/BuildSysPro 3.5.0/package.mo): time 0.7277/0.7277, allocations: 127.4 MB / 134.6 MB, free: 4.086 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001303/0.001303, allocations: 181.2 kB / 164.4 MB, free: 6.883 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.779/1.779, allocations: 205.1 MB / 399.1 MB, free: 6.098 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009914/0.0009914, allocations: 86.48 kB / 476.3 MB, free: 8.859 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3241/0.3251, allocations: 82.89 MB / 0.5461 GB, free: 42.68 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.4937, allocations: 76.75 MB / 0.621 GB, free: 13.86 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.118/1.612, allocations: 354.8 MB / 0.9674 GB, free: 127.1 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/1.612, allocations: 80.39 kB / 0.9675 GB, free: 127 MB / 0.6198 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.1977/1.81, allocations: 99.83 MB / 1.065 GB, free: 32 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/1.81, allocations: 8 kB / 1.065 GB, free: 32 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000284/1.81, allocations: 51.42 kB / 1.065 GB, free: 31.95 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/1.824, allocations: 6.502 MB / 1.071 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.52e-05/1.825, allocations: 11.98 kB / 1.071 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.263e-05/1.825, allocations: 16 kB / 1.071 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003869/1.825, allocations: 141 kB / 1.072 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/1.825, allocations: 244.3 kB / 1.072 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/1.826, allocations: 0 / 1.072 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.011e-05/1.826, allocations: 0 / 1.072 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/1.826, allocations: 8 kB / 1.072 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/1.827, allocations: 1.395 MB / 1.073 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/1.828, allocations: 118.6 kB / 1.073 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.921e-05/1.828, allocations: 48.84 kB / 1.073 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/1.828, allocations: 85.11 kB / 1.073 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001482/1.828, allocations: 99.7 kB / 1.074 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=15): time 2.715e-06/1.828, allocations: 0 / 1.074 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15): time 0.0003967/1.828, allocations: 137.3 kB / 1.074 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/1.828, allocations: 51.41 kB / 1.074 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002796/1.829, allocations: 275.4 kB / 1.074 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.417e-05/1.829, allocations: 25.7 kB / 1.074 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.382e-05/1.829, allocations: 179.8 kB / 1.074 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.107e-05/1.829, allocations: 51.28 kB / 1.074 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.095e-05/1.829, allocations: 0 / 1.074 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.638e-05/1.829, allocations: 342.8 kB / 1.075 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.831e-05/1.829, allocations: 52.17 kB / 1.075 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/1.829, allocations: 121.6 kB / 1.075 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/1.829, allocations: 71.97 kB / 1.075 GB, free: 21.65 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/1.829, allocations: 0 / 1.075 GB, free: 21.65 MB / 0.6198 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005911/1.83, allocations: 225.1 kB / 1.075 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/1.83, allocations: 4 kB / 1.075 GB, free: 21.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/1.83, allocations: 7.906 kB / 1.075 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/1.83, allocations: 7.984 kB / 1.075 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/1.831, allocations: 55.91 kB / 1.075 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/1.831, allocations: 16.2 kB / 1.075 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004764/1.831, allocations: 27.83 kB / 1.075 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.649e-05/1.831, allocations: 15.98 kB / 1.075 GB, free: 21.29 MB / 0.6198 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 (28): * Single equations (assignments): 27 * 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.954e-05/1.831, allocations: 116.8 kB / 1.075 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.361e-05/1.831, allocations: 35.62 kB / 1.075 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004038/1.832, allocations: 144.3 kB / 1.075 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/1.832, allocations: 0 / 1.075 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/1.832, allocations: 4 kB / 1.075 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000339/1.832, allocations: 442.4 kB / 1.076 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004987/1.833, allocations: 301.9 kB / 1.076 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/1.833, allocations: 0 / 1.076 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/1.833, allocations: 39.92 kB / 1.076 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/1.833, allocations: 0 / 1.076 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/1.833, allocations: 8 kB / 1.076 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/1.833, allocations: 0 / 1.076 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/1.833, allocations: 0 / 1.076 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003857/1.833, allocations: 220.5 kB / 1.076 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004324/1.834, allocations: 0.6612 MB / 1.077 GB, free: 19.18 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/1.834, allocations: 121 kB / 1.077 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.245e-05/1.834, allocations: 0 / 1.077 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/1.834, allocations: 23.83 kB / 1.077 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.069e-05/1.834, allocations: 27.91 kB / 1.077 GB, free: 18.99 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/1.834, allocations: 7.984 kB / 1.077 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.000175/1.835, allocations: 211.1 kB / 1.077 GB, free: 18.78 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001094/1.836, allocations: 140 kB / 1.078 GB, free: 18.64 MB / 0.6198 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.000522/1.836, allocations: 252.2 kB / 1.078 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003224/1.837, allocations: 160.3 kB / 1.078 GB, free: 18.22 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.837, allocations: 0 / 1.078 GB, free: 18.22 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.89e-05/1.837, allocations: 51.98 kB / 1.078 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009925/1.838, allocations: 168.5 kB / 1.078 GB, free: 18.01 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/1.839, allocations: 0.5182 MB / 1.079 GB, free: 17.47 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004939/1.84, allocations: 0.8338 MB / 1.079 GB, free: 16.61 MB / 0.6198 GB Notification: Performance of SimCode: time 3.11e-07/1.84, allocations: 0 / 1.079 GB, free: 16.61 MB / 0.6198 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_ExpansionVessel.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)