Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified") translateModel(BuildingSystems.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7407/0.7407, allocations: 141.8 MB / 149.1 MB, free: 12.29 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 183.2 kB / 181.9 MB, free: 9.07 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 221.3 MB / 436 MB, free: 1.508 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 101.1 kB / 0.507 GB, free: 10.32 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002046/0.002046, allocations: 262.7 kB / 0.5884 GB, free: 7.164 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 9.287e-06/9.328e-06, allocations: 4 kB / 0.6759 GB, free: 13.51 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5207/0.5208, allocations: 82.76 MB / 0.7567 GB, free: 138.3 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8064/1.327, allocations: 381.8 MB / 1.13 GB, free: 4.969 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/1.328, allocations: 85.95 kB / 1.13 GB, free: 4.926 MB / 0.6669 GB Notification: Performance of FrontEnd: time 11.06/12.39, allocations: 2.966 GB / 4.096 GB, free: 47.29 MB / 0.7294 GB Notification: Performance of Transformations before backend: time 0.002828/12.39, allocations: 261 kB / 4.096 GB, free: 47.05 MB / 0.7294 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 0.03852/12.43, allocations: 8.173 MB / 4.104 GB, free: 38.84 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 5.732e-05/12.43, allocations: 9.031 kB / 4.104 GB, free: 38.83 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/12.44, allocations: 1.167 MB / 4.105 GB, free: 37.65 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03431/12.48, allocations: 10.89 MB / 4.116 GB, free: 26.88 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008094/12.48, allocations: 268 kB / 4.116 GB, free: 26.62 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005054/12.48, allocations: 491.9 kB / 4.117 GB, free: 26.14 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02897/12.51, allocations: 9.17 MB / 4.126 GB, free: 16.96 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04496/12.56, allocations: 10.56 MB / 4.136 GB, free: 6.02 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007255/12.56, allocations: 27.72 kB / 4.136 GB, free: 5.992 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004562/12.56, allocations: 16 kB / 4.136 GB, free: 5.977 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003777/12.56, allocations: 251.9 kB / 4.136 GB, free: 5.73 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.532/13.09, allocations: 46.17 MB / 4.181 GB, free: 94.69 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009965/13.1, allocations: 5.762 MB / 4.187 GB, free: 94.63 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007926/13.11, allocations: 4.778 MB / 4.192 GB, free: 94.57 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001575/13.11, allocations: 0.8271 MB / 4.192 GB, free: 93.82 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007157/13.12, allocations: 3.27 MB / 4.196 GB, free: 93.66 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=449): time 1.17e-05/13.12, allocations: 1.281 kB / 4.196 GB, free: 93.66 MB / 0.7294 GB Notification: Performance of matching and sorting (n=449): time 0.01953/13.14, allocations: 6.349 MB / 4.202 GB, free: 93.21 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/13.14, allocations: 157.1 kB / 4.202 GB, free: 93.08 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02019/13.16, allocations: 5.966 MB / 4.208 GB, free: 92.71 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.001692/13.16, allocations: 33.14 kB / 4.208 GB, free: 92.68 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.006612/13.17, allocations: 3.208 MB / 4.211 GB, free: 91.41 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.004627/13.17, allocations: 1.506 MB / 4.212 GB, free: 90.61 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000579/13.17, allocations: 3.875 kB / 4.212 GB, free: 90.61 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 0.0005122/13.18, allocations: 0.5405 MB / 4.213 GB, free: 90.29 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004472/13.18, allocations: 2.916 MB / 4.216 GB, free: 90.27 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00595/13.19, allocations: 4.755 MB / 4.22 GB, free: 88.09 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007873/13.19, allocations: 4.283 MB / 4.225 GB, free: 88.04 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.639e-05/13.19, allocations: 17.91 kB / 4.225 GB, free: 88.04 MB / 0.7294 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02018/13.21, allocations: 8.483 MB / 4.233 GB, free: 87.61 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.007135/13.22, allocations: 27.84 MB / 4.26 GB, free: 58.54 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002882/13.22, allocations: 65.09 kB / 4.26 GB, free: 58.53 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/13.22, allocations: 98.91 kB / 4.26 GB, free: 58.53 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00784/13.23, allocations: 1.417 MB / 4.262 GB, free: 58.53 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002501/13.23, allocations: 122 kB / 4.262 GB, free: 58.53 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01133/13.24, allocations: 0.79 MB / 4.263 GB, free: 58.21 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002581/13.24, allocations: 279.7 kB / 4.263 GB, free: 58.21 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/13.24, allocations: 6.094 kB / 4.263 GB, free: 58.21 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02183/13.27, allocations: 7.817 MB / 4.27 GB, free: 58.12 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002987/13.27, allocations: 55.41 kB / 4.27 GB, free: 58.12 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001863/13.27, allocations: 101.6 kB / 4.271 GB, free: 58.12 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007495/13.27, allocations: 1.415 MB / 4.272 GB, free: 58.12 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002466/13.27, allocations: 141.5 kB / 4.272 GB, free: 58.12 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01052/13.28, allocations: 0.6738 MB / 4.273 GB, free: 57.88 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002307/13.29, allocations: 283.1 kB / 4.273 GB, free: 57.88 MB / 0.7294 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.003963/13.29, allocations: 350.9 kB / 4.273 GB, free: 57.67 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003943/13.3, allocations: 0.6343 MB / 4.274 GB, free: 57.34 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0202/13.32, allocations: 7.063 MB / 4.281 GB, free: 57.14 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.237e-05/13.32, allocations: 45.78 kB / 4.281 GB, free: 57.14 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.345e-05/13.32, allocations: 2.219 kB / 4.281 GB, free: 57.14 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0153/13.33, allocations: 5.864 MB / 4.287 GB, free: 56.99 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05337/13.38, allocations: 15.86 MB / 4.302 GB, free: 55.98 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.122e-05/13.38, allocations: 0 / 4.302 GB, free: 55.98 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00577/13.39, allocations: 0.8824 MB / 4.303 GB, free: 55.98 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001099/13.39, allocations: 19.08 kB / 4.303 GB, free: 55.98 MB / 0.7294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001518/13.39, allocations: 64.39 kB / 4.303 GB, free: 55.98 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-05/13.39, allocations: 21.25 kB / 4.303 GB, free: 55.98 MB / 0.7294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.605e-06/13.39, allocations: 1.625 kB / 4.303 GB, free: 55.98 MB / 0.7294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02343/13.42, allocations: 10.9 MB / 4.314 GB, free: 55.18 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008714/13.42, allocations: 1.758 MB / 4.315 GB, free: 54.7 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004815/13.43, allocations: 26.47 kB / 4.315 GB, free: 54.7 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01091/13.44, allocations: 449 kB / 4.316 GB, free: 54.67 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002032/13.44, allocations: 229.1 kB / 4.316 GB, free: 54.66 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002252/13.44, allocations: 201.5 kB / 4.316 GB, free: 54.66 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.01272/13.46, allocations: 4.563 MB / 4.321 GB, free: 54.45 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.0286/13.49, allocations: 4.766 MB / 4.325 GB, free: 53.61 MB / 0.7294 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.004086/13.49, allocations: 0.8681 MB / 4.326 GB, free: 53.46 MB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.02268/13.51, allocations: 11.16 MB / 4.337 GB, free: 53.06 MB / 0.7294 GB Notification: Performance of simCode: created event and clocks part: time 1.806e-05/13.51, allocations: 3.438 kB / 4.337 GB, free: 53.06 MB / 0.7294 GB Notification: Performance of simCode: created simulation system equations: time 0.006056/13.52, allocations: 3.142 MB / 4.34 GB, free: 52.9 MB / 0.7294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02271/13.54, allocations: 3.319 MB / 4.344 GB, free: 52.85 MB / 0.7294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06556/13.61, allocations: 16.72 MB / 4.36 GB, free: 50.2 MB / 0.7294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02266/13.63, allocations: 6.921 MB / 4.367 GB, free: 49.3 MB / 0.7294 GB Notification: Performance of SimCode: time 2.244e-06/13.63, allocations: 0 / 4.367 GB, free: 49.3 MB / 0.7294 GB Notification: Performance of Templates: time 0.7768/14.41, allocations: 166.7 MB / 4.529 GB, free: 105.5 MB / 0.7294 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe 2>&1)