Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001409/0.001409, allocations: 171.3 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.276/1.276, allocations: 170.6 MB / 178.7 MB, free: 15.66 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001739/0.001739, allocations: 103.5 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.571e-05/1.573e-05, allocations: 4 kB / 262.2 MB, free: 26.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06729/0.06732, allocations: 38.77 MB / 301 MB, free: 3.621 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8362/0.9036, allocations: 313.6 MB / 0.6002 GB, free: 124.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.9039, allocations: 88.38 kB / 0.6003 GB, free: 124.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.903/1.807, allocations: 277.3 MB / 0.8711 GB, free: 35.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.807, allocations: 3.812 kB / 0.8711 GB, free: 35.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000118/1.807, allocations: 36.84 kB / 0.8712 GB, free: 35.38 MB / 346.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.004594/1.812, allocations: 1.782 MB / 0.8729 GB, free: 34.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/1.812, allocations: 9.531 kB / 0.8729 GB, free: 34.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005618/1.812, allocations: 174.9 kB / 0.8731 GB, free: 34.53 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002054/1.814, allocations: 1.084 MB / 0.8742 GB, free: 34.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.094e-05/1.814, allocations: 41.2 kB / 0.8742 GB, free: 34.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/1.815, allocations: 57.78 kB / 0.8742 GB, free: 34.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00196/1.817, allocations: 1.429 MB / 0.8756 GB, free: 34.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/1.819, allocations: 1.468 MB / 0.8771 GB, free: 33.99 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/1.819, allocations: 1.219 kB / 0.8771 GB, free: 33.99 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/1.819, allocations: 3.75 kB / 0.8771 GB, free: 33.99 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000113/1.819, allocations: 105.3 kB / 0.8772 GB, free: 33.99 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008181/1.827, allocations: 6.313 MB / 0.8833 GB, free: 31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/1.828, allocations: 0.8473 MB / 0.8842 GB, free: 30.97 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005945/1.829, allocations: 0.5105 MB / 0.8847 GB, free: 30.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003155/1.832, allocations: 2.763 MB / 0.8874 GB, free: 29.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/1.832, allocations: 49.28 kB / 0.8874 GB, free: 29.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=80): time 2.254e-06/1.832, allocations: 0 / 0.8874 GB, free: 29.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.008721/1.841, allocations: 3.095 MB / 0.8904 GB, free: 28.9 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/1.841, allocations: 188.3 kB / 0.8906 GB, free: 28.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/1.842, allocations: 0.8558 MB / 0.8915 GB, free: 28.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.712e-05/1.842, allocations: 28.17 kB / 0.8915 GB, free: 28.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004081/1.842, allocations: 0.6748 MB / 0.8921 GB, free: 28.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002076/1.843, allocations: 313.1 kB / 0.8924 GB, free: 27.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.611e-05/1.843, allocations: 0 / 0.8924 GB, free: 27.96 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.554e-05/1.843, allocations: 370.2 kB / 0.8928 GB, free: 27.65 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00067/1.843, allocations: 0.5159 MB / 0.8933 GB, free: 27.65 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008414/1.844, allocations: 0.9883 MB / 0.8943 GB, free: 27.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00897/1.853, allocations: 2.168 MB / 0.8964 GB, free: 27.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.042e-05/1.853, allocations: 3.5 kB / 0.8964 GB, free: 27.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.01132/1.865, allocations: 3.241 MB / 0.8995 GB, free: 26.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001324/1.866, allocations: 5.576 MB / 0.905 GB, free: 21.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/1.866, allocations: 17.22 kB / 0.905 GB, free: 21.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009628/1.867, allocations: 326.1 kB / 0.9053 GB, free: 21.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/1.868, allocations: 296.5 kB / 0.9056 GB, free: 21.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003077/1.871, allocations: 2.436 MB / 0.908 GB, free: 19.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/1.872, allocations: 81.58 kB / 0.9081 GB, free: 19.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/1.873, allocations: 76 kB / 0.9081 GB, free: 19.52 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/1.873, allocations: 3.688 kB / 0.9081 GB, free: 19.52 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01017/1.883, allocations: 2.951 MB / 0.911 GB, free: 19.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/1.883, allocations: 14.31 kB / 0.911 GB, free: 19.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007801/1.884, allocations: 259.7 kB / 0.9113 GB, free: 19.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009424/1.885, allocations: 304.5 kB / 0.9116 GB, free: 19.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002247/1.887, allocations: 2.19 MB / 0.9137 GB, free: 17.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/1.888, allocations: 74.73 kB / 0.9138 GB, free: 17.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/1.888, allocations: 70.02 kB / 0.9138 GB, free: 17.88 MB / 346.7 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.0003371/1.888, allocations: 168.2 kB / 0.914 GB, free: 17.76 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/1.889, allocations: 122.1 kB / 0.9141 GB, free: 17.7 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003417/1.892, allocations: 1.527 MB / 0.9156 GB, free: 17.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/1.892, allocations: 11.69 kB / 0.9156 GB, free: 17.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/1.892, allocations: 0 / 0.9156 GB, free: 17.57 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/1.892, allocations: 10.44 kB / 0.9156 GB, free: 17.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00447/1.897, allocations: 2.659 MB / 0.9182 GB, free: 17.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/1.897, allocations: 3.688 kB / 0.9182 GB, free: 17.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000628/1.897, allocations: 153.1 kB / 0.9184 GB, free: 17.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009039/1.898, allocations: 317.9 kB / 0.9187 GB, free: 17.17 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.319e-05/1.898, allocations: 15.75 kB / 0.9187 GB, free: 17.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002527/1.901, allocations: 2.255 MB / 0.9209 GB, free: 31.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/1.901, allocations: 7.828 kB / 0.9209 GB, free: 31.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003311/1.904, allocations: 2.125 MB / 0.923 GB, free: 31.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003013/1.904, allocations: 214.6 kB / 0.9232 GB, free: 31.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/1.905, allocations: 12.23 kB / 0.9232 GB, free: 31.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007119/1.905, allocations: 52.75 kB / 0.9233 GB, free: 31.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/1.905, allocations: 98.55 kB / 0.9233 GB, free: 31.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.997e-05/1.906, allocations: 37.12 kB / 0.9234 GB, free: 31.06 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007185/1.906, allocations: 0.6274 MB / 0.924 GB, free: 30.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.906, allocations: 0 / 0.924 GB, free: 30.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0029/1.909, allocations: 1.108 MB / 0.9251 GB, free: 30.75 MB / 362.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]) * 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.002167/1.911, allocations: 1.088 MB / 0.9261 GB, free: 30.44 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003192/1.915, allocations: 2.091 MB / 0.9282 GB, free: 30.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/1.915, allocations: 9.531 kB / 0.9282 GB, free: 30.4 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/1.916, allocations: 0.6426 MB / 0.9288 GB, free: 30.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/1.918, allocations: 462.1 kB / 0.9293 GB, free: 30.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00357/1.922, allocations: 2.117 MB / 0.9313 GB, free: 29.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007574/1.922, allocations: 1.284 MB / 0.9326 GB, free: 29.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001949/1.924, allocations: 0.5845 MB / 0.9331 GB, free: 29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/1.925, allocations: 89.45 kB / 0.9332 GB, free: 29 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/1.925, allocations: 0 / 0.9332 GB, free: 29 MB / 362.7 MB Notification: Performance of Templates: time 0.0441/1.969, allocations: 33.79 MB / 0.9662 GB, free: 17.93 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)