Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") [: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.9275/0.9275, allocations: 110.8 MB / 118 MB, free: 14.59 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002036/0.002037, allocations: 152 kB / 143.7 MB, free: 4.914 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.514e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05796/0.05799, allocations: 25.17 MB / 198.6 MB, free: 13.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5981/0.6561, allocations: 238.7 MB / 437.4 MB, free: 66.64 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.6564, allocations: 71.45 kB / 437.4 MB, free: 66.63 MB / 234.7 MB Notification: Performance of FrontEnd: time 0.4175/1.074, allocations: 130.7 MB / 0.5549 GB, free: 38.92 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001125/1.074, allocations: 19.56 kB / 0.5549 GB, free: 38.92 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.003542/1.078, allocations: 1.039 MB / 0.5559 GB, free: 38.09 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/1.078, allocations: 8.562 kB / 0.5559 GB, free: 38.09 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005951/1.078, allocations: 87.84 kB / 0.556 GB, free: 38.05 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002019/1.08, allocations: 0.6273 MB / 0.5566 GB, free: 37.57 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/1.08, allocations: 90.2 kB / 0.5567 GB, free: 37.5 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/1.081, allocations: 22.34 kB / 0.5567 GB, free: 37.5 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001121/1.082, allocations: 0.5434 MB / 0.5572 GB, free: 37.05 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/1.083, allocations: 0.6954 MB / 0.5579 GB, free: 36.31 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/1.083, allocations: 11.88 kB / 0.5579 GB, free: 36.3 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/1.083, allocations: 4 kB / 0.5579 GB, free: 36.3 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.412e-05/1.083, allocations: 36.98 kB / 0.558 GB, free: 36.26 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004677/1.088, allocations: 3.52 MB / 0.5614 GB, free: 32.49 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004149/1.088, allocations: 294 kB / 0.5617 GB, free: 32.2 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002788/1.089, allocations: 212.8 kB / 0.5619 GB, free: 31.98 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001802/1.09, allocations: 1.388 MB / 0.5632 GB, free: 30.45 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003458/1.091, allocations: 281.7 kB / 0.5635 GB, free: 30.16 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 4.699e-06/1.091, allocations: 0 / 0.5635 GB, free: 30.16 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.003492/1.094, allocations: 1.239 MB / 0.5647 GB, free: 28.86 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.997e-05/1.094, allocations: 158.2 kB / 0.5649 GB, free: 28.67 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007892/1.095, allocations: 0.5189 MB / 0.5654 GB, free: 28.14 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/1.095, allocations: 25.7 kB / 0.5654 GB, free: 28.11 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/1.096, allocations: 330.5 kB / 0.5657 GB, free: 27.79 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/1.096, allocations: 118.3 kB / 0.5658 GB, free: 27.67 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/1.096, allocations: 0 / 0.5658 GB, free: 27.67 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/1.096, allocations: 382.8 kB / 0.5662 GB, free: 27.29 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003121/1.096, allocations: 217.4 kB / 0.5664 GB, free: 27.07 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004192/1.097, allocations: 0.491 MB / 0.5669 GB, free: 26.45 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006594/1.097, allocations: 327.7 kB / 0.5672 GB, free: 26.13 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/1.097, allocations: 4 kB / 0.5672 GB, free: 26.12 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001732/1.099, allocations: 0.8057 MB / 0.568 GB, free: 25.3 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/1.099, allocations: 4 kB / 0.568 GB, free: 25.3 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/1.099, allocations: 12 kB / 0.568 GB, free: 25.29 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004124/1.099, allocations: 106 kB / 0.5681 GB, free: 25.19 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004925/1.1, allocations: 139.8 kB / 0.5682 GB, free: 25.05 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006657/1.101, allocations: 0.685 MB / 0.5689 GB, free: 24.34 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006571/1.101, allocations: 36.08 kB / 0.5689 GB, free: 24.3 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.542e-05/1.101, allocations: 39.91 kB / 0.569 GB, free: 24.27 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(min = 0.0 start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 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: 40 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003235/1.102, allocations: 182.8 kB / 0.5692 GB, free: 24.07 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/1.102, allocations: 71.16 kB / 0.5692 GB, free: 24 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001363/1.103, allocations: 0.5842 MB / 0.5698 GB, free: 23.42 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/1.103, allocations: 11.91 kB / 0.5698 GB, free: 23.41 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/1.103, allocations: 4 kB / 0.5698 GB, free: 23.4 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/1.103, allocations: 3.938 kB / 0.5698 GB, free: 23.4 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/1.105, allocations: 1.19 MB / 0.571 GB, free: 22.17 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/1.105, allocations: 0 / 0.571 GB, free: 22.17 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003031/1.106, allocations: 55.97 kB / 0.571 GB, free: 22.11 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000337/1.106, allocations: 100 kB / 0.5711 GB, free: 22.02 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.136e-05/1.106, allocations: 15.97 kB / 0.5711 GB, free: 22 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005999/1.107, allocations: 0.681 MB / 0.5718 GB, free: 21.29 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/1.107, allocations: 4 kB / 0.5718 GB, free: 21.29 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001441/1.108, allocations: 0.9085 MB / 0.5727 GB, free: 20.35 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000231/1.108, allocations: 140.2 kB / 0.5728 GB, free: 20.2 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/1.109, allocations: 12 kB / 0.5728 GB, free: 20.18 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004904/1.109, allocations: 23.97 kB / 0.5729 GB, free: 20.16 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/1.109, allocations: 32.02 kB / 0.5729 GB, free: 20.13 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.416e-05/1.109, allocations: 27.92 kB / 0.5729 GB, free: 20.1 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.000497/1.11, allocations: 383.1 kB / 0.5733 GB, free: 19.73 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001633/1.111, allocations: 359.6 kB / 0.5736 GB, free: 19.38 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00176/1.113, allocations: 0.5154 MB / 0.5741 GB, free: 18.89 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0009805/1.114, allocations: 0.525 MB / 0.5746 GB, free: 18.36 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/1.114, allocations: 2.438 kB / 0.5746 GB, free: 18.36 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004132/1.115, allocations: 269.7 kB / 0.5749 GB, free: 18.09 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/1.116, allocations: 253.9 kB / 0.5751 GB, free: 17.85 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002336/1.118, allocations: 1.035 MB / 0.5762 GB, free: 16.79 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000635/1.119, allocations: 1.034 MB / 0.5772 GB, free: 15.72 MB / 234.7 MB Notification: Performance of SimCode: time 4.51e-07/1.119, allocations: 0 / 0.5772 GB, free: 15.72 MB / 234.7 MB Notification: Performance of Templates: time 0.02381/1.143, allocations: 13.35 MB / 0.5902 GB, free: 2.406 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)