Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9337/0.9337, allocations: 110.9 MB / 125.9 MB, free: 6.203 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002503/0.002503, allocations: 142.2 kB / 151.9 MB, free: 4.98 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002776/0.0002776, allocations: 8 kB / 184.9 MB, free: 3.898 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.1777, allocations: 25.15 MB / 210.1 MB, free: 29.7 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4874/0.6652, allocations: 238.4 MB / 448.4 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/0.6655, allocations: 73.33 kB / 448.5 MB, free: 22.69 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6366/1.302, allocations: 177.7 MB / 0.6115 GB, free: 29.52 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.964e-06/1.302, allocations: 0 / 0.6115 GB, free: 29.52 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.499e-05/1.302, allocations: 26.05 kB / 0.6115 GB, free: 29.5 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.003005/1.305, allocations: 1.341 MB / 0.6128 GB, free: 28.13 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/1.305, allocations: 16.02 kB / 0.6129 GB, free: 28.11 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/1.306, allocations: 98.78 kB / 0.6129 GB, free: 28.02 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001265/1.307, allocations: 0.7478 MB / 0.6137 GB, free: 27.24 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.649e-05/1.307, allocations: 53.05 kB / 0.6137 GB, free: 27.19 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-05/1.307, allocations: 56.34 kB / 0.6138 GB, free: 27.14 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/1.308, allocations: 0.9834 MB / 0.6147 GB, free: 26.11 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/1.308, allocations: 4 kB / 0.6147 GB, free: 26.11 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.3e-05/1.308, allocations: 27.44 kB / 0.6148 GB, free: 26.09 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.153e-05/1.309, allocations: 65.2 kB / 0.6148 GB, free: 26.03 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/1.31, allocations: 0.9184 MB / 0.6157 GB, free: 25.11 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004649/1.314, allocations: 4.394 MB / 0.62 GB, free: 20.46 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007549/1.315, allocations: 0.5354 MB / 0.6205 GB, free: 19.92 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001876/1.317, allocations: 1.919 MB / 0.6224 GB, free: 17.79 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/1.317, allocations: 42.52 kB / 0.6225 GB, free: 17.74 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 2.194e-06/1.317, allocations: 0 / 0.6225 GB, free: 17.74 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.003545/1.321, allocations: 1.834 MB / 0.6243 GB, free: 15.82 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/1.321, allocations: 166.1 kB / 0.6244 GB, free: 15.62 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000728/1.322, allocations: 0.6954 MB / 0.6251 GB, free: 14.91 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.497e-05/1.322, allocations: 37.7 kB / 0.6251 GB, free: 14.87 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/1.322, allocations: 482.4 kB / 0.6256 GB, free: 14.4 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/1.322, allocations: 167.1 kB / 0.6257 GB, free: 14.24 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/1.322, allocations: 23.94 kB / 0.6258 GB, free: 14.21 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001041/1.322, allocations: 402.7 kB / 0.6262 GB, free: 13.81 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/1.322, allocations: 269.8 kB / 0.6264 GB, free: 13.55 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004827/1.323, allocations: 0.6248 MB / 0.627 GB, free: 12.75 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004516/1.323, allocations: 375 kB / 0.6274 GB, free: 12.39 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/1.323, allocations: 4 kB / 0.6274 GB, free: 12.38 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001381/1.325, allocations: 1.039 MB / 0.6284 GB, free: 11.33 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/1.325, allocations: 12 kB / 0.6284 GB, free: 11.32 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/1.325, allocations: 12.09 kB / 0.6284 GB, free: 11.31 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001882/1.327, allocations: 320.9 kB / 0.6287 GB, free: 10.99 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005605/1.327, allocations: 175.7 kB / 0.6289 GB, free: 10.82 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008279/1.328, allocations: 1.304 MB / 0.6302 GB, free: 9.465 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007431/1.329, allocations: 71.95 kB / 0.6302 GB, free: 9.395 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.246e-05/1.329, allocations: 40 kB / 0.6303 GB, free: 9.355 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004553/1.329, allocations: 304.9 kB / 0.6306 GB, free: 9.051 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/1.33, allocations: 82.97 kB / 0.6306 GB, free: 8.969 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/1.331, allocations: 0.7644 MB / 0.6314 GB, free: 8.188 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/1.331, allocations: 7.938 kB / 0.6314 GB, free: 8.18 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/1.331, allocations: 0 / 0.6314 GB, free: 8.18 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/1.331, allocations: 11.92 kB / 0.6314 GB, free: 8.172 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001972/1.333, allocations: 1.499 MB / 0.6329 GB, free: 6.613 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/1.333, allocations: 4.062 kB / 0.6329 GB, free: 6.609 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000345/1.333, allocations: 75.89 kB / 0.6329 GB, free: 6.535 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/1.335, allocations: 282.9 kB / 0.6332 GB, free: 6.254 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.775e-05/1.335, allocations: 12 kB / 0.6332 GB, free: 6.242 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006449/1.335, allocations: 1.293 MB / 0.6345 GB, free: 4.902 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/1.335, allocations: 0 / 0.6345 GB, free: 4.902 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/1.337, allocations: 1.068 MB / 0.6355 GB, free: 3.789 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002084/1.337, allocations: 171.9 kB / 0.6357 GB, free: 3.602 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/1.337, allocations: 15.98 kB / 0.6357 GB, free: 3.586 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004497/1.337, allocations: 39.56 kB / 0.6358 GB, free: 3.551 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.274e-05/1.337, allocations: 52.3 kB / 0.6358 GB, free: 3.5 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/1.337, allocations: 23.94 kB / 0.6358 GB, free: 3.477 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.000539/1.338, allocations: 0.5341 MB / 0.6363 GB, free: 2.949 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.338, allocations: 3.938 kB / 0.6363 GB, free: 2.945 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001561/1.34, allocations: 0.5229 MB / 0.6369 GB, free: 2.422 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001186/1.341, allocations: 0.6861 MB / 0.6375 GB, free: 1.801 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001138/1.342, allocations: 0.7039 MB / 0.6382 GB, free: 1.098 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/1.342, allocations: 3.938 kB / 0.6382 GB, free: 1.094 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004621/1.342, allocations: 310.9 kB / 0.6385 GB, free: 0.793 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/1.344, allocations: 352.8 kB / 0.6389 GB, free: 472 kB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/1.347, allocations: 2.03 MB / 0.6408 GB, free: 14.4 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000624/1.347, allocations: 1.041 MB / 0.6419 GB, free: 13.33 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0007809/1.348, allocations: 241.4 kB / 0.6421 GB, free: 13.11 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/1.348, allocations: 67.42 kB / 0.6421 GB, free: 13.04 MB / 250.7 MB Notification: Performance of SimCode: time 7.01e-07/1.348, allocations: 0 / 0.6421 GB, free: 13.04 MB / 250.7 MB Notification: Performance of Templates: time 0.138/1.486, allocations: 19.37 MB / 0.6611 GB, free: 40.14 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)