Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.0008513/0.0008516, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006017/0.006017, allocations: 169.9 kB / 16.27 MB, free: 6.66 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.52/1.52, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0004529/0.0004529, allocations: 8 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.233, allocations: 47.59 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.0358/0.2689, allocations: 37.58 MB / 364.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02271/0.2916, allocations: 15.64 MB / 380.3 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002085/0.2938, allocations: 67.44 kB / 380.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001774/0.2956, allocations: 0.6022 MB / 380.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00686/0.3024, allocations: 2.373 MB / 383.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008811/0.3113, allocations: 3.203 MB / 386.5 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008066/0.3194, allocations: 7.1 MB / 393.6 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002079/0.3215, allocations: 1.093 MB / 394.7 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003881/0.3254, allocations: 1.483 MB / 396.2 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003586/0.329, allocations: 1.798 MB / 398 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003746/0.3294, allocations: 88 kB / 398.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006116/0.3355, allocations: 2.359 MB / 400.4 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001037/0.3366, allocations: 0.5724 MB / 401 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001558/0.3381, allocations: 0.9229 MB / 401.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007698/0.3458, allocations: 3.934 MB / 405.9 MB, free: 4.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3459, allocations: 0 / 405.9 MB, free: 4.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3459, allocations: 0 / 405.9 MB, free: 4.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.307e-05/0.3459, allocations: 0 / 405.9 MB, free: 4.293 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.004806/0.3507, allocations: 2.085 MB / 407.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3508, allocations: 8.031 kB / 407.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000635/0.3514, allocations: 201.7 kB / 408.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001738/0.3532, allocations: 1.09 MB / 409.2 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.636e-05/0.3533, allocations: 106.2 kB / 409.3 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/0.3535, allocations: 123.9 kB / 409.5 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003121/0.3566, allocations: 1.944 MB / 411.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.3567, allocations: 7.938 kB / 411.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/0.3568, allocations: 51.97 kB / 411.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001789/0.357, allocations: 122.3 kB / 411.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003227/0.3603, allocations: 1.992 MB / 413.6 MB, free: 12.35 MB / 350.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.01278/0.3731, allocations: 7.895 MB / 421.5 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001996/0.3751, allocations: 1.173 MB / 422.6 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001221/0.3763, allocations: 0.7533 MB / 423.4 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005188/0.3815, allocations: 3.422 MB / 426.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.3816, allocations: 51.5 kB / 426.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=119): time 3.457e-06/0.3816, allocations: 0 / 426.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=134): time 0.01258/0.3942, allocations: 5.443 MB / 432.3 MB, free: 8.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.3944, allocations: 179.5 kB / 432.5 MB, free: 8.512 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.3964, allocations: 1.423 MB / 433.9 MB, free: 7.078 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001557/0.3965, allocations: 61.69 kB / 434 MB, free: 7.012 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005511/0.3971, allocations: 0.7073 MB / 434.7 MB, free: 6.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004593/0.3975, allocations: 477.2 kB / 435.1 MB, free: 5.824 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002122/0.3978, allocations: 149.6 kB / 435.3 MB, free: 5.672 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.3979, allocations: 301.1 kB / 435.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/0.3994, allocations: 0.7691 MB / 436.3 MB, free: 4.605 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/0.401, allocations: 1.211 MB / 437.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002817/0.4038, allocations: 1.884 MB / 439.4 MB, free: 1.176 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.4038, allocations: 0 / 439.4 MB, free: 1.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004149/0.408, allocations: 2.459 MB / 441.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003046/0.4083, allocations: 438.5 kB / 442.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.4084, allocations: 12 kB / 442.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007401/0.4158, allocations: 1.146 MB / 443.5 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/0.4172, allocations: 355.5 kB / 443.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/0.4199, allocations: 2.892 MB / 446.7 MB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.4215, allocations: 135.9 kB / 446.9 MB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001602/0.4217, allocations: 83.92 kB / 446.9 MB, free: 9.375 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.4217, allocations: 4 kB / 446.9 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003398/0.4251, allocations: 2.139 MB / 449.1 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.4251, allocations: 12 kB / 449.1 MB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006218/0.4313, allocations: 0.8543 MB / 450 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.4328, allocations: 367.4 kB / 450.3 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002048/0.4348, allocations: 2.646 MB / 453 MB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.4363, allocations: 131.8 kB / 453.1 MB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.4365, allocations: 79.98 kB / 453.2 MB, free: 3.023 MB / 382.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.0009644/0.4374, allocations: 0.518 MB / 453.7 MB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002873/0.4377, allocations: 169.9 kB / 453.8 MB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1605/0.5983, allocations: 2.36 MB / 456.2 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.433e-05/0.5984, allocations: 20.72 kB / 456.2 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.5984, allocations: 1.438 kB / 456.2 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.196e-05/0.5984, allocations: 8.156 kB / 456.2 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007467/0.6059, allocations: 4.043 MB / 460.3 MB, free: 114.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.606, allocations: 2.406 kB / 460.3 MB, free: 114.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009835/0.6069, allocations: 234.7 kB / 460.5 MB, free: 114.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004059/0.611, allocations: 0.9359 MB / 461.4 MB, free: 114.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001749/0.6112, allocations: 37 kB / 461.5 MB, free: 114.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001815/0.613, allocations: 2.838 MB / 464.3 MB, free: 112 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.613, allocations: 3.969 kB / 464.3 MB, free: 112 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004092/0.6171, allocations: 3.182 MB / 467.5 MB, free: 110.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004945/0.6177, allocations: 270.1 kB / 467.8 MB, free: 110.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.6179, allocations: 43.77 kB / 467.8 MB, free: 110.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.6189, allocations: 105.2 kB / 467.9 MB, free: 110.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002539/0.6192, allocations: 145.3 kB / 468.1 MB, free: 110.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.6193, allocations: 59.5 kB / 468.1 MB, free: 110.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001138/0.6205, allocations: 0.984 MB / 469.1 MB, free: 109.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6205, allocations: 0 / 469.1 MB, free: 109.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002855/0.6234, allocations: 1.272 MB / 470.4 MB, free: 109.5 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.001774/0.6251, allocations: 0.9108 MB / 471.3 MB, free: 109.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00464/0.6298, allocations: 3.086 MB / 474.4 MB, free: 107.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.6298, allocations: 4 kB / 474.4 MB, free: 107.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.6315, allocations: 1.085 MB / 475.5 MB, free: 106.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004026/0.6355, allocations: 0.7706 MB / 476.2 MB, free: 105.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004899/0.6404, allocations: 4.277 MB / 480.5 MB, free: 101.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006695/0.6411, allocations: 1.407 MB / 481.9 MB, free: 100.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002468/0.6436, allocations: 0.7351 MB / 482.6 MB, free: 99.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000397/0.644, allocations: 147.4 kB / 482.8 MB, free: 99.34 MB / 382.1 MB Notification: Performance of SimCode: time 2.806e-06/0.644, allocations: 0 / 482.8 MB, free: 99.34 MB / 382.1 MB Notification: Performance of Templates: time 0.05645/0.7005, allocations: 47.21 MB / 0.5176 GB, free: 52.07 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)