Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001374/0.001374, allocations: 193.2 kB / 16.14 MB, free: 6.707 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.486/1.486, allocations: 205.1 MB / 222 MB, free: 4.793 MB / 174.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.001796/0.001797, allocations: 51.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2664, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02492/0.2913, allocations: 21.24 MB / 345.9 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.303, allocations: 7.328 MB / 353.2 MB, free: 7.484 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.3046, allocations: 31.75 kB / 353.3 MB, free: 7.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.3058, allocations: 318.2 kB / 353.6 MB, free: 7.141 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003062/0.3089, allocations: 1.031 MB / 354.6 MB, free: 6.105 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004333/0.3132, allocations: 1.559 MB / 356.2 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003455/0.3167, allocations: 3.123 MB / 359.3 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008669/0.3176, allocations: 0.5118 MB / 359.8 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001465/0.3191, allocations: 0.7082 MB / 360.5 MB, free: 180 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00115/0.3202, allocations: 0.7669 MB / 361.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.3204, allocations: 40 kB / 361.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002487/0.3229, allocations: 1.228 MB / 362.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003045/0.3232, allocations: 247.2 kB / 362.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005382/0.3237, allocations: 437.8 kB / 363.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002621/0.3264, allocations: 1.851 MB / 365.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3264, allocations: 3.938 kB / 365.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3264, allocations: 0 / 365.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.3264, allocations: 7.938 kB / 365.1 MB, free: 11.6 MB / 302.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.00304/0.3295, allocations: 1.27 MB / 366.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3295, allocations: 8.031 kB / 366.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003822/0.3299, allocations: 95.91 kB / 366.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000968/0.3309, allocations: 0.601 MB / 367.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.889e-05/0.3309, allocations: 45.3 kB / 367.1 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.777e-05/0.3311, allocations: 52 kB / 367.2 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.3325, allocations: 0.8867 MB / 368 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.3325, allocations: 4 kB / 368 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.612e-05/0.3326, allocations: 27.98 kB / 368.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.037e-05/0.3327, allocations: 45.28 kB / 368.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.3339, allocations: 0.813 MB / 368.9 MB, free: 7.613 MB / 302.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.005281/0.3392, allocations: 3.834 MB / 372.8 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009437/0.3402, allocations: 0.5392 MB / 373.3 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004368/0.3407, allocations: 274 kB / 373.6 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004245/0.3411, allocations: 0.5073 MB / 374.1 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.3411, allocations: 43 kB / 374.1 MB, free: 2.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.244e-06/0.3411, allocations: 0 / 374.1 MB, free: 2.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.00488/0.346, allocations: 2.124 MB / 376.2 MB, free: 15.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.875e-05/0.3462, allocations: 137 kB / 376.4 MB, free: 15.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009681/0.3471, allocations: 0.7309 MB / 377.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.097e-05/0.3472, allocations: 41.7 kB / 377.1 MB, free: 14.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002855/0.3475, allocations: 379.9 kB / 377.5 MB, free: 14.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.3477, allocations: 189.4 kB / 377.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.3479, allocations: 146.6 kB / 377.8 MB, free: 14.15 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.3481, allocations: 386.8 kB / 378.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005369/0.3487, allocations: 316.7 kB / 378.5 MB, free: 13.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006607/0.3493, allocations: 0.507 MB / 379 MB, free: 12.86 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.3504, allocations: 0.7777 MB / 379.8 MB, free: 12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3504, allocations: 4 kB / 379.8 MB, free: 12 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001734/0.3522, allocations: 0.9951 MB / 380.8 MB, free: 10.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3522, allocations: 8.781 kB / 380.8 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.3522, allocations: 8 kB / 380.8 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001708/0.354, allocations: 297.4 kB / 381.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005905/0.3546, allocations: 143.8 kB / 381.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.3558, allocations: 1.315 MB / 382.6 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007145/0.3566, allocations: 35.98 kB / 382.6 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.851e-05/0.3566, allocations: 44.11 kB / 382.7 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007955/0.3575, allocations: 481.9 kB / 383.1 MB, free: 8.617 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006546/0.3581, allocations: 0.5001 MB / 383.6 MB, free: 8.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001053/0.3592, allocations: 0.7591 MB / 384.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.819e-06/0.3592, allocations: 8 kB / 384.4 MB, free: 7.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001689/0.3609, allocations: 0.9447 MB / 385.3 MB, free: 6.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.3609, allocations: 8 kB / 385.3 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.3609, allocations: 11.94 kB / 385.4 MB, free: 6.195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.3621, allocations: 173.8 kB / 385.5 MB, free: 6.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006813/0.3628, allocations: 171.7 kB / 385.7 MB, free: 5.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007935/0.3636, allocations: 1.179 MB / 386.9 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006591/0.3642, allocations: 47.91 kB / 386.9 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.997e-05/0.3643, allocations: 44.11 kB / 387 MB, free: 4.531 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (85): * Single equations (assignments): 83 * 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,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003054/0.3646, allocations: 228 kB / 387.2 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.3648, allocations: 83.05 kB / 387.3 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.3668, allocations: 0.9769 MB / 388.2 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.3668, allocations: 8 kB / 388.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3668, allocations: 0 / 388.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.3668, allocations: 4.219 kB / 388.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002835/0.3696, allocations: 1.755 MB / 390 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.3697, allocations: 0 / 390 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004406/0.3701, allocations: 107.9 kB / 390.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.3713, allocations: 245.5 kB / 390.4 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.652e-05/0.3713, allocations: 19.92 kB / 390.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000928/0.3722, allocations: 1.265 MB / 391.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3723, allocations: 4.125 kB / 391.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.3742, allocations: 1.305 MB / 393 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.3745, allocations: 160.1 kB / 393.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001221/0.3746, allocations: 16 kB / 393.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/0.3751, allocations: 43.88 kB / 393.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.3753, allocations: 60.42 kB / 393.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.079e-05/0.3753, allocations: 23.98 kB / 393.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006777/0.376, allocations: 0.5146 MB / 393.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.376, allocations: 0 / 393.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001724/0.3777, allocations: 0.5857 MB / 394.3 MB, free: 12.95 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001288/0.379, allocations: 0.5208 MB / 394.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002356/0.3814, allocations: 1.207 MB / 396.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3814, allocations: 0 / 396.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006523/0.3821, allocations: 391 kB / 396.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001894/0.384, allocations: 391.6 kB / 396.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/0.3868, allocations: 1.872 MB / 398.7 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005596/0.3874, allocations: 0.9953 MB / 399.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001087/0.3885, allocations: 323 kB / 400 MB, free: 7.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.3887, allocations: 79.42 kB / 400.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3887, allocations: 0 / 400.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of Templates: time 0.03462/0.4234, allocations: 21.9 MB / 422 MB, free: 1.18 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)