Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 94.11 kB / 16.65 MB, free: 6.598 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.001352/0.001352, allocations: 179.9 kB / 17.56 MB, free: 6.199 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.471/1.471, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.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.0004637/0.0004637, allocations: 8 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0921/0.09257, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.03619/0.1288, allocations: 37.59 MB / 365.9 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1941/0.3229, allocations: 15.63 MB / 381.5 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002798/0.3258, allocations: 63.16 kB / 381.6 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002145/0.3279, allocations: 0.5896 MB / 382.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006817/0.3348, allocations: 2.378 MB / 384.6 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009515/0.3443, allocations: 3.19 MB / 387.8 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009309/0.3536, allocations: 7.11 MB / 394.9 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002003/0.3557, allocations: 1.09 MB / 396 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003308/0.359, allocations: 1.481 MB / 397.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003054/0.3621, allocations: 1.795 MB / 399.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003727/0.3625, allocations: 91.19 kB / 399.3 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005051/0.3675, allocations: 2.361 MB / 401.7 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007519/0.3683, allocations: 0.579 MB / 402.3 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001242/0.3696, allocations: 0.9198 MB / 403.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005204/0.3748, allocations: 3.936 MB / 407.1 MB, free: 5.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3748, allocations: 4 kB / 407.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3748, allocations: 0 / 407.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.238e-05/0.3749, allocations: 0 / 407.1 MB, free: 5.164 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.003907/0.3788, allocations: 2.084 MB / 409.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.3788, allocations: 10.03 kB / 409.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005288/0.3793, allocations: 201.4 kB / 409.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001381/0.3807, allocations: 1.091 MB / 410.5 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.397e-05/0.3808, allocations: 97.19 kB / 410.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001867/0.381, allocations: 126.5 kB / 410.7 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002563/0.3836, allocations: 1.953 MB / 412.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.3836, allocations: 5.562 kB / 412.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001476/0.3838, allocations: 52.61 kB / 412.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001382/0.3839, allocations: 115.5 kB / 412.9 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002662/0.3866, allocations: 1.993 MB / 414.8 MB, free: 1.602 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.01072/0.3973, allocations: 7.889 MB / 422.7 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.3991, allocations: 1.181 MB / 423.9 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.4002, allocations: 0.7534 MB / 424.7 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004768/0.405, allocations: 3.425 MB / 428.1 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.4051, allocations: 51.56 kB / 428.1 MB, free: 4.117 MB / 334.1 MB Notification: Performance of pre-optimization done (n=119): time 4.698e-06/0.4051, allocations: 3.984 kB / 428.1 MB, free: 4.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=134): time 0.01237/0.4175, allocations: 5.438 MB / 433.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.216e-05/0.4176, allocations: 168.2 kB / 433.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001858/0.4194, allocations: 1.435 MB / 435.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001529/0.4196, allocations: 57.7 kB / 435.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005617/0.4202, allocations: 0.7069 MB / 435.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003975/0.4206, allocations: 475.9 kB / 436.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.4208, allocations: 141.6 kB / 436.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.435e-05/0.4209, allocations: 314.2 kB / 436.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.4221, allocations: 0.7768 MB / 437.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001486/0.4236, allocations: 1.199 MB / 438.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002547/0.4262, allocations: 1.89 MB / 440.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.4262, allocations: 4 kB / 440.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004039/0.4302, allocations: 2.458 MB / 443.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002939/0.4305, allocations: 439 kB / 443.6 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.4306, allocations: 12 kB / 443.6 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00729/0.4379, allocations: 1.143 MB / 444.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.4395, allocations: 351.5 kB / 445.1 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003017/0.4425, allocations: 2.902 MB / 448 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/0.4444, allocations: 127.8 kB / 448.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001779/0.4446, allocations: 79.98 kB / 448.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.4447, allocations: 4 kB / 448.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0037/0.4484, allocations: 2.141 MB / 450.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.4484, allocations: 12 kB / 450.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006088/0.4545, allocations: 0.8669 MB / 451.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00162/0.4561, allocations: 359.4 kB / 451.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002146/0.4583, allocations: 2.651 MB / 454.2 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.46, allocations: 128.1 kB / 454.4 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/0.4601, allocations: 75.98 kB / 454.4 MB, free: 8.922 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 18 (tank2.aboveLevel[3],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank3.aboveLevel[2],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[1],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (203): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,2), (2,7), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009024/0.461, allocations: 0.5297 MB / 455 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002737/0.4613, allocations: 173.9 kB / 455.1 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004548/0.4659, allocations: 2.355 MB / 457.5 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-05/0.4659, allocations: 16 kB / 457.5 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.4659, allocations: 0 / 457.5 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.466, allocations: 11.91 kB / 457.5 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006699/0.4727, allocations: 4.04 MB / 461.6 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.4727, allocations: 4 kB / 461.6 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009707/0.4737, allocations: 239.9 kB / 461.8 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004101/0.4778, allocations: 0.936 MB / 462.7 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001598/0.478, allocations: 47.92 kB / 462.8 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002432/0.4804, allocations: 2.827 MB / 465.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.4804, allocations: 8.203 kB / 465.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005007/0.4854, allocations: 3.174 MB / 468.8 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006946/0.4862, allocations: 274.8 kB / 469.1 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002398/0.4864, allocations: 39.98 kB / 469.1 MB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.4875, allocations: 103.8 kB / 469.2 MB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002755/0.4878, allocations: 149 kB / 469.3 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.4879, allocations: 59.97 kB / 469.4 MB, free: 9.684 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001357/0.4893, allocations: 0.9825 MB / 470.4 MB, free: 8.703 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4893, allocations: 0 / 470.4 MB, free: 8.703 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003107/0.4924, allocations: 1.281 MB / 471.7 MB, free: 7.422 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.level,tank3.medium.T,tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (2,12), (2,12), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001909/0.4943, allocations: 0.8929 MB / 472.6 MB, free: 6.578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005712/0.5, allocations: 3.093 MB / 475.7 MB, free: 3.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/0.5001, allocations: 4.062 kB / 475.7 MB, free: 3.496 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001922/0.502, allocations: 1.083 MB / 476.7 MB, free: 2.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004147/0.5062, allocations: 0.7739 MB / 477.5 MB, free: 1.641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005685/0.5119, allocations: 4.279 MB / 481.8 MB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009186/0.5128, allocations: 1.399 MB / 483.2 MB, free: 11.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002392/0.5152, allocations: 0.7292 MB / 483.9 MB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004225/0.5156, allocations: 159.3 kB / 484.1 MB, free: 11.02 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5157, allocations: 0 / 484.1 MB, free: 11.02 MB / 398.1 MB Notification: Performance of Templates: time 0.07203/0.5877, allocations: 47.21 MB / 0.5188 GB, free: 11.79 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)