Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.8238/0.8238, allocations: 110.8 MB / 118 MB, free: 14.53 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001723/0.001723, allocations: 164 kB / 143.7 MB, free: 4.859 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.604e-06/7.714e-06, allocations: 0 / 173.5 MB, free: 23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04627/0.04629, allocations: 25.16 MB / 198.6 MB, free: 13.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5132/0.5596, allocations: 235.6 MB / 434.3 MB, free: 67.41 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.5599, allocations: 67.92 kB / 434.3 MB, free: 67.41 MB / 234.7 MB Notification: Performance of FrontEnd: time 0.3776/0.9375, allocations: 122 MB / 0.5433 GB, free: 43.34 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.03e-05/0.9376, allocations: 26.47 kB / 0.5433 GB, free: 43.34 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003009/0.9406, allocations: 1.015 MB / 0.5443 GB, free: 42.68 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.9407, allocations: 14.34 kB / 0.5443 GB, free: 42.68 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003729/0.941, allocations: 80.41 kB / 0.5444 GB, free: 42.64 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.9425, allocations: 0.5935 MB / 0.545 GB, free: 42.26 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.9426, allocations: 108.6 kB / 0.5451 GB, free: 42.19 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.9427, allocations: 26.88 kB / 0.5451 GB, free: 42.19 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001168/0.9439, allocations: 0.6745 MB / 0.5458 GB, free: 41.97 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.9456, allocations: 0.771 MB / 0.5465 GB, free: 41.66 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.867e-05/0.9456, allocations: 1.188 kB / 0.5465 GB, free: 41.66 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.551e-05/0.9457, allocations: 1.125 kB / 0.5465 GB, free: 41.66 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.9458, allocations: 52.28 kB / 0.5466 GB, free: 41.65 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005281/0.9511, allocations: 3.024 MB / 0.5495 GB, free: 39.81 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007254/0.9519, allocations: 490.3 kB / 0.55 GB, free: 39.62 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004273/0.9523, allocations: 334.2 kB / 0.5503 GB, free: 39.5 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002733/0.9551, allocations: 1.881 MB / 0.5522 GB, free: 38.13 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.9551, allocations: 42.86 kB / 0.5522 GB, free: 38.09 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 2.735e-06/0.9551, allocations: 0 / 0.5522 GB, free: 38.09 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.007524/0.9626, allocations: 2.443 MB / 0.5546 GB, free: 37.21 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.9627, allocations: 87.14 kB / 0.5547 GB, free: 37.11 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006354/0.9634, allocations: 411 kB / 0.5551 GB, free: 36.91 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 8.509e-05/0.9635, allocations: 26.64 kB / 0.5551 GB, free: 36.88 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.9636, allocations: 258.4 kB / 0.5553 GB, free: 36.68 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/0.9638, allocations: 208.3 kB / 0.5555 GB, free: 36.52 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-05/0.9639, allocations: 1.438 kB / 0.5555 GB, free: 36.52 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.964, allocations: 367.9 kB / 0.5559 GB, free: 36.18 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005235/0.9645, allocations: 312.4 kB / 0.5562 GB, free: 36.07 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005462/0.9651, allocations: 460.8 kB / 0.5566 GB, free: 35.78 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001925/0.967, allocations: 0.557 MB / 0.5572 GB, free: 35.64 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.967, allocations: 3.406 kB / 0.5572 GB, free: 35.64 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003141/0.9702, allocations: 1.21 MB / 0.5584 GB, free: 34.9 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.9702, allocations: 4 kB / 0.5584 GB, free: 34.89 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.9702, allocations: 7.891 kB / 0.5584 GB, free: 34.89 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008075/0.9711, allocations: 346.2 kB / 0.5587 GB, free: 34.62 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006627/0.9717, allocations: 153.1 kB / 0.5589 GB, free: 34.49 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00215/0.9739, allocations: 1.244 MB / 0.5601 GB, free: 33.38 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007831/0.9747, allocations: 43.62 kB / 0.5601 GB, free: 33.34 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.542e-05/0.9748, allocations: 30.72 kB / 0.5601 GB, free: 33.32 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = max(0.0, 0.0) start = max(tank2.level_start, 1e-15) unit = "m" stateSelect=StateSelect.prefer ) "Level height of tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank2.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = max(0.0, 0.0) start = max(tank1.level_start, 1e-15) unit = "m" stateSelect=StateSelect.prefer ) "Level height of tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank1.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003385/0.9751, allocations: 153.1 kB / 0.5603 GB, free: 33.18 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.9754, allocations: 66.44 kB / 0.5603 GB, free: 33.11 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003072/0.9784, allocations: 1.192 MB / 0.5615 GB, free: 31.95 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.9785, allocations: 8 kB / 0.5615 GB, free: 31.94 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.9785, allocations: 0 / 0.5615 GB, free: 31.94 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.9785, allocations: 6.766 kB / 0.5615 GB, free: 31.93 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004178/0.9827, allocations: 2.002 MB / 0.5635 GB, free: 29.91 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.9827, allocations: 0 / 0.5635 GB, free: 29.91 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005679/0.9833, allocations: 119.2 kB / 0.5636 GB, free: 29.8 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007292/0.984, allocations: 369.2 kB / 0.5639 GB, free: 29.45 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.265e-05/0.9841, allocations: 7.984 kB / 0.564 GB, free: 29.45 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001954/0.986, allocations: 1.253 MB / 0.5652 GB, free: 28.18 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.9861, allocations: 4 kB / 0.5652 GB, free: 28.17 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003063/0.9891, allocations: 1.678 MB / 0.5668 GB, free: 26.49 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003013/0.9895, allocations: 140.3 kB / 0.567 GB, free: 26.33 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.9896, allocations: 4 kB / 0.567 GB, free: 26.33 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006964/0.9903, allocations: 38.75 kB / 0.567 GB, free: 26.29 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.9905, allocations: 57.12 kB / 0.567 GB, free: 26.24 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.378e-05/0.9906, allocations: 28.09 kB / 0.5671 GB, free: 26.21 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.0003914/0.991, allocations: 318.9 kB / 0.5674 GB, free: 25.9 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001508/0.9925, allocations: 403.7 kB / 0.5678 GB, free: 25.51 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0012/0.9937, allocations: 0.4978 MB / 0.5682 GB, free: 25.04 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.9954, allocations: 0.8425 MB / 0.5691 GB, free: 24.19 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.9955, allocations: 0.8125 kB / 0.5691 GB, free: 24.19 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.9965, allocations: 0.4903 MB / 0.5696 GB, free: 23.7 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001589/0.9981, allocations: 313 kB / 0.5699 GB, free: 23.4 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003473/1.002, allocations: 1.3 MB / 0.5711 GB, free: 22.1 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006195/1.002, allocations: 1.059 MB / 0.5722 GB, free: 21.02 MB / 234.7 MB Notification: Performance of SimCode: time 3.71e-07/1.002, allocations: 4 kB / 0.5722 GB, free: 21.01 MB / 234.7 MB Notification: Performance of Templates: time 0.02662/1.029, allocations: 17.55 MB / 0.5893 GB, free: 3.562 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)