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.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001342/0.001342, allocations: 177.2 kB / 17.41 MB, free: 4.293 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.33/1.33, allocations: 205.4 MB / 223.6 MB, free: 9.008 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.0007591/0.0007591, allocations: 89.42 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003259, allocations: 8 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2291, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.604/0.8331, allocations: 324.4 MB / 0.6837 GB, free: 140.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.8334, allocations: 98.31 kB / 0.6838 GB, free: 140.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7362/1.57, allocations: 281.2 MB / 0.9585 GB, free: 24.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.603e-06/1.57, allocations: 0 / 0.9585 GB, free: 24.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001531/1.57, allocations: 39.98 kB / 0.9585 GB, free: 24.25 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005616/1.575, allocations: 1.945 MB / 0.9604 GB, free: 22.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/1.576, allocations: 8.031 kB / 0.9604 GB, free: 22.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009665/1.576, allocations: 169.2 kB / 0.9606 GB, free: 22.08 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002435/1.579, allocations: 1.073 MB / 0.9616 GB, free: 20.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.574e-05/1.579, allocations: 85.91 kB / 0.9617 GB, free: 20.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003265/1.579, allocations: 95.97 kB / 0.9618 GB, free: 20.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002738/1.582, allocations: 1.639 MB / 0.9634 GB, free: 19.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.106e-05/1.582, allocations: 0 / 0.9634 GB, free: 19.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001769/1.582, allocations: 43.98 kB / 0.9634 GB, free: 19.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/1.582, allocations: 101.9 kB / 0.9635 GB, free: 18.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002545/1.585, allocations: 1.616 MB / 0.9651 GB, free: 17.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008806/1.594, allocations: 6.479 MB / 0.9714 GB, free: 10.46 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/1.595, allocations: 0.9352 MB / 0.9723 GB, free: 9.523 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006798/1.596, allocations: 0.549 MB / 0.9729 GB, free: 8.977 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00337/1.599, allocations: 2.805 MB / 0.9756 GB, free: 5.922 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/1.599, allocations: 47.22 kB / 0.9757 GB, free: 5.863 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 2.455e-06/1.599, allocations: 0 / 0.9757 GB, free: 5.863 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.007607/1.607, allocations: 3.731 MB / 0.9793 GB, free: 2.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/1.607, allocations: 192.9 kB / 0.9795 GB, free: 1.785 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/1.609, allocations: 1.291 MB / 0.9807 GB, free: 488 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001427/1.609, allocations: 53.69 kB / 0.9808 GB, free: 428 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2/1.809, allocations: 0.6377 MB / 0.9814 GB, free: 56.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005194/1.809, allocations: 324.2 kB / 0.9817 GB, free: 56.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/1.809, allocations: 25.84 kB / 0.9818 GB, free: 56.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.057e-05/1.809, allocations: 363.5 kB / 0.9821 GB, free: 55.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009115/1.81, allocations: 0.5558 MB / 0.9826 GB, free: 55.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009716/1.811, allocations: 0.9663 MB / 0.9836 GB, free: 55.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/1.813, allocations: 1.419 MB / 0.985 GB, free: 54.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/1.813, allocations: 3.875 kB / 0.985 GB, free: 54.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003005/1.816, allocations: 1.837 MB / 0.9868 GB, free: 54.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002037/1.816, allocations: 429.1 kB / 0.9872 GB, free: 54.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/1.816, allocations: 14.62 kB / 0.9872 GB, free: 54.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003609/1.82, allocations: 0.658 MB / 0.9878 GB, free: 54.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/1.821, allocations: 282.1 kB / 0.9881 GB, free: 54.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001621/1.823, allocations: 2.171 MB / 0.9902 GB, free: 52.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001541/1.824, allocations: 93.69 kB / 0.9903 GB, free: 52.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001871/1.825, allocations: 73.44 kB / 0.9904 GB, free: 52.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.848e-06/1.825, allocations: 6.875 kB / 0.9904 GB, free: 52.71 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002652/1.827, allocations: 1.618 MB / 0.992 GB, free: 52.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/1.827, allocations: 11.34 kB / 0.992 GB, free: 52.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002881/1.83, allocations: 0.506 MB / 0.9925 GB, free: 52.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/1.831, allocations: 282.2 kB / 0.9927 GB, free: 52.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/1.833, allocations: 2.023 MB / 0.9947 GB, free: 51.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/1.834, allocations: 97.84 kB / 0.9948 GB, free: 51.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/1.834, allocations: 72.47 kB / 0.9949 GB, free: 51.08 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008468/1.835, allocations: 468.5 kB / 0.9953 GB, free: 50.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002566/1.835, allocations: 144.1 kB / 0.9955 GB, free: 50.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003309/1.839, allocations: 1.513 MB / 0.9969 GB, free: 50.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/1.839, allocations: 9.969 kB / 0.997 GB, free: 50.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/1.839, allocations: 3.938 kB / 0.997 GB, free: 50.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/1.839, allocations: 5.547 kB / 0.997 GB, free: 50.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005434/1.844, allocations: 2.805 MB / 0.9997 GB, free: 50.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/1.844, allocations: 0 / 0.9997 GB, free: 50.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007757/1.845, allocations: 151.9 kB / 0.9998 GB, free: 50.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00313/1.848, allocations: 0.612 MB / 1 GB, free: 50.28 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001392/1.848, allocations: 34.61 kB / 1 GB, free: 50.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001399/1.85, allocations: 2.12 MB / 1.003 GB, free: 48.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.85, allocations: 0 / 1.003 GB, free: 48.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002947/1.853, allocations: 2.092 MB / 1.005 GB, free: 48.41 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005046/1.853, allocations: 241.5 kB / 1.005 GB, free: 48.24 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002221/1.854, allocations: 23.53 kB / 1.005 GB, free: 48.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009174/1.855, allocations: 83.58 kB / 1.005 GB, free: 48.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/1.855, allocations: 102.3 kB / 1.005 GB, free: 48.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/1.855, allocations: 41.84 kB / 1.005 GB, free: 48.23 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001163/1.856, allocations: 0.8947 MB / 1.006 GB, free: 48.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.856, allocations: 0 / 1.006 GB, free: 48.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003304/1.859, allocations: 1.222 MB / 1.007 GB, free: 48.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002586/1.862, allocations: 1.109 MB / 1.008 GB, free: 48.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004352/1.866, allocations: 2.19 MB / 1.01 GB, free: 47.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/1.866, allocations: 3.656 kB / 1.01 GB, free: 47.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/1.868, allocations: 0.7015 MB / 1.011 GB, free: 47.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003188/1.871, allocations: 0.5751 MB / 1.012 GB, free: 47.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004788/1.876, allocations: 3.225 MB / 1.015 GB, free: 46.72 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007659/1.877, allocations: 1.249 MB / 1.016 GB, free: 46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006188/1.877, allocations: 132.4 kB / 1.016 GB, free: 46 MB / 426.7 MB Notification: Performance of SimCode: time 9.81e-07/1.877, allocations: 0 / 1.016 GB, free: 46 MB / 426.7 MB Notification: Performance of Templates: time 0.04998/1.927, allocations: 45.44 MB / 1.06 GB, free: 42.96 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)