Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/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-master/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_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001823/0.001823, allocations: 178.5 kB / 7.458 MB, free: 2.234 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6077/0.6077, allocations: 133.5 MB / 141.4 MB, free: 15.68 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.14/1.14, allocations: 221.3 MB / 395 MB, free: 10.25 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.000881/0.000881, allocations: 90.56 kB / 477.8 MB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 6.002e-06/6.022e-06, allocations: 2.562 kB / 0.5528 GB, free: 89.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1173, allocations: 82.3 MB / 0.6332 GB, free: 14.11 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7523/0.8697, allocations: 386.8 MB / 1.011 GB, free: 247.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/0.87, allocations: 88.77 kB / 1.011 GB, free: 247.2 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.346/3.216, allocations: 0.9898 GB / 2.001 GB, free: 31.81 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0002147/3.216, allocations: 89.19 kB / 2.001 GB, free: 31.73 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.004034/3.22, allocations: 2.672 MB / 2.004 GB, free: 29.02 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/3.22, allocations: 8.031 kB / 2.004 GB, free: 29.01 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008629/3.221, allocations: 363.9 kB / 2.004 GB, free: 28.65 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005012/3.226, allocations: 3.153 MB / 2.007 GB, free: 25.49 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.01e-05/3.226, allocations: 75.91 kB / 2.007 GB, free: 25.41 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002568/3.227, allocations: 140 kB / 2.007 GB, free: 25.28 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003183/3.23, allocations: 2.258 MB / 2.009 GB, free: 23.01 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003411/3.233, allocations: 2.698 MB / 2.012 GB, free: 20.18 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.137e-05/3.233, allocations: 4 kB / 2.012 GB, free: 20.18 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001884/3.233, allocations: 8 kB / 2.012 GB, free: 20.17 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.288e-05/3.233, allocations: 67.98 kB / 2.012 GB, free: 20.1 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01217/3.246, allocations: 12.96 MB / 2.025 GB, free: 6.426 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001612/3.247, allocations: 1.501 MB / 2.026 GB, free: 4.91 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/3.248, allocations: 1.128 MB / 2.027 GB, free: 3.777 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005474/3.249, allocations: 0.716 MB / 2.028 GB, free: 2.922 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/3.249, allocations: 49.12 kB / 2.028 GB, free: 2.863 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=126): time 3.467e-06/3.249, allocations: 0 / 2.028 GB, free: 2.863 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126): time 0.002518/3.252, allocations: 1.684 MB / 2.03 GB, free: 1.16 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/3.252, allocations: 141.5 kB / 2.03 GB, free: 0.9922 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1997/3.451, allocations: 1.799 MB / 2.032 GB, free: 170.6 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0003027/3.452, allocations: 28.08 kB / 2.032 GB, free: 170.6 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006695/3.452, allocations: 0.944 MB / 2.033 GB, free: 170.5 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000425/3.453, allocations: 429.4 kB / 2.033 GB, free: 170.2 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.223e-05/3.453, allocations: 0 / 2.033 GB, free: 170.2 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.549e-05/3.453, allocations: 372.6 kB / 2.033 GB, free: 169.9 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007766/3.454, allocations: 0.6801 MB / 2.034 GB, free: 169.9 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008895/3.455, allocations: 1.198 MB / 2.035 GB, free: 169.3 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/3.456, allocations: 0.951 MB / 2.036 GB, free: 169.3 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/3.456, allocations: 3.469 kB / 2.036 GB, free: 169.3 MB / 0.6823 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002939/3.459, allocations: 2.218 MB / 2.038 GB, free: 169.1 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007265/3.46, allocations: 5.7 MB / 2.044 GB, free: 163.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/3.46, allocations: 13.75 kB / 2.044 GB, free: 163.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/3.461, allocations: 435.3 kB / 2.044 GB, free: 163.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/3.462, allocations: 359.6 kB / 2.045 GB, free: 163.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002367/3.465, allocations: 2.96 MB / 2.047 GB, free: 161.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/3.467, allocations: 272.5 kB / 2.048 GB, free: 161.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/3.467, allocations: 87.62 kB / 2.048 GB, free: 161.3 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.849e-06/3.467, allocations: 3.938 kB / 2.048 GB, free: 161.3 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002563/3.469, allocations: 1.96 MB / 2.05 GB, free: 161.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/3.469, allocations: 14.69 kB / 2.05 GB, free: 161.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004502/3.47, allocations: 211.3 kB / 2.05 GB, free: 161.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/3.471, allocations: 374.3 kB / 2.05 GB, free: 161.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002591/3.474, allocations: 3.684 MB / 2.054 GB, free: 158.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/3.475, allocations: 241.4 kB / 2.054 GB, free: 158.6 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/3.475, allocations: 86.08 kB / 2.054 GB, free: 158.6 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.0002968/3.476, allocations: 154.5 kB / 2.054 GB, free: 158.5 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002761/3.476, allocations: 205.3 kB / 2.055 GB, free: 158.4 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002894/3.479, allocations: 1.966 MB / 2.056 GB, free: 158.3 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/3.479, allocations: 14.62 kB / 2.056 GB, free: 158.3 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/3.479, allocations: 7.75 kB / 2.057 GB, free: 158.3 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001881/3.481, allocations: 1.548 MB / 2.058 GB, free: 158.2 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005811/3.487, allocations: 4.261 MB / 2.062 GB, free: 157.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/3.487, allocations: 0 / 2.062 GB, free: 157.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008785/3.488, allocations: 215 kB / 2.062 GB, free: 157.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/3.489, allocations: 413.6 kB / 2.063 GB, free: 157.8 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-05/3.489, allocations: 18.45 kB / 2.063 GB, free: 157.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002078/3.491, allocations: 2.901 MB / 2.066 GB, free: 156 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/3.491, allocations: 1.125 kB / 2.066 GB, free: 156 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003132/3.494, allocations: 2.964 MB / 2.069 GB, free: 155.5 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008545/3.495, allocations: 0.536 MB / 2.069 GB, free: 155.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00029/3.495, allocations: 10.53 kB / 2.069 GB, free: 155.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/3.497, allocations: 166.2 kB / 2.069 GB, free: 155.3 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/3.497, allocations: 87.33 kB / 2.069 GB, free: 155.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/3.497, allocations: 61.41 kB / 2.069 GB, free: 155.3 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.001362/3.498, allocations: 1.363 MB / 2.071 GB, free: 155.1 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003484/3.502, allocations: 1.449 MB / 2.072 GB, free: 155 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.0008201/3.503, allocations: 0.5486 MB / 2.073 GB, free: 154.9 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00349/3.506, allocations: 3.132 MB / 2.076 GB, free: 154.6 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/3.506, allocations: 5.969 kB / 2.076 GB, free: 154.6 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0009697/3.507, allocations: 0.9306 MB / 2.077 GB, free: 154.5 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003916/3.511, allocations: 1.026 MB / 2.078 GB, free: 154.5 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006043/3.517, allocations: 4.359 MB / 2.082 GB, free: 153.6 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001658/3.519, allocations: 2.385 MB / 2.084 GB, free: 152.8 MB / 0.6823 GB Notification: Performance of SimCode: time 3.6e-07/3.519, allocations: 2.156 kB / 2.084 GB, free: 152.8 MB / 0.6823 GB Notification: Performance of Templates: time 0.06232/3.581, allocations: 52.43 MB / 2.135 GB, free: 151.1 MB / 0.6823 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)