Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.018/2.018, allocations: 387.2 MB / 394.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 181.3 kB / 487 MB, free: 5.422 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 221.3 MB / 0.7819 GB, free: 1.395 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 93.52 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6389/0.6399, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.9223, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.012/1.935, allocations: 422.6 MB / 1.618 GB, free: 0.8984 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/1.935, allocations: 93.91 kB / 1.618 GB, free: 0.8516 MB / 1.042 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.775/11.71, allocations: 3.022 GB / 4.64 GB, free: 180.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/11.71, allocations: 8 kB / 4.64 GB, free: 180.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009892/11.72, allocations: 1.182 MB / 4.642 GB, free: 179 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03251/11.75, allocations: 11.2 MB / 4.653 GB, free: 168 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005015/11.75, allocations: 268 kB / 4.653 GB, free: 167.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003459/11.76, allocations: 491.9 kB / 4.653 GB, free: 167.2 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02324/11.78, allocations: 9.17 MB / 4.662 GB, free: 158.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03629/11.82, allocations: 10.56 MB / 4.673 GB, free: 147.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006161/11.82, allocations: 27.72 kB / 4.673 GB, free: 147.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003869/11.82, allocations: 12 kB / 4.673 GB, free: 147.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003016/11.82, allocations: 262.9 kB / 4.673 GB, free: 146.9 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08257/11.9, allocations: 46.19 MB / 4.718 GB, free: 99.22 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009396/11.91, allocations: 5.758 MB / 4.724 GB, free: 93.51 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007179/11.92, allocations: 4.779 MB / 4.728 GB, free: 88.72 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001357/11.92, allocations: 0.8295 MB / 4.729 GB, free: 87.76 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006218/11.93, allocations: 3.269 MB / 4.732 GB, free: 84.46 MB / 1.167 GB Notification: Performance of pre-optimization done (n=449): time 8.095e-06/11.93, allocations: 0 / 4.732 GB, free: 84.46 MB / 1.167 GB Notification: Performance of matching and sorting (n=449): time 0.01413/11.94, allocations: 6.36 MB / 4.738 GB, free: 78.07 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.884e-05/11.94, allocations: 162.3 kB / 4.739 GB, free: 77.89 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01494/11.96, allocations: 6.072 MB / 4.745 GB, free: 71.82 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.001616/11.96, allocations: 29.7 kB / 4.745 GB, free: 71.79 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.005863/11.97, allocations: 3.222 MB / 4.748 GB, free: 68.52 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.004702/11.97, allocations: 1.505 MB / 4.749 GB, free: 67 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/11.97, allocations: 0 / 4.749 GB, free: 67 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.000675/11.97, allocations: 0.542 MB / 4.75 GB, free: 66.45 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005136/11.98, allocations: 2.916 MB / 4.753 GB, free: 63.52 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006158/11.98, allocations: 4.752 MB / 4.757 GB, free: 57.93 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00776/11.99, allocations: 4.287 MB / 4.761 GB, free: 53.64 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.886e-05/11.99, allocations: 16 kB / 4.761 GB, free: 53.62 MB / 1.167 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01973/12.01, allocations: 8.497 MB / 4.77 GB, free: 45.11 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.005821/12.02, allocations: 28.03 MB / 4.797 GB, free: 15.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001672/12.02, allocations: 56 kB / 4.797 GB, free: 15.14 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001408/12.02, allocations: 100 kB / 4.797 GB, free: 15.05 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007614/12.02, allocations: 1.42 MB / 4.799 GB, free: 13.62 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001687/12.03, allocations: 123.6 kB / 4.799 GB, free: 13.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01122/12.04, allocations: 0.79 MB / 4.8 GB, free: 12.71 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001905/12.04, allocations: 280 kB / 4.8 GB, free: 12.43 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/12.04, allocations: 4 kB / 4.8 GB, free: 12.43 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01772/12.06, allocations: 7.812 MB / 4.807 GB, free: 4.617 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002093/12.06, allocations: 60 kB / 4.807 GB, free: 4.559 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001238/12.06, allocations: 96 kB / 4.808 GB, free: 4.465 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006599/12.06, allocations: 1.42 MB / 4.809 GB, free: 3.043 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001402/12.06, allocations: 127.6 kB / 4.809 GB, free: 2.918 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009157/12.07, allocations: 0.6743 MB / 4.81 GB, free: 2.238 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001465/12.07, allocations: 283.9 kB / 4.81 GB, free: 1.961 MB / 1.167 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.002568/12.08, allocations: 358.6 kB / 4.81 GB, free: 1.594 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003114/12.08, allocations: 0.6407 MB / 4.811 GB, free: 0.9453 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01751/12.1, allocations: 7.082 MB / 4.818 GB, free: 9.848 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.937e-05/12.1, allocations: 43.91 kB / 4.818 GB, free: 9.805 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.906e-05/12.1, allocations: 0 / 4.818 GB, free: 9.805 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01145/12.11, allocations: 5.871 MB / 4.824 GB, free: 3.914 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.126/13.23, allocations: 15.87 MB / 4.839 GB, free: 309.8 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.697e-05/13.23, allocations: 2 kB / 4.839 GB, free: 309.8 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00454/13.24, allocations: 0.8833 MB / 4.84 GB, free: 309.8 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.624e-05/13.24, allocations: 18.03 kB / 4.84 GB, free: 309.8 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004807/13.24, allocations: 64.83 kB / 4.84 GB, free: 309.8 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.981e-05/13.24, allocations: 16.59 kB / 4.84 GB, free: 309.8 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/13.24, allocations: 0 / 4.84 GB, free: 309.8 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02211/13.26, allocations: 10.91 MB / 4.851 GB, free: 309.4 MB / 1.182 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02205/13.28, allocations: 15.63 MB / 4.866 GB, free: 308.5 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007385/13.29, allocations: 1.762 MB / 4.868 GB, free: 308.2 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003631/13.29, allocations: 24.47 kB / 4.868 GB, free: 308.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009375/13.3, allocations: 453.2 kB / 4.868 GB, free: 308.2 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00172/13.31, allocations: 228.9 kB / 4.868 GB, free: 308.2 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002023/13.31, allocations: 197.8 kB / 4.869 GB, free: 308.2 MB / 1.182 GB Notification: Performance of sort global known variables: time 0.01348/13.32, allocations: 4.643 MB / 4.873 GB, free: 307.9 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02742/13.35, allocations: 4.999 MB / 4.878 GB, free: 307.5 MB / 1.182 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.003584/13.35, allocations: 0.8584 MB / 4.879 GB, free: 307.4 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.0214/13.37, allocations: 11.16 MB / 4.89 GB, free: 307.2 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 2.106e-05/13.37, allocations: 7.25 kB / 4.89 GB, free: 307.2 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.005597/13.38, allocations: 3.139 MB / 4.893 GB, free: 307.1 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02151/13.4, allocations: 3.325 MB / 4.896 GB, free: 307.1 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05927/13.46, allocations: 16.87 MB / 4.913 GB, free: 304.4 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02076/13.48, allocations: 7.028 MB / 4.919 GB, free: 303.5 MB / 1.182 GB Notification: Performance of SimCode: time 1.833e-06/13.48, allocations: 0 / 4.919 GB, free: 303.5 MB / 1.182 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Examples.Stratified_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)