Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0008592/0.000859, 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.006094/0.006094, 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.566/1.566, allocations: 205.4 MB / 222.4 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.0005066/0.0005067, allocations: 12 kB / 279.4 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2452, allocations: 47.59 MB / 327 MB, free: 1.223 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03459/0.2799, allocations: 31.49 MB / 358.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01969/0.2996, allocations: 14.72 MB / 373.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002059/0.3017, allocations: 55.5 kB / 373.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001867/0.3036, allocations: 0.4972 MB / 373.8 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00606/0.3097, allocations: 2.042 MB / 375.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009368/0.319, allocations: 3.125 MB / 379 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006574/0.3256, allocations: 5.938 MB / 384.9 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001482/0.3271, allocations: 0.8607 MB / 385.8 MB, free: 8.375 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002275/0.3294, allocations: 1.257 MB / 387 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.3316, allocations: 1.518 MB / 388.5 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002379/0.3318, allocations: 72 kB / 388.6 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004827/0.3367, allocations: 2.262 MB / 390.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009648/0.3377, allocations: 490.5 kB / 391.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001374/0.339, allocations: 0.7752 MB / 392.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007024/0.3461, allocations: 3.479 MB / 395.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3461, allocations: 0 / 395.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3461, allocations: 4 kB / 395.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.638e-05/0.3462, allocations: 0 / 395.6 MB, free: 14.5 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.004228/0.3504, allocations: 1.826 MB / 397.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3505, allocations: 8.031 kB / 397.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005453/0.351, allocations: 166.2 kB / 397.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.3526, allocations: 0.9521 MB / 398.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.291e-05/0.3527, allocations: 81.97 kB / 398.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001821/0.3528, allocations: 99.88 kB / 398.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002745/0.3556, allocations: 1.628 MB / 400.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.3556, allocations: 11.94 kB / 400.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/0.3558, allocations: 47.97 kB / 400.4 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001305/0.3559, allocations: 97.94 kB / 400.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002628/0.3586, allocations: 1.643 MB / 402.2 MB, free: 7.762 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.009943/0.3685, allocations: 6.664 MB / 408.8 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.37, allocations: 0.927 MB / 409.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008268/0.3708, allocations: 0.5504 MB / 410.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003722/0.3746, allocations: 2.832 MB / 413.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.739e-05/0.3746, allocations: 43.16 kB / 413.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.314e-06/0.3746, allocations: 4 kB / 413.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.0085/0.3832, allocations: 3.731 MB / 416.9 MB, free: 8.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.3833, allocations: 188.9 kB / 417.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.3852, allocations: 1.306 MB / 418.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.3853, allocations: 53.69 kB / 418.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005341/0.3858, allocations: 0.6471 MB / 419.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000295/0.3861, allocations: 319.4 kB / 419.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.3863, allocations: 125.6 kB / 419.5 MB, free: 5.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.3864, allocations: 305.1 kB / 419.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009448/0.3874, allocations: 0.5817 MB / 420.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.3886, allocations: 1.004 MB / 421.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002004/0.3906, allocations: 1.481 MB / 422.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.3906, allocations: 4 kB / 422.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003049/0.3937, allocations: 1.901 MB / 424.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003229/0.394, allocations: 438.3 kB / 425.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.3941, allocations: 15.98 kB / 425.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005075/0.3991, allocations: 0.7982 MB / 426 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.4002, allocations: 287.5 kB / 426.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001965/0.4022, allocations: 2.16 MB / 428.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.4034, allocations: 96.06 kB / 428.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.4036, allocations: 67.98 kB / 428.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.4036, allocations: 4 kB / 428.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002689/0.4063, allocations: 1.662 MB / 430.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.4063, allocations: 11.98 kB / 430.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004259/0.4106, allocations: 0.627 MB / 431 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.4117, allocations: 291.5 kB / 431.2 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001926/0.4136, allocations: 2.008 MB / 433.2 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.4148, allocations: 104 kB / 433.3 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.415, allocations: 71.97 kB / 433.4 MB, free: 6.926 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.0008384/0.4158, allocations: 476.6 kB / 433.9 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002363/0.416, allocations: 150.2 kB / 434 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002885/0.4189, allocations: 1.514 MB / 435.5 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.419, allocations: 12 kB / 435.6 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.419, allocations: 0 / 435.6 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.419, allocations: 3.984 kB / 435.6 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004964/0.424, allocations: 2.819 MB / 438.4 MB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.525e-06/0.424, allocations: 3.938 kB / 438.4 MB, free: 1.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006616/0.4247, allocations: 147.8 kB / 438.5 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003018/0.4277, allocations: 0.6465 MB / 439.2 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.832e-05/0.4278, allocations: 27.98 kB / 439.2 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001965/0.4298, allocations: 2.11 MB / 441.3 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.4298, allocations: 4.031 kB / 441.3 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003423/0.4332, allocations: 2.105 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005224/0.4337, allocations: 247.2 kB / 443.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001928/0.4339, allocations: 27.98 kB / 443.7 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008624/0.4348, allocations: 71.8 kB / 443.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.435, allocations: 96.8 kB / 443.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.682e-05/0.4351, allocations: 39.98 kB / 443.9 MB, free: 12.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001284/0.4364, allocations: 0.9044 MB / 444.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4364, allocations: 4 kB / 444.8 MB, free: 11.28 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002842/0.4393, allocations: 1.113 MB / 445.9 MB, free: 10.17 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.001983/0.4413, allocations: 0.8327 MB / 446.7 MB, free: 9.324 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004318/0.4456, allocations: 2.233 MB / 449 MB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/0.4456, allocations: 4 kB / 449 MB, free: 7.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.447, allocations: 0.6777 MB / 449.7 MB, free: 6.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003343/0.4503, allocations: 0.5862 MB / 450.2 MB, free: 5.824 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004825/0.4552, allocations: 3.322 MB / 453.6 MB, free: 2.461 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009061/0.4561, allocations: 1.26 MB / 454.8 MB, free: 1.172 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002037/0.4581, allocations: 0.5668 MB / 455.4 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003118/0.4585, allocations: 111.4 kB / 455.5 MB, free: 500 kB / 382.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4585, allocations: 3.938 kB / 455.5 MB, free: 496 kB / 382.1 MB Notification: Performance of Templates: time 0.2059/0.6644, allocations: 37.89 MB / 493.4 MB, free: 86.35 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)