Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.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: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_7_0_x_Buildings_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.268/1.268, allocations: 249.4 MB / 256.7 MB, free: 6.922 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.001143/0.001143, allocations: 188.7 kB / 316 MB, free: 3.477 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.174/1.174, allocations: 205.2 MB / 0.5667 GB, free: 15.65 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.0009056/0.0009056, allocations: 98.62 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3173/0.3182, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.4907, allocations: 106.3 MB / 0.8846 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9877/1.478, allocations: 404.1 MB / 1.279 GB, free: 326.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/1.479, allocations: 87.02 kB / 1.279 GB, free: 326.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: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 7.947/9.426, allocations: 2.853 GB / 4.133 GB, free: 140.3 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/9.426, allocations: 7.75 kB / 4.133 GB, free: 140.3 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005847/9.432, allocations: 1.171 MB / 4.134 GB, free: 139.8 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02158/9.453, allocations: 10.85 MB / 4.145 GB, free: 138.7 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002989/9.453, allocations: 266.7 kB / 4.145 GB, free: 138.7 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002066/9.456, allocations: 485.7 kB / 4.145 GB, free: 138.7 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01623/9.472, allocations: 9.199 MB / 4.154 GB, free: 138.6 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02131/9.493, allocations: 10.44 MB / 4.164 GB, free: 137.5 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002546/9.493, allocations: 29.38 kB / 4.164 GB, free: 137.5 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001316/9.495, allocations: 16.84 kB / 4.165 GB, free: 137.5 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001719/9.495, allocations: 251 kB / 4.165 GB, free: 137.5 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06332/9.558, allocations: 45.68 MB / 4.209 GB, free: 109.5 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008938/9.567, allocations: 5.798 MB / 4.215 GB, free: 107.6 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007367/9.575, allocations: 4.796 MB / 4.22 GB, free: 105.7 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00105/9.576, allocations: 0.8363 MB / 4.221 GB, free: 104.8 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00465/9.58, allocations: 3.224 MB / 4.224 GB, free: 102.2 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=455): time 5.42e-06/9.58, allocations: 0 / 4.224 GB, free: 102.2 MB / 0.9011 GB Notification: Performance of matching and sorting (n=455): time 0.01041/9.591, allocations: 6.4 MB / 4.23 GB, free: 96.69 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.707e-05/9.591, allocations: 155.5 kB / 4.23 GB, free: 96.52 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009348/9.6, allocations: 5.96 MB / 4.236 GB, free: 91.36 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001161/9.601, allocations: 29.7 kB / 4.236 GB, free: 91.32 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.004135/9.606, allocations: 3.203 MB / 4.239 GB, free: 88.48 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.003461/9.609, allocations: 1.525 MB / 4.241 GB, free: 86.93 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003496/9.609, allocations: 0 / 4.241 GB, free: 86.93 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.000299/9.61, allocations: 0.546 MB / 4.241 GB, free: 86.38 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00336/9.613, allocations: 2.93 MB / 4.244 GB, free: 83.45 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004031/9.617, allocations: 4.746 MB / 4.249 GB, free: 77.93 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005715/9.623, allocations: 4.326 MB / 4.253 GB, free: 73.67 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.933e-05/9.623, allocations: 16 kB / 4.253 GB, free: 73.65 MB / 0.9011 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.01251/9.635, allocations: 8.53 MB / 4.261 GB, free: 65.15 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.004657/9.64, allocations: 27.41 MB / 4.288 GB, free: 35.71 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001013/9.64, allocations: 60 kB / 4.288 GB, free: 35.66 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001175/9.64, allocations: 100 kB / 4.288 GB, free: 35.56 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006194/9.647, allocations: 1.427 MB / 4.289 GB, free: 34.13 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.73e-05/9.647, allocations: 127.6 kB / 4.29 GB, free: 34.01 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007791/9.654, allocations: 0.7822 MB / 4.29 GB, free: 33.22 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/9.656, allocations: 283.9 kB / 4.291 GB, free: 32.94 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/9.656, allocations: 4 kB / 4.291 GB, free: 32.94 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01188/9.668, allocations: 7.86 MB / 4.298 GB, free: 25.08 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000105/9.668, allocations: 60 kB / 4.298 GB, free: 25.02 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.024e-05/9.668, allocations: 96 kB / 4.298 GB, free: 24.93 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005414/9.673, allocations: 1.424 MB / 4.3 GB, free: 23.5 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.513e-05/9.673, allocations: 126.5 kB / 4.3 GB, free: 23.38 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007198/9.681, allocations: 0.6782 MB / 4.301 GB, free: 22.7 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009542/9.682, allocations: 280 kB / 4.301 GB, free: 22.42 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 260 * 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 (748): * Single equations (assignments): 746 * 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.00131/9.683, allocations: 353.8 kB / 4.301 GB, free: 22.06 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001805/9.685, allocations: 0.6251 MB / 4.302 GB, free: 21.43 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01073/9.695, allocations: 7.14 MB / 4.309 GB, free: 14.29 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.802e-05/9.695, allocations: 43.98 kB / 4.309 GB, free: 14.25 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/9.695, allocations: 7.234 kB / 4.309 GB, free: 14.25 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008221/9.704, allocations: 5.919 MB / 4.315 GB, free: 8.301 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5779/10.28, allocations: 15.86 MB / 4.33 GB, free: 201.9 MB / 0.9012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/10.28, allocations: 3.156 kB / 4.33 GB, free: 201.9 MB / 0.9012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004015/10.29, allocations: 0.8928 MB / 4.331 GB, free: 201.9 MB / 0.9012 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.825e-05/10.29, allocations: 15.84 kB / 4.331 GB, free: 201.9 MB / 0.9012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003673/10.29, allocations: 68.98 kB / 4.331 GB, free: 201.9 MB / 0.9012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.386e-05/10.29, allocations: 14.09 kB / 4.331 GB, free: 201.9 MB / 0.9012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/10.29, allocations: 0 / 4.331 GB, free: 201.9 MB / 0.9012 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01355/10.3, allocations: 10.99 MB / 4.342 GB, free: 201.4 MB / 0.9012 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01754/10.32, allocations: 15.71 MB / 4.357 GB, free: 200.6 MB / 0.9012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004854/10.32, allocations: 1.729 MB / 4.359 GB, free: 200.3 MB / 0.9012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002139/10.32, allocations: 27.64 kB / 4.359 GB, free: 200.3 MB / 0.9012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006596/10.33, allocations: 441.6 kB / 4.359 GB, free: 200.3 MB / 0.9012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006742/10.33, allocations: 226.6 kB / 4.36 GB, free: 200.3 MB / 0.9012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005157/10.33, allocations: 186 kB / 4.36 GB, free: 200.3 MB / 0.9012 GB Notification: Performance of sort global known variables: time 0.00696/10.34, allocations: 4.564 MB / 4.364 GB, free: 200 MB / 0.9012 GB Notification: Performance of remove unused functions: time 0.01893/10.36, allocations: 4.983 MB / 4.369 GB, free: 199.6 MB / 0.9012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (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,HOut_flow.h_out,HOut_flow1.h_out,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 (451): * Single equations (assignments): 447 * 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.002536/10.36, allocations: 0.853 MB / 4.37 GB, free: 199.5 MB / 0.9012 GB Notification: Performance of simCode: created initialization part: time 0.01484/10.38, allocations: 11.21 MB / 4.381 GB, free: 199.3 MB / 0.9012 GB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/10.38, allocations: 3.906 kB / 4.381 GB, free: 199.3 MB / 0.9012 GB Notification: Performance of simCode: created simulation system equations: time 0.004182/10.38, allocations: 3.159 MB / 4.384 GB, free: 199.2 MB / 0.9012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01667/10.4, allocations: 3.31 MB / 4.387 GB, free: 199.2 MB / 0.9012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0342/10.43, allocations: 16.9 MB / 4.404 GB, free: 196.5 MB / 0.9012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008415/10.44, allocations: 6.99 MB / 4.41 GB, free: 195.6 MB / 0.9012 GB Notification: Performance of SimCode: time 7.62e-07/10.44, allocations: 2.469 kB / 4.41 GB, free: 195.6 MB / 0.9012 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)