Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.Storage.Examples.Stratified,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Storage.Examples.Stratified,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Storage_Examples_Stratified",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/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 184.7 kB / 7.804 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4613/0.4613, allocations: 90.86 MB / 99.08 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.24/1.24, allocations: 221.4 MB / 342.8 MB, free: 5.105 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009933/0.0009933, allocations: 102.7 kB / 415.5 MB, free: 6.41 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1572/0.1583, allocations: 78.44 MB / 493.9 MB, free: 7.973 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.4967, allocations: 72.3 MB / 0.553 GB, free: 73.38 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5567/1.053, allocations: 374.9 MB / 0.919 GB, free: 15.59 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/1.054, allocations: 88.02 kB / 0.9191 GB, free: 15.55 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 9.897/10.95, allocations: 3.022 GB / 3.942 GB, free: 60.47 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/10.95, allocations: 12.75 kB / 3.942 GB, free: 60.47 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006964/10.96, allocations: 1.179 MB / 3.943 GB, free: 59.91 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02764/10.99, allocations: 11.19 MB / 3.954 GB, free: 58.81 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004815/10.99, allocations: 265.8 kB / 3.954 GB, free: 58.81 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003498/10.99, allocations: 494 kB / 3.954 GB, free: 58.8 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02118/11.01, allocations: 9.174 MB / 3.963 GB, free: 58.77 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03187/11.04, allocations: 10.56 MB / 3.974 GB, free: 57.59 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003092/11.04, allocations: 21.09 kB / 3.974 GB, free: 57.59 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001808/11.04, allocations: 17.5 kB / 3.974 GB, free: 57.59 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001937/11.04, allocations: 252.2 kB / 3.974 GB, free: 57.59 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06957/11.11, allocations: 46.21 MB / 4.019 GB, free: 37.83 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008168/11.12, allocations: 5.766 MB / 4.025 GB, free: 37.76 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005903/11.13, allocations: 4.781 MB / 4.029 GB, free: 37.67 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001077/11.13, allocations: 0.8264 MB / 4.03 GB, free: 36.91 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004516/11.13, allocations: 3.271 MB / 4.033 GB, free: 36.75 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=449): time 6.322e-06/11.13, allocations: 0 / 4.033 GB, free: 36.75 MB / 0.6667 GB Notification: Performance of matching and sorting (n=449): time 0.01056/11.14, allocations: 6.361 MB / 4.04 GB, free: 36.3 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.735e-05/11.14, allocations: 156.7 kB / 4.04 GB, free: 36.17 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01196/11.16, allocations: 6.067 MB / 4.046 GB, free: 35.46 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.001448/11.16, allocations: 32.52 kB / 4.046 GB, free: 35.43 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.004208/11.16, allocations: 3.225 MB / 4.049 GB, free: 33.19 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.004045/11.17, allocations: 1.498 MB / 4.05 GB, free: 32.03 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004319/11.17, allocations: 6 kB / 4.05 GB, free: 32.03 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0003488/11.17, allocations: 0.548 MB / 4.051 GB, free: 31.62 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003671/11.17, allocations: 2.914 MB / 4.054 GB, free: 30.61 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004593/11.18, allocations: 4.753 MB / 4.058 GB, free: 27.29 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007096/11.18, allocations: 4.292 MB / 4.063 GB, free: 25.97 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.211e-05/11.18, allocations: 17.47 kB / 4.063 GB, free: 25.97 MB / 0.6667 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01635/11.2, allocations: 8.486 MB / 4.071 GB, free: 20.92 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.006987/11.21, allocations: 28.02 MB / 4.098 GB, free: 7.203 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002096/11.21, allocations: 60 kB / 4.098 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001336/11.21, allocations: 96 kB / 4.098 GB, free: 7.051 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007591/11.21, allocations: 1.42 MB / 4.1 GB, free: 5.824 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001567/11.21, allocations: 129.5 kB / 4.1 GB, free: 5.711 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009634/11.22, allocations: 0.7856 MB / 4.101 GB, free: 5.023 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001733/11.23, allocations: 278.7 kB / 4.101 GB, free: 4.762 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/11.23, allocations: 7.906 kB / 4.101 GB, free: 4.754 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4878/11.71, allocations: 8.356 MB / 4.109 GB, free: 123.2 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001387/11.71, allocations: 58.28 kB / 4.109 GB, free: 123.2 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.764e-05/11.71, allocations: 99.41 kB / 4.109 GB, free: 123.2 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006715/11.72, allocations: 1.419 MB / 4.111 GB, free: 123.2 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001024/11.72, allocations: 127.4 kB / 4.111 GB, free: 123.2 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00905/11.73, allocations: 0.6712 MB / 4.111 GB, free: 123.2 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001457/11.73, allocations: 284.8 kB / 4.112 GB, free: 123.2 MB / 0.6824 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * 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 0.001787/11.73, allocations: 354.5 kB / 4.112 GB, free: 123 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002409/11.74, allocations: 0.6419 MB / 4.113 GB, free: 123 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01225/11.75, allocations: 7.076 MB / 4.12 GB, free: 122.8 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.836e-05/11.75, allocations: 44.81 kB / 4.12 GB, free: 122.8 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/11.75, allocations: 0 / 4.12 GB, free: 122.8 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008024/11.76, allocations: 5.876 MB / 4.125 GB, free: 122.6 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03139/11.79, allocations: 15.85 MB / 4.141 GB, free: 121.8 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/11.79, allocations: 0 / 4.141 GB, free: 121.8 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004265/11.79, allocations: 0.888 MB / 4.142 GB, free: 121.8 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.431e-05/11.79, allocations: 20.44 kB / 4.142 GB, free: 121.8 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003518/11.79, allocations: 62.48 kB / 4.142 GB, free: 121.8 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-05/11.79, allocations: 18.48 kB / 4.142 GB, free: 121.8 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/11.79, allocations: 2.625 kB / 4.142 GB, free: 121.8 MB / 0.6824 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01455/11.81, allocations: 10.91 MB / 4.152 GB, free: 121.4 MB / 0.6824 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02037/11.83, allocations: 15.62 MB / 4.168 GB, free: 120.2 MB / 0.6824 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006281/11.83, allocations: 1.766 MB / 4.169 GB, free: 119.8 MB / 0.6824 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002126/11.84, allocations: 28.28 kB / 4.169 GB, free: 119.8 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006535/11.84, allocations: 447.5 kB / 4.17 GB, free: 119.8 MB / 0.6824 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005906/11.84, allocations: 224.7 kB / 4.17 GB, free: 119.7 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000578/11.84, allocations: 202.9 kB / 4.17 GB, free: 119.7 MB / 0.6824 GB Notification: Performance of sort global known variables: time 0.007067/11.85, allocations: 4.641 MB / 4.175 GB, free: 119.5 MB / 0.6824 GB Notification: Performance of remove unused functions: time 0.02115/11.87, allocations: 5 MB / 4.18 GB, free: 118.8 MB / 0.6824 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * 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.003687/11.88, allocations: 0.8672 MB / 4.181 GB, free: 118.7 MB / 0.6824 GB Notification: Performance of simCode: created initialization part: time 0.01549/11.89, allocations: 11.17 MB / 4.191 GB, free: 118.5 MB / 0.6824 GB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/11.89, allocations: 4.125 kB / 4.191 GB, free: 118.5 MB / 0.6824 GB Notification: Performance of simCode: created simulation system equations: time 0.003883/11.89, allocations: 3.134 MB / 4.195 GB, free: 118.4 MB / 0.6824 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01783/11.91, allocations: 3.322 MB / 4.198 GB, free: 118.4 MB / 0.6824 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03362/11.95, allocations: 16.88 MB / 4.214 GB, free: 115.7 MB / 0.6824 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009654/11.96, allocations: 7.029 MB / 4.221 GB, free: 114.8 MB / 0.6824 GB Notification: Performance of SimCode: time 9.72e-07/11.96, allocations: 0 / 4.221 GB, free: 114.8 MB / 0.6824 GB (rm -f IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 IBPSA_latest_IBPSA_Fluid_Storage_Examples_Stratified.fmu > IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe 2>&1)