Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001853/0.001853, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.002322/0.002322, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.652/1.652, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0004794/0.0004796, allocations: 8 kB / 278.9 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2206, allocations: 47.59 MB / 326.4 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.06046/0.2811, allocations: 32.02 MB / 358.5 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0347/0.3159, allocations: 13.56 MB / 372 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002867/0.3188, allocations: 67.44 kB / 372.1 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003246/0.3221, allocations: 0.5945 MB / 372.7 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009387/0.3315, allocations: 2.068 MB / 374.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01383/0.3454, allocations: 2.943 MB / 377.7 MB, free: 168 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007103/0.3525, allocations: 2.64 MB / 380.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002832/0.3554, allocations: 1.047 MB / 381.4 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004888/0.3604, allocations: 1.348 MB / 382.7 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003318/0.3637, allocations: 1.156 MB / 383.9 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006586/0.3644, allocations: 88 kB / 384 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007696/0.3721, allocations: 2.224 MB / 386.2 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001075/0.3732, allocations: 0.5142 MB / 386.7 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008696/0.3741, allocations: 360.8 kB / 387.1 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00464/0.3788, allocations: 2.927 MB / 390 MB, free: 3.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.3788, allocations: 0 / 390 MB, free: 3.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3788, allocations: 0 / 390 MB, free: 3.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.559e-05/0.3789, allocations: 0 / 390 MB, free: 3.82 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.004914/0.3838, allocations: 2.1 MB / 392.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.3839, allocations: 8.031 kB / 392.1 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007712/0.3846, allocations: 213.7 kB / 392.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002116/0.3868, allocations: 1.051 MB / 393.4 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.3869, allocations: 102.2 kB / 393.5 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002624/0.3872, allocations: 116 kB / 393.6 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003225/0.3904, allocations: 1.936 MB / 395.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.207e-05/0.3904, allocations: 3.938 kB / 395.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001664/0.3906, allocations: 51.98 kB / 395.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001792/0.3908, allocations: 114.3 kB / 395.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003272/0.3941, allocations: 1.98 MB / 397.7 MB, free: 11.93 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.01183/0.4059, allocations: 7.946 MB / 405.6 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001923/0.4079, allocations: 1.172 MB / 406.8 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005365/0.4133, allocations: 3.459 MB / 410.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.478e-05/0.4134, allocations: 55.5 kB / 410.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=119): time 3.367e-06/0.4134, allocations: 0 / 410.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=134): time 0.01305/0.4264, allocations: 5.424 MB / 415.7 MB, free: 9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.4266, allocations: 167.5 kB / 415.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.4285, allocations: 1.419 MB / 417.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001314/0.4286, allocations: 61.69 kB / 417.4 MB, free: 7.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005316/0.4292, allocations: 0.715 MB / 418.1 MB, free: 6.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003884/0.4296, allocations: 465.4 kB / 418.5 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.261e-05/0.4297, allocations: 36 kB / 418.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.4298, allocations: 373.9 kB / 418.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.431, allocations: 0.7534 MB / 419.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/0.4325, allocations: 1.183 MB / 420.9 MB, free: 3.598 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/0.4339, allocations: 0.8804 MB / 421.7 MB, free: 2.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.4339, allocations: 0 / 421.7 MB, free: 2.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003817/0.4377, allocations: 2.404 MB / 424.1 MB, free: 304 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001772/0.4395, allocations: 4.614 MB / 428.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/0.4395, allocations: 8 kB / 428.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007004/0.4465, allocations: 1.139 MB / 429.9 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.4481, allocations: 347.4 kB / 430.2 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002516/0.4506, allocations: 2.888 MB / 433.1 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.4522, allocations: 132 kB / 433.3 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.4523, allocations: 83.97 kB / 433.3 MB, free: 6.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.4523, allocations: 4 kB / 433.3 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003381/0.4557, allocations: 2.128 MB / 435.5 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/0.4558, allocations: 12.16 kB / 435.5 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005878/0.4616, allocations: 0.8654 MB / 436.3 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.4631, allocations: 359.6 kB / 436.7 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002061/0.4652, allocations: 2.646 MB / 439.3 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/0.4667, allocations: 132 kB / 439.5 MB, free: 444 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001596/0.4668, allocations: 83.97 kB / 439.6 MB, free: 360 kB / 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 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008767/0.4677, allocations: 0.514 MB / 440.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002744/0.468, allocations: 166 kB / 440.2 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004349/0.4724, allocations: 2.361 MB / 442.6 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/0.4724, allocations: 16 kB / 442.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.4724, allocations: 0 / 442.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/0.4725, allocations: 11.97 kB / 442.6 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006854/0.4793, allocations: 4.038 MB / 446.7 MB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.4793, allocations: 0 / 446.7 MB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009816/0.4803, allocations: 243.7 kB / 446.9 MB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003985/0.4843, allocations: 0.9361 MB / 447.8 MB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001412/0.4845, allocations: 51.97 kB / 447.9 MB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002483/0.487, allocations: 2.834 MB / 450.7 MB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.487, allocations: 0 / 450.7 MB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005285/0.4923, allocations: 3.246 MB / 454 MB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007228/0.493, allocations: 278.7 kB / 454.2 MB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002585/0.4933, allocations: 39.98 kB / 454.3 MB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.4944, allocations: 99.94 kB / 454.4 MB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002849/0.4947, allocations: 153 kB / 454.5 MB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/0.4948, allocations: 60.16 kB / 454.6 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1689/0.6637, allocations: 0.9674 MB / 455.5 MB, free: 115.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6638, allocations: 1.781 kB / 455.6 MB, free: 115.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004637/0.6684, allocations: 1.272 MB / 456.8 MB, free: 115.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001874/0.6703, allocations: 0.8859 MB / 457.7 MB, free: 115.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005297/0.6756, allocations: 3.058 MB / 460.8 MB, free: 114.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.6757, allocations: 0 / 460.8 MB, free: 114.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/0.6773, allocations: 1.074 MB / 461.8 MB, free: 114.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003238/0.6805, allocations: 0.7299 MB / 462.6 MB, free: 114.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005066/0.6856, allocations: 4.104 MB / 466.7 MB, free: 112.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006934/0.6863, allocations: 1.437 MB / 468.1 MB, free: 111.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002107/0.6884, allocations: 0.7311 MB / 468.8 MB, free: 111.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.6888, allocations: 152.7 kB / 469 MB, free: 111.2 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6888, allocations: 0 / 469 MB, free: 111.2 MB / 382.1 MB Notification: Performance of Templates: time 0.05734/0.7462, allocations: 46.02 MB / 0.5029 GB, free: 66.22 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) Environment - environmentSimulation: