Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.006744/0.006744, allocations: 99.42 kB / 15.73 MB, free: 6.012 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.001459/0.001459, allocations: 192.5 kB / 16.67 MB, free: 5.949 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.56/1.56, allocations: 205.1 MB / 222.6 MB, free: 4.477 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.001365/0.001365, allocations: 50.88 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0977/0.09907, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02534/0.1245, allocations: 21.79 MB / 395 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01482/0.1393, allocations: 9.966 MB / 404.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.1406, allocations: 27.81 kB / 405 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001469/0.1421, allocations: 389.5 kB / 405.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0042/0.1463, allocations: 1.431 MB / 406.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007041/0.1534, allocations: 2.61 MB / 409.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003383/0.1568, allocations: 2.576 MB / 412 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001266/0.1581, allocations: 0.6599 MB / 412.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002056/0.1602, allocations: 0.9812 MB / 413.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001773/0.1619, allocations: 0.9733 MB / 414.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002946/0.1623, allocations: 92 kB / 414.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00349/0.1658, allocations: 1.708 MB / 416.4 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005233/0.1663, allocations: 359 kB / 416.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000958/0.1673, allocations: 0.5405 MB / 417.3 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004352/0.1716, allocations: 2.469 MB / 419.7 MB, free: 2.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1716, allocations: 0 / 419.7 MB, free: 2.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1716, allocations: 0 / 419.7 MB, free: 2.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.887e-05/0.1717, allocations: 4 kB / 419.7 MB, free: 2.586 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.00327/0.175, allocations: 1.535 MB / 421.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.175, allocations: 15.97 kB / 421.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004251/0.1754, allocations: 119.3 kB / 421.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.1765, allocations: 0.726 MB / 422.1 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.114e-05/0.1766, allocations: 49.3 kB / 422.2 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.1767, allocations: 64.03 kB / 422.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.1783, allocations: 1.064 MB / 423.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.1783, allocations: 3.938 kB / 423.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.149e-05/0.1784, allocations: 27.98 kB / 423.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.629e-05/0.1785, allocations: 65.27 kB / 423.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.1801, allocations: 1.032 MB / 424.4 MB, free: 13.73 MB / 366.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.006162/0.1863, allocations: 4.454 MB / 428.9 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000967/0.1873, allocations: 0.5747 MB / 429.5 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004778/0.1877, allocations: 314 kB / 429.8 MB, free: 8.121 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002347/0.1901, allocations: 1.973 MB / 431.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.1902, allocations: 42.89 kB / 431.8 MB, free: 5.883 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.894e-06/0.1902, allocations: 0 / 431.8 MB, free: 5.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.004396/0.1946, allocations: 1.982 MB / 433.8 MB, free: 3.805 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.944e-05/0.1947, allocations: 158.2 kB / 433.9 MB, free: 3.613 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.1959, allocations: 0.9314 MB / 434.8 MB, free: 2.656 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.366e-05/0.196, allocations: 41.64 kB / 434.9 MB, free: 2.609 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003603/0.1964, allocations: 496 kB / 435.4 MB, free: 2.117 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.1965, allocations: 174.6 kB / 435.5 MB, free: 1.945 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002873/0.1968, allocations: 190.5 kB / 435.7 MB, free: 1.754 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1969, allocations: 334 kB / 436 MB, free: 1.422 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005224/0.1975, allocations: 336.7 kB / 436.4 MB, free: 1.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000713/0.1982, allocations: 0.6211 MB / 437 MB, free: 340 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.1993, allocations: 0.8851 MB / 437.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.1993, allocations: 4 kB / 437.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001797/0.2011, allocations: 1.132 MB / 439 MB, free: 14.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.2012, allocations: 12 kB / 439 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.2012, allocations: 8 kB / 439 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002287/0.2035, allocations: 377.8 kB / 439.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006151/0.2041, allocations: 179.7 kB / 439.6 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.2052, allocations: 1.347 MB / 440.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000678/0.2059, allocations: 43.97 kB / 441 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.559e-05/0.206, allocations: 47.98 kB / 441 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007661/0.2068, allocations: 0.5136 MB / 441.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006833/0.2074, allocations: 0.6267 MB / 442.2 MB, free: 10.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00106/0.2085, allocations: 0.8714 MB / 443 MB, free: 9.824 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.607e-06/0.2085, allocations: 4 kB / 443 MB, free: 9.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001653/0.2102, allocations: 1.098 MB / 444.1 MB, free: 8.711 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.2102, allocations: 8 kB / 444.1 MB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.2102, allocations: 16 kB / 444.2 MB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00203/0.2123, allocations: 337.3 kB / 444.5 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005839/0.2129, allocations: 183.6 kB / 444.7 MB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.2139, allocations: 1.308 MB / 446 MB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006524/0.2146, allocations: 47.97 kB / 446 MB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.611e-05/0.2146, allocations: 47.92 kB / 446.1 MB, free: 6.719 MB / 382.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.0002469/0.2149, allocations: 244.1 kB / 446.3 MB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.215, allocations: 103.3 kB / 446.4 MB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001577/0.2166, allocations: 0.786 MB / 447.2 MB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.2166, allocations: 8 kB / 447.2 MB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2167, allocations: 0 / 447.2 MB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.916e-06/0.2167, allocations: 7.969 kB / 447.2 MB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/0.219, allocations: 1.583 MB / 448.8 MB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.219, allocations: 4 kB / 448.8 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003456/0.2194, allocations: 79.97 kB / 448.9 MB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001279/0.2206, allocations: 265.4 kB / 449.1 MB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.2207, allocations: 16 kB / 449.1 MB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009811/0.2217, allocations: 1.304 MB / 450.5 MB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2217, allocations: 4.031 kB / 450.5 MB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.2232, allocations: 1.097 MB / 451.6 MB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002089/0.2235, allocations: 168.5 kB / 451.7 MB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.2236, allocations: 15.95 kB / 451.7 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004856/0.2241, allocations: 31.98 kB / 451.8 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.2242, allocations: 44.38 kB / 451.8 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.28e-05/0.2243, allocations: 27.97 kB / 451.8 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007877/0.2251, allocations: 0.6519 MB / 452.5 MB, free: 96 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2251, allocations: 0 / 452.5 MB, free: 96 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.1848/0.4099, allocations: 0.7605 MB / 453.2 MB, free: 73.9 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.001426/0.4113, allocations: 0.6145 MB / 453.9 MB, free: 73.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002513/0.4139, allocations: 1.271 MB / 455.1 MB, free: 73.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.4139, allocations: 1 kB / 455.1 MB, free: 73.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006271/0.4145, allocations: 339.5 kB / 455.5 MB, free: 73.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.4164, allocations: 407.4 kB / 455.9 MB, free: 73.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.4191, allocations: 1.725 MB / 457.6 MB, free: 73.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.4197, allocations: 1.037 MB / 458.6 MB, free: 72.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001026/0.4207, allocations: 369.9 kB / 459 MB, free: 72.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.4209, allocations: 74.88 kB / 459.1 MB, free: 72.37 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4209, allocations: 1.281 kB / 459.1 MB, free: 72.37 MB / 382.1 MB Notification: Performance of Templates: time 0.03347/0.4544, allocations: 25.32 MB / 484.4 MB, free: 55.22 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)