Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0009435/0.0009436, allocations: 98.06 kB / 16.3 MB, free: 5.582 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.0009073/0.0009075, allocations: 178.6 kB / 17.19 MB, free: 5.516 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.398/1.398, allocations: 205.4 MB / 223.4 MB, free: 13.16 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.0004952/0.0004953, allocations: 12 kB / 280.1 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1037, allocations: 47.58 MB / 327.7 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.03322/0.1369, allocations: 32.02 MB / 359.7 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01929/0.1563, allocations: 13.56 MB / 373.3 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002224/0.1585, allocations: 67.38 kB / 373.3 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00231/0.1609, allocations: 0.6062 MB / 374 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006518/0.1674, allocations: 2.064 MB / 376 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008729/0.1761, allocations: 2.943 MB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2072/0.3834, allocations: 2.624 MB / 381.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003363/0.3868, allocations: 1.04 MB / 382.6 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004356/0.3912, allocations: 1.349 MB / 384 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004132/0.3954, allocations: 1.155 MB / 385.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008495/0.3963, allocations: 91.03 kB / 385.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007827/0.4041, allocations: 2.22 MB / 387.4 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001639/0.4058, allocations: 0.5211 MB / 388 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001588/0.4074, allocations: 355.5 kB / 388.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008237/0.4156, allocations: 2.927 MB / 391.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.4157, allocations: 2.625 kB / 391.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4157, allocations: 1.156 kB / 391.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.764e-05/0.4158, allocations: 4 kB / 391.2 MB, free: 11.88 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.006581/0.4224, allocations: 2.09 MB / 393.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.4224, allocations: 12.47 kB / 393.3 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009123/0.4234, allocations: 208.1 kB / 393.5 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002427/0.4258, allocations: 1.043 MB / 394.6 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/0.4259, allocations: 99.55 kB / 394.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002692/0.4262, allocations: 124.4 kB / 394.8 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003598/0.4298, allocations: 1.935 MB / 396.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.908e-05/0.4299, allocations: 7.375 kB / 396.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000175/0.4301, allocations: 51.28 kB / 396.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001903/0.4303, allocations: 118 kB / 396.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003052/0.4333, allocations: 1.983 MB / 398.9 MB, free: 10.03 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.01204/0.4454, allocations: 7.946 MB / 406.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.4476, allocations: 1.172 MB / 408 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0053/0.4529, allocations: 3.458 MB / 411.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.453, allocations: 52.28 kB / 411.5 MB, free: 3.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=119): time 5.019e-06/0.453, allocations: 4 kB / 411.5 MB, free: 3.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01274/0.4658, allocations: 5.417 MB / 416.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.4659, allocations: 173.8 kB / 417.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0021/0.468, allocations: 1.416 MB / 418.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002033/0.4682, allocations: 60.58 kB / 418.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006118/0.4689, allocations: 0.7067 MB / 419.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005106/0.4694, allocations: 472.9 kB / 419.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.354e-05/0.4695, allocations: 31.25 kB / 419.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.4697, allocations: 387.3 kB / 420.2 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.4709, allocations: 0.7549 MB / 420.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/0.4725, allocations: 1.179 MB / 422.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.4739, allocations: 0.8783 MB / 423 MB, free: 12.6 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/0.4739, allocations: 4 kB / 423 MB, free: 12.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004171/0.4781, allocations: 2.396 MB / 425.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00202/0.4801, allocations: 4.611 MB / 430 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.823e-05/0.4801, allocations: 12 kB / 430 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007055/0.4872, allocations: 1.135 MB / 431.1 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/0.489, allocations: 347.9 kB / 431.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002987/0.492, allocations: 2.891 MB / 434.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002414/0.4944, allocations: 127.5 kB / 434.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002105/0.4946, allocations: 83.06 kB / 434.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.4946, allocations: 4 kB / 434.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004073/0.4987, allocations: 2.133 MB / 436.7 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.4988, allocations: 16.03 kB / 436.7 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005941/0.5047, allocations: 0.8624 MB / 437.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/0.5063, allocations: 359.7 kB / 437.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002368/0.5087, allocations: 2.653 MB / 440.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/0.5107, allocations: 126.9 kB / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001672/0.5108, allocations: 79.42 kB / 440.8 MB, free: 12.73 MB / 350.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.001245/0.5121, allocations: 0.5169 MB / 441.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000334/0.5124, allocations: 166 kB / 441.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004534/0.517, allocations: 2.368 MB / 443.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.272e-05/0.517, allocations: 19.95 kB / 443.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.517, allocations: 0 / 443.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.657e-05/0.5171, allocations: 15.97 kB / 443.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007147/0.5242, allocations: 4.023 MB / 447.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/0.5243, allocations: 7.984 kB / 447.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.5253, allocations: 236 kB / 448.1 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004252/0.5296, allocations: 0.9435 MB / 449.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000177/0.5298, allocations: 42.61 kB / 449.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002772/0.5325, allocations: 2.844 MB / 452 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5326, allocations: 0 / 452 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005411/0.538, allocations: 3.25 MB / 455.2 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008888/0.5389, allocations: 278.9 kB / 455.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002639/0.5392, allocations: 36 kB / 455.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.5403, allocations: 103.8 kB / 455.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002953/0.5406, allocations: 149 kB / 455.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.5407, allocations: 67.05 kB / 455.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001451/0.5422, allocations: 0.9668 MB / 456.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.5422, allocations: 0 / 456.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003862/0.546, allocations: 1.275 MB / 458.1 MB, free: 13.41 MB / 366.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.002261/0.5483, allocations: 0.881 MB / 459 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005677/0.554, allocations: 3.046 MB / 462 MB, free: 9.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.554, allocations: 4 kB / 462 MB, free: 9.648 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001827/0.5559, allocations: 1.092 MB / 463.1 MB, free: 8.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003694/0.5596, allocations: 0.7349 MB / 463.8 MB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006585/0.5662, allocations: 4.084 MB / 467.9 MB, free: 3.758 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.5672, allocations: 1.434 MB / 469.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002877/0.5701, allocations: 0.7332 MB / 470.1 MB, free: 1.555 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004576/0.5706, allocations: 151.4 kB / 470.2 MB, free: 1.414 MB / 366.1 MB Notification: Performance of SimCode: time 1.964e-06/0.5706, allocations: 0 / 470.2 MB, free: 1.414 MB / 366.1 MB Notification: Performance of Templates: time 0.07842/0.649, allocations: 46.02 MB / 0.5042 GB, free: 3.559 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) Environment - environmentSimulation: