Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001413/0.001413, allocations: 164.4 kB / 7.635 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.295/1.295, allocations: 170.7 MB / 178.7 MB, free: 15.57 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.001614/0.001614, allocations: 107.5 kB / 218 MB, free: 8.348 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.608e-05/1.61e-05, allocations: 4 kB / 262.2 MB, free: 26.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06783/0.06786, allocations: 38.78 MB / 301 MB, free: 3.625 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8258/0.8937, allocations: 316.2 MB / 0.6028 GB, free: 123.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.894, allocations: 91 kB / 0.6029 GB, free: 123.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.031/1.925, allocations: 319.6 MB / 0.915 GB, free: 31.99 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.362e-06/1.925, allocations: 0 / 0.915 GB, free: 31.99 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001944/1.925, allocations: 47.14 kB / 0.915 GB, free: 31.98 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005471/1.93, allocations: 2.04 MB / 0.917 GB, free: 31.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/1.931, allocations: 11.53 kB / 0.917 GB, free: 31.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/1.932, allocations: 205.2 kB / 0.9172 GB, free: 30.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00309/1.935, allocations: 1.251 MB / 0.9184 GB, free: 30.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.108e-05/1.935, allocations: 43.25 kB / 0.9185 GB, free: 30.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004097/1.935, allocations: 74.23 kB / 0.9185 GB, free: 30.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003027/1.938, allocations: 1.747 MB / 0.9202 GB, free: 30.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003336/1.942, allocations: 1.749 MB / 0.9219 GB, free: 30.28 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.725e-05/1.942, allocations: 3.031 kB / 0.922 GB, free: 30.28 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002221/1.942, allocations: 3.219 kB / 0.922 GB, free: 30.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001899/1.942, allocations: 122.8 kB / 0.9221 GB, free: 30.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/1.956, allocations: 7.357 MB / 0.9293 GB, free: 26.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00198/1.958, allocations: 1.111 MB / 0.9303 GB, free: 26.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/1.959, allocations: 0.6922 MB / 0.931 GB, free: 26.78 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005935/1.965, allocations: 3.308 MB / 0.9342 GB, free: 24.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/1.965, allocations: 52.69 kB / 0.9343 GB, free: 24.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=119): time 3.987e-06/1.965, allocations: 3.844 kB / 0.9343 GB, free: 24.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.01797/1.983, allocations: 4.623 MB / 0.9388 GB, free: 22.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/1.983, allocations: 168.2 kB / 0.939 GB, free: 22.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/1.985, allocations: 0.9333 MB / 0.9399 GB, free: 22.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001265/1.985, allocations: 32.83 kB / 0.9399 GB, free: 22.31 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000454/1.985, allocations: 0.7269 MB / 0.9406 GB, free: 21.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002862/1.986, allocations: 464.2 kB / 0.9411 GB, free: 21.38 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.937e-05/1.986, allocations: 6.25 kB / 0.9411 GB, free: 21.38 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.669e-05/1.986, allocations: 369 kB / 0.9414 GB, free: 21.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008924/1.987, allocations: 0.7079 MB / 0.9421 GB, free: 20.78 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/1.988, allocations: 1.154 MB / 0.9432 GB, free: 19.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/1.998, allocations: 2.513 MB / 0.9457 GB, free: 19.49 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/1.998, allocations: 2.344 kB / 0.9457 GB, free: 19.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.01244/2.01, allocations: 3.909 MB / 0.9495 GB, free: 18.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007543/2.011, allocations: 5.162 MB / 0.9546 GB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/2.011, allocations: 14.94 kB / 0.9546 GB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/2.012, allocations: 451.8 kB / 0.955 GB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/2.014, allocations: 357.3 kB / 0.9553 GB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003941/2.018, allocations: 3.281 MB / 0.9586 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/2.019, allocations: 107.6 kB / 0.9587 GB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001797/2.019, allocations: 78.78 kB / 0.9587 GB, free: 10.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/2.019, allocations: 7.844 kB / 0.9587 GB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01169/2.031, allocations: 3.54 MB / 0.9622 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/2.031, allocations: 16.78 kB / 0.9622 GB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009858/2.032, allocations: 331.2 kB / 0.9625 GB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/2.033, allocations: 370.7 kB / 0.9629 GB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003351/2.037, allocations: 2.935 MB / 0.9657 GB, free: 20.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/2.038, allocations: 98.78 kB / 0.9658 GB, free: 20.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001941/2.038, allocations: 83.12 kB / 0.9659 GB, free: 20.09 MB / 362.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.0004261/2.039, allocations: 166.1 kB / 0.9661 GB, free: 19.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003128/2.039, allocations: 161 kB / 0.9662 GB, free: 19.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005162/2.044, allocations: 2.313 MB / 0.9685 GB, free: 17.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/2.044, allocations: 16 kB / 0.9685 GB, free: 17.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/2.044, allocations: 4 kB / 0.9685 GB, free: 17.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/2.044, allocations: 10.92 kB / 0.9685 GB, free: 17.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006887/2.051, allocations: 3.813 MB / 0.9722 GB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/2.051, allocations: 4 kB / 0.9722 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/2.052, allocations: 243 kB / 0.9725 GB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001273/2.054, allocations: 450.5 kB / 0.9729 GB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/2.054, allocations: 31.59 kB / 0.9729 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003578/2.057, allocations: 3.032 MB / 0.9759 GB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/2.057, allocations: 2.375 kB / 0.9759 GB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005833/2.063, allocations: 3.195 MB / 0.979 GB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000442/2.064, allocations: 243.1 kB / 0.9793 GB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002921/2.064, allocations: 11.98 kB / 0.9793 GB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/2.065, allocations: 83.72 kB / 0.9793 GB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002589/2.065, allocations: 145.1 kB / 0.9795 GB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/2.065, allocations: 59.97 kB / 0.9795 GB, free: 7.332 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009255/2.066, allocations: 0.6843 MB / 0.9802 GB, free: 6.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/2.066, allocations: 0.6562 kB / 0.9802 GB, free: 6.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003641/2.07, allocations: 1.263 MB / 0.9814 GB, free: 5.383 MB / 362.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.002736/2.073, allocations: 1.212 MB / 0.9826 GB, free: 4.273 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004893/2.078, allocations: 2.866 MB / 0.9854 GB, free: 1.414 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/2.078, allocations: 4 kB / 0.9854 GB, free: 1.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/2.079, allocations: 1.018 MB / 0.9864 GB, free: 408 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.182/2.261, allocations: 0.604 MB / 0.987 GB, free: 44.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005055/2.267, allocations: 2.729 MB / 0.9897 GB, free: 44.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000982/2.268, allocations: 1.442 MB / 0.9911 GB, free: 43.67 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002847/2.27, allocations: 0.7474 MB / 0.9918 GB, free: 43.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000368/2.271, allocations: 127.8 kB / 0.9919 GB, free: 43.65 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/2.271, allocations: 1.75 kB / 0.9919 GB, free: 43.65 MB / 362.7 MB Notification: Performance of Templates: time 0.05463/2.325, allocations: 43.07 MB / 1.034 GB, free: 40.94 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)