Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") [: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.8303/0.8303, allocations: 110.8 MB / 118 MB, free: 14.69 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00207/0.00207, allocations: 152 kB / 143.7 MB, free: 5.023 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.945e-06/7.965e-06, allocations: 4 kB / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06089/0.06091, allocations: 25.16 MB / 198.6 MB, free: 13.96 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5616/0.6226, allocations: 240.6 MB / 439.2 MB, free: 60.89 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.6229, allocations: 69.31 kB / 439.3 MB, free: 60.89 MB / 234.7 MB Notification: Performance of FrontEnd: time 0.4526/1.076, allocations: 153.7 MB / 0.5791 GB, free: 28.38 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001106/1.076, allocations: 23.67 kB / 0.5791 GB, free: 28.36 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003546/1.079, allocations: 1.087 MB / 0.5802 GB, free: 27.24 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/1.079, allocations: 8.031 kB / 0.5802 GB, free: 27.23 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005319/1.08, allocations: 90.97 kB / 0.5803 GB, free: 27.14 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/1.082, allocations: 0.6502 MB / 0.5809 GB, free: 26.46 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.75e-05/1.082, allocations: 23.98 kB / 0.5809 GB, free: 26.44 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001733/1.082, allocations: 35.91 kB / 0.581 GB, free: 26.41 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001305/1.083, allocations: 0.6741 MB / 0.5816 GB, free: 25.73 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/1.084, allocations: 0.7954 MB / 0.5824 GB, free: 24.88 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/1.084, allocations: 0 / 0.5824 GB, free: 24.88 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/1.085, allocations: 7.984 kB / 0.5824 GB, free: 24.88 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.922e-05/1.085, allocations: 45.23 kB / 0.5825 GB, free: 24.83 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0049/1.09, allocations: 3.882 MB / 0.5862 GB, free: 20.69 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004612/1.09, allocations: 337 kB / 0.5866 GB, free: 20.36 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/1.09, allocations: 221.5 kB / 0.5868 GB, free: 20.14 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002631/1.093, allocations: 2.093 MB / 0.5888 GB, free: 17.82 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/1.093, allocations: 38.56 kB / 0.5889 GB, free: 17.77 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 2.094e-06/1.093, allocations: 0 / 0.5889 GB, free: 17.77 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.006709/1.1, allocations: 1.741 MB / 0.5906 GB, free: 15.97 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/1.1, allocations: 132.5 kB / 0.5907 GB, free: 15.81 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006053/1.1, allocations: 0.5072 MB / 0.5912 GB, free: 15.3 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/1.1, allocations: 33.62 kB / 0.5912 GB, free: 15.26 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/1.101, allocations: 362.6 kB / 0.5916 GB, free: 14.9 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.727e-05/1.101, allocations: 146 kB / 0.5917 GB, free: 14.75 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.199e-05/1.101, allocations: 0 / 0.5917 GB, free: 14.75 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/1.101, allocations: 378.8 kB / 0.5921 GB, free: 14.38 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003055/1.101, allocations: 213.7 kB / 0.5923 GB, free: 14.17 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004253/1.102, allocations: 0.5482 MB / 0.5928 GB, free: 13.46 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/1.104, allocations: 0.5088 MB / 0.5933 GB, free: 12.95 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/1.104, allocations: 4 kB / 0.5933 GB, free: 12.95 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002613/1.106, allocations: 0.9905 MB / 0.5943 GB, free: 11.95 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/1.106, allocations: 8.969 kB / 0.5943 GB, free: 11.94 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/1.106, allocations: 8 kB / 0.5943 GB, free: 11.93 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002213/1.106, allocations: 60.83 kB / 0.5943 GB, free: 11.87 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009857/1.107, allocations: 235.7 kB / 0.5946 GB, free: 11.64 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009922/1.108, allocations: 1.283 MB / 0.5958 GB, free: 10.3 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007759/1.109, allocations: 48.11 kB / 0.5959 GB, free: 10.26 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.238e-05/1.109, allocations: 43.98 kB / 0.5959 GB, free: 10.21 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: 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 = 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: 48 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002385/1.11, allocations: 158.5 kB / 0.5961 GB, free: 10.05 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/1.11, allocations: 75.16 kB / 0.5961 GB, free: 9.98 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002206/1.112, allocations: 0.8613 MB / 0.597 GB, free: 9.113 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/1.112, allocations: 11.14 kB / 0.597 GB, free: 9.105 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/1.112, allocations: 0 / 0.597 GB, free: 9.105 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/1.112, allocations: 7.984 kB / 0.597 GB, free: 9.098 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/1.115, allocations: 1.399 MB / 0.5984 GB, free: 7.66 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/1.115, allocations: 3.938 kB / 0.5984 GB, free: 7.656 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006825/1.115, allocations: 143.9 kB / 0.5985 GB, free: 7.516 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001404/1.116, allocations: 44.83 kB / 0.5985 GB, free: 7.469 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.485e-05/1.116, allocations: 8 kB / 0.5985 GB, free: 7.461 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00072/1.116, allocations: 1.22 MB / 0.5997 GB, free: 6.191 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.116, allocations: 0 / 0.5997 GB, free: 6.191 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001826/1.118, allocations: 1.074 MB / 0.6008 GB, free: 5.066 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002025/1.118, allocations: 144.2 kB / 0.6009 GB, free: 4.906 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/1.119, allocations: 8 kB / 0.6009 GB, free: 4.898 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004906/1.119, allocations: 35.97 kB / 0.601 GB, free: 4.863 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/1.119, allocations: 56.14 kB / 0.601 GB, free: 4.809 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/1.119, allocations: 24 kB / 0.601 GB, free: 4.785 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.0004062/1.12, allocations: 387.1 kB / 0.6014 GB, free: 4.414 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001456/1.121, allocations: 415.6 kB / 0.6018 GB, free: 4.008 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001577/1.123, allocations: 0.5977 MB / 0.6024 GB, free: 3.461 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001257/1.124, allocations: 0.6185 MB / 0.603 GB, free: 2.844 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/1.124, allocations: 1 kB / 0.603 GB, free: 2.844 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006536/1.125, allocations: 323.1 kB / 0.6033 GB, free: 2.531 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/1.126, allocations: 287.5 kB / 0.6036 GB, free: 2.258 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002229/1.128, allocations: 1.105 MB / 0.6047 GB, free: 1.121 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006351/1.129, allocations: 1.089 MB / 0.6057 GB, free: 4 kB / 234.7 MB Notification: Performance of SimCode: time 3.81e-07/1.129, allocations: 0 / 0.6057 GB, free: 4 kB / 234.7 MB Notification: Performance of Templates: time 0.1287/1.258, allocations: 16.18 MB / 0.6215 GB, free: 48.58 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)