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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001501/0.001501, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.903/1.903, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001205/0.001204, allocations: 88.42 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.000377, allocations: 11.98 kB / 327 MB, free: 224 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3223, allocations: 47.57 MB / 374.5 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.014/1.337, allocations: 323.9 MB / 0.6821 GB, free: 106.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003142/1.337, allocations: 96.08 kB / 0.6821 GB, free: 106.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9503/2.287, allocations: 192.9 MB / 0.8705 GB, free: 96.56 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.214e-06/2.287, allocations: 0 / 0.8705 GB, free: 96.56 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.865e-05/2.287, allocations: 32.83 kB / 0.8705 GB, free: 96.55 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.004751/2.292, allocations: 1.412 MB / 0.8719 GB, free: 95.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/2.292, allocations: 7.281 kB / 0.8719 GB, free: 95.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007112/2.293, allocations: 110.2 kB / 0.872 GB, free: 95.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002276/2.295, allocations: 0.7424 MB / 0.8728 GB, free: 95.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.686e-05/2.295, allocations: 55.11 kB / 0.8728 GB, free: 95.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/2.295, allocations: 58.56 kB / 0.8729 GB, free: 95.1 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002483/2.298, allocations: 1.05 MB / 0.8739 GB, free: 94.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.829e-05/2.298, allocations: 7.875 kB / 0.8739 GB, free: 94.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/2.298, allocations: 32.47 kB / 0.8739 GB, free: 94.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001303/2.298, allocations: 64.06 kB / 0.874 GB, free: 94.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00259/2.301, allocations: 1.017 MB / 0.875 GB, free: 93.96 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009687/2.311, allocations: 4.384 MB / 0.8793 GB, free: 90.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/2.312, allocations: 0.5735 MB / 0.8798 GB, free: 90.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003645/2.316, allocations: 1.997 MB / 0.8818 GB, free: 88.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/2.316, allocations: 38.33 kB / 0.8818 GB, free: 88.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 4.799e-06/2.316, allocations: 3.938 kB / 0.8818 GB, free: 88.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.007029/2.323, allocations: 1.946 MB / 0.8837 GB, free: 86.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/2.323, allocations: 166.1 kB / 0.8839 GB, free: 86.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001582/2.325, allocations: 0.8161 MB / 0.8847 GB, free: 86.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00015/2.325, allocations: 44.69 kB / 0.8847 GB, free: 86.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003455/2.325, allocations: 479.3 kB / 0.8852 GB, free: 85.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001937/2.326, allocations: 163.1 kB / 0.8853 GB, free: 85.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.823e-05/2.326, allocations: 15.66 kB / 0.8853 GB, free: 85.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.94e-05/2.326, allocations: 346.4 kB / 0.8857 GB, free: 85.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008713/2.327, allocations: 310 kB / 0.886 GB, free: 85.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009995/2.328, allocations: 0.5972 MB / 0.8865 GB, free: 84.58 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009451/2.329, allocations: 391.7 kB / 0.8869 GB, free: 84.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/2.329, allocations: 3.812 kB / 0.8869 GB, free: 84.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00263/2.331, allocations: 1.022 MB / 0.8879 GB, free: 83.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007399/2.332, allocations: 3.317 MB / 0.8912 GB, free: 80.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/2.332, allocations: 7.812 kB / 0.8912 GB, free: 80.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003352/2.335, allocations: 317.1 kB / 0.8915 GB, free: 80.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/2.337, allocations: 185.5 kB / 0.8916 GB, free: 80.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/2.338, allocations: 1.343 MB / 0.893 GB, free: 78.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/2.34, allocations: 63.02 kB / 0.893 GB, free: 78.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/2.34, allocations: 40 kB / 0.8931 GB, free: 78.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/2.34, allocations: 4 kB / 0.8931 GB, free: 78.69 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00246/2.342, allocations: 0.9607 MB / 0.894 GB, free: 77.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/2.343, allocations: 8 kB / 0.894 GB, free: 77.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002858/2.345, allocations: 279.3 kB / 0.8943 GB, free: 77.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/2.347, allocations: 183.7 kB / 0.8944 GB, free: 77.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/2.348, allocations: 1.291 MB / 0.8957 GB, free: 75.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/2.349, allocations: 54.62 kB / 0.8958 GB, free: 75.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/2.349, allocations: 47.92 kB / 0.8958 GB, free: 75.84 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 () * Number of clocked 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.000734/2.35, allocations: 367.4 kB / 0.8962 GB, free: 75.47 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002873/2.35, allocations: 90.88 kB / 0.8962 GB, free: 75.38 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00253/2.353, allocations: 0.7844 MB / 0.897 GB, free: 74.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/2.353, allocations: 8 kB / 0.897 GB, free: 74.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-06/2.353, allocations: 3.953 kB / 0.897 GB, free: 74.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/2.353, allocations: 3.984 kB / 0.897 GB, free: 74.58 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003942/2.357, allocations: 1.593 MB / 0.8986 GB, free: 72.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/2.357, allocations: 11.11 kB / 0.8986 GB, free: 72.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006604/2.358, allocations: 79.89 kB / 0.8987 GB, free: 72.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002359/2.36, allocations: 282.6 kB / 0.8989 GB, free: 72.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/2.36, allocations: 12 kB / 0.8989 GB, free: 72.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001236/2.361, allocations: 1.317 MB / 0.9002 GB, free: 71.19 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/2.362, allocations: 0 / 0.9002 GB, free: 71.19 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002533/2.364, allocations: 1.105 MB / 0.9013 GB, free: 70.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004533/2.365, allocations: 199.8 kB / 0.9015 GB, free: 69.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002271/2.365, allocations: 12 kB / 0.9015 GB, free: 69.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/2.366, allocations: 49.27 kB / 0.9016 GB, free: 69.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/2.366, allocations: 43.28 kB / 0.9016 GB, free: 69.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.074e-05/2.366, allocations: 23.98 kB / 0.9016 GB, free: 69.72 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001269/2.367, allocations: 0.6442 MB / 0.9023 GB, free: 69.06 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/2.367, allocations: 0 / 0.9023 GB, free: 69.06 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003412/2.371, allocations: 0.8312 MB / 0.9031 GB, free: 68.23 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]) * Number of clocked states: 0 () * 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.002711/2.374, allocations: 0.82 MB / 0.9039 GB, free: 67.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003911/2.378, allocations: 1.214 MB / 0.9051 GB, free: 66.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.168e-06/2.378, allocations: 0 / 0.9051 GB, free: 66.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/2.379, allocations: 363.8 kB / 0.9054 GB, free: 65.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/2.382, allocations: 382.9 kB / 0.9058 GB, free: 65.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/2.386, allocations: 2.044 MB / 0.9078 GB, free: 63.52 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006069/2.387, allocations: 1.057 MB / 0.9088 GB, free: 62.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004853/2.387, allocations: 83.42 kB / 0.9089 GB, free: 62.35 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/2.387, allocations: 4 kB / 0.9089 GB, free: 62.34 MB / 426.7 MB Notification: Performance of Templates: time 0.04763/2.435, allocations: 26.36 MB / 0.9346 GB, free: 36.11 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)