Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00141/0.00141, allocations: 187.8 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.385/1.385, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001686/0.001687, allocations: 114.2 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.599e-05/1.6e-05, allocations: 4 kB / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09462/0.09465, allocations: 44.5 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6939/0.7886, allocations: 319 MB / 0.6461 GB, free: 9.066 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.7889, allocations: 85.89 kB / 0.6461 GB, free: 9.023 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9817/1.771, allocations: 277.3 MB / 0.917 GB, free: 45.64 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.763e-06/1.771, allocations: 0 / 0.917 GB, free: 45.64 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001964/1.771, allocations: 32 kB / 0.917 GB, free: 45.61 MB / 395.1 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.00636/1.777, allocations: 1.781 MB / 0.9188 GB, free: 43.8 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/1.777, allocations: 8.031 kB / 0.9188 GB, free: 43.79 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00114/1.778, allocations: 173.5 kB / 0.9189 GB, free: 43.62 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002879/1.781, allocations: 1.091 MB / 0.92 GB, free: 42.52 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.437e-05/1.781, allocations: 35.98 kB / 0.92 GB, free: 42.48 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003814/1.782, allocations: 60 kB / 0.9201 GB, free: 42.42 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002584/1.784, allocations: 1.425 MB / 0.9215 GB, free: 41 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002477/1.787, allocations: 1.468 MB / 0.9229 GB, free: 39.45 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.254e-05/1.787, allocations: 4 kB / 0.9229 GB, free: 39.44 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001666/1.787, allocations: 4 kB / 0.9229 GB, free: 39.44 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/1.787, allocations: 97.94 kB / 0.923 GB, free: 39.34 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008972/1.796, allocations: 6.315 MB / 0.9292 GB, free: 32.77 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/1.797, allocations: 0.8459 MB / 0.93 GB, free: 31.92 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005872/1.798, allocations: 0.5089 MB / 0.9305 GB, free: 31.41 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003236/1.801, allocations: 2.767 MB / 0.9332 GB, free: 28.43 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/1.801, allocations: 39.34 kB / 0.9332 GB, free: 28.38 MB / 395.1 MB Notification: Performance of pre-optimization done (n=80): time 2.605e-06/1.801, allocations: 0 / 0.9332 GB, free: 28.38 MB / 395.1 MB Notification: Performance of matching and sorting (n=90): time 0.008642/1.81, allocations: 3.105 MB / 0.9363 GB, free: 25.21 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/1.81, allocations: 188.7 kB / 0.9365 GB, free: 24.99 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/1.811, allocations: 0.8537 MB / 0.9373 GB, free: 24.12 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 8.964e-05/1.811, allocations: 33.7 kB / 0.9373 GB, free: 24.08 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004061/1.812, allocations: 0.6773 MB / 0.938 GB, free: 23.39 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/1.812, allocations: 311.5 kB / 0.9383 GB, free: 23.09 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.535e-05/1.812, allocations: 0 / 0.9383 GB, free: 23.09 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 8.794e-05/1.812, allocations: 369.8 kB / 0.9386 GB, free: 22.72 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006631/1.813, allocations: 0.5115 MB / 0.9391 GB, free: 22.21 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008497/1.813, allocations: 0.9829 MB / 0.9401 GB, free: 21.02 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009307/1.823, allocations: 2.176 MB / 0.9422 GB, free: 18.84 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.716e-05/1.823, allocations: 8 kB / 0.9422 GB, free: 18.83 MB / 395.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.01131/1.834, allocations: 3.238 MB / 0.9454 GB, free: 15.58 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00109/1.835, allocations: 5.577 MB / 0.9508 GB, free: 9.566 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.279e-05/1.835, allocations: 16 kB / 0.9508 GB, free: 9.551 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009601/1.836, allocations: 326.3 kB / 0.9512 GB, free: 9.223 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/1.837, allocations: 295.5 kB / 0.9514 GB, free: 8.934 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003084/1.84, allocations: 2.43 MB / 0.9538 GB, free: 6.426 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/1.842, allocations: 75.91 kB / 0.9539 GB, free: 6.352 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002154/1.842, allocations: 75.97 kB / 0.954 GB, free: 6.277 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/1.842, allocations: 4 kB / 0.954 GB, free: 6.273 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01055/1.853, allocations: 2.949 MB / 0.9568 GB, free: 3.312 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.658e-05/1.853, allocations: 16.75 kB / 0.9569 GB, free: 3.297 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008861/1.854, allocations: 254.4 kB / 0.9571 GB, free: 3.039 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/1.855, allocations: 314.8 kB / 0.9574 GB, free: 2.734 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00243/1.857, allocations: 2.18 MB / 0.9595 GB, free: 488 kB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/1.859, allocations: 75.91 kB / 0.9596 GB, free: 412 kB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/1.859, allocations: 75.97 kB / 0.9597 GB, free: 336 kB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * 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.0003254/1.859, allocations: 166 kB / 0.9598 GB, free: 168 kB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/1.859, allocations: 126.5 kB / 0.96 GB, free: 40 kB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2413/2.101, allocations: 1.515 MB / 0.9614 GB, free: 50.65 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/2.101, allocations: 13.53 kB / 0.9614 GB, free: 50.65 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/2.101, allocations: 4.875 kB / 0.9615 GB, free: 50.65 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/2.101, allocations: 3.469 kB / 0.9615 GB, free: 50.65 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005162/2.106, allocations: 2.663 MB / 0.9641 GB, free: 50.3 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/2.106, allocations: 2.969 kB / 0.9641 GB, free: 50.3 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006633/2.107, allocations: 151.6 kB / 0.9642 GB, free: 50.3 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009586/2.108, allocations: 315.7 kB / 0.9645 GB, free: 50.28 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.84e-05/2.108, allocations: 15.45 kB / 0.9645 GB, free: 50.28 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002199/2.11, allocations: 2.259 MB / 0.9667 GB, free: 48.73 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/2.11, allocations: 3.438 kB / 0.9667 GB, free: 48.73 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003495/2.114, allocations: 2.129 MB / 0.9688 GB, free: 48.43 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003418/2.114, allocations: 218.2 kB / 0.969 GB, free: 48.33 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001976/2.114, allocations: 5.875 kB / 0.969 GB, free: 48.33 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007523/2.115, allocations: 56.81 kB / 0.9691 GB, free: 48.33 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/2.115, allocations: 99.28 kB / 0.9692 GB, free: 48.33 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.983e-05/2.115, allocations: 35.41 kB / 0.9692 GB, free: 48.33 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0007728/2.116, allocations: 0.6304 MB / 0.9698 GB, free: 48.22 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.8e-07/2.116, allocations: 2.734 kB / 0.9698 GB, free: 48.22 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003572/2.119, allocations: 1.105 MB / 0.9709 GB, free: 48.22 MB / 395.1 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]) * 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.002481/2.122, allocations: 1.085 MB / 0.972 GB, free: 48.12 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003275/2.125, allocations: 2.093 MB / 0.974 GB, free: 48.08 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/2.125, allocations: 2.906 kB / 0.974 GB, free: 48.08 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/2.126, allocations: 0.6462 MB / 0.9746 GB, free: 48.08 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/2.129, allocations: 473.9 kB / 0.9751 GB, free: 48.07 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003668/2.132, allocations: 2.117 MB / 0.9772 GB, free: 47.59 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000637/2.133, allocations: 1.288 MB / 0.9784 GB, free: 46.88 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.002044/2.135, allocations: 0.5674 MB / 0.979 GB, free: 46.86 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/2.135, allocations: 102.8 kB / 0.9791 GB, free: 46.85 MB / 395.1 MB Notification: Performance of SimCode: time 1.533e-06/2.135, allocations: 0 / 0.9791 GB, free: 46.85 MB / 395.1 MB Notification: Performance of Templates: time 0.05476/2.19, allocations: 33.78 MB / 1.012 GB, free: 44.86 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)