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.002225/0.002225, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.977/1.977, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001052/0.001052, allocations: 82.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.22e-05/3.225e-05, allocations: 4 kB / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09464/0.09469, allocations: 47.57 MB / 369.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9547/1.049, allocations: 323.8 MB / 0.6766 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/1.05, allocations: 94.19 kB / 0.6767 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.211/2.26, allocations: 192.2 MB / 0.8645 GB, free: 76.47 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.873e-06/2.26, allocations: 1.219 kB / 0.8645 GB, free: 76.47 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001977/2.261, allocations: 22.41 kB / 0.8645 GB, free: 76.47 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.005365/2.266, allocations: 1.293 MB / 0.8658 GB, free: 76.08 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/2.266, allocations: 9.781 kB / 0.8658 GB, free: 76.08 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001012/2.267, allocations: 111.8 kB / 0.8659 GB, free: 76.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002969/2.27, allocations: 0.7311 MB / 0.8666 GB, free: 75.78 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/2.27, allocations: 51.59 kB / 0.8666 GB, free: 75.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002745/2.271, allocations: 61.89 kB / 0.8667 GB, free: 75.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003182/2.274, allocations: 1.043 MB / 0.8677 GB, free: 75.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.664e-05/2.274, allocations: 7.141 kB / 0.8677 GB, free: 75.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001669/2.274, allocations: 27.91 kB / 0.8677 GB, free: 75.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/2.274, allocations: 71.09 kB / 0.8678 GB, free: 75.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003236/2.277, allocations: 0.9915 MB / 0.8688 GB, free: 75.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01237/2.29, allocations: 4.403 MB / 0.8731 GB, free: 73.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001652/2.292, allocations: 0.5596 MB / 0.8736 GB, free: 73.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008608/2.292, allocations: 309.4 kB / 0.8739 GB, free: 73.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004393/2.297, allocations: 2.082 MB / 0.876 GB, free: 72.17 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.483e-05/2.297, allocations: 42.17 kB / 0.876 GB, free: 72.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 3.686e-06/2.297, allocations: 0 / 0.876 GB, free: 72.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.005525/2.303, allocations: 1.503 MB / 0.8775 GB, free: 71.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.248e-05/2.303, allocations: 165 kB / 0.8776 GB, free: 71.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/2.304, allocations: 0.8092 MB / 0.8784 GB, free: 71.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000227/2.305, allocations: 39.7 kB / 0.8785 GB, free: 71.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003884/2.305, allocations: 489.4 kB / 0.8789 GB, free: 71.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002417/2.305, allocations: 165 kB / 0.8791 GB, free: 71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.989e-05/2.305, allocations: 13.53 kB / 0.8791 GB, free: 71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/2.306, allocations: 342.4 kB / 0.8794 GB, free: 70.68 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008916/2.306, allocations: 305 kB / 0.8797 GB, free: 70.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/2.308, allocations: 0.5903 MB / 0.8803 GB, free: 70.35 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/2.309, allocations: 395.2 kB / 0.8807 GB, free: 70.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/2.309, allocations: 2.344 kB / 0.8807 GB, free: 70.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003114/2.312, allocations: 1.012 MB / 0.8816 GB, free: 70.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007775/2.313, allocations: 3.313 MB / 0.8849 GB, free: 66.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.256e-05/2.313, allocations: 11.81 kB / 0.8849 GB, free: 66.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003539/2.316, allocations: 309.6 kB / 0.8852 GB, free: 66.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/2.318, allocations: 179.9 kB / 0.8854 GB, free: 66.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/2.32, allocations: 1.351 MB / 0.8867 GB, free: 65.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/2.321, allocations: 61.08 kB / 0.8867 GB, free: 65.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001907/2.322, allocations: 44.41 kB / 0.8868 GB, free: 65.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/2.322, allocations: 4.594 kB / 0.8868 GB, free: 65.77 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002972/2.325, allocations: 0.936 MB / 0.8877 GB, free: 65.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.733e-05/2.325, allocations: 8.719 kB / 0.8877 GB, free: 65.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002944/2.328, allocations: 280.4 kB / 0.888 GB, free: 65.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/2.329, allocations: 176.7 kB / 0.8881 GB, free: 65.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001468/2.331, allocations: 1.297 MB / 0.8894 GB, free: 64.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/2.332, allocations: 57.08 kB / 0.8895 GB, free: 64.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/2.332, allocations: 41.69 kB / 0.8895 GB, free: 64.68 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.0003897/2.333, allocations: 168.8 kB / 0.8897 GB, free: 64.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000343/2.333, allocations: 96.77 kB / 0.8898 GB, free: 64.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002504/2.335, allocations: 0.7793 MB / 0.8905 GB, free: 64.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/2.335, allocations: 10.03 kB / 0.8905 GB, free: 64.44 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/2.335, allocations: 0 / 0.8905 GB, free: 64.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/2.335, allocations: 2.875 kB / 0.8905 GB, free: 64.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004439/2.34, allocations: 1.584 MB / 0.8921 GB, free: 64.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/2.34, allocations: 1.125 kB / 0.8921 GB, free: 64.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007397/2.341, allocations: 76.98 kB / 0.8922 GB, free: 64.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/2.343, allocations: 285.5 kB / 0.8924 GB, free: 64.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/2.343, allocations: 18.17 kB / 0.8924 GB, free: 64.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/2.345, allocations: 1.308 MB / 0.8937 GB, free: 63.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/2.345, allocations: 4 kB / 0.8937 GB, free: 63.04 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/2.348, allocations: 1.089 MB / 0.8948 GB, free: 62.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005362/2.348, allocations: 194 kB / 0.895 GB, free: 62.63 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/2.348, allocations: 20.23 kB / 0.895 GB, free: 62.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/2.349, allocations: 42.83 kB / 0.895 GB, free: 62.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/2.35, allocations: 46.92 kB / 0.8951 GB, free: 62.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.13e-05/2.35, allocations: 27.98 kB / 0.8951 GB, free: 62.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001262/2.351, allocations: 0.6319 MB / 0.8957 GB, free: 62.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.463e-06/2.351, allocations: 0 / 0.8957 GB, free: 62.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003646/2.355, allocations: 0.8349 MB / 0.8965 GB, free: 62.5 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.002794/2.357, allocations: 0.8093 MB / 0.8973 GB, free: 62.28 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003825/2.361, allocations: 1.2 MB / 0.8985 GB, free: 62.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/2.361, allocations: 0 / 0.8985 GB, free: 62.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001313/2.363, allocations: 357.5 kB / 0.8988 GB, free: 62.26 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003154/2.366, allocations: 376.7 kB / 0.8992 GB, free: 62.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003315/2.369, allocations: 1.305 MB / 0.9005 GB, free: 61.89 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000591/2.37, allocations: 1.047 MB / 0.9015 GB, free: 61.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005195/2.37, allocations: 86.48 kB / 0.9016 GB, free: 61.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.303e-06/2.37, allocations: 0 / 0.9016 GB, free: 61.18 MB / 426.7 MB Notification: Performance of Templates: time 0.04835/2.419, allocations: 26.31 MB / 0.9273 GB, free: 60.23 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)