Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",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 7.0.1/package.mo): time 2.247/2.247, allocations: 248.6 MB / 255.9 MB, free: 380 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002517/0.002516, allocations: 182.6 kB / 315.1 MB, free: 7.809 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.131/2.131, allocations: 205.1 MB / 0.5658 GB, free: 25.45 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00132/0.00132, allocations: 86.33 kB / 0.67 GB, free: 2.98 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2782/0.2796, allocations: 112.4 MB / 0.7797 GB, free: 2.504 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.517/0.7967, allocations: 106.2 MB / 0.8835 GB, free: 77.33 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.02/1.817, allocations: 418.8 MB / 1.292 GB, free: 5.5 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004345/1.817, allocations: 87.19 kB / 1.292 GB, free: 5.457 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 4.645/6.463, allocations: 0.9484 GB / 2.241 GB, free: 121 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/6.463, allocations: 10.66 kB / 2.241 GB, free: 121 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002475/6.465, allocations: 363.9 kB / 2.241 GB, free: 120.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/6.476, allocations: 3.059 MB / 2.244 GB, free: 117.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/6.476, allocations: 72 kB / 2.244 GB, free: 117.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008144/6.477, allocations: 143.9 kB / 2.244 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007643/6.485, allocations: 2.258 MB / 2.247 GB, free: 115.1 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008653/6.493, allocations: 2.671 MB / 2.249 GB, free: 112.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.14e-05/6.493, allocations: 7.938 kB / 2.249 GB, free: 112.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003646/6.494, allocations: 6.938 kB / 2.249 GB, free: 112.3 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.054e-05/6.494, allocations: 67.98 kB / 2.249 GB, free: 112.3 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02763/6.522, allocations: 12.93 MB / 2.262 GB, free: 98.74 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003647/6.525, allocations: 1.51 MB / 2.263 GB, free: 97.22 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002654/6.528, allocations: 1.111 MB / 2.265 GB, free: 96.12 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000988/6.529, allocations: 0.7166 MB / 2.265 GB, free: 95.27 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/6.529, allocations: 47.56 kB / 2.265 GB, free: 95.21 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=126): time 6.622e-06/6.529, allocations: 7.844 kB / 2.265 GB, free: 95.21 MB / 0.8698 GB Notification: Performance of matching and sorting (n=126): time 0.005354/6.535, allocations: 1.676 MB / 2.267 GB, free: 93.52 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/6.535, allocations: 141.5 kB / 2.267 GB, free: 93.35 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004331/6.539, allocations: 1.759 MB / 2.269 GB, free: 91.55 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005241/6.54, allocations: 29.7 kB / 2.269 GB, free: 91.52 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.00126/6.541, allocations: 0.9409 MB / 2.27 GB, free: 90.56 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001019/6.542, allocations: 419.7 kB / 2.27 GB, free: 90.15 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/6.542, allocations: 0 / 2.27 GB, free: 90.15 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001525/6.542, allocations: 381.8 kB / 2.27 GB, free: 89.77 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001679/6.544, allocations: 0.6794 MB / 2.271 GB, free: 89.09 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002/6.546, allocations: 1.197 MB / 2.272 GB, free: 87.68 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002704/6.549, allocations: 0.9598 MB / 2.273 GB, free: 86.74 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.138e-05/6.549, allocations: 4 kB / 2.273 GB, free: 86.73 MB / 0.8698 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.00674/6.555, allocations: 2.217 MB / 2.275 GB, free: 84.52 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001342/6.557, allocations: 5.676 MB / 2.281 GB, free: 78.41 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.283e-05/6.557, allocations: 15.5 kB / 2.281 GB, free: 78.39 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002781/6.56, allocations: 416.6 kB / 2.281 GB, free: 77.99 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003012/6.563, allocations: 358.9 kB / 2.282 GB, free: 77.64 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005054/6.568, allocations: 2.946 MB / 2.285 GB, free: 74.57 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004342/6.572, allocations: 275.1 kB / 2.285 GB, free: 74.32 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005012/6.573, allocations: 84.05 kB / 2.285 GB, free: 74.23 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/6.573, allocations: 4 kB / 2.285 GB, free: 74.23 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005717/6.579, allocations: 1.966 MB / 2.287 GB, free: 72.27 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.692e-05/6.579, allocations: 16 kB / 2.287 GB, free: 72.26 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008977/6.58, allocations: 213.2 kB / 2.287 GB, free: 72.05 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003014/6.583, allocations: 371.4 kB / 2.287 GB, free: 71.69 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005396/6.588, allocations: 3.685 MB / 2.291 GB, free: 67.79 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004069/6.592, allocations: 236 kB / 2.291 GB, free: 67.57 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005224/6.593, allocations: 83.97 kB / 2.291 GB, free: 67.49 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.onOffBot.y,onOffBot.y,$PRE.onOffMid.y,onOffMid.y,and2.y,nor.y,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (182): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.000667/6.593, allocations: 155.6 kB / 2.291 GB, free: 67.33 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008293/6.594, allocations: 205.1 kB / 2.292 GB, free: 67.13 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00627/6.601, allocations: 1.95 MB / 2.294 GB, free: 65.18 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.723e-05/6.601, allocations: 19.91 kB / 2.294 GB, free: 65.16 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/6.601, allocations: 0 / 2.294 GB, free: 65.16 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004278/6.605, allocations: 1.555 MB / 2.295 GB, free: 63.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/6.619, allocations: 4.225 MB / 2.299 GB, free: 59.32 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.887e-05/6.619, allocations: 3.875 kB / 2.299 GB, free: 59.32 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002337/6.621, allocations: 207.7 kB / 2.299 GB, free: 59.12 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003349/6.625, allocations: 381.7 kB / 2.3 GB, free: 58.75 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005324/6.625, allocations: 22.58 kB / 2.3 GB, free: 58.73 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007147/6.632, allocations: 2.896 MB / 2.303 GB, free: 55.71 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/6.632, allocations: 4 kB / 2.303 GB, free: 55.71 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008606/6.641, allocations: 2.952 MB / 2.306 GB, free: 52.68 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009168/6.65, allocations: 4.388 MB / 2.31 GB, free: 48.21 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002164/6.653, allocations: 0.5254 MB / 2.31 GB, free: 47.66 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007365/6.653, allocations: 8 kB / 2.31 GB, free: 47.66 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003105/6.656, allocations: 157.1 kB / 2.311 GB, free: 47.52 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000323/6.657, allocations: 92.33 kB / 2.311 GB, free: 47.43 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001925/6.657, allocations: 59.86 kB / 2.311 GB, free: 47.37 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.002969/6.66, allocations: 1.336 MB / 2.312 GB, free: 46.01 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.01001/6.67, allocations: 1.577 MB / 2.314 GB, free: 44.43 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 5 (tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U) * Number of discrete variables: 5 (onOffBot.y,onOffMid.y,and2.y,nor.y,onOffHea.y) * Number of discrete states: 3 (onOffMid.y,onOffBot.y,onOffHea.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001674/6.672, allocations: 0.5509 MB / 2.314 GB, free: 43.98 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00827/6.68, allocations: 3.131 MB / 2.317 GB, free: 40.83 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/6.68, allocations: 4.125 kB / 2.317 GB, free: 40.82 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.00219/6.682, allocations: 0.9313 MB / 2.318 GB, free: 39.88 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.015/6.697, allocations: 1.03 MB / 2.319 GB, free: 38.89 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/6.712, allocations: 4.32 MB / 2.323 GB, free: 34.53 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004512/6.717, allocations: 2.391 MB / 2.326 GB, free: 32.11 MB / 0.8698 GB Notification: Performance of SimCode: time 1.502e-06/6.717, allocations: 0 / 2.326 GB, free: 32.11 MB / 0.8698 GB