Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001532/0.001532, allocations: 187.8 kB / 8.351 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.451/1.451, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00178/0.00178, allocations: 118.8 kB / 248.1 MB, free: 6.34 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.846e-05/1.84e-05, allocations: 4 kB / 298.1 MB, free: 8.242 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0995/0.09953, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7176/0.8172, allocations: 323 MB / 0.65 GB, free: 5.062 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.8175, allocations: 90.08 kB / 0.65 GB, free: 5.016 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.525/1.343, allocations: 163.6 MB / 0.8098 GB, free: 4.164 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.433e-06/1.343, allocations: 4 kB / 0.8098 GB, free: 4.16 MB / 395.1 MB Notification: Performance of Transformations before backend: time 5.71e-05/1.343, allocations: 23.98 kB / 0.8098 GB, free: 4.137 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002214/1.345, allocations: 1.114 MB / 0.8109 GB, free: 2.977 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/1.345, allocations: 8.031 kB / 0.8109 GB, free: 2.969 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003305/1.345, allocations: 102.2 kB / 0.811 GB, free: 2.871 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/1.346, allocations: 0.6595 MB / 0.8116 GB, free: 2.168 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/1.346, allocations: 20 kB / 0.8117 GB, free: 2.148 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.068e-05/1.347, allocations: 40 kB / 0.8117 GB, free: 2.109 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009525/1.348, allocations: 0.6976 MB / 0.8124 GB, free: 1.414 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009619/1.349, allocations: 0.7812 MB / 0.8131 GB, free: 0.5742 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/1.349, allocations: 7.891 kB / 0.8131 GB, free: 0.5664 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.956e-05/1.349, allocations: 4 kB / 0.8131 GB, free: 0.5625 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-05/1.349, allocations: 45.28 kB / 0.8132 GB, free: 0.5195 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2184/1.567, allocations: 3.707 MB / 0.8168 GB, free: 63.53 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007519/1.568, allocations: 460.5 kB / 0.8172 GB, free: 63.51 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003295/1.568, allocations: 228 kB / 0.8175 GB, free: 63.5 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002511/1.571, allocations: 1.945 MB / 0.8194 GB, free: 62.27 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/1.571, allocations: 38.38 kB / 0.8194 GB, free: 62.23 MB / 395.1 MB Notification: Performance of pre-optimization done (n=37): time 2.154e-06/1.571, allocations: 0 / 0.8194 GB, free: 62.23 MB / 395.1 MB Notification: Performance of matching and sorting (n=42): time 0.006249/1.577, allocations: 1.687 MB / 0.821 GB, free: 61.84 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/1.577, allocations: 138.8 kB / 0.8212 GB, free: 61.68 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007827/1.578, allocations: 0.516 MB / 0.8217 GB, free: 61.55 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 9.008e-05/1.578, allocations: 32.62 kB / 0.8217 GB, free: 61.52 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003676/1.578, allocations: 433.7 kB / 0.8221 GB, free: 61.32 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/1.579, allocations: 146.8 kB / 0.8223 GB, free: 61.25 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.003e-05/1.579, allocations: 3.781 kB / 0.8223 GB, free: 61.25 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/1.579, allocations: 380.6 kB / 0.8226 GB, free: 60.93 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003369/1.579, allocations: 223.3 kB / 0.8228 GB, free: 60.93 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/1.58, allocations: 0.5354 MB / 0.8234 GB, free: 60.55 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003988/1.584, allocations: 0.9212 MB / 0.8243 GB, free: 60.55 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/1.584, allocations: 3.094 kB / 0.8243 GB, free: 60.55 MB / 395.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004738/1.588, allocations: 1.419 MB / 0.8257 GB, free: 60.46 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007669/1.589, allocations: 3.919 MB / 0.8295 GB, free: 56.38 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/1.589, allocations: 10.69 kB / 0.8295 GB, free: 56.38 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00022/1.589, allocations: 59.16 kB / 0.8296 GB, free: 56.38 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/1.591, allocations: 239.7 kB / 0.8298 GB, free: 56.38 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/1.592, allocations: 1.29 MB / 0.831 GB, free: 55.27 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007685/1.592, allocations: 51.73 kB / 0.8311 GB, free: 55.27 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.053e-05/1.592, allocations: 37.41 kB / 0.8311 GB, free: 55.27 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/1.592, allocations: 5.781 kB / 0.8311 GB, free: 55.27 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004371/1.597, allocations: 1.284 MB / 0.8324 GB, free: 55.24 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/1.597, allocations: 17.59 kB / 0.8324 GB, free: 55.24 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001387/1.597, allocations: 58.33 kB / 0.8325 GB, free: 55.23 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008168/1.598, allocations: 226.5 kB / 0.8327 GB, free: 55.23 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005819/1.598, allocations: 0.6411 MB / 0.8333 GB, free: 54.71 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006806/1.599, allocations: 47.47 kB / 0.8333 GB, free: 54.71 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.315e-05/1.599, allocations: 38.72 kB / 0.8334 GB, free: 54.71 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002163/1.599, allocations: 142.6 kB / 0.8335 GB, free: 54.6 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/1.6, allocations: 70.31 kB / 0.8336 GB, free: 54.57 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/1.602, allocations: 0.7809 MB / 0.8343 GB, free: 54.49 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/1.602, allocations: 9.516 kB / 0.8344 GB, free: 54.49 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/1.602, allocations: 3.625 kB / 0.8344 GB, free: 54.49 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.545e-06/1.602, allocations: 3.047 kB / 0.8344 GB, free: 54.49 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/1.604, allocations: 1.385 MB / 0.8357 GB, free: 54.17 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/1.604, allocations: 0 / 0.8357 GB, free: 54.17 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006452/1.605, allocations: 150.4 kB / 0.8359 GB, free: 54.17 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001483/1.605, allocations: 44.42 kB / 0.8359 GB, free: 54.16 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.001e-05/1.605, allocations: 9.484 kB / 0.8359 GB, free: 54.16 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007259/1.606, allocations: 1.217 MB / 0.8371 GB, free: 53.06 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/1.606, allocations: 1.172 kB / 0.8371 GB, free: 53.06 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/1.608, allocations: 1.048 MB / 0.8381 GB, free: 52.79 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002228/1.608, allocations: 147 kB / 0.8383 GB, free: 52.66 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001645/1.608, allocations: 17.88 kB / 0.8383 GB, free: 52.65 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004884/1.609, allocations: 21.45 kB / 0.8383 GB, free: 52.65 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/1.609, allocations: 53.81 kB / 0.8384 GB, free: 52.65 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/1.609, allocations: 22.97 kB / 0.8384 GB, free: 52.65 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0004926/1.609, allocations: 395.2 kB / 0.8388 GB, free: 52.56 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.609, allocations: 0 / 0.8388 GB, free: 52.56 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002413/1.612, allocations: 0.5899 MB / 0.8393 GB, free: 52.56 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002063/1.614, allocations: 0.6531 MB / 0.84 GB, free: 52.47 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002206/1.616, allocations: 1.016 MB / 0.841 GB, free: 52.45 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/1.616, allocations: 0 / 0.841 GB, free: 52.45 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006159/1.617, allocations: 319.7 kB / 0.8413 GB, free: 52.45 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/1.618, allocations: 258.4 kB / 0.8415 GB, free: 52.45 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/1.62, allocations: 1.117 MB / 0.8426 GB, free: 52.16 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/1.621, allocations: 1 MB / 0.8436 GB, free: 51.45 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.001263/1.622, allocations: 347.5 kB / 0.8439 GB, free: 51.44 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002446/1.622, allocations: 72.12 kB / 0.844 GB, free: 51.43 MB / 395.1 MB Notification: Performance of SimCode: time 1.132e-06/1.622, allocations: 2.438 kB / 0.844 GB, free: 51.43 MB / 395.1 MB Notification: Performance of Templates: time 0.0355/1.658, allocations: 17.17 MB / 0.8607 GB, free: 50.64 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)