Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.303/2.303, allocations: 284.8 MB / 292.1 MB, free: 9.973 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.001623/0.001622, allocations: 174.5 kB / 360.3 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.804/1.804, allocations: 205.1 MB / 0.6187 GB, free: 3.367 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001308/0.001307, allocations: 89.33 kB / 0.7317 GB, free: 1.832 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.5518/0.5531, allocations: 121.4 MB / 0.8502 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.7795, allocations: 115.2 MB / 0.9627 GB, free: 57 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.025/1.804, allocations: 410.5 MB / 1.364 GB, free: 14.26 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/1.805, allocations: 86.44 kB / 1.364 GB, free: 14.21 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 13.82/15.63, allocations: 2.925 GB / 4.289 GB, free: 50.75 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/15.63, allocations: 8 kB / 4.289 GB, free: 50.74 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009029/15.64, allocations: 1.175 MB / 4.29 GB, free: 49.55 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04128/15.68, allocations: 10.88 MB / 4.301 GB, free: 38.78 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005768/15.68, allocations: 268 kB / 4.301 GB, free: 38.52 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003913/15.68, allocations: 487.9 kB / 4.302 GB, free: 38.04 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03233/15.72, allocations: 9.174 MB / 4.311 GB, free: 28.86 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04039/15.76, allocations: 10.56 MB / 4.321 GB, free: 17.92 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005531/15.76, allocations: 35.64 kB / 4.321 GB, free: 17.88 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003554/15.76, allocations: 12 kB / 4.321 GB, free: 17.87 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00029/15.76, allocations: 255.9 kB / 4.321 GB, free: 17.62 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9719/16.73, allocations: 46.16 MB / 4.366 GB, free: 179.3 MB / 0.9637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01588/16.75, allocations: 5.764 MB / 4.372 GB, free: 179.3 MB / 0.9637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01236/16.76, allocations: 4.781 MB / 4.377 GB, free: 179.2 MB / 0.9637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001973/16.76, allocations: 0.8271 MB / 4.377 GB, free: 178.5 MB / 0.9637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01169/16.78, allocations: 3.273 MB / 4.381 GB, free: 178.3 MB / 0.9637 GB Notification: Performance of pre-optimization done (n=449): time 2.113e-05/16.78, allocations: 2.625 kB / 4.381 GB, free: 178.3 MB / 0.9637 GB Notification: Performance of matching and sorting (n=449): time 0.03083/16.81, allocations: 6.347 MB / 4.387 GB, free: 177.9 MB / 0.9637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.023e-05/16.81, allocations: 159.1 kB / 4.387 GB, free: 177.7 MB / 0.9637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01796/16.82, allocations: 5.969 MB / 4.393 GB, free: 177.4 MB / 0.9637 GB Notification: Performance of collectPreVariables (initialization): time 0.001565/16.83, allocations: 31.55 kB / 4.393 GB, free: 177.3 MB / 0.9637 GB Notification: Performance of collectInitialEqns (initialization): time 0.006881/16.83, allocations: 3.21 MB / 4.396 GB, free: 176.1 MB / 0.9637 GB Notification: Performance of collectInitialBindings (initialization): time 0.005969/16.84, allocations: 1.498 MB / 4.397 GB, free: 175.3 MB / 0.9637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001481/16.84, allocations: 0 / 4.397 GB, free: 175.3 MB / 0.9637 GB Notification: Performance of setup shared object (initialization): time 0.0007478/16.84, allocations: 0.5436 MB / 4.398 GB, free: 175 MB / 0.9637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008371/16.85, allocations: 2.915 MB / 4.401 GB, free: 174.9 MB / 0.9637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0108/16.86, allocations: 4.756 MB / 4.405 GB, free: 172.8 MB / 0.9637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01591/16.88, allocations: 4.288 MB / 4.41 GB, free: 172.7 MB / 0.9637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001627/16.88, allocations: 16.81 kB / 4.41 GB, free: 172.7 MB / 0.9637 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.03079/16.91, allocations: 8.477 MB / 4.418 GB, free: 172.3 MB / 0.9637 GB Notification: Performance of prepare postOptimizeDAE: time 0.006485/16.91, allocations: 27.84 MB / 4.445 GB, free: 143.2 MB / 0.9637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002928/16.91, allocations: 56.75 kB / 4.445 GB, free: 143.2 MB / 0.9637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000176/16.91, allocations: 99.34 kB / 4.445 GB, free: 143.2 MB / 0.9637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01777/16.93, allocations: 1.416 MB / 4.447 GB, free: 143.2 MB / 0.9637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001782/16.93, allocations: 131.3 kB / 4.447 GB, free: 143.2 MB / 0.9637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01297/16.95, allocations: 0.7902 MB / 4.448 GB, free: 143 MB / 0.9637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002002/16.95, allocations: 282.9 kB / 4.448 GB, free: 143 MB / 0.9637 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/16.95, allocations: 3.156 kB / 4.448 GB, free: 143 MB / 0.9637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02429/16.97, allocations: 7.811 MB / 4.455 GB, free: 142.9 MB / 0.9637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001892/16.97, allocations: 56.81 kB / 4.455 GB, free: 142.9 MB / 0.9637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001279/16.97, allocations: 99.09 kB / 4.456 GB, free: 142.9 MB / 0.9637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01323/16.99, allocations: 1.424 MB / 4.457 GB, free: 142.9 MB / 0.9637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002874/16.99, allocations: 125.3 kB / 4.457 GB, free: 142.9 MB / 0.9637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01941/17.01, allocations: 0.6783 MB / 4.458 GB, free: 142.8 MB / 0.9637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002068/17.01, allocations: 278.9 kB / 4.458 GB, free: 142.8 MB / 0.9637 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.00259/17.01, allocations: 353 kB / 4.458 GB, free: 142.6 MB / 0.9637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002697/17.01, allocations: 0.6312 MB / 4.459 GB, free: 142.2 MB / 0.9637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02388/17.04, allocations: 7.067 MB / 4.466 GB, free: 142 MB / 0.9637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.157e-05/17.04, allocations: 42.75 kB / 4.466 GB, free: 142 MB / 0.9637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.625e-05/17.04, allocations: 0.5625 kB / 4.466 GB, free: 142 MB / 0.9637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02097/17.06, allocations: 5.867 MB / 4.472 GB, free: 141.9 MB / 0.9637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05705/17.12, allocations: 15.84 MB / 4.487 GB, free: 140.9 MB / 0.9637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.506e-05/17.12, allocations: 3.938 kB / 4.487 GB, free: 140.9 MB / 0.9637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01095/17.13, allocations: 0.882 MB / 4.488 GB, free: 140.9 MB / 0.9637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001299/17.13, allocations: 14.84 kB / 4.488 GB, free: 140.9 MB / 0.9637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002002/17.13, allocations: 70.8 kB / 4.488 GB, free: 140.9 MB / 0.9637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.89e-05/17.13, allocations: 15.34 kB / 4.488 GB, free: 140.9 MB / 0.9637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/17.13, allocations: 0 / 4.488 GB, free: 140.9 MB / 0.9637 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.045/17.17, allocations: 10.9 MB / 4.499 GB, free: 140.1 MB / 0.9637 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05513/17.23, allocations: 15.6 MB / 4.514 GB, free: 138.9 MB / 0.9637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008452/17.24, allocations: 1.756 MB / 4.516 GB, free: 138.4 MB / 0.9637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003748/17.24, allocations: 29.62 kB / 4.516 GB, free: 138.4 MB / 0.9637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01164/17.25, allocations: 445.2 kB / 4.516 GB, free: 138.4 MB / 0.9637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001496/17.25, allocations: 229.8 kB / 4.516 GB, free: 138.4 MB / 0.9637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001234/17.26, allocations: 195.7 kB / 4.517 GB, free: 138.4 MB / 0.9637 GB Notification: Performance of sort global known variables: time 0.01352/17.27, allocations: 4.565 MB / 4.521 GB, free: 138.2 MB / 0.9637 GB Notification: Performance of remove unused functions: time 0.02803/17.3, allocations: 4.993 MB / 4.526 GB, free: 137.3 MB / 0.9637 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.003499/17.3, allocations: 0.8537 MB / 4.527 GB, free: 137.2 MB / 0.9637 GB Notification: Performance of simCode: created initialization part: time 0.03092/17.33, allocations: 11.17 MB / 4.538 GB, free: 136.9 MB / 0.9637 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-05/17.33, allocations: 3.906 kB / 4.538 GB, free: 136.9 MB / 0.9637 GB Notification: Performance of simCode: created simulation system equations: time 0.009249/17.34, allocations: 3.137 MB / 4.541 GB, free: 136.9 MB / 0.9637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03282/17.37, allocations: 3.324 MB / 4.544 GB, free: 136.8 MB / 0.9637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07271/17.45, allocations: 16.75 MB / 4.56 GB, free: 134.2 MB / 0.9637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01961/17.47, allocations: 6.97 MB / 4.567 GB, free: 133.3 MB / 0.9637 GB Notification: Performance of SimCode: time 2.374e-06/17.47, allocations: 0 / 4.567 GB, free: 133.3 MB / 0.9637 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_8_0_0_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)