Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00882/0.00882, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.522/1.522, allocations: 205.4 MB / 222.5 MB, free: 5.797 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.0009052/0.0009051, allocations: 19.98 kB / 279.5 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.268, allocations: 47.57 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03381/0.3018, allocations: 31.5 MB / 358.5 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02181/0.3237, allocations: 14.71 MB / 373.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002466/0.3262, allocations: 59.5 kB / 373.3 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002235/0.3285, allocations: 0.4934 MB / 373.8 MB, free: 4.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006682/0.3352, allocations: 2.05 MB / 375.8 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008442/0.3436, allocations: 3.122 MB / 379 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006674/0.3503, allocations: 5.945 MB / 384.9 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001531/0.3519, allocations: 0.8607 MB / 385.8 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002298/0.3542, allocations: 1.257 MB / 387 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002193/0.3564, allocations: 1.51 MB / 388.5 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002115/0.3566, allocations: 72 kB / 388.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004246/0.3609, allocations: 2.266 MB / 390.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006006/0.3615, allocations: 486.5 kB / 391.3 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009609/0.3625, allocations: 0.7714 MB / 392.1 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005311/0.3678, allocations: 3.482 MB / 395.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3678, allocations: 0 / 395.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3678, allocations: 0 / 395.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.754e-05/0.3679, allocations: 4 kB / 395.6 MB, free: 14.63 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004063/0.3719, allocations: 1.83 MB / 397.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.372, allocations: 8.031 kB / 397.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000554/0.3725, allocations: 170.2 kB / 397.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001533/0.3741, allocations: 0.9482 MB / 398.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.25e-05/0.3742, allocations: 85.95 kB / 398.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/0.3744, allocations: 99.88 kB / 398.7 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002774/0.3772, allocations: 1.632 MB / 400.4 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.226e-05/0.3772, allocations: 4 kB / 400.4 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.3773, allocations: 39.97 kB / 400.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001338/0.3775, allocations: 101.9 kB / 400.5 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002625/0.3801, allocations: 1.647 MB / 402.2 MB, free: 7.895 MB / 334.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.01006/0.3902, allocations: 6.664 MB / 408.8 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.3917, allocations: 0.9231 MB / 409.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008065/0.3925, allocations: 0.5619 MB / 410.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003902/0.3964, allocations: 2.82 MB / 413.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.3965, allocations: 55.09 kB / 413.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.855e-06/0.3965, allocations: 4 kB / 413.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.008452/0.405, allocations: 3.723 MB / 416.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.4051, allocations: 192.9 kB / 417.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/0.4068, allocations: 1.302 MB / 418.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.4069, allocations: 49.7 kB / 418.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005053/0.4074, allocations: 0.6471 MB / 419.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002793/0.4077, allocations: 327.4 kB / 419.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.4079, allocations: 117.7 kB / 419.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.888e-05/0.408, allocations: 309.1 kB / 419.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009295/0.409, allocations: 0.5817 MB / 420.4 MB, free: 4.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001236/0.4102, allocations: 0.9967 MB / 421.4 MB, free: 3.598 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00198/0.4122, allocations: 1.488 MB / 422.9 MB, free: 1.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.4122, allocations: 4 kB / 422.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003185/0.4154, allocations: 1.9 MB / 424.8 MB, free: 24 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002991/0.4157, allocations: 438.3 kB / 425.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.4158, allocations: 12 kB / 425.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005128/0.4209, allocations: 0.8022 MB / 426 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.4221, allocations: 283.5 kB / 426.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.4241, allocations: 2.164 MB / 428.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001299/0.4254, allocations: 96.12 kB / 428.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.4255, allocations: 67.98 kB / 428.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.4256, allocations: 4 kB / 428.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002783/0.4283, allocations: 1.658 MB / 430.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.4284, allocations: 12 kB / 430.3 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004337/0.4327, allocations: 0.6271 MB / 430.9 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.4338, allocations: 291.6 kB / 431.2 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.4354, allocations: 2.016 MB / 433.3 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.4366, allocations: 96.02 kB / 433.3 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.4368, allocations: 67.92 kB / 433.4 MB, free: 7.066 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007566/0.4375, allocations: 476.4 kB / 433.9 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/0.4378, allocations: 146.2 kB / 434 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002887/0.4407, allocations: 1.522 MB / 435.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.4407, allocations: 12 kB / 435.6 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.4407, allocations: 0 / 435.6 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.4407, allocations: 3.984 kB / 435.6 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004506/0.4453, allocations: 2.815 MB / 438.4 MB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.4453, allocations: 4 kB / 438.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000688/0.446, allocations: 151.8 kB / 438.5 MB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002985/0.449, allocations: 0.6504 MB / 439.2 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-05/0.4491, allocations: 20 kB / 439.2 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/0.4509, allocations: 2.114 MB / 441.3 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.4509, allocations: 0 / 441.3 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003205/0.4541, allocations: 2.098 MB / 443.4 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005116/0.4547, allocations: 251.3 kB / 443.6 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001934/0.4549, allocations: 27.98 kB / 443.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008263/0.4557, allocations: 79.78 kB / 443.8 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001836/0.4559, allocations: 96.75 kB / 443.8 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.365e-05/0.456, allocations: 43.97 kB / 443.9 MB, free: 12.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001242/0.4573, allocations: 0.9044 MB / 444.8 MB, free: 11.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4573, allocations: 4 kB / 444.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00282/0.4601, allocations: 1.109 MB / 445.9 MB, free: 10.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,12), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001945/0.462, allocations: 0.8363 MB / 446.7 MB, free: 9.457 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00449/0.4666, allocations: 2.229 MB / 449 MB, free: 7.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.4666, allocations: 4 kB / 449 MB, free: 7.227 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.4679, allocations: 0.6777 MB / 449.7 MB, free: 6.551 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003223/0.4711, allocations: 0.5861 MB / 450.2 MB, free: 5.961 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004384/0.4755, allocations: 3.322 MB / 453.6 MB, free: 2.598 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007689/0.4763, allocations: 1.26 MB / 454.8 MB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001899/0.4782, allocations: 0.5707 MB / 455.4 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003046/0.4785, allocations: 111.4 kB / 455.5 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4785, allocations: 0 / 455.5 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of Templates: time 0.2101/0.6886, allocations: 37.89 MB / 493.4 MB, free: 86.55 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)