Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 189.4 kB / 16.67 MB, free: 6.57 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.518/1.518, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001232/0.001232, allocations: 54.38 kB / 326.5 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1029, allocations: 46.61 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02114/0.124, allocations: 20.61 MB / 393.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.1362, allocations: 6.984 MB / 400.7 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/0.1374, allocations: 27.81 kB / 400.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.1387, allocations: 377.5 kB / 401.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003421/0.1421, allocations: 1.088 MB / 402.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005204/0.1473, allocations: 1.855 MB / 404.1 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003724/0.151, allocations: 2.136 MB / 406.2 MB, free: 144 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000949/0.152, allocations: 0.5737 MB / 406.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.1537, allocations: 0.8098 MB / 407.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00123/0.1549, allocations: 0.759 MB / 408.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.1551, allocations: 76 kB / 408.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00325/0.1583, allocations: 1.252 MB / 409.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003061/0.1587, allocations: 291.1 kB / 410 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00052/0.1592, allocations: 457.9 kB / 410.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003189/0.1624, allocations: 1.896 MB / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1624, allocations: 0 / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1624, allocations: 0 / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.1624, allocations: 4 kB / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002444/0.1649, allocations: 1.307 MB / 413.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.1649, allocations: 8.031 kB / 413.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00037/0.1653, allocations: 104.4 kB / 413.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000916/0.1662, allocations: 0.6366 MB / 414.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.371e-05/0.1663, allocations: 45.3 kB / 414.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.631e-05/0.1664, allocations: 52 kB / 414.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.1677, allocations: 0.8867 MB / 415.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.1677, allocations: 0 / 415.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.699e-05/0.1678, allocations: 27.98 kB / 415.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.747e-05/0.1679, allocations: 45.28 kB / 415.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.1691, allocations: 0.813 MB / 416.2 MB, free: 5.945 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.004816/0.174, allocations: 3.827 MB / 420.1 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008837/0.1749, allocations: 0.5473 MB / 420.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004047/0.1753, allocations: 278 kB / 420.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003925/0.1757, allocations: 0.4991 MB / 421.4 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.1757, allocations: 43.16 kB / 421.4 MB, free: 388 kB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 1.764e-06/0.1757, allocations: 0 / 421.4 MB, free: 388 kB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.0044/0.1801, allocations: 2.137 MB / 423.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.184e-05/0.1802, allocations: 137 kB / 423.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009402/0.1812, allocations: 0.7232 MB / 424.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.027e-05/0.1812, allocations: 45.64 kB / 424.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/0.1815, allocations: 388.7 kB / 424.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.1817, allocations: 190.4 kB / 425 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/0.1819, allocations: 154.6 kB / 425.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1821, allocations: 390.7 kB / 425.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005165/0.1826, allocations: 312.7 kB / 425.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006833/0.1833, allocations: 0.511 MB / 426.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.1844, allocations: 0.7739 MB / 427.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.1844, allocations: 4 kB / 427.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001711/0.1862, allocations: 1.003 MB / 428.2 MB, free: 9.289 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.1862, allocations: 9.094 kB / 428.2 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.1862, allocations: 4 kB / 428.2 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001581/0.1878, allocations: 302.1 kB / 428.5 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005517/0.1884, allocations: 147.8 kB / 428.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.1894, allocations: 1.3 MB / 429.9 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005594/0.19, allocations: 39.97 kB / 430 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.634e-05/0.1901, allocations: 31.98 kB / 430 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000731/0.1909, allocations: 485.9 kB / 430.5 MB, free: 6.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006192/0.1915, allocations: 0.504 MB / 431 MB, free: 6.336 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00104/0.1925, allocations: 0.7552 MB / 431.7 MB, free: 5.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.106e-06/0.1925, allocations: 0 / 431.7 MB, free: 5.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001577/0.1941, allocations: 0.9486 MB / 432.7 MB, free: 4.535 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.1941, allocations: 8.781 kB / 432.7 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.1942, allocations: 11.94 kB / 432.7 MB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.1952, allocations: 177.5 kB / 432.9 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006759/0.1959, allocations: 171.7 kB / 433 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00077/0.1967, allocations: 1.191 MB / 434.2 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005299/0.1972, allocations: 40.05 kB / 434.3 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/0.1973, allocations: 35.98 kB / 434.3 MB, free: 2.852 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (85): * Single equations (assignments): 83 * 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,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002599/0.1976, allocations: 228.1 kB / 434.5 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.1977, allocations: 83.48 kB / 434.6 MB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.1995, allocations: 0.977 MB / 435.6 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.1995, allocations: 8 kB / 435.6 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1996, allocations: 0 / 435.6 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.1996, allocations: 3.984 kB / 435.6 MB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002688/0.2023, allocations: 1.755 MB / 437.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.309e-06/0.2023, allocations: 0 / 437.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004279/0.2027, allocations: 103.8 kB / 437.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/0.2038, allocations: 229.6 kB / 437.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5e-05/0.2038, allocations: 23.98 kB / 437.7 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008906/0.2047, allocations: 1.272 MB / 439 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.2047, allocations: 3.984 kB / 439 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/0.2066, allocations: 1.318 MB / 440.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/0.2068, allocations: 160.6 kB / 440.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.207, allocations: 19.94 kB / 440.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004655/0.2075, allocations: 31.97 kB / 440.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.2076, allocations: 52.48 kB / 440.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.948e-05/0.2077, allocations: 27.98 kB / 440.6 MB, free: 12.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006538/0.2083, allocations: 0.5186 MB / 441.1 MB, free: 11.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2083, allocations: 0 / 441.1 MB, free: 11.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001761/0.2101, allocations: 0.5927 MB / 441.7 MB, free: 11.26 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001221/0.2113, allocations: 0.5209 MB / 442.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002286/0.2136, allocations: 1.214 MB / 443.4 MB, free: 9.516 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.2136, allocations: 1.688 kB / 443.4 MB, free: 9.516 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000677/0.2143, allocations: 395 kB / 443.8 MB, free: 9.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.2161, allocations: 418.4 kB / 444.2 MB, free: 8.723 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/0.2188, allocations: 1.633 MB / 445.8 MB, free: 7.051 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005321/0.2193, allocations: 0.9836 MB / 446.8 MB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009601/0.2203, allocations: 334.8 kB / 447.2 MB, free: 5.707 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.2205, allocations: 79.42 kB / 447.2 MB, free: 5.629 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2205, allocations: 4 kB / 447.2 MB, free: 5.625 MB / 382.1 MB Notification: Performance of Templates: time 0.237/0.4575, allocations: 23.03 MB / 470.3 MB, free: 67.18 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)