Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") [: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 3.2.3+maint.om/package.mo): time 0.002597/0.002596, allocations: 177.7 kB / 8.151 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.669/1.669, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00126/0.00126, allocations: 89.77 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.117e-06/9.208e-06, allocations: 0 / 314.3 MB, free: 9.031 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2354, allocations: 47.56 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7471/0.9825, allocations: 323.1 MB / 0.6688 GB, free: 118.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.9829, allocations: 84.75 kB / 0.6689 GB, free: 118.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.7922/1.775, allocations: 191.8 MB / 0.8562 GB, free: 84.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001018/1.775, allocations: 24.81 kB / 0.8563 GB, free: 84.62 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004276/1.78, allocations: 1.299 MB / 0.8575 GB, free: 84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.78, allocations: 6.562 kB / 0.8575 GB, free: 84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007071/1.78, allocations: 117.1 kB / 0.8576 GB, free: 83.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002318/1.783, allocations: 0.7293 MB / 0.8584 GB, free: 83.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.581e-05/1.783, allocations: 21.44 kB / 0.8584 GB, free: 83.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001543/1.783, allocations: 35.47 kB / 0.8584 GB, free: 83.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002381/1.785, allocations: 0.9222 MB / 0.8593 GB, free: 83.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/1.788, allocations: 0.9731 MB / 0.8603 GB, free: 83.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.429e-05/1.788, allocations: 3.906 kB / 0.8603 GB, free: 83.51 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/1.788, allocations: 3.469 kB / 0.8603 GB, free: 83.51 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001015/1.788, allocations: 71.84 kB / 0.8603 GB, free: 83.51 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00936/1.797, allocations: 4.252 MB / 0.8645 GB, free: 81.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/1.798, allocations: 424.7 kB / 0.8649 GB, free: 81.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006945/1.799, allocations: 315.3 kB / 0.8652 GB, free: 81.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00354/1.803, allocations: 2.021 MB / 0.8672 GB, free: 80.16 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/1.803, allocations: 38.45 kB / 0.8672 GB, free: 80.12 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 2.475e-06/1.803, allocations: 0 / 0.8672 GB, free: 80.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.008903/1.812, allocations: 1.802 MB / 0.869 GB, free: 79.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/1.812, allocations: 162.1 kB / 0.8691 GB, free: 79.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/1.813, allocations: 0.6345 MB / 0.8697 GB, free: 79.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001426/1.813, allocations: 29.64 kB / 0.8698 GB, free: 79.35 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/1.813, allocations: 419.9 kB / 0.8702 GB, free: 79.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/1.814, allocations: 153.6 kB / 0.8703 GB, free: 78.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.677e-05/1.814, allocations: 0 / 0.8703 GB, free: 78.93 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.165e-05/1.814, allocations: 346.8 kB / 0.8706 GB, free: 78.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007848/1.815, allocations: 308.5 kB / 0.8709 GB, free: 78.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009283/1.816, allocations: 0.5826 MB / 0.8715 GB, free: 78.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01203/1.828, allocations: 1.464 MB / 0.8729 GB, free: 78.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.541e-05/1.828, allocations: 3.938 kB / 0.8729 GB, free: 78.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.01379/1.842, allocations: 2.034 MB / 0.8749 GB, free: 78.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007014/1.842, allocations: 3.31 MB / 0.8782 GB, free: 74.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/1.842, allocations: 6.531 kB / 0.8782 GB, free: 74.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009068/1.843, allocations: 162.7 kB / 0.8783 GB, free: 74.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/1.845, allocations: 173.6 kB / 0.8785 GB, free: 74.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00314/1.848, allocations: 1.524 MB / 0.88 GB, free: 73.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/1.849, allocations: 46.12 kB / 0.88 GB, free: 73.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/1.849, allocations: 42.34 kB / 0.8801 GB, free: 73.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/1.849, allocations: 3.625 kB / 0.8801 GB, free: 73.7 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01308/1.862, allocations: 1.899 MB / 0.8819 GB, free: 73.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/1.862, allocations: 10.59 kB / 0.8819 GB, free: 73.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008674/1.863, allocations: 158.1 kB / 0.8821 GB, free: 73.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/1.864, allocations: 175.1 kB / 0.8822 GB, free: 73.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002476/1.867, allocations: 1.432 MB / 0.8836 GB, free: 72.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009963/1.868, allocations: 42.45 kB / 0.8837 GB, free: 72.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/1.868, allocations: 48.47 kB / 0.8837 GB, free: 72.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002979/1.868, allocations: 61.05 kB / 0.8838 GB, free: 72.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002599/1.868, allocations: 76.44 kB / 0.8839 GB, free: 72.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003514/1.872, allocations: 0.8383 MB / 0.8847 GB, free: 72.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/1.872, allocations: 5.875 kB / 0.8847 GB, free: 72.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/1.872, allocations: 3.219 kB / 0.8847 GB, free: 72.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/1.872, allocations: 6.562 kB / 0.8847 GB, free: 72.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004362/1.876, allocations: 1.58 MB / 0.8862 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/1.876, allocations: 3.812 kB / 0.8862 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006858/1.877, allocations: 75.03 kB / 0.8863 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009635/1.878, allocations: 161.5 kB / 0.8865 GB, free: 72.13 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.377e-05/1.878, allocations: 7.375 kB / 0.8865 GB, free: 72.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002074/1.88, allocations: 1.417 MB / 0.8879 GB, free: 71.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.88, allocations: 0 / 0.8879 GB, free: 71.09 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003053/1.883, allocations: 1.146 MB / 0.889 GB, free: 70.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003256/1.884, allocations: 170.2 kB / 0.8891 GB, free: 70.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000223/1.884, allocations: 7.312 kB / 0.8891 GB, free: 70.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/1.885, allocations: 38.08 kB / 0.8892 GB, free: 70.69 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/1.885, allocations: 44.36 kB / 0.8892 GB, free: 70.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.172e-05/1.885, allocations: 23.88 kB / 0.8892 GB, free: 70.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0008624/1.886, allocations: 0.4921 MB / 0.8897 GB, free: 70.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002934/1.889, allocations: 0.7845 MB / 0.8905 GB, free: 70.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002185/1.891, allocations: 0.8004 MB / 0.8913 GB, free: 70.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003701/1.895, allocations: 1.161 MB / 0.8924 GB, free: 70.19 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/1.895, allocations: 1.344 kB / 0.8924 GB, free: 70.19 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008955/1.896, allocations: 304.5 kB / 0.8927 GB, free: 70.19 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002512/1.898, allocations: 283.9 kB / 0.893 GB, free: 70.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003772/1.902, allocations: 1.294 MB / 0.8942 GB, free: 69.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/1.903, allocations: 1.127 MB / 0.8953 GB, free: 69.12 MB / 426.7 MB Notification: Performance of SimCode: time 9.11e-07/1.903, allocations: 0 / 0.8953 GB, free: 69.12 MB / 426.7 MB Notification: Performance of Templates: time 0.04612/1.949, allocations: 25.23 MB / 0.92 GB, free: 67.72 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)