Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.518/1.518, allocations: 289.8 MB / 297.1 MB, free: 9.031 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.00151/0.00151, allocations: 181.2 kB / 366.3 MB, free: 11.33 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.399/1.399, allocations: 205.1 MB / 0.6256 GB, free: 11.46 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009284/0.0009284, allocations: 91.25 kB / 0.7396 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.5952/0.5962, allocations: 122.4 MB / 0.8591 GB, free: 148 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.8466, allocations: 116.3 MB / 0.9726 GB, free: 31.65 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.964/1.811, allocations: 411.7 MB / 1.375 GB, free: 3.648 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/1.811, allocations: 98.25 kB / 1.375 GB, free: 3.602 MB / 0.9011 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 11.13/12.94, allocations: 2.925 GB / 4.3 GB, free: 80.92 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 6.657e-05/12.94, allocations: 8 kB / 4.3 GB, free: 80.91 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01066/12.95, allocations: 1.167 MB / 4.301 GB, free: 79.73 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02885/12.98, allocations: 10.89 MB / 4.312 GB, free: 68.95 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005344/12.98, allocations: 268 kB / 4.312 GB, free: 68.68 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004087/12.99, allocations: 491.5 kB / 4.313 GB, free: 68.21 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02296/13.01, allocations: 9.174 MB / 4.322 GB, free: 59.02 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03103/13.04, allocations: 10.56 MB / 4.332 GB, free: 48.09 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004131/13.04, allocations: 23.78 kB / 4.332 GB, free: 48.06 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003138/13.05, allocations: 16 kB / 4.332 GB, free: 48.05 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001992/13.05, allocations: 255.9 kB / 4.332 GB, free: 47.8 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07799/13.12, allocations: 46.18 MB / 4.377 GB, free: 84 kB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01118/13.14, allocations: 5.764 MB / 4.383 GB, free: 10.36 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008237/13.14, allocations: 4.779 MB / 4.388 GB, free: 5.57 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001497/13.15, allocations: 0.8278 MB / 4.388 GB, free: 4.613 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006573/13.15, allocations: 3.277 MB / 4.392 GB, free: 1.305 MB / 1.01 GB Notification: Performance of pre-optimization done (n=449): time 7.875e-06/13.15, allocations: 0 / 4.392 GB, free: 1.305 MB / 1.01 GB Notification: Performance of matching and sorting (n=449): time 0.9297/14.08, allocations: 6.35 MB / 4.398 GB, free: 246.4 MB / 1.011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.342e-05/14.08, allocations: 149.9 kB / 4.398 GB, free: 246.3 MB / 1.011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01105/14.09, allocations: 5.972 MB / 4.404 GB, free: 246 MB / 1.011 GB Notification: Performance of collectPreVariables (initialization): time 0.001501/14.09, allocations: 33.33 kB / 4.404 GB, free: 245.9 MB / 1.011 GB Notification: Performance of collectInitialEqns (initialization): time 0.005225/14.1, allocations: 3.21 MB / 4.407 GB, free: 245.1 MB / 1.011 GB Notification: Performance of collectInitialBindings (initialization): time 0.004471/14.1, allocations: 1.5 MB / 4.408 GB, free: 244.3 MB / 1.011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001355/14.11, allocations: 3.906 kB / 4.408 GB, free: 244.3 MB / 1.011 GB Notification: Performance of setup shared object (initialization): time 0.0006826/14.11, allocations: 0.5401 MB / 4.409 GB, free: 244 MB / 1.011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005524/14.11, allocations: 2.919 MB / 4.412 GB, free: 244 MB / 1.011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006558/14.12, allocations: 4.757 MB / 4.416 GB, free: 241.8 MB / 1.011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007902/14.13, allocations: 4.291 MB / 4.421 GB, free: 241.8 MB / 1.011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.273e-05/14.13, allocations: 17.33 kB / 4.421 GB, free: 241.8 MB / 1.011 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01732/14.14, allocations: 8.477 MB / 4.429 GB, free: 241.4 MB / 1.011 GB Notification: Performance of prepare postOptimizeDAE: time 0.00898/14.15, allocations: 27.83 MB / 4.456 GB, free: 212.3 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003523/14.15, allocations: 59.06 kB / 4.456 GB, free: 212.3 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002606/14.15, allocations: 100.1 kB / 4.456 GB, free: 212.3 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008725/14.16, allocations: 1.423 MB / 4.458 GB, free: 212.3 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002505/14.16, allocations: 122.3 kB / 4.458 GB, free: 212.3 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01185/14.17, allocations: 0.7924 MB / 4.459 GB, free: 212.1 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002197/14.18, allocations: 281.6 kB / 4.459 GB, free: 212.1 MB / 1.011 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/14.18, allocations: 3.906 kB / 4.459 GB, free: 212.1 MB / 1.011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01952/14.2, allocations: 7.816 MB / 4.466 GB, free: 212 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002879/14.2, allocations: 56.84 kB / 4.467 GB, free: 212 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001658/14.2, allocations: 98.53 kB / 4.467 GB, free: 212 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007387/14.2, allocations: 1.418 MB / 4.468 GB, free: 212 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002173/14.2, allocations: 130.4 kB / 4.468 GB, free: 212 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009752/14.21, allocations: 0.6732 MB / 4.469 GB, free: 211.9 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001944/14.22, allocations: 282.1 kB / 4.469 GB, free: 211.9 MB / 1.011 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.003252/14.22, allocations: 360.1 kB / 4.469 GB, free: 211.7 MB / 1.011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003628/14.22, allocations: 0.6311 MB / 4.47 GB, free: 211.3 MB / 1.011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01742/14.24, allocations: 7.066 MB / 4.477 GB, free: 211.1 MB / 1.011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-05/14.24, allocations: 46.19 kB / 4.477 GB, free: 211.1 MB / 1.011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-05/14.24, allocations: 0 / 4.477 GB, free: 211.1 MB / 1.011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01098/14.25, allocations: 5.863 MB / 4.483 GB, free: 211 MB / 1.011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04232/14.29, allocations: 15.83 MB / 4.498 GB, free: 210 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/14.29, allocations: 1.75 kB / 4.498 GB, free: 210 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004595/14.3, allocations: 0.8826 MB / 4.499 GB, free: 210 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.408e-05/14.3, allocations: 13.66 kB / 4.499 GB, free: 210 MB / 1.011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005745/14.3, allocations: 69.16 kB / 4.499 GB, free: 210 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.827e-05/14.3, allocations: 15.34 kB / 4.499 GB, free: 210 MB / 1.011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/14.3, allocations: 3.406 kB / 4.499 GB, free: 210 MB / 1.011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01581/14.31, allocations: 10.89 MB / 4.51 GB, free: 209.2 MB / 1.011 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0205/14.34, allocations: 15.61 MB / 4.525 GB, free: 208 MB / 1.011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00672/14.34, allocations: 1.757 MB / 4.527 GB, free: 207.5 MB / 1.011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003214/14.35, allocations: 31.56 kB / 4.527 GB, free: 207.5 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007809/14.35, allocations: 444.8 kB / 4.527 GB, free: 207.5 MB / 1.011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001239/14.35, allocations: 231 kB / 4.527 GB, free: 207.5 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008835/14.36, allocations: 198.4 kB / 4.528 GB, free: 207.5 MB / 1.011 GB Notification: Performance of sort global known variables: time 0.009343/14.36, allocations: 4.563 MB / 4.532 GB, free: 207.3 MB / 1.011 GB Notification: Performance of remove unused functions: time 0.02745/14.39, allocations: 4.994 MB / 4.537 GB, free: 206.4 MB / 1.011 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.003359/14.4, allocations: 0.8501 MB / 4.538 GB, free: 206.3 MB / 1.011 GB Notification: Performance of simCode: created initialization part: time 0.01985/14.42, allocations: 11.16 MB / 4.549 GB, free: 206.1 MB / 1.011 GB Notification: Performance of simCode: created event and clocks part: time 1.557e-05/14.42, allocations: 4.344 kB / 4.549 GB, free: 206.1 MB / 1.011 GB Notification: Performance of simCode: created simulation system equations: time 0.004886/14.42, allocations: 3.139 MB / 4.552 GB, free: 206 MB / 1.011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01953/14.44, allocations: 3.319 MB / 4.555 GB, free: 205.9 MB / 1.011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04144/14.48, allocations: 16.77 MB / 4.571 GB, free: 203.3 MB / 1.011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01197/14.49, allocations: 6.971 MB / 4.578 GB, free: 202.4 MB / 1.011 GB Notification: Performance of SimCode: time 1.432e-06/14.49, allocations: 0 / 4.578 GB, free: 202.4 MB / 1.011 GB (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_8_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)