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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00173/0.00173, allocations: 192.6 kB / 16.14 MB, free: 6.668 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.472/1.472, allocations: 205.1 MB / 222 MB, free: 4.734 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.00129/0.00129, allocations: 51.92 kB / 278.1 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2028, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02029/0.2232, allocations: 22.56 MB / 347.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.2361, allocations: 10.43 MB / 357.7 MB, free: 3.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001143/0.2373, allocations: 39.69 kB / 357.7 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009796/0.2383, allocations: 342.1 kB / 358 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00291/0.2412, allocations: 1.33 MB / 359.4 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005242/0.2465, allocations: 2.217 MB / 361.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003796/0.2503, allocations: 3.809 MB / 365.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008269/0.2512, allocations: 0.5731 MB / 366 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00141/0.2526, allocations: 0.8445 MB / 366.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001321/0.2539, allocations: 0.9732 MB / 367.8 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001465/0.2541, allocations: 48 kB / 367.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003154/0.2572, allocations: 1.681 MB / 369.5 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003524/0.2576, allocations: 323 kB / 369.8 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006298/0.2582, allocations: 497.6 kB / 370.3 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003255/0.2615, allocations: 2.404 MB / 372.7 MB, free: 3.953 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2615, allocations: 3.938 kB / 372.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.81e-07/0.2615, allocations: 0 / 372.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.2615, allocations: 0 / 372.7 MB, free: 3.949 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.003008/0.2646, allocations: 1.499 MB / 374.2 MB, free: 2.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.2646, allocations: 12.03 kB / 374.2 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003914/0.265, allocations: 110.8 kB / 374.3 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009147/0.2659, allocations: 0.6825 MB / 375 MB, free: 1.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.876e-05/0.266, allocations: 53.28 kB / 375.1 MB, free: 1.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.2661, allocations: 59.98 kB / 375.1 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.2677, allocations: 1.06 MB / 376.2 MB, free: 332 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.2677, allocations: 11.78 kB / 376.2 MB, free: 320 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.45e-05/0.2678, allocations: 27.98 kB / 376.2 MB, free: 292 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.439e-05/0.2679, allocations: 69.27 kB / 376.3 MB, free: 224 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.2694, allocations: 1.036 MB / 377.3 MB, free: 15.18 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.005972/0.2754, allocations: 4.43 MB / 381.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009395/0.2764, allocations: 0.5786 MB / 382.3 MB, free: 9.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004813/0.2769, allocations: 318 kB / 382.7 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002368/0.2792, allocations: 1.977 MB / 384.6 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.2793, allocations: 38.89 kB / 384.7 MB, free: 7.344 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.954e-06/0.2793, allocations: 0 / 384.7 MB, free: 7.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.00442/0.2837, allocations: 1.953 MB / 386.6 MB, free: 5.297 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.2838, allocations: 166.1 kB / 386.8 MB, free: 5.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.285, allocations: 0.9312 MB / 387.7 MB, free: 4.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.63e-05/0.2851, allocations: 41.7 kB / 387.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003348/0.2854, allocations: 482.8 kB / 388.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.2856, allocations: 165.7 kB / 388.4 MB, free: 3.453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/0.2858, allocations: 178.5 kB / 388.6 MB, free: 3.273 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.286, allocations: 341.9 kB / 388.9 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005349/0.2865, allocations: 332.7 kB / 389.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007292/0.2872, allocations: 0.625 MB / 389.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.2885, allocations: 0.889 MB / 390.7 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.2885, allocations: 8 kB / 390.7 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001834/0.2903, allocations: 1.125 MB / 391.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.2904, allocations: 8 kB / 391.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.2904, allocations: 8 kB / 391.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002354/0.2928, allocations: 377.3 kB / 392.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006741/0.2934, allocations: 183.7 kB / 392.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.2946, allocations: 1.339 MB / 393.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007645/0.2954, allocations: 56 kB / 393.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.768e-05/0.2954, allocations: 47.92 kB / 393.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008313/0.2963, allocations: 0.5214 MB / 394.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000783/0.2971, allocations: 0.6306 MB / 395 MB, free: 12.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001111/0.2982, allocations: 0.8675 MB / 395.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.879e-06/0.2982, allocations: 4 kB / 395.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001752/0.3, allocations: 1.089 MB / 397 MB, free: 10.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.3, allocations: 12.62 kB / 397 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.3, allocations: 8.047 kB / 397 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002153/0.3022, allocations: 341.6 kB / 397.3 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006192/0.3028, allocations: 191.5 kB / 397.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/0.3039, allocations: 1.308 MB / 398.8 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007446/0.3046, allocations: 59.84 kB / 398.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-05/0.3047, allocations: 51.92 kB / 398.9 MB, free: 8.211 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.0002887/0.305, allocations: 236.1 kB / 399.2 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.3052, allocations: 94.88 kB / 399.3 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001576/0.3067, allocations: 0.7857 MB / 400.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.3068, allocations: 8 kB / 400.1 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3068, allocations: 0 / 400.1 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3068, allocations: 3.984 kB / 400.1 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002367/0.3092, allocations: 1.587 MB / 401.7 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3092, allocations: 0 / 401.7 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003597/0.3095, allocations: 75.91 kB / 401.7 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001398/0.311, allocations: 285.5 kB / 402 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.912e-05/0.311, allocations: 20 kB / 402 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009896/0.312, allocations: 1.3 MB / 403.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.312, allocations: 3.938 kB / 403.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.3138, allocations: 1.091 MB / 404.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003309/0.3141, allocations: 164 kB / 404.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.3143, allocations: 19.91 kB / 404.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005432/0.3149, allocations: 36.03 kB / 404.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.315, allocations: 44.38 kB / 404.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.252e-05/0.315, allocations: 23.98 kB / 404.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008601/0.3159, allocations: 0.6559 MB / 405.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3159, allocations: 0 / 405.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002054/0.318, allocations: 0.7457 MB / 406.1 MB, free: 0.8359 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.001448/0.3194, allocations: 0.6146 MB / 406.7 MB, free: 220 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00258/0.322, allocations: 1.262 MB / 408 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3221, allocations: 0 / 408 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000574/0.3226, allocations: 315.9 kB / 408.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.3245, allocations: 387.2 kB / 408.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/0.3274, allocations: 2.002 MB / 410.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006959/0.3281, allocations: 1.037 MB / 411.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001219/0.3294, allocations: 376.1 kB / 412.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.3296, allocations: 75.44 kB / 412.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3296, allocations: 0 / 412.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of Templates: time 0.04093/0.3705, allocations: 24.13 MB / 436.3 MB, free: 2.555 MB / 366.1 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)