Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008774/0.008774, allocations: 101.5 kB / 15.73 MB, free: 5.953 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.001476/0.001476, allocations: 192.2 kB / 16.67 MB, free: 5.883 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.593/1.593, allocations: 205.1 MB / 222.6 MB, free: 4.355 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.001231/0.001232, allocations: 54.39 kB / 326.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1074, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02085/0.1283, allocations: 20.59 MB / 393.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.1386, allocations: 6.992 MB / 400.8 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.1398, allocations: 19.88 kB / 400.8 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.1412, allocations: 381.5 kB / 401.1 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003273/0.1445, allocations: 1.104 MB / 402.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00498/0.1495, allocations: 1.855 MB / 404.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002901/0.1524, allocations: 2.14 MB / 406.2 MB, free: 84 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001318/0.1537, allocations: 0.5815 MB / 406.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001992/0.1558, allocations: 0.8215 MB / 407.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/0.1573, allocations: 0.759 MB / 408.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002838/0.1576, allocations: 76 kB / 408.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002876/0.1605, allocations: 1.252 MB / 409.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000499/0.161, allocations: 287.1 kB / 410 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008409/0.1619, allocations: 453.9 kB / 410.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003354/0.1652, allocations: 1.901 MB / 412.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1653, allocations: 3.984 kB / 412.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1653, allocations: 0 / 412.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.714e-05/0.1653, allocations: 0 / 412.4 MB, free: 9.941 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.002864/0.1682, allocations: 1.27 MB / 413.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1682, allocations: 8.031 kB / 413.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004325/0.1687, allocations: 103.9 kB / 413.7 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.1697, allocations: 0.6282 MB / 414.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.1698, allocations: 53.28 kB / 414.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.1699, allocations: 52 kB / 414.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.1713, allocations: 0.8751 MB / 415.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.644e-05/0.1714, allocations: 7.938 kB / 415.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-05/0.1715, allocations: 27.92 kB / 415.4 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.486e-05/0.1715, allocations: 49.28 kB / 415.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.1729, allocations: 0.813 MB / 416.2 MB, free: 5.91 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.005143/0.1781, allocations: 3.815 MB / 420.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009199/0.179, allocations: 0.5469 MB / 420.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004254/0.1794, allocations: 282 kB / 420.9 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004039/0.1798, allocations: 0.4956 MB / 421.4 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.1799, allocations: 46.98 kB / 421.4 MB, free: 360 kB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 3.697e-06/0.1799, allocations: 3.984 kB / 421.4 MB, free: 356 kB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004493/0.1844, allocations: 2.116 MB / 423.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.914e-05/0.1845, allocations: 137 kB / 423.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008946/0.1854, allocations: 0.727 MB / 424.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.109e-05/0.1855, allocations: 41.69 kB / 424.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002998/0.1858, allocations: 380 kB / 424.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.186, allocations: 185.4 kB / 425 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.1862, allocations: 150.5 kB / 425.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1864, allocations: 386.8 kB / 425.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005244/0.1869, allocations: 312.7 kB / 425.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006578/0.1876, allocations: 0.5148 MB / 426.3 MB, free: 11.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.1887, allocations: 0.7739 MB / 427.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.1887, allocations: 4 kB / 427.1 MB, free: 10.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001711/0.1905, allocations: 0.995 MB / 428.1 MB, free: 9.301 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.1905, allocations: 13.08 kB / 428.1 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.1905, allocations: 8.781 kB / 428.1 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001643/0.1922, allocations: 301.3 kB / 428.4 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005894/0.1928, allocations: 143.8 kB / 428.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.1938, allocations: 1.308 MB / 429.9 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006146/0.1945, allocations: 35.98 kB / 429.9 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-05/0.1945, allocations: 39.98 kB / 430 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007084/0.1953, allocations: 481.8 kB / 430.4 MB, free: 6.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006213/0.1959, allocations: 0.5041 MB / 430.9 MB, free: 6.336 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001029/0.1969, allocations: 0.7514 MB / 431.7 MB, free: 5.504 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.057e-06/0.197, allocations: 0 / 431.7 MB, free: 5.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001605/0.1986, allocations: 0.9481 MB / 432.6 MB, free: 4.539 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.1986, allocations: 8.781 kB / 432.6 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.1986, allocations: 11.92 kB / 432.6 MB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.1997, allocations: 177.5 kB / 432.8 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000681/0.2004, allocations: 171.7 kB / 433 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007584/0.2011, allocations: 1.183 MB / 434.2 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000592/0.2017, allocations: 39.91 kB / 434.2 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.999e-05/0.2018, allocations: 36 kB / 434.2 MB, free: 2.863 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.0002473/0.2021, allocations: 240 kB / 434.5 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.2022, allocations: 83 kB / 434.6 MB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.204, allocations: 0.9808 MB / 435.5 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.2041, allocations: 8 kB / 435.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.2041, allocations: 0 / 435.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.2041, allocations: 3.984 kB / 435.6 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002797/0.2069, allocations: 1.751 MB / 437.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.2069, allocations: 0 / 437.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004525/0.2074, allocations: 99.89 kB / 437.4 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001053/0.2084, allocations: 233.6 kB / 437.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.932e-05/0.2085, allocations: 19.94 kB / 437.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008766/0.2094, allocations: 1.269 MB / 438.9 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.2094, allocations: 3.938 kB / 438.9 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.2114, allocations: 1.31 MB / 440.2 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002455/0.2117, allocations: 156.1 kB / 440.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.2118, allocations: 19.92 kB / 440.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005103/0.2123, allocations: 27.98 kB / 440.4 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.2125, allocations: 56.42 kB / 440.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.911e-05/0.2126, allocations: 32.05 kB / 440.5 MB, free: 12.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006726/0.2133, allocations: 0.5107 MB / 441 MB, free: 11.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2133, allocations: 0 / 441 MB, free: 11.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001638/0.2149, allocations: 0.5935 MB / 441.6 MB, free: 11.28 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.001364/0.2163, allocations: 0.4985 MB / 442.1 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002468/0.2188, allocations: 1.212 MB / 443.3 MB, free: 9.566 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.2188, allocations: 0 / 443.3 MB, free: 9.566 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007125/0.2195, allocations: 391.4 kB / 443.7 MB, free: 9.184 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001954/0.2215, allocations: 426.2 kB / 444.1 MB, free: 8.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.2244, allocations: 1.603 MB / 445.7 MB, free: 7.129 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005744/0.225, allocations: 0.9914 MB / 446.7 MB, free: 6.109 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001013/0.226, allocations: 330.9 kB / 447 MB, free: 5.781 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.2262, allocations: 75.42 kB / 447.1 MB, free: 5.707 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2262, allocations: 0 / 447.1 MB, free: 5.707 MB / 382.1 MB Notification: Performance of Templates: time 0.2211/0.4473, allocations: 23.04 MB / 470.2 MB, free: 67.17 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)