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.001442/0.001442, allocations: 177.8 kB / 8.36 MB, free: 0.7148 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.961/1.961, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 93.67 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.214e-05/2.225e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3357, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9735/1.309, allocations: 323.1 MB / 0.6694 GB, free: 118.7 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/1.31, allocations: 87.41 kB / 0.6695 GB, free: 118.7 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.926/2.236, allocations: 191 MB / 0.856 GB, free: 84.48 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.724e-06/2.236, allocations: 0 / 0.856 GB, free: 84.48 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0001216/2.236, allocations: 25.67 kB / 0.856 GB, free: 84.48 MB / 427.1 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.004781/2.241, allocations: 1.293 MB / 0.8573 GB, free: 83.86 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/2.241, allocations: 9.469 kB / 0.8573 GB, free: 83.86 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009196/2.242, allocations: 111.5 kB / 0.8574 GB, free: 83.81 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0027/2.244, allocations: 0.7322 MB / 0.8581 GB, free: 83.56 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.568e-05/2.244, allocations: 23.02 kB / 0.8581 GB, free: 83.56 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/2.245, allocations: 42 kB / 0.8582 GB, free: 83.56 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002531/2.247, allocations: 0.89 MB / 0.8591 GB, free: 83.56 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002384/2.25, allocations: 0.9552 MB / 0.86 GB, free: 83.38 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.792e-05/2.25, allocations: 4.094 kB / 0.86 GB, free: 83.38 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/2.25, allocations: 6.047 kB / 0.86 GB, free: 83.38 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001531/2.25, allocations: 64.11 kB / 0.8601 GB, free: 83.38 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009946/2.26, allocations: 4.236 MB / 0.8642 GB, free: 81.29 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/2.261, allocations: 0.5406 MB / 0.8647 GB, free: 81.26 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006355/2.262, allocations: 308.9 kB / 0.865 GB, free: 81.25 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003832/2.266, allocations: 2.023 MB / 0.867 GB, free: 80.01 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/2.266, allocations: 51.19 kB / 0.867 GB, free: 79.97 MB / 427.1 MB Notification: Performance of pre-optimization done (n=40): time 3.286e-06/2.266, allocations: 0 / 0.867 GB, free: 79.97 MB / 427.1 MB Notification: Performance of matching and sorting (n=45): time 0.008549/2.274, allocations: 1.742 MB / 0.8687 GB, free: 79.55 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.66e-05/2.275, allocations: 161.5 kB / 0.8689 GB, free: 79.36 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/2.276, allocations: 0.6278 MB / 0.8695 GB, free: 79.23 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001642/2.276, allocations: 30.64 kB / 0.8695 GB, free: 79.2 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003666/2.276, allocations: 0.5017 MB / 0.87 GB, free: 78.89 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/2.277, allocations: 159.3 kB / 0.8702 GB, free: 78.8 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-05/2.277, allocations: 2.656 kB / 0.8702 GB, free: 78.8 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 9.307e-05/2.277, allocations: 347.3 kB / 0.8705 GB, free: 78.48 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006873/2.277, allocations: 294.1 kB / 0.8708 GB, free: 78.48 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008326/2.278, allocations: 0.5693 MB / 0.8713 GB, free: 78.14 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/2.289, allocations: 1.369 MB / 0.8727 GB, free: 78.14 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.67e-05/2.289, allocations: 3.875 kB / 0.8727 GB, free: 78.14 MB / 427.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.01288/2.302, allocations: 1.933 MB / 0.8746 GB, free: 78.06 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007086/2.303, allocations: 3.316 MB / 0.8778 GB, free: 74.62 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.308e-05/2.303, allocations: 8.219 kB / 0.8778 GB, free: 74.62 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000922/2.304, allocations: 164.8 kB / 0.878 GB, free: 74.61 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/2.305, allocations: 181.7 kB / 0.8782 GB, free: 74.61 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002733/2.308, allocations: 1.501 MB / 0.8796 GB, free: 73.56 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/2.31, allocations: 49.28 kB / 0.8797 GB, free: 73.56 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/2.31, allocations: 37.78 kB / 0.8797 GB, free: 73.56 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/2.31, allocations: 3.812 kB / 0.8797 GB, free: 73.56 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01217/2.322, allocations: 1.8 MB / 0.8815 GB, free: 73.53 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/2.322, allocations: 10.69 kB / 0.8815 GB, free: 73.53 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000783/2.323, allocations: 149.9 kB / 0.8816 GB, free: 73.51 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/2.324, allocations: 176 kB / 0.8818 GB, free: 73.51 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/2.326, allocations: 1.398 MB / 0.8831 GB, free: 72.47 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/2.328, allocations: 41.56 kB / 0.8832 GB, free: 72.47 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/2.328, allocations: 42.7 kB / 0.8832 GB, free: 72.47 MB / 427.1 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.0003363/2.328, allocations: 139.8 kB / 0.8834 GB, free: 72.36 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002779/2.328, allocations: 77.03 kB / 0.8834 GB, free: 72.32 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/2.332, allocations: 0.7939 MB / 0.8842 GB, free: 72.23 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/2.332, allocations: 6.703 kB / 0.8842 GB, free: 72.23 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/2.332, allocations: 0 / 0.8842 GB, free: 72.23 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/2.332, allocations: 3.094 kB / 0.8842 GB, free: 72.23 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004606/2.336, allocations: 1.549 MB / 0.8857 GB, free: 71.91 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/2.336, allocations: 0 / 0.8857 GB, free: 71.91 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006611/2.337, allocations: 78.41 kB / 0.8858 GB, free: 71.91 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008721/2.338, allocations: 152.7 kB / 0.886 GB, free: 71.9 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-05/2.338, allocations: 7.859 kB / 0.886 GB, free: 71.89 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002013/2.34, allocations: 1.391 MB / 0.8873 GB, free: 70.85 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/2.34, allocations: 3.125 kB / 0.8873 GB, free: 70.85 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003092/2.343, allocations: 1.111 MB / 0.8884 GB, free: 70.59 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004535/2.344, allocations: 178.7 kB / 0.8886 GB, free: 70.45 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001973/2.344, allocations: 14.05 kB / 0.8886 GB, free: 70.45 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009826/2.345, allocations: 29.86 kB / 0.8886 GB, free: 70.45 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/2.345, allocations: 48.2 kB / 0.8887 GB, free: 70.45 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.996e-05/2.345, allocations: 24.3 kB / 0.8887 GB, free: 70.45 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0008407/2.346, allocations: 495.8 kB / 0.8892 GB, free: 70.36 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.9e-07/2.346, allocations: 0 / 0.8892 GB, free: 70.36 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.003642/2.35, allocations: 0.7832 MB / 0.8899 GB, free: 70.21 MB / 427.1 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.003418/2.353, allocations: 0.801 MB / 0.8907 GB, free: 69.97 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.003393/2.357, allocations: 1.132 MB / 0.8918 GB, free: 69.96 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/2.357, allocations: 3.344 kB / 0.8918 GB, free: 69.96 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000814/2.357, allocations: 294.6 kB / 0.8921 GB, free: 69.96 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002487/2.36, allocations: 291.7 kB / 0.8924 GB, free: 69.96 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003057/2.363, allocations: 1.251 MB / 0.8936 GB, free: 69.59 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005983/2.364, allocations: 1.048 MB / 0.8946 GB, free: 68.89 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00047/2.364, allocations: 77.23 kB / 0.8947 GB, free: 68.88 MB / 427.1 MB Notification: Performance of SimCode: time 1.543e-06/2.364, allocations: 0 / 0.8947 GB, free: 68.88 MB / 427.1 MB Notification: Performance of Templates: time 0.04523/2.409, allocations: 25.33 MB / 0.9194 GB, free: 67.49 MB / 427.1 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)