Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001247/0.001248, allocations: 92.03 kB / 16.65 MB, free: 6.59 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.001292/0.001292, allocations: 182.1 kB / 17.56 MB, free: 6.203 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.579/1.579, 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.0004614/0.0004614, allocations: 12 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08916/0.08963, allocations: 47.59 MB / 328.3 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03277/0.1224, allocations: 31.5 MB / 359.8 MB, free: 4.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01976/0.1422, allocations: 14.7 MB / 374.5 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001869/0.1442, allocations: 55.56 kB / 374.6 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001798/0.146, allocations: 0.5011 MB / 375.1 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005606/0.1516, allocations: 2.038 MB / 377.1 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1712/0.3228, allocations: 3.132 MB / 380.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007805/0.3307, allocations: 5.922 MB / 386.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002058/0.3327, allocations: 0.8643 MB / 387 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003778/0.3366, allocations: 1.262 MB / 388.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004098/0.3407, allocations: 1.507 MB / 389.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005865/0.3413, allocations: 73.41 kB / 389.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005267/0.3466, allocations: 2.261 MB / 392.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009108/0.3475, allocations: 499.1 kB / 392.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001354/0.3489, allocations: 0.7694 MB / 393.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005008/0.3539, allocations: 3.492 MB / 396.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3539, allocations: 0 / 396.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3539, allocations: 0 / 396.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.227e-05/0.354, allocations: 6.969 kB / 396.9 MB, free: 11.36 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003816/0.3578, allocations: 1.818 MB / 398.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3578, allocations: 13.95 kB / 398.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004829/0.3583, allocations: 161.9 kB / 398.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.3595, allocations: 0.9564 MB / 399.8 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.764e-05/0.3596, allocations: 75.39 kB / 399.9 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/0.3597, allocations: 104.4 kB / 400 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0021/0.3618, allocations: 1.634 MB / 401.7 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.164e-05/0.3619, allocations: 6.625 kB / 401.7 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.362, allocations: 41.62 kB / 401.7 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001147/0.3621, allocations: 104.3 kB / 401.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002261/0.3644, allocations: 1.64 MB / 403.4 MB, free: 8.699 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.008317/0.3727, allocations: 6.661 MB / 410.1 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.374, allocations: 0.9356 MB / 411 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007049/0.3747, allocations: 0.5613 MB / 411.6 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002896/0.3776, allocations: 2.813 MB / 414.4 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.3777, allocations: 41.44 kB / 414.5 MB, free: 2.289 MB / 318.1 MB Notification: Performance of pre-optimization done (n=80): time 2.314e-06/0.3777, allocations: 7.625 kB / 414.5 MB, free: 2.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.007551/0.3853, allocations: 3.724 MB / 418.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.3854, allocations: 192.9 kB / 418.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001807/0.3872, allocations: 1.306 MB / 419.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.3873, allocations: 53.69 kB / 419.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004975/0.3878, allocations: 0.6497 MB / 420.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002645/0.3881, allocations: 323.2 kB / 420.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.3883, allocations: 121.6 kB / 420.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3884, allocations: 305.1 kB / 421.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009673/0.3894, allocations: 0.581 MB / 421.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.3907, allocations: 1 MB / 422.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001984/0.3927, allocations: 1.486 MB / 424.2 MB, free: 9.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.3927, allocations: 4 kB / 424.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003186/0.3959, allocations: 1.9 MB / 426.1 MB, free: 7.625 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00028/0.3962, allocations: 441.3 kB / 426.5 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.3962, allocations: 19.98 kB / 426.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005193/0.4014, allocations: 0.7927 MB / 427.3 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.4026, allocations: 286.8 kB / 427.6 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.4047, allocations: 2.159 MB / 429.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/0.4062, allocations: 100 kB / 429.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.4064, allocations: 71.97 kB / 429.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.4064, allocations: 8 kB / 429.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002906/0.4093, allocations: 1.66 MB / 431.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.4094, allocations: 12 kB / 431.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004858/0.4142, allocations: 0.62 MB / 432.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.4154, allocations: 292 kB / 432.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/0.4171, allocations: 2.016 MB / 434.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.4184, allocations: 92.12 kB / 434.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.4186, allocations: 72.83 kB / 434.7 MB, free: 14.82 MB / 350.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.0008052/0.4194, allocations: 472.6 kB / 435.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002329/0.4196, allocations: 142.2 kB / 435.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003018/0.4227, allocations: 1.526 MB / 436.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.4227, allocations: 8.094 kB / 436.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.4227, allocations: 3.938 kB / 436.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.4227, allocations: 7.969 kB / 436.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004682/0.4274, allocations: 2.815 MB / 439.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.4274, allocations: 3.984 kB / 439.7 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006798/0.4281, allocations: 155 kB / 439.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003026/0.4312, allocations: 0.6455 MB / 440.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.744e-05/0.4313, allocations: 31.98 kB / 440.5 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/0.433, allocations: 2.109 MB / 442.6 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4331, allocations: 4.031 kB / 442.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003264/0.4363, allocations: 2.097 MB / 444.7 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004664/0.4368, allocations: 239.2 kB / 444.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001965/0.437, allocations: 27.98 kB / 445 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000893/0.4379, allocations: 75.86 kB / 445 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/0.4381, allocations: 96.27 kB / 445.1 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.003e-05/0.4382, allocations: 43.97 kB / 445.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001218/0.4395, allocations: 0.9006 MB / 446.1 MB, free: 3.281 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4395, allocations: 4 kB / 446.1 MB, free: 3.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002796/0.4423, allocations: 1.117 MB / 447.2 MB, free: 2.16 MB / 350.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.001926/0.4442, allocations: 0.826 MB / 448 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004185/0.4484, allocations: 2.234 MB / 450.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.4484, allocations: 4 kB / 450.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.4497, allocations: 0.6934 MB / 451 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003202/0.4529, allocations: 0.5869 MB / 451.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004509/0.4575, allocations: 3.319 MB / 454.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000863/0.4584, allocations: 1.256 MB / 456.1 MB, free: 9.348 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002007/0.4604, allocations: 0.5719 MB / 456.7 MB, free: 8.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003192/0.4607, allocations: 115.4 kB / 456.8 MB, free: 8.656 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4607, allocations: 0 / 456.8 MB, free: 8.656 MB / 366.1 MB Notification: Performance of Templates: time 0.05926/0.52, allocations: 37.9 MB / 494.7 MB, free: 2.883 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)