Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.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.2.1_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.001535/0.001535, 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.001913/0.001913, allocations: 198.5 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.481/1.481, allocations: 205.1 MB / 222 MB, free: 5 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.001183/0.001183, allocations: 51.92 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2083, allocations: 46.62 MB / 324.7 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02165/0.23, allocations: 22.57 MB / 347.2 MB, free: 13.54 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01381/0.2438, allocations: 10.42 MB / 357.7 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001387/0.2453, allocations: 39.69 kB / 357.7 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.2466, allocations: 350.1 kB / 358 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003482/0.2501, allocations: 1.326 MB / 359.4 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006101/0.2562, allocations: 2.217 MB / 361.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004556/0.2608, allocations: 3.809 MB / 365.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001289/0.2621, allocations: 0.577 MB / 366 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001798/0.2639, allocations: 0.8367 MB / 366.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001309/0.2653, allocations: 0.9809 MB / 367.8 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.2654, allocations: 48 kB / 367.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003425/0.2689, allocations: 1.677 MB / 369.5 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003851/0.2693, allocations: 319 kB / 369.8 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006211/0.2699, allocations: 0.4897 MB / 370.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0042/0.2741, allocations: 2.408 MB / 372.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2741, allocations: 0 / 372.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.2741, allocations: 0 / 372.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.2742, allocations: 4 kB / 372.7 MB, free: 3.977 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003181/0.2773, allocations: 1.499 MB / 374.2 MB, free: 2.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.2774, allocations: 8.031 kB / 374.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004418/0.2778, allocations: 114.8 kB / 374.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.2789, allocations: 0.6747 MB / 375 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.157e-05/0.2789, allocations: 53.28 kB / 375.1 MB, free: 1.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.2791, allocations: 63.98 kB / 375.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.2807, allocations: 1.06 MB / 376.2 MB, free: 364 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.2807, allocations: 11.78 kB / 376.2 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.607e-05/0.2808, allocations: 31.98 kB / 376.2 MB, free: 320 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.453e-05/0.2809, allocations: 65.27 kB / 376.3 MB, free: 256 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.2826, allocations: 1.036 MB / 377.3 MB, free: 15.21 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.006762/0.2894, allocations: 4.43 MB / 381.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009743/0.2904, allocations: 0.5748 MB / 382.3 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00049/0.2909, allocations: 322 kB / 382.7 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002379/0.2933, allocations: 1.973 MB / 384.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.2933, allocations: 42.89 kB / 384.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.663e-06/0.2933, allocations: 3.938 kB / 384.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004502/0.2979, allocations: 1.944 MB / 386.6 MB, free: 5.328 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.988e-05/0.298, allocations: 162.2 kB / 386.8 MB, free: 5.133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.2991, allocations: 0.9351 MB / 387.7 MB, free: 4.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.647e-05/0.2992, allocations: 37.7 kB / 387.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003273/0.2995, allocations: 490.8 kB / 388.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.2997, allocations: 161.8 kB / 388.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002673/0.2999, allocations: 178.5 kB / 388.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.3001, allocations: 341.9 kB / 388.9 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005359/0.3006, allocations: 332.7 kB / 389.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008232/0.3014, allocations: 0.629 MB / 389.9 MB, free: 1.875 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.3027, allocations: 0.889 MB / 390.7 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.3028, allocations: 4 kB / 390.7 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002256/0.305, allocations: 1.128 MB / 391.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.3051, allocations: 8.156 kB / 391.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-05/0.3051, allocations: 12 kB / 391.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002566/0.3077, allocations: 369.2 kB / 392.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006796/0.3084, allocations: 179.7 kB / 392.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.3096, allocations: 1.347 MB / 393.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008446/0.3104, allocations: 56 kB / 393.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.077e-05/0.3105, allocations: 43.98 kB / 393.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008514/0.3114, allocations: 0.5175 MB / 394.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007199/0.3121, allocations: 0.6267 MB / 395 MB, free: 12.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001129/0.3133, allocations: 0.8714 MB / 395.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.33e-06/0.3133, allocations: 4 kB / 395.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001796/0.3151, allocations: 1.093 MB / 397 MB, free: 10.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.3151, allocations: 8 kB / 397 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3151, allocations: 11.94 kB / 397 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002159/0.3173, allocations: 337.8 kB / 397.3 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006222/0.3179, allocations: 183.7 kB / 397.5 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001156/0.3191, allocations: 1.316 MB / 398.8 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007672/0.3199, allocations: 51.95 kB / 398.9 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.56e-05/0.32, allocations: 51.92 kB / 398.9 MB, free: 8.254 MB / 334.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.0003214/0.3203, allocations: 247.3 kB / 399.2 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.3205, allocations: 98.81 kB / 399.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001711/0.3222, allocations: 0.7935 MB / 400.1 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.3222, allocations: 11.94 kB / 400.1 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3222, allocations: 0 / 400.1 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.3222, allocations: 0 / 400.1 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002421/0.3246, allocations: 1.583 MB / 401.7 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.3247, allocations: 4 kB / 401.7 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003674/0.325, allocations: 75.89 kB / 401.7 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001445/0.3265, allocations: 285.4 kB / 402 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.063e-05/0.3265, allocations: 12 kB / 402 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.3276, allocations: 1.304 MB / 403.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3276, allocations: 4 kB / 403.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001569/0.3292, allocations: 1.084 MB / 404.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002416/0.3294, allocations: 168 kB / 404.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.3296, allocations: 19.89 kB / 404.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005223/0.3301, allocations: 36.03 kB / 404.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.3302, allocations: 48.31 kB / 404.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.401e-05/0.3303, allocations: 23.98 kB / 404.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008696/0.3312, allocations: 0.652 MB / 405.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3312, allocations: 4 kB / 405.4 MB, free: 1.609 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002226/0.3334, allocations: 0.7457 MB / 406.1 MB, free: 0.8633 MB / 334.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.001556/0.335, allocations: 0.6106 MB / 406.7 MB, free: 252 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002603/0.3376, allocations: 1.265 MB / 408 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3376, allocations: 1.75 kB / 408 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005771/0.3382, allocations: 314.3 kB / 408.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/0.3401, allocations: 383.2 kB / 408.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.3433, allocations: 2.01 MB / 410.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/0.344, allocations: 1.033 MB / 411.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00127/0.3452, allocations: 372.2 kB / 412.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002137/0.3455, allocations: 75.42 kB / 412.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3455, allocations: 0 / 412.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of Templates: time 0.03671/0.3822, allocations: 24.13 MB / 436.3 MB, free: 2.578 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)