Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001444/0.001444, allocations: 179.6 kB / 16.38 MB, free: 5.762 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.184/1.184, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001655/0.001655, allocations: 107.9 kB / 256.9 MB, free: 4.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003145, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07906/0.0794, allocations: 44.5 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5337/0.6132, allocations: 317.2 MB / 0.6566 GB, free: 1.562 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.6134, allocations: 94.5 kB / 0.6566 GB, free: 1.516 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3905/1.004, allocations: 136.2 MB / 0.7897 GB, free: 55.31 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.283e-06/1.004, allocations: 0 / 0.7897 GB, free: 55.31 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.861e-05/1.004, allocations: 23.98 kB / 0.7897 GB, free: 55.29 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002152/1.006, allocations: 1.116 MB / 0.7908 GB, free: 54.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/1.006, allocations: 8.031 kB / 0.7908 GB, free: 54.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002486/1.006, allocations: 91.05 kB / 0.7909 GB, free: 54.03 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008717/1.007, allocations: 0.5754 MB / 0.7914 GB, free: 53.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/1.007, allocations: 44.98 kB / 0.7915 GB, free: 53.37 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-05/1.007, allocations: 47.98 kB / 0.7915 GB, free: 53.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009547/1.008, allocations: 0.7264 MB / 0.7922 GB, free: 52.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/1.008, allocations: 0 / 0.7922 GB, free: 52.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.14e-05/1.009, allocations: 31.94 kB / 0.7923 GB, free: 52.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.538e-05/1.009, allocations: 44.97 kB / 0.7923 GB, free: 52.49 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008317/1.009, allocations: 0.683 MB / 0.793 GB, free: 51.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003143/1.013, allocations: 2.856 MB / 0.7958 GB, free: 48.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005288/1.013, allocations: 469.2 kB / 0.7962 GB, free: 48.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001694/1.013, allocations: 345.3 kB / 0.7965 GB, free: 47.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/1.013, allocations: 42.94 kB / 0.7966 GB, free: 47.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 1.643e-06/1.013, allocations: 0 / 0.7966 GB, free: 47.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.004169/1.018, allocations: 2.269 MB / 0.7988 GB, free: 45.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.217e-05/1.018, allocations: 89.67 kB / 0.7989 GB, free: 45.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004744/1.018, allocations: 0.55 MB / 0.7994 GB, free: 44.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.677e-05/1.018, allocations: 41.7 kB / 0.7995 GB, free: 44.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/1.018, allocations: 328.4 kB / 0.7998 GB, free: 44.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/1.018, allocations: 201.1 kB / 0.8 GB, free: 44.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.332e-05/1.018, allocations: 16 kB / 0.8 GB, free: 44.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.891e-05/1.019, allocations: 382.8 kB / 0.8003 GB, free: 43.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003553/1.019, allocations: 277.8 kB / 0.8006 GB, free: 43.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/1.019, allocations: 453 kB / 0.801 GB, free: 43.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003904/1.02, allocations: 339.1 kB / 0.8014 GB, free: 42.76 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.02, allocations: 4 kB / 0.8014 GB, free: 42.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001098/1.021, allocations: 0.9187 MB / 0.8023 GB, free: 41.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002513/1.021, allocations: 1.757 MB / 0.804 GB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/1.021, allocations: 4 kB / 0.804 GB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001765/1.023, allocations: 356.5 kB / 0.8043 GB, free: 39.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005209/1.023, allocations: 151.7 kB / 0.8045 GB, free: 39.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006392/1.024, allocations: 0.8292 MB / 0.8053 GB, free: 38.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004687/1.024, allocations: 43.92 kB / 0.8053 GB, free: 38.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.295e-05/1.025, allocations: 36.05 kB / 0.8054 GB, free: 38.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.623e-06/1.025, allocations: 3.938 kB / 0.8054 GB, free: 38.48 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009597/1.026, allocations: 0.7855 MB / 0.8061 GB, free: 37.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/1.026, allocations: 4 kB / 0.8061 GB, free: 37.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/1.027, allocations: 224.7 kB / 0.8063 GB, free: 37.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005057/1.027, allocations: 163.7 kB / 0.8065 GB, free: 37.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004082/1.028, allocations: 0.7006 MB / 0.8072 GB, free: 36.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004249/1.028, allocations: 47.98 kB / 0.8072 GB, free: 36.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/1.028, allocations: 31.98 kB / 0.8073 GB, free: 36.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],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 (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002911/1.029, allocations: 316.9 kB / 0.8076 GB, free: 36.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.429e-05/1.029, allocations: 67.16 kB / 0.8076 GB, free: 36.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/1.03, allocations: 0.8463 MB / 0.8085 GB, free: 35.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/1.03, allocations: 4 kB / 0.8085 GB, free: 35.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/1.03, allocations: 4 kB / 0.8085 GB, free: 35.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/1.03, allocations: 11.94 kB / 0.8085 GB, free: 35.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002014/1.032, allocations: 1.653 MB / 0.8101 GB, free: 33.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/1.032, allocations: 0 / 0.8101 GB, free: 33.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004395/1.032, allocations: 115.8 kB / 0.8102 GB, free: 33.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001246/1.034, allocations: 340.6 kB / 0.8105 GB, free: 33.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.918e-05/1.034, allocations: 15.98 kB / 0.8105 GB, free: 33.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004882/1.034, allocations: 0.7943 MB / 0.8113 GB, free: 32.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.034, allocations: 15.94 kB / 0.8113 GB, free: 32.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/1.035, allocations: 1.251 MB / 0.8126 GB, free: 30.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/1.036, allocations: 160.1 kB / 0.8127 GB, free: 30.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.688e-05/1.036, allocations: 12.06 kB / 0.8127 GB, free: 30.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004381/1.036, allocations: 47.97 kB / 0.8128 GB, free: 30.69 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.835e-05/1.036, allocations: 52.42 kB / 0.8128 GB, free: 30.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.623e-05/1.036, allocations: 35.97 kB / 0.8128 GB, free: 30.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003461/1.037, allocations: 435 kB / 0.8133 GB, free: 30.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.037, allocations: 7.938 kB / 0.8133 GB, free: 30.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001359/1.038, allocations: 0.5854 MB / 0.8138 GB, free: 29.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008284/1.039, allocations: 0.5883 MB / 0.8144 GB, free: 29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001562/1.04, allocations: 1.126 MB / 0.8155 GB, free: 27.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.04, allocations: 0 / 0.8155 GB, free: 27.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004935/1.041, allocations: 379 kB / 0.8159 GB, free: 27.51 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/1.042, allocations: 336.9 kB / 0.8162 GB, free: 27.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/1.044, allocations: 1.844 MB / 0.818 GB, free: 25.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/1.044, allocations: 0.9832 MB / 0.819 GB, free: 24.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007325/1.045, allocations: 274.1 kB / 0.8192 GB, free: 24.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/1.045, allocations: 67.42 kB / 0.8193 GB, free: 23.96 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/1.045, allocations: 0 / 0.8193 GB, free: 23.96 MB / 410.7 MB Notification: Performance of Templates: time 0.02168/1.067, allocations: 19.4 MB / 0.8382 GB, free: 4.523 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)