Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") [: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.001863/0.001863, allocations: 178.4 kB / 7.462 MB, free: 2.438 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5886/0.5886, allocations: 133.5 MB / 141.4 MB, free: 15.69 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.124/1.124, allocations: 221.3 MB / 395 MB, free: 10.19 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.000837/0.000837, allocations: 94.41 kB / 477.8 MB, free: 10.85 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.16e-06/5.18e-06, allocations: 0 / 0.5529 GB, free: 89.14 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 82.3 MB / 0.6332 GB, free: 14.09 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7152/0.8242, allocations: 382.2 MB / 1.006 GB, free: 204.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/0.8245, allocations: 93.97 kB / 1.007 GB, free: 204.3 MB / 0.6823 GB Notification: Performance of FrontEnd: time 0.8953/1.72, allocations: 419.8 MB / 1.416 GB, free: 89.52 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001235/1.72, allocations: 46.81 kB / 1.417 GB, free: 89.48 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: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.002795/1.723, allocations: 1.869 MB / 1.418 GB, free: 87.58 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 2.86e-05/1.723, allocations: 8.031 kB / 1.418 GB, free: 87.57 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006015/1.723, allocations: 225.5 kB / 1.419 GB, free: 87.35 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003113/1.727, allocations: 2.147 MB / 1.421 GB, free: 85.18 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.165e-05/1.727, allocations: 44 kB / 1.421 GB, free: 85.13 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/1.727, allocations: 95.89 kB / 1.421 GB, free: 85.04 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001885/1.729, allocations: 1.63 MB / 1.422 GB, free: 83.41 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001912/1.731, allocations: 1.692 MB / 1.424 GB, free: 81.65 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/1.731, allocations: 0 / 1.424 GB, free: 81.65 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/1.731, allocations: 4 kB / 1.424 GB, free: 81.65 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.125e-05/1.731, allocations: 39.98 kB / 1.424 GB, free: 81.61 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006579/1.737, allocations: 7.206 MB / 1.431 GB, free: 74.2 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/1.739, allocations: 1.243 MB / 1.432 GB, free: 72.95 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005815/1.739, allocations: 0.6289 MB / 1.433 GB, free: 72.32 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003167/1.742, allocations: 3.447 MB / 1.436 GB, free: 68.59 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/1.742, allocations: 39.34 kB / 1.436 GB, free: 68.54 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=86): time 1.844e-06/1.742, allocations: 0 / 1.436 GB, free: 68.54 MB / 0.6823 GB Notification: Performance of matching and sorting (n=86): time 0.001838/1.744, allocations: 1.176 MB / 1.438 GB, free: 67.36 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.96e-05/1.744, allocations: 64.19 kB / 1.438 GB, free: 67.28 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/1.745, allocations: 1.266 MB / 1.439 GB, free: 66.01 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.747e-05/1.745, allocations: 25.7 kB / 1.439 GB, free: 65.98 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/1.746, allocations: 0.6036 MB / 1.439 GB, free: 65.36 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/1.746, allocations: 291.7 kB / 1.44 GB, free: 65.07 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.849e-05/1.746, allocations: 0 / 1.44 GB, free: 65.07 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.023e-05/1.746, allocations: 369.8 kB / 1.44 GB, free: 64.7 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006854/1.747, allocations: 0.6676 MB / 1.441 GB, free: 64.04 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007877/1.748, allocations: 1.003 MB / 1.442 GB, free: 62.89 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00228/1.75, allocations: 1.259 MB / 1.443 GB, free: 61.63 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/1.75, allocations: 4 kB / 1.443 GB, free: 61.63 MB / 0.6823 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003432/1.753, allocations: 2.23 MB / 1.445 GB, free: 59.39 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000419/1.754, allocations: 3.484 MB / 1.449 GB, free: 55.63 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/1.754, allocations: 15.84 kB / 1.449 GB, free: 55.62 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/1.754, allocations: 16 kB / 1.449 GB, free: 55.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/1.755, allocations: 343.5 kB / 1.449 GB, free: 55.27 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/1.755, allocations: 19.94 kB / 1.449 GB, free: 55.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009222/1.756, allocations: 154.3 kB / 1.449 GB, free: 55.09 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/1.756, allocations: 67.98 kB / 1.449 GB, free: 55.03 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.949e-06/1.756, allocations: 4 kB / 1.449 GB, free: 55.02 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003187/1.759, allocations: 2.058 MB / 1.451 GB, free: 52.96 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/1.759, allocations: 12 kB / 1.451 GB, free: 52.95 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/1.759, allocations: 19.98 kB / 1.451 GB, free: 52.93 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/1.76, allocations: 331.5 kB / 1.451 GB, free: 52.61 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/1.76, allocations: 23.92 kB / 1.451 GB, free: 52.59 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008081/1.761, allocations: 130.9 kB / 1.452 GB, free: 52.46 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-05/1.761, allocations: 63.92 kB / 1.452 GB, free: 52.39 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001529/1.761, allocations: 136.4 kB / 1.452 GB, free: 52.25 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/1.762, allocations: 134.3 kB / 1.452 GB, free: 52.12 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001971/1.764, allocations: 1.317 MB / 1.453 GB, free: 50.8 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/1.764, allocations: 8 kB / 1.453 GB, free: 50.79 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/1.764, allocations: 0 / 1.453 GB, free: 50.79 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001547/1.765, allocations: 1.375 MB / 1.455 GB, free: 49.33 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003338/1.769, allocations: 2.812 MB / 1.457 GB, free: 46.48 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/1.769, allocations: 0 / 1.457 GB, free: 46.48 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007052/1.769, allocations: 171.8 kB / 1.457 GB, free: 46.32 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/1.769, allocations: 7.984 kB / 1.457 GB, free: 46.31 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.83e-05/1.769, allocations: 15.98 kB / 1.457 GB, free: 46.29 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/1.769, allocations: 7.938 kB / 1.457 GB, free: 46.29 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/1.769, allocations: 0 / 1.457 GB, free: 46.29 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002241/1.772, allocations: 2.016 MB / 1.459 GB, free: 44.23 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000461/1.772, allocations: 387.1 kB / 1.46 GB, free: 43.83 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001927/1.772, allocations: 7.984 kB / 1.46 GB, free: 43.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006444/1.773, allocations: 31.97 kB / 1.46 GB, free: 43.79 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-05/1.773, allocations: 52.61 kB / 1.46 GB, free: 43.74 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-05/1.773, allocations: 31.98 kB / 1.46 GB, free: 43.71 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0008566/1.774, allocations: 0.9887 MB / 1.461 GB, free: 42.72 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001765/1.776, allocations: 0.9505 MB / 1.462 GB, free: 41.77 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * 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.0006747/1.776, allocations: 477 kB / 1.462 GB, free: 41.33 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002124/1.778, allocations: 2.312 MB / 1.465 GB, free: 39.02 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/1.778, allocations: 0 / 1.465 GB, free: 39.02 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004557/1.779, allocations: 0.5026 MB / 1.465 GB, free: 38.52 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/1.781, allocations: 0.5971 MB / 1.466 GB, free: 37.93 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003606/1.785, allocations: 3.069 MB / 1.469 GB, free: 34.81 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001132/1.786, allocations: 1.85 MB / 1.47 GB, free: 32.93 MB / 0.6823 GB Notification: Performance of SimCode: time 2.4e-07/1.786, allocations: 0 / 1.47 GB, free: 32.93 MB / 0.6823 GB Notification: Performance of Templates: time 0.2248/2.011, allocations: 35.12 MB / 1.505 GB, free: 198.5 MB / 0.6823 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)