Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.4/1.4, allocations: 285.5 MB / 292.8 MB, free: 10.47 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00105/0.001049, allocations: 185.2 kB / 361.1 MB, free: 7.074 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.158/1.158, allocations: 205.1 MB / 0.6195 GB, free: 10.35 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008659/0.0008661, allocations: 86.78 kB / 0.7325 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2178/0.2187, allocations: 121.4 MB / 0.8511 GB, free: 2.867 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5056/0.7243, allocations: 115.3 MB / 0.9637 GB, free: 78.39 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7209/1.445, allocations: 410.7 MB / 1.365 GB, free: 155.9 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/1.445, allocations: 92.78 kB / 1.365 GB, free: 155.9 MB / 0.8542 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 8.52/9.965, allocations: 2.925 GB / 4.29 GB, free: 127.9 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/9.965, allocations: 9.531 kB / 4.29 GB, free: 127.9 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006417/9.972, allocations: 1.166 MB / 4.291 GB, free: 127.4 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02629/9.998, allocations: 10.89 MB / 4.302 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005855/9.999, allocations: 268.8 kB / 4.302 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002851/10, allocations: 493.3 kB / 4.303 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01721/10.02, allocations: 9.169 MB / 4.312 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02526/10.04, allocations: 10.55 MB / 4.322 GB, free: 124.8 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002616/10.04, allocations: 25.06 kB / 4.322 GB, free: 124.8 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001378/10.05, allocations: 18 kB / 4.322 GB, free: 124.8 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001757/10.05, allocations: 254.8 kB / 4.322 GB, free: 124.8 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06624/10.11, allocations: 46.18 MB / 4.367 GB, free: 95.53 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007563/10.12, allocations: 5.766 MB / 4.373 GB, free: 93.66 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005642/10.13, allocations: 4.773 MB / 4.378 GB, free: 92.14 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00111/10.13, allocations: 0.8307 MB / 4.379 GB, free: 91.38 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005386/10.13, allocations: 3.269 MB / 4.382 GB, free: 90.24 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=449): time 8.316e-06/10.13, allocations: 0 / 4.382 GB, free: 90.24 MB / 0.9636 GB Notification: Performance of matching and sorting (n=449): time 0.01063/10.14, allocations: 6.345 MB / 4.388 GB, free: 85.41 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/10.14, allocations: 161.4 kB / 4.388 GB, free: 85.23 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009802/10.15, allocations: 5.969 MB / 4.394 GB, free: 80.07 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.001374/10.15, allocations: 29.7 kB / 4.394 GB, free: 80.03 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.003978/10.16, allocations: 3.216 MB / 4.397 GB, free: 77.23 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.003468/10.16, allocations: 1.495 MB / 4.399 GB, free: 75.85 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003672/10.16, allocations: 10.67 kB / 4.399 GB, free: 75.84 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0002827/10.16, allocations: 0.5375 MB / 4.399 GB, free: 75.36 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003448/10.17, allocations: 2.92 MB / 4.402 GB, free: 72.82 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004041/10.17, allocations: 4.751 MB / 4.407 GB, free: 67.75 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006074/10.18, allocations: 4.287 MB / 4.411 GB, free: 64.33 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.499e-05/10.18, allocations: 20 kB / 4.411 GB, free: 64.31 MB / 0.9636 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01299/10.19, allocations: 8.481 MB / 4.419 GB, free: 56.47 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.004766/10.19, allocations: 27.84 MB / 4.446 GB, free: 26.63 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001151/10.19, allocations: 60 kB / 4.446 GB, free: 26.57 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001043/10.19, allocations: 96 kB / 4.446 GB, free: 26.48 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006448/10.2, allocations: 1.42 MB / 4.448 GB, free: 25.05 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.704e-05/10.2, allocations: 129.1 kB / 4.448 GB, free: 24.93 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008/10.21, allocations: 0.79 MB / 4.449 GB, free: 24.13 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001206/10.21, allocations: 280 kB / 4.449 GB, free: 23.86 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/10.21, allocations: 6.188 kB / 4.449 GB, free: 23.86 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01171/10.22, allocations: 7.808 MB / 4.457 GB, free: 16.05 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000101/10.22, allocations: 56 kB / 4.457 GB, free: 15.99 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.924e-05/10.22, allocations: 100 kB / 4.457 GB, free: 15.89 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005233/10.23, allocations: 1.42 MB / 4.458 GB, free: 14.47 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.934e-05/10.23, allocations: 127.5 kB / 4.458 GB, free: 14.35 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007903/10.23, allocations: 0.6705 MB / 4.459 GB, free: 13.67 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009722/10.24, allocations: 286.6 kB / 4.459 GB, free: 13.39 MB / 0.9636 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.001968/10.24, allocations: 357.1 kB / 4.46 GB, free: 13.03 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002538/10.24, allocations: 0.6291 MB / 4.46 GB, free: 12.39 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01135/10.25, allocations: 7.074 MB / 4.467 GB, free: 5.332 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.299e-05/10.25, allocations: 40 kB / 4.467 GB, free: 5.293 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/10.25, allocations: 0 / 4.467 GB, free: 5.293 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007917/10.26, allocations: 5.866 MB / 4.473 GB, free: 15.4 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6088/10.87, allocations: 15.85 MB / 4.488 GB, free: 227.8 MB / 0.9793 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.011e-05/10.87, allocations: 3.281 kB / 4.488 GB, free: 227.8 MB / 0.9793 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007519/10.88, allocations: 0.8794 MB / 4.489 GB, free: 227.8 MB / 0.9793 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-05/10.88, allocations: 25.59 kB / 4.489 GB, free: 227.8 MB / 0.9793 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006388/10.88, allocations: 67.44 kB / 4.489 GB, free: 227.8 MB / 0.9793 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.321e-05/10.88, allocations: 14.62 kB / 4.489 GB, free: 227.8 MB / 0.9793 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/10.88, allocations: 0 / 4.489 GB, free: 227.8 MB / 0.9793 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01311/10.89, allocations: 10.89 MB / 4.5 GB, free: 227.3 MB / 0.9793 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01688/10.91, allocations: 15.61 MB / 4.515 GB, free: 226.5 MB / 0.9793 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00508/10.91, allocations: 1.758 MB / 4.517 GB, free: 226.2 MB / 0.9793 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00288/10.92, allocations: 25.75 kB / 4.517 GB, free: 226.2 MB / 0.9793 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00734/10.92, allocations: 449.8 kB / 4.517 GB, free: 226.2 MB / 0.9793 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006974/10.92, allocations: 223.2 kB / 4.518 GB, free: 226.2 MB / 0.9793 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000555/10.92, allocations: 204.2 kB / 4.518 GB, free: 226.2 MB / 0.9793 GB Notification: Performance of sort global known variables: time 0.006085/10.93, allocations: 4.556 MB / 4.522 GB, free: 226 MB / 0.9793 GB Notification: Performance of remove unused functions: time 0.0143/10.94, allocations: 4.983 MB / 4.527 GB, free: 225.5 MB / 0.9793 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.001768/10.95, allocations: 0.8775 MB / 4.528 GB, free: 225.4 MB / 0.9793 GB Notification: Performance of simCode: created initialization part: time 0.01248/10.96, allocations: 11.16 MB / 4.539 GB, free: 225.2 MB / 0.9793 GB Notification: Performance of simCode: created event and clocks part: time 9.709e-06/10.96, allocations: 4.469 kB / 4.539 GB, free: 225.2 MB / 0.9793 GB Notification: Performance of simCode: created simulation system equations: time 0.003358/10.96, allocations: 3.143 MB / 4.542 GB, free: 225.1 MB / 0.9793 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01594/10.98, allocations: 3.305 MB / 4.545 GB, free: 225.1 MB / 0.9793 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03354/11.01, allocations: 16.75 MB / 4.561 GB, free: 222.5 MB / 0.9793 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00776/11.02, allocations: 6.978 MB / 4.568 GB, free: 221.6 MB / 0.9793 GB Notification: Performance of SimCode: time 7.82e-07/11.02, allocations: 0 / 4.568 GB, free: 221.6 MB / 0.9793 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)