Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001506/0.001506, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.388/1.388, allocations: 194.3 MB / 208.4 MB, free: 6.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001357/0.001358, allocations: 118.3 kB / 253.5 MB, free: 9.566 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.989e-05/2.991e-05, allocations: 4 kB / 304.9 MB, free: 29.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08269/0.08274, allocations: 44.49 MB / 349.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7297/0.8125, allocations: 322.2 MB / 0.6559 GB, free: 50.68 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.8128, allocations: 90.64 kB / 0.656 GB, free: 50.63 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.065/1.878, allocations: 321.5 MB / 0.97 GB, free: 55.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.452e-06/1.878, allocations: 0 / 0.97 GB, free: 55.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001254/1.878, allocations: 57.95 kB / 0.97 GB, free: 55.27 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005063/1.883, allocations: 2.036 MB / 0.972 GB, free: 54.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/1.883, allocations: 14.19 kB / 0.972 GB, free: 54.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006766/1.884, allocations: 196.8 kB / 0.9722 GB, free: 54.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002414/1.887, allocations: 1.241 MB / 0.9734 GB, free: 53.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.471e-05/1.887, allocations: 105.8 kB / 0.9735 GB, free: 53.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002003/1.887, allocations: 124.5 kB / 0.9736 GB, free: 53.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002642/1.89, allocations: 1.922 MB / 0.9755 GB, free: 52.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/1.89, allocations: 7.938 kB / 0.9755 GB, free: 52.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000149/1.89, allocations: 51.17 kB / 0.9756 GB, free: 52.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/1.89, allocations: 123.1 kB / 0.9757 GB, free: 52.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002522/1.892, allocations: 1.917 MB / 0.9776 GB, free: 51.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0101/1.903, allocations: 7.617 MB / 0.985 GB, free: 44.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/1.904, allocations: 1.134 MB / 0.9861 GB, free: 43.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000846/1.905, allocations: 0.7334 MB / 0.9868 GB, free: 42.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004296/1.909, allocations: 3.378 MB / 0.9901 GB, free: 39.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/1.909, allocations: 47.56 kB / 0.9902 GB, free: 39.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 2.605e-06/1.909, allocations: 0 / 0.9902 GB, free: 39.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.008202/1.917, allocations: 4.071 MB / 0.9941 GB, free: 35.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/1.918, allocations: 175.5 kB / 0.9943 GB, free: 34.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/1.919, allocations: 1.16 MB / 0.9954 GB, free: 33.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001563/1.919, allocations: 57.7 kB / 0.9955 GB, free: 33.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000392/1.92, allocations: 0.7308 MB / 0.9962 GB, free: 32.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/1.92, allocations: 463.1 kB / 0.9967 GB, free: 32.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/1.92, allocations: 36 kB / 0.9967 GB, free: 32.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/1.92, allocations: 388.1 kB / 0.9971 GB, free: 32.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/1.921, allocations: 0.734 MB / 0.9978 GB, free: 31.28 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/1.923, allocations: 1.185 MB / 0.9989 GB, free: 29.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/1.924, allocations: 0.8693 MB / 0.9998 GB, free: 29.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/1.924, allocations: 4 kB / 0.9998 GB, free: 29.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003362/1.927, allocations: 2.377 MB / 1.002 GB, free: 26.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008079/1.928, allocations: 5.202 MB / 1.007 GB, free: 21.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/1.928, allocations: 19.75 kB / 1.007 GB, free: 21.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004927/1.933, allocations: 0.9359 MB / 1.008 GB, free: 20.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/1.935, allocations: 355.4 kB / 1.008 GB, free: 19.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002198/1.937, allocations: 2.884 MB / 1.011 GB, free: 16.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001986/1.939, allocations: 143.8 kB / 1.011 GB, free: 16.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003903/1.939, allocations: 79.97 kB / 1.011 GB, free: 16.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/1.939, allocations: 4 kB / 1.011 GB, free: 16.67 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003946/1.943, allocations: 2.1 MB / 1.014 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.371e-05/1.943, allocations: 12 kB / 1.014 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004112/1.947, allocations: 0.6787 MB / 1.014 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001628/1.949, allocations: 363.4 kB / 1.015 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001723/1.951, allocations: 2.635 MB / 1.017 GB, free: 10.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/1.953, allocations: 139.2 kB / 1.017 GB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004534/1.953, allocations: 87.91 kB / 1.017 GB, free: 10.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007688/1.954, allocations: 225.8 kB / 1.018 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005515/1.954, allocations: 162 kB / 1.018 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004707/1.959, allocations: 2.315 MB / 1.02 GB, free: 7.832 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/1.959, allocations: 20 kB / 1.02 GB, free: 7.812 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/1.959, allocations: 0 / 1.02 GB, free: 7.812 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/1.959, allocations: 11.95 kB / 1.02 GB, free: 7.801 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006342/1.966, allocations: 3.909 MB / 1.024 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.796e-06/1.966, allocations: 0 / 1.024 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009928/1.967, allocations: 243.7 kB / 1.024 GB, free: 3.598 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003577/1.97, allocations: 0.8659 MB / 1.025 GB, free: 2.719 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002059/1.97, allocations: 39.97 kB / 1.025 GB, free: 2.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2304/2.201, allocations: 2.825 MB / 1.028 GB, free: 54.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/2.201, allocations: 5.406 kB / 1.028 GB, free: 54.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00506/2.206, allocations: 3.169 MB / 1.031 GB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005578/2.207, allocations: 260.2 kB / 1.031 GB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000271/2.207, allocations: 39 kB / 1.031 GB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009664/2.208, allocations: 112.4 kB / 1.031 GB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002615/2.208, allocations: 149.9 kB / 1.031 GB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/2.208, allocations: 59.14 kB / 1.031 GB, free: 53.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001191/2.209, allocations: 0.8855 MB / 1.032 GB, free: 53.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.11e-07/2.209, allocations: 0 / 1.032 GB, free: 53.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003651/2.213, allocations: 1.363 MB / 1.034 GB, free: 53.87 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002346/2.215, allocations: 1.208 MB / 1.035 GB, free: 53.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005257/2.221, allocations: 3.043 MB / 1.038 GB, free: 53.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/2.221, allocations: 3.812 kB / 1.038 GB, free: 53.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/2.222, allocations: 1.042 MB / 1.039 GB, free: 53.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003131/2.226, allocations: 0.6667 MB / 1.039 GB, free: 53.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00422/2.23, allocations: 2.853 MB / 1.042 GB, free: 53.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008/2.231, allocations: 1.432 MB / 1.044 GB, free: 52.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0027/2.233, allocations: 0.8241 MB / 1.044 GB, free: 52.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003352/2.234, allocations: 129 kB / 1.045 GB, free: 52.32 MB / 410.7 MB Notification: Performance of SimCode: time 6.71e-07/2.234, allocations: 0 / 1.045 GB, free: 52.32 MB / 410.7 MB Notification: Performance of Templates: time 0.06093/2.295, allocations: 47.77 MB / 1.091 GB, free: 49.54 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)