Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.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: translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") [: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.51/1.51, allocations: 289.8 MB / 297.1 MB, free: 6.609 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.001147/0.001147, allocations: 200.2 kB / 366.3 MB, free: 1.93 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.544/1.544, allocations: 205.1 MB / 0.6256 GB, free: 5.867 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009989/0.000999, allocations: 86.12 kB / 0.7395 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.072e-05/1.075e-05, allocations: 4 kB / 0.859 GB, free: 13.33 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7061/0.7061, allocations: 116.3 MB / 0.9725 GB, free: 68.49 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9965/1.703, allocations: 427.6 MB / 1.39 GB, free: 57.71 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/1.703, allocations: 89.08 kB / 1.39 GB, free: 57.66 MB / 0.823 GB Notification: Performance of FrontEnd: time 3.744/5.447, allocations: 0.9705 GB / 2.361 GB, free: 188.2 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.0003325/5.448, allocations: 80.61 kB / 2.361 GB, free: 188.2 MB / 0.9792 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 0.007692/5.455, allocations: 2.669 MB / 2.363 GB, free: 187.3 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/5.455, allocations: 7.812 kB / 2.363 GB, free: 187.3 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001987/5.457, allocations: 353.6 kB / 2.364 GB, free: 187.1 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007091/5.464, allocations: 3.075 MB / 2.367 GB, free: 186.7 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.489e-05/5.465, allocations: 77.81 kB / 2.367 GB, free: 186.7 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004624/5.465, allocations: 139.8 kB / 2.367 GB, free: 186.7 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003943/5.469, allocations: 2.257 MB / 2.369 GB, free: 186.7 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004009/5.473, allocations: 2.706 MB / 2.372 GB, free: 186.3 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.879e-05/5.473, allocations: 3 kB / 2.372 GB, free: 186.3 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002075/5.473, allocations: 6.031 kB / 2.372 GB, free: 186.3 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.007e-05/5.473, allocations: 66.06 kB / 2.372 GB, free: 186.3 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01695/5.49, allocations: 12.95 MB / 2.384 GB, free: 180 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002036/5.492, allocations: 1.522 MB / 2.386 GB, free: 179.9 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/5.494, allocations: 1.115 MB / 2.387 GB, free: 179.9 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000682/5.495, allocations: 0.7119 MB / 2.388 GB, free: 179.1 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/5.495, allocations: 53.88 kB / 2.388 GB, free: 179.1 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=126): time 4.028e-06/5.495, allocations: 1.406 kB / 2.388 GB, free: 179.1 MB / 0.9792 GB Notification: Performance of matching and sorting (n=126): time 0.003253/5.498, allocations: 1.68 MB / 2.389 GB, free: 178.9 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/5.498, allocations: 153.3 kB / 2.39 GB, free: 178.7 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002487/5.5, allocations: 1.761 MB / 2.391 GB, free: 178.5 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0002239/5.501, allocations: 28.14 kB / 2.391 GB, free: 178.5 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009753/5.502, allocations: 0.9358 MB / 2.392 GB, free: 177.9 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005194/5.502, allocations: 424 kB / 2.393 GB, free: 177.7 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.296e-05/5.502, allocations: 0 / 2.393 GB, free: 177.7 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001207/5.502, allocations: 379.3 kB / 2.393 GB, free: 177.4 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000876/5.503, allocations: 0.6831 MB / 2.394 GB, free: 177.4 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/5.504, allocations: 1.196 MB / 2.395 GB, free: 176.8 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/5.506, allocations: 0.9564 MB / 2.396 GB, free: 176.7 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/5.506, allocations: 3.875 kB / 2.396 GB, free: 176.7 MB / 0.9792 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003852/5.51, allocations: 2.215 MB / 2.398 GB, free: 176.6 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.001297/5.511, allocations: 5.678 MB / 2.403 GB, free: 170.6 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/5.511, allocations: 22.53 kB / 2.403 GB, free: 170.6 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001656/5.513, allocations: 436.9 kB / 2.404 GB, free: 170.6 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/5.514, allocations: 360.2 kB / 2.404 GB, free: 170.6 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003142/5.517, allocations: 2.964 MB / 2.407 GB, free: 168.8 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002805/5.52, allocations: 273.4 kB / 2.407 GB, free: 168.7 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001845/5.52, allocations: 83.89 kB / 2.407 GB, free: 168.7 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/5.52, allocations: 3.875 kB / 2.407 GB, free: 168.7 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003333/5.524, allocations: 1.954 MB / 2.409 GB, free: 168.6 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/5.524, allocations: 17.47 kB / 2.409 GB, free: 168.6 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005515/5.524, allocations: 214.3 kB / 2.41 GB, free: 168.6 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/5.526, allocations: 381.8 kB / 2.41 GB, free: 168.6 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003344/5.529, allocations: 3.681 MB / 2.414 GB, free: 166 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002804/5.532, allocations: 238.9 kB / 2.414 GB, free: 166 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001863/5.532, allocations: 83.53 kB / 2.414 GB, free: 166 MB / 0.9792 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.000595/5.533, allocations: 156 kB / 2.414 GB, free: 165.8 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005154/5.533, allocations: 204.1 kB / 2.414 GB, free: 165.7 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003608/5.537, allocations: 1.951 MB / 2.416 GB, free: 165.6 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/5.537, allocations: 13.69 kB / 2.416 GB, free: 165.6 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/5.537, allocations: 6.344 kB / 2.416 GB, free: 165.6 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002149/5.539, allocations: 1.554 MB / 2.418 GB, free: 165.5 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00816/5.547, allocations: 4.258 MB / 2.422 GB, free: 165.1 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/5.547, allocations: 4.688 kB / 2.422 GB, free: 165.1 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009873/5.548, allocations: 213.2 kB / 2.422 GB, free: 165.1 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/5.55, allocations: 408.2 kB / 2.422 GB, free: 165.1 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/5.55, allocations: 24.44 kB / 2.422 GB, free: 165.1 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002741/5.553, allocations: 2.904 MB / 2.425 GB, free: 163.2 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/5.553, allocations: 0 / 2.425 GB, free: 163.2 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004578/5.557, allocations: 2.959 MB / 2.428 GB, free: 162.8 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001886/5.559, allocations: 0.534 MB / 2.429 GB, free: 162.5 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008413/5.56, allocations: 11.31 kB / 2.429 GB, free: 162.5 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00237/5.562, allocations: 159.8 kB / 2.429 GB, free: 162.5 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/5.563, allocations: 91.3 kB / 2.429 GB, free: 162.5 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002053/5.563, allocations: 58.94 kB / 2.429 GB, free: 162.5 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.002932/5.566, allocations: 1.336 MB / 2.43 GB, free: 162.4 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.00751/5.573, allocations: 1.445 MB / 2.432 GB, free: 162.1 MB / 0.9792 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.001729/5.575, allocations: 0.5483 MB / 2.432 GB, free: 162 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.005965/5.581, allocations: 3.146 MB / 2.435 GB, free: 161.6 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/5.581, allocations: 0 / 2.435 GB, free: 161.6 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001498/5.583, allocations: 0.9231 MB / 2.436 GB, free: 161.5 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006387/5.589, allocations: 1.027 MB / 2.437 GB, free: 161.5 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/5.602, allocations: 4.335 MB / 2.441 GB, free: 160.6 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003908/5.606, allocations: 2.375 MB / 2.444 GB, free: 159.9 MB / 0.9792 GB Notification: Performance of SimCode: time 1.984e-06/5.606, allocations: 0 / 2.444 GB, free: 159.9 MB / 0.9792 GB Notification: Performance of Templates: time 0.09363/5.7, allocations: 52.41 MB / 2.495 GB, free: 157.3 MB / 0.9792 GB make -j1 -f Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)