Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json 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/IDEAS 3.0.0/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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/Complex 4.0.0+maint.om/package.mo): time 0.004543/0.004543, allocations: 182.5 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7068/0.7068, allocations: 130.6 MB / 138.5 MB, free: 2.16 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.858/1.858, allocations: 221.3 MB / 391.4 MB, free: 13.09 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001414/0.001413, allocations: 84.73 kB / 473.4 MB, free: 14.41 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 8.356e-06/8.476e-06, allocations: 0 / 0.5479 GB, free: 89.04 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2369, allocations: 81.58 MB / 0.6276 GB, free: 18.25 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.419/1.656, allocations: 386.5 MB / 1.005 GB, free: 226 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/1.656, allocations: 87.7 kB / 1.005 GB, free: 225.9 MB / 0.6667 GB Notification: Performance of FrontEnd: time 3.415/5.071, allocations: 0.9898 GB / 1.995 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0005523/5.072, allocations: 91.84 kB / 1.995 GB, free: 6.191 MB / 0.6823 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.01024/5.082, allocations: 2.672 MB / 1.998 GB, free: 3.461 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.905e-05/5.082, allocations: 8.031 kB / 1.998 GB, free: 3.453 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00253/5.085, allocations: 360 kB / 1.998 GB, free: 3.098 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4274/5.512, allocations: 3.153 MB / 2.001 GB, free: 172.1 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002669/5.512, allocations: 72.91 kB / 2.001 GB, free: 172.1 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00135/5.514, allocations: 136.5 kB / 2.001 GB, free: 172.1 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00502/5.519, allocations: 2.274 MB / 2.004 GB, free: 172.1 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004309/5.523, allocations: 2.699 MB / 2.006 GB, free: 171.7 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.084e-05/5.523, allocations: 3.609 kB / 2.006 GB, free: 171.7 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002125/5.523, allocations: 4.688 kB / 2.006 GB, free: 171.7 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.387e-05/5.524, allocations: 66.56 kB / 2.006 GB, free: 171.7 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01816/5.542, allocations: 12.96 MB / 2.019 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002154/5.544, allocations: 1.507 MB / 2.02 GB, free: 165.5 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/5.546, allocations: 1.119 MB / 2.021 GB, free: 165.4 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000774/5.546, allocations: 0.7143 MB / 2.022 GB, free: 164.7 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/5.546, allocations: 58.42 kB / 2.022 GB, free: 164.7 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=126): time 3.677e-06/5.546, allocations: 2.812 kB / 2.022 GB, free: 164.7 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126): time 0.003571/5.55, allocations: 1.674 MB / 2.024 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.193e-05/5.55, allocations: 144 kB / 2.024 GB, free: 164.3 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002877/5.553, allocations: 1.796 MB / 2.026 GB, free: 164.1 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002467/5.553, allocations: 31.86 kB / 2.026 GB, free: 164.1 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001239/5.554, allocations: 0.9366 MB / 2.027 GB, free: 163.7 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007033/5.555, allocations: 423 kB / 2.027 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.669e-05/5.555, allocations: 0 / 2.027 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001691/5.555, allocations: 377.2 kB / 2.027 GB, free: 163.2 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/5.556, allocations: 0.6838 MB / 2.028 GB, free: 163.2 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/5.558, allocations: 1.197 MB / 2.029 GB, free: 162.6 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/5.559, allocations: 0.9527 MB / 2.03 GB, free: 162.6 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/5.559, allocations: 7.844 kB / 2.03 GB, free: 162.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003981/5.563, allocations: 2.228 MB / 2.032 GB, free: 162.4 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001964/5.565, allocations: 5.682 MB / 2.038 GB, free: 156.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.92e-05/5.565, allocations: 15.44 kB / 2.038 GB, free: 156.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/5.567, allocations: 439.3 kB / 2.038 GB, free: 156.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/5.569, allocations: 362.1 kB / 2.039 GB, free: 156.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003366/5.572, allocations: 2.958 MB / 2.042 GB, free: 154.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003105/5.575, allocations: 272.4 kB / 2.042 GB, free: 154.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001623/5.575, allocations: 80.39 kB / 2.042 GB, free: 154.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/5.575, allocations: 3.5 kB / 2.042 GB, free: 154.5 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003276/5.579, allocations: 1.965 MB / 2.044 GB, free: 154.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/5.579, allocations: 15.56 kB / 2.044 GB, free: 154.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005215/5.579, allocations: 211 kB / 2.044 GB, free: 154.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/5.581, allocations: 371.3 kB / 2.044 GB, free: 154.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003468/5.584, allocations: 3.682 MB / 2.048 GB, free: 151.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002823/5.587, allocations: 240.1 kB / 2.048 GB, free: 151.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/5.587, allocations: 86.83 kB / 2.048 GB, free: 151.9 MB / 0.6823 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.0005991/5.588, allocations: 153.8 kB / 2.048 GB, free: 151.8 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005196/5.588, allocations: 206.2 kB / 2.049 GB, free: 151.7 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003791/5.592, allocations: 1.965 MB / 2.051 GB, free: 151.6 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/5.592, allocations: 11.25 kB / 2.051 GB, free: 151.6 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/5.592, allocations: 3.438 kB / 2.051 GB, free: 151.6 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002185/5.594, allocations: 1.552 MB / 2.052 GB, free: 151.4 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008333/5.603, allocations: 4.272 MB / 2.056 GB, free: 151 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/5.603, allocations: 7.297 kB / 2.056 GB, free: 151 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/5.604, allocations: 216 kB / 2.057 GB, free: 151 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001491/5.605, allocations: 410.3 kB / 2.057 GB, free: 151 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.822e-05/5.605, allocations: 18.17 kB / 2.057 GB, free: 151 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002903/5.608, allocations: 2.897 MB / 2.06 GB, free: 149.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/5.608, allocations: 3.906 kB / 2.06 GB, free: 149.2 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004712/5.613, allocations: 2.965 MB / 2.063 GB, free: 148.7 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001783/5.615, allocations: 0.5429 MB / 2.063 GB, free: 148.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003341/5.615, allocations: 7.375 kB / 2.063 GB, free: 148.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001499/5.616, allocations: 160 kB / 2.063 GB, free: 148.5 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/5.617, allocations: 88.25 kB / 2.063 GB, free: 148.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/5.617, allocations: 59.98 kB / 2.063 GB, free: 148.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.002005/5.619, allocations: 1.362 MB / 2.065 GB, free: 148.4 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.005123/5.624, allocations: 1.448 MB / 2.066 GB, free: 148.2 MB / 0.6823 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.001194/5.625, allocations: 0.5643 MB / 2.067 GB, free: 148.1 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.005384/5.631, allocations: 3.135 MB / 2.07 GB, free: 147.8 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/5.631, allocations: 0 / 2.07 GB, free: 147.8 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001478/5.632, allocations: 0.9338 MB / 2.071 GB, free: 147.7 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006757/5.639, allocations: 1.019 MB / 2.072 GB, free: 147.7 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00934/5.648, allocations: 4.352 MB / 2.076 GB, free: 146.8 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002267/5.651, allocations: 2.398 MB / 2.078 GB, free: 146.1 MB / 0.6823 GB Notification: Performance of SimCode: time 1.182e-06/5.651, allocations: 0 / 2.078 GB, free: 146.1 MB / 0.6823 GB Notification: Performance of Templates: time 0.08771/5.738, allocations: 52.43 MB / 2.13 GB, free: 144.3 MB / 0.6823 GB make -j1 -f IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)