Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.2.2_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.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009039/0.0009042, allocations: 91.88 kB / 16.65 MB, free: 6.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 182 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004417/0.0004419, allocations: 12 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09521/0.09566, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02118/0.1169, allocations: 21.92 MB / 350.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01437/0.1313, allocations: 10.27 MB / 360.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00144/0.1328, allocations: 35.69 kB / 360.5 MB, free: 3.414 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.1339, allocations: 342.1 kB / 360.9 MB, free: 3.078 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003986/0.1379, allocations: 1.342 MB / 362.2 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006202/0.1441, allocations: 2.209 MB / 364.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004561/0.1487, allocations: 3.805 MB / 368.2 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000969/0.1497, allocations: 0.5692 MB / 368.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00156/0.1513, allocations: 0.8366 MB / 369.6 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001387/0.1527, allocations: 0.9732 MB / 370.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.1528, allocations: 44 kB / 370.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003558/0.1564, allocations: 1.669 MB / 372.3 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005047/0.1569, allocations: 323 kB / 372.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007317/0.1577, allocations: 0.511 MB / 373.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005341/0.163, allocations: 2.384 MB / 375.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1631, allocations: 0 / 375.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.45e-06/0.1631, allocations: 0 / 375.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.592e-05/0.1631, allocations: 3.938 kB / 375.5 MB, free: 4.355 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003227/0.1664, allocations: 1.305 MB / 376.8 MB, free: 3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.1664, allocations: 12.03 kB / 376.9 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004355/0.1669, allocations: 114.8 kB / 377 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.1682, allocations: 0.6824 MB / 377.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.361e-05/0.1682, allocations: 53.28 kB / 377.7 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.1684, allocations: 63.89 kB / 377.8 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001979/0.1703, allocations: 1.056 MB / 378.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.778e-05/0.1704, allocations: 3.938 kB / 378.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.626e-05/0.1705, allocations: 27.98 kB / 378.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001147/0.1706, allocations: 69.27 kB / 378.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1572/0.3278, allocations: 1.034 MB / 380 MB, free: 54.58 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006671/0.3345, allocations: 4.439 MB / 384.4 MB, free: 52.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000957/0.3355, allocations: 0.5699 MB / 385 MB, free: 52.08 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004797/0.336, allocations: 324.3 kB / 385.3 MB, free: 51.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002337/0.3384, allocations: 1.977 MB / 387.3 MB, free: 50.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.3384, allocations: 43.64 kB / 387.3 MB, free: 50.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.773e-06/0.3384, allocations: 1.281 kB / 387.3 MB, free: 50.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004351/0.3428, allocations: 1.96 MB / 389.3 MB, free: 49.28 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.3428, allocations: 160.4 kB / 389.4 MB, free: 49.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001281/0.3441, allocations: 0.9329 MB / 390.4 MB, free: 48.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.615e-05/0.3442, allocations: 46.58 kB / 390.4 MB, free: 48.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002917/0.3445, allocations: 492.2 kB / 390.9 MB, free: 48.26 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.3447, allocations: 163.3 kB / 391 MB, free: 48.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.3448, allocations: 75.25 kB / 391.1 MB, free: 48.1 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.331e-05/0.3448, allocations: 338.9 kB / 391.4 MB, free: 47.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005416/0.3454, allocations: 324.2 kB / 391.8 MB, free: 47.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006601/0.3461, allocations: 0.6291 MB / 392.4 MB, free: 47.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.3471, allocations: 0.8876 MB / 393.3 MB, free: 46.58 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.3471, allocations: 4.125 kB / 393.3 MB, free: 46.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001723/0.3488, allocations: 1.127 MB / 394.4 MB, free: 46.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.349, allocations: 356.4 kB / 394.8 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.349, allocations: 11.62 kB / 394.8 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002542/0.3515, allocations: 388.6 kB / 395.1 MB, free: 45.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006284/0.3522, allocations: 182.8 kB / 395.3 MB, free: 45.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000861/0.3531, allocations: 1.344 MB / 396.7 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007764/0.3539, allocations: 51.47 kB / 396.7 MB, free: 44.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-05/0.3539, allocations: 44.95 kB / 396.8 MB, free: 44.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/0.354, allocations: 5.688 kB / 396.8 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001446/0.3554, allocations: 0.9818 MB / 397.7 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.3554, allocations: 12.19 kB / 397.8 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002241/0.3577, allocations: 354.7 kB / 398.1 MB, free: 43.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005953/0.3583, allocations: 182 kB / 398.3 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007857/0.3591, allocations: 1.312 MB / 399.6 MB, free: 42.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007035/0.3598, allocations: 49.83 kB / 399.6 MB, free: 42.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.581e-05/0.3599, allocations: 48.83 kB / 399.7 MB, free: 42.34 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],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 (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005165/0.3604, allocations: 379.8 kB / 400.1 MB, free: 42.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.3606, allocations: 92.84 kB / 400.2 MB, free: 41.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001446/0.362, allocations: 0.7837 MB / 400.9 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.362, allocations: 7.938 kB / 400.9 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.362, allocations: 3.938 kB / 400.9 MB, free: 41.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3621, allocations: 3.984 kB / 401 MB, free: 41.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.3641, allocations: 1.593 MB / 402.5 MB, free: 40.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3641, allocations: 0 / 402.5 MB, free: 40.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003213/0.3644, allocations: 80.05 kB / 402.6 MB, free: 40.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001318/0.3658, allocations: 303.5 kB / 402.9 MB, free: 40.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.342e-05/0.3658, allocations: 11.97 kB / 402.9 MB, free: 40.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006408/0.3665, allocations: 1.306 MB / 404.2 MB, free: 39.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3665, allocations: 0 / 404.2 MB, free: 39.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.3677, allocations: 1.085 MB / 405.3 MB, free: 38.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001903/0.3679, allocations: 199 kB / 405.5 MB, free: 38.24 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.368, allocations: 17 kB / 405.5 MB, free: 38.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005056/0.3685, allocations: 40.38 kB / 405.6 MB, free: 38.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.991e-05/0.3687, allocations: 42.09 kB / 405.6 MB, free: 38.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.457e-05/0.3687, allocations: 22.55 kB / 405.6 MB, free: 38.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006675/0.3694, allocations: 0.6544 MB / 406.3 MB, free: 37.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3694, allocations: 0 / 406.3 MB, free: 37.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00169/0.3711, allocations: 0.7488 MB / 407 MB, free: 37.54 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * 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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001154/0.3722, allocations: 0.6146 MB / 407.7 MB, free: 37.04 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002014/0.3743, allocations: 1.276 MB / 408.9 MB, free: 35.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3743, allocations: 0.625 kB / 408.9 MB, free: 35.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004616/0.3748, allocations: 314.3 kB / 409.2 MB, free: 35.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.3765, allocations: 384.5 kB / 409.6 MB, free: 35.1 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002231/0.3788, allocations: 2.102 MB / 411.7 MB, free: 32.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.3792, allocations: 1.033 MB / 412.7 MB, free: 31.9 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.3802, allocations: 371.5 kB / 413.1 MB, free: 31.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.3804, allocations: 75.42 kB / 413.2 MB, free: 31.46 MB / 318.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3804, allocations: 4 kB / 413.2 MB, free: 31.46 MB / 318.1 MB Notification: Performance of Templates: time 0.02909/0.4095, allocations: 23.81 MB / 437 MB, free: 7.625 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)