Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.00113/0.00113, allocations: 99.62 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.001085/0.001085, allocations: 177.3 kB / 15.95 MB, free: 216 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.473/1.473, allocations: 205.4 MB / 222.1 MB, free: 5.883 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.0007888/0.0007889, allocations: 19.98 kB / 278.9 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.274, allocations: 47.58 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.02663/0.3007, allocations: 26.88 MB / 353.3 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01628/0.317, allocations: 12.69 MB / 366 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001278/0.3183, allocations: 63.5 kB / 366.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001247/0.3196, allocations: 0.5091 MB / 366.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004034/0.3236, allocations: 1.757 MB / 368.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006763/0.3304, allocations: 2.88 MB / 371.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00321/0.3336, allocations: 2.187 MB / 373.4 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.3348, allocations: 0.8282 MB / 374.2 MB, free: 3.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001701/0.3365, allocations: 1.165 MB / 375.4 MB, free: 2.484 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001272/0.3378, allocations: 0.9773 MB / 376.4 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001742/0.338, allocations: 72 kB / 376.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003789/0.3418, allocations: 2.13 MB / 378.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005036/0.3423, allocations: 442.8 kB / 379 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.3427, allocations: 305 kB / 379.3 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003195/0.3459, allocations: 2.592 MB / 381.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.3459, allocations: 0 / 381.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3459, allocations: 0 / 381.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.346, allocations: 0 / 381.9 MB, free: 11.96 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.003662/0.3496, allocations: 1.842 MB / 383.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3497, allocations: 8.031 kB / 383.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005019/0.3502, allocations: 166.2 kB / 383.9 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.3517, allocations: 0.9178 MB / 384.8 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.952e-05/0.3518, allocations: 77.97 kB / 384.9 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/0.352, allocations: 99.95 kB / 385 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002476/0.3545, allocations: 1.617 MB / 386.6 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/0.3545, allocations: 11.78 kB / 386.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/0.3547, allocations: 39.98 kB / 386.7 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/0.3548, allocations: 105.9 kB / 386.8 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002551/0.3574, allocations: 1.632 MB / 388.4 MB, free: 5.277 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.01021/0.3676, allocations: 6.738 MB / 395.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.369, allocations: 0.9187 MB / 396.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003781/0.3728, allocations: 2.855 MB / 398.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/0.3729, allocations: 51.16 kB / 399 MB, free: 10.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 2.555e-06/0.3729, allocations: 0 / 399 MB, free: 10.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.008019/0.3809, allocations: 3.713 MB / 402.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.596e-05/0.381, allocations: 188.9 kB / 402.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001583/0.3826, allocations: 1.291 MB / 404.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.3827, allocations: 49.7 kB / 404.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000466/0.3832, allocations: 0.6471 MB / 404.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.3834, allocations: 323.5 kB / 405.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.345e-05/0.3835, allocations: 36 kB / 405.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.3837, allocations: 357.9 kB / 405.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008904/0.3846, allocations: 0.5583 MB / 406.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.3857, allocations: 0.9849 MB / 407.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.3867, allocations: 0.6705 MB / 407.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3867, allocations: 4 kB / 407.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.002905/0.3897, allocations: 1.861 MB / 409.6 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001589/0.3913, allocations: 4.646 MB / 414.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.3913, allocations: 12 kB / 414.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004985/0.3963, allocations: 0.7828 MB / 415.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.3974, allocations: 287.5 kB / 415.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.3993, allocations: 2.164 MB / 417.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.4005, allocations: 96.05 kB / 417.6 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.4006, allocations: 79.84 kB / 417.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.4006, allocations: 4 kB / 417.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002719/0.4033, allocations: 1.654 MB / 419.4 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.4034, allocations: 12.66 kB / 419.4 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004217/0.4076, allocations: 0.6346 MB / 420 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/0.4086, allocations: 287.5 kB / 420.3 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001488/0.4101, allocations: 2.016 MB / 422.3 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.4112, allocations: 96.02 kB / 422.4 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.4114, allocations: 67.91 kB / 422.5 MB, free: 1.664 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 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006741/0.4121, allocations: 469.1 kB / 422.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002081/0.4123, allocations: 146.3 kB / 423.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002854/0.4151, allocations: 1.529 MB / 424.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.4152, allocations: 15.95 kB / 424.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.4152, allocations: 0 / 424.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.4152, allocations: 4.047 kB / 424.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004433/0.4196, allocations: 2.819 MB / 427.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.4197, allocations: 4 kB / 427.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006675/0.4203, allocations: 155.9 kB / 427.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0029/0.4232, allocations: 0.6464 MB / 428.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.179e-05/0.4233, allocations: 27.98 kB / 428.3 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001857/0.4252, allocations: 2.11 MB / 430.4 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4252, allocations: 0 / 430.4 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003385/0.4286, allocations: 2.148 MB / 432.5 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000603/0.4292, allocations: 255.1 kB / 432.8 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000202/0.4294, allocations: 24 kB / 432.8 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008297/0.4303, allocations: 71.89 kB / 432.9 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.4305, allocations: 93.08 kB / 432.9 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.975e-05/0.4306, allocations: 43.94 kB / 433 MB, free: 6.832 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001264/0.4319, allocations: 0.8927 MB / 433.9 MB, free: 5.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4319, allocations: 0 / 433.9 MB, free: 5.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003101/0.435, allocations: 1.117 MB / 435 MB, free: 4.82 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00168/0.4367, allocations: 0.8247 MB / 435.8 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004097/0.4408, allocations: 2.244 MB / 438.1 MB, free: 1.746 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.4408, allocations: 0 / 438.1 MB, free: 1.746 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.4421, allocations: 0.6781 MB / 438.7 MB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/0.4446, allocations: 0.5707 MB / 439.3 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004122/0.4488, allocations: 3.158 MB / 442.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007788/0.4496, allocations: 1.291 MB / 443.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001773/0.4514, allocations: 0.5744 MB / 444.3 MB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002941/0.4517, allocations: 115.4 kB / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of SimCode: time 4.2e-07/0.4517, allocations: 0 / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of Templates: time 0.1901/0.6418, allocations: 36.57 MB / 481 MB, free: 98.61 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) Environment - environmentSimulation: