Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 115.3 kB / 17.06 MB, free: 6 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.001085/0.001085, allocations: 196 kB / 18 MB, free: 5.078 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.522/1.522, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.001137/0.001137, allocations: 51.92 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09081/0.09196, allocations: 46.61 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.2243/0.3163, allocations: 21.78 MB / 396.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01555/0.3319, allocations: 9.961 MB / 406.2 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.3337, allocations: 28.78 kB / 406.3 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001371/0.335, allocations: 401.5 kB / 406.6 MB, free: 8.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004396/0.3395, allocations: 1.427 MB / 408.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007915/0.3474, allocations: 2.624 MB / 410.7 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004441/0.3519, allocations: 2.561 MB / 413.3 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001382/0.3533, allocations: 0.6622 MB / 413.9 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00201/0.3553, allocations: 0.98 MB / 414.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001735/0.357, allocations: 0.9683 MB / 415.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002294/0.3573, allocations: 96.81 kB / 416 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004323/0.3616, allocations: 1.709 MB / 417.7 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005229/0.3622, allocations: 366.9 kB / 418 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008708/0.363, allocations: 0.5353 MB / 418.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005281/0.3683, allocations: 2.452 MB / 421 MB, free: 240 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.3684, allocations: 5.234 kB / 421 MB, free: 236 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3684, allocations: 0 / 421 MB, free: 236 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.892e-05/0.3684, allocations: 0 / 421 MB, free: 236 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003413/0.3718, allocations: 1.51 MB / 422.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.3719, allocations: 9.625 kB / 422.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004807/0.3724, allocations: 113.9 kB / 422.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00122/0.3736, allocations: 0.7129 MB / 423.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.41e-05/0.3737, allocations: 55.28 kB / 423.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.3738, allocations: 68.78 kB / 423.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.3755, allocations: 1.055 MB / 424.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.3755, allocations: 4 kB / 424.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.414e-05/0.3756, allocations: 31.92 kB / 424.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.924e-05/0.3757, allocations: 65.27 kB / 424.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/0.3773, allocations: 1.043 MB / 425.7 MB, free: 12.22 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.006625/0.384, allocations: 4.426 MB / 430.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.385, allocations: 0.5747 MB / 430.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005056/0.3855, allocations: 322 kB / 431 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002746/0.3883, allocations: 1.973 MB / 433 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.3883, allocations: 43.77 kB / 433 MB, free: 4.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.324e-06/0.3883, allocations: 0 / 433 MB, free: 4.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004786/0.3931, allocations: 1.956 MB / 435 MB, free: 2.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.853e-05/0.3932, allocations: 158.2 kB / 435.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/0.3945, allocations: 0.9273 MB / 436.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.146e-05/0.3945, allocations: 45.69 kB / 436.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003789/0.3949, allocations: 490.8 kB / 436.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.3951, allocations: 157.8 kB / 436.7 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002837/0.3954, allocations: 190.4 kB / 436.9 MB, free: 312 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3955, allocations: 337.9 kB / 437.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005486/0.3961, allocations: 332.7 kB / 437.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007885/0.3969, allocations: 0.6289 MB / 438.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.3981, allocations: 0.8851 MB / 439.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.3981, allocations: 0 / 439.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001877/0.4, allocations: 1.13 MB / 440.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.4001, allocations: 8 kB / 440.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.4001, allocations: 12 kB / 440.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/0.4025, allocations: 378 kB / 440.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000672/0.4032, allocations: 179.7 kB / 440.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.4044, allocations: 1.347 MB / 442.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008738/0.4053, allocations: 35.98 kB / 442.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.673e-05/0.4054, allocations: 47.98 kB / 442.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008686/0.4063, allocations: 0.5175 MB / 442.7 MB, free: 10.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007801/0.4071, allocations: 0.6191 MB / 443.3 MB, free: 9.391 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001176/0.4082, allocations: 0.8792 MB / 444.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.776e-06/0.4083, allocations: 4 kB / 444.2 MB, free: 8.379 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001834/0.4101, allocations: 1.101 MB / 445.3 MB, free: 7.266 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.4101, allocations: 8.188 kB / 445.3 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.4101, allocations: 12 kB / 445.3 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002219/0.4124, allocations: 333.3 kB / 445.7 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006484/0.413, allocations: 175.7 kB / 445.8 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.4142, allocations: 1.319 MB / 447.2 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008886/0.4151, allocations: 39.98 kB / 447.2 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.347e-05/0.4152, allocations: 52.11 kB / 447.3 MB, free: 5.281 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[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 (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003278/0.4156, allocations: 243.2 kB / 447.5 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001906/0.4158, allocations: 94.88 kB / 447.6 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001712/0.4175, allocations: 0.7992 MB / 448.4 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.759e-06/0.4175, allocations: 8 kB / 448.4 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.4175, allocations: 0 / 448.4 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.4175, allocations: 3.984 kB / 448.4 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002643/0.4202, allocations: 1.583 MB / 450 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.4202, allocations: 8 kB / 450 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003811/0.4206, allocations: 75.89 kB / 450.1 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001383/0.422, allocations: 265.5 kB / 450.3 MB, free: 2.133 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.941e-05/0.422, allocations: 12 kB / 450.3 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.4231, allocations: 1.315 MB / 451.6 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.4231, allocations: 0 / 451.6 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.4247, allocations: 1.081 MB / 452.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002782/0.425, allocations: 175.9 kB / 452.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.4252, allocations: 12 kB / 452.9 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/0.4257, allocations: 23.97 kB / 452.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.4258, allocations: 48.38 kB / 453 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.312e-05/0.4259, allocations: 23.98 kB / 453 MB, free: 15.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008685/0.4267, allocations: 0.652 MB / 453.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4268, allocations: 4.062 kB / 453.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001993/0.4288, allocations: 0.7457 MB / 454.4 MB, free: 13.93 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001451/0.4302, allocations: 0.6261 MB / 455 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002636/0.4329, allocations: 1.267 MB / 456.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4329, allocations: 4.062 kB / 456.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00066/0.4336, allocations: 338.2 kB / 456.6 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001907/0.4355, allocations: 416.8 kB / 457 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/0.4382, allocations: 1.699 MB / 458.7 MB, free: 9.559 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005908/0.4388, allocations: 1.037 MB / 459.8 MB, free: 8.492 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001039/0.4398, allocations: 372 kB / 460.1 MB, free: 8.125 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.44, allocations: 75.42 kB / 460.2 MB, free: 8.055 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.44, allocations: 4 kB / 460.2 MB, free: 8.051 MB / 382.1 MB Notification: Performance of Templates: time 0.0384/0.4784, allocations: 25.32 MB / 485.5 MB, free: 14.68 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)