Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") [: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.9684/0.9684, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001938/0.001938, allocations: 164 kB / 143.7 MB, free: 4.871 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.182e-05/1.195e-05, allocations: 4 kB / 173.5 MB, free: 23.02 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08239/0.08243, allocations: 25.16 MB / 198.6 MB, free: 13.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7296/0.8121, allocations: 235.9 MB / 434.6 MB, free: 67.3 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.8124, allocations: 70.06 kB / 434.6 MB, free: 67.3 MB / 234.7 MB Notification: Performance of FrontEnd: time 0.4087/1.221, allocations: 128 MB / 0.5494 GB, free: 43.54 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001351/1.221, allocations: 20.34 kB / 0.5495 GB, free: 43.54 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.003819/1.225, allocations: 0.9896 MB / 0.5504 GB, free: 42.85 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.936e-05/1.225, allocations: 9.156 kB / 0.5504 GB, free: 42.85 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005044/1.226, allocations: 78.81 kB / 0.5505 GB, free: 42.81 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001772/1.227, allocations: 0.5637 MB / 0.5511 GB, free: 42.44 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.729e-05/1.228, allocations: 16.44 kB / 0.5511 GB, free: 42.44 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001631/1.228, allocations: 29.69 kB / 0.5511 GB, free: 42.44 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001466/1.229, allocations: 0.5665 MB / 0.5517 GB, free: 42.18 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/1.231, allocations: 0.6445 MB / 0.5523 GB, free: 41.8 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/1.231, allocations: 0 / 0.5523 GB, free: 41.8 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.38e-05/1.231, allocations: 2.312 kB / 0.5523 GB, free: 41.8 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.101e-05/1.231, allocations: 46.72 kB / 0.5523 GB, free: 41.79 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00453/1.235, allocations: 2.706 MB / 0.555 GB, free: 39.5 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005378/1.236, allocations: 366.3 kB / 0.5553 GB, free: 39.14 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003383/1.236, allocations: 237.2 kB / 0.5556 GB, free: 38.91 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003284/1.237, allocations: 421.9 kB / 0.556 GB, free: 38.41 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/1.237, allocations: 42.91 kB / 0.556 GB, free: 38.36 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 2.474e-06/1.237, allocations: 0 / 0.556 GB, free: 38.36 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.00585/1.243, allocations: 1.809 MB / 0.5578 GB, free: 36.5 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/1.243, allocations: 89.19 kB / 0.5579 GB, free: 36.39 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006654/1.243, allocations: 430.1 kB / 0.5583 GB, free: 35.96 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.488e-05/1.243, allocations: 29.64 kB / 0.5583 GB, free: 35.93 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/1.244, allocations: 256.2 kB / 0.5585 GB, free: 35.67 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/1.244, allocations: 185.2 kB / 0.5587 GB, free: 35.49 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.244e-05/1.244, allocations: 0 / 0.5587 GB, free: 35.49 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/1.244, allocations: 370.8 kB / 0.5591 GB, free: 35.12 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004702/1.244, allocations: 256.6 kB / 0.5593 GB, free: 34.87 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004641/1.245, allocations: 413.7 kB / 0.5597 GB, free: 34.41 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/1.246, allocations: 412 kB / 0.5601 GB, free: 34.01 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/1.246, allocations: 7.906 kB / 0.5601 GB, free: 34 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00235/1.249, allocations: 0.9233 MB / 0.561 GB, free: 33.07 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/1.249, allocations: 8 kB / 0.561 GB, free: 33.07 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/1.249, allocations: 4 kB / 0.561 GB, free: 33.06 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005878/1.249, allocations: 160 kB / 0.5612 GB, free: 32.91 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000625/1.25, allocations: 139.8 kB / 0.5613 GB, free: 32.77 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/1.252, allocations: 0.9652 MB / 0.5623 GB, free: 31.78 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007264/1.253, allocations: 39.16 kB / 0.5623 GB, free: 31.75 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.124e-05/1.253, allocations: 31.98 kB / 0.5623 GB, free: 31.71 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the 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 = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the 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: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003302/1.253, allocations: 145 kB / 0.5625 GB, free: 31.57 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/1.253, allocations: 66.81 kB / 0.5625 GB, free: 31.51 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002127/1.255, allocations: 0.852 MB / 0.5634 GB, free: 30.66 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/1.255, allocations: 4 kB / 0.5634 GB, free: 30.66 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/1.255, allocations: 3.875 kB / 0.5634 GB, free: 30.66 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/1.255, allocations: 7.984 kB / 0.5634 GB, free: 30.65 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003532/1.259, allocations: 1.584 MB / 0.5649 GB, free: 29.04 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/1.259, allocations: 3.938 kB / 0.5649 GB, free: 29.04 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005245/1.259, allocations: 107.9 kB / 0.565 GB, free: 28.93 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004945/1.26, allocations: 160.7 kB / 0.5652 GB, free: 28.77 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.482e-05/1.26, allocations: 8 kB / 0.5652 GB, free: 28.77 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/1.261, allocations: 0.8872 MB / 0.566 GB, free: 27.86 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/1.261, allocations: 7.906 kB / 0.5661 GB, free: 27.85 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002168/1.263, allocations: 1.257 MB / 0.5673 GB, free: 26.56 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/1.264, allocations: 144.2 kB / 0.5674 GB, free: 26.4 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/1.264, allocations: 4 kB / 0.5674 GB, free: 26.4 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005421/1.264, allocations: 35.5 kB / 0.5675 GB, free: 26.37 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/1.264, allocations: 48.58 kB / 0.5675 GB, free: 26.32 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.1e-05/1.264, allocations: 27.17 kB / 0.5675 GB, free: 26.3 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.000342/1.265, allocations: 330.9 kB / 0.5678 GB, free: 25.98 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001403/1.266, allocations: 391.7 kB / 0.5682 GB, free: 25.59 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001387/1.268, allocations: 0.5312 MB / 0.5687 GB, free: 25.12 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001155/1.269, allocations: 0.6551 MB / 0.5694 GB, free: 24.46 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/1.269, allocations: 0 / 0.5694 GB, free: 24.46 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000577/1.269, allocations: 360.4 kB / 0.5697 GB, free: 24.12 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/1.271, allocations: 316.1 kB / 0.57 GB, free: 23.82 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002494/1.274, allocations: 1.153 MB / 0.5711 GB, free: 22.66 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006401/1.274, allocations: 1.04 MB / 0.5722 GB, free: 21.59 MB / 234.7 MB Notification: Performance of SimCode: time 2.8e-07/1.274, allocations: 0 / 0.5722 GB, free: 21.59 MB / 234.7 MB Notification: Performance of Templates: time 0.02607/1.3, allocations: 17.01 MB / 0.5888 GB, free: 4.66 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)