Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.00948/0.00948, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001972/0.001972, allocations: 189.5 kB / 16.67 MB, free: 5.938 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.573/1.573, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001154/0.001154, allocations: 50.83 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09715/0.09831, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02207/0.1204, allocations: 21.78 MB / 395 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01316/0.1336, allocations: 9.958 MB / 404.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009262/0.1346, allocations: 31.81 kB / 404.9 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.1357, allocations: 405.4 kB / 405.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003746/0.1394, allocations: 1.435 MB / 406.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006123/0.1456, allocations: 2.622 MB / 409.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004289/0.1499, allocations: 2.576 MB / 412 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001975/0.1519, allocations: 0.66 MB / 412.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002568/0.1545, allocations: 0.9929 MB / 413.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001582/0.1561, allocations: 0.9733 MB / 414.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002166/0.1563, allocations: 99.94 kB / 414.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003746/0.1601, allocations: 1.704 MB / 416.4 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004827/0.1606, allocations: 359 kB / 416.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007027/0.1613, allocations: 0.5327 MB / 417.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004162/0.1655, allocations: 2.476 MB / 419.8 MB, free: 2.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1655, allocations: 0 / 419.8 MB, free: 2.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1655, allocations: 0 / 419.8 MB, free: 2.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.243e-05/0.1656, allocations: 0 / 419.8 MB, free: 2.539 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.003214/0.1688, allocations: 1.543 MB / 421.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.1688, allocations: 8.031 kB / 421.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004017/0.1692, allocations: 119.3 kB / 421.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.1706, allocations: 0.7299 MB / 422.2 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.398e-05/0.1706, allocations: 45.3 kB / 422.2 MB, free: 0 / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.1708, allocations: 64.03 kB / 422.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.1724, allocations: 1.056 MB / 423.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/0.1725, allocations: 7.938 kB / 423.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.93e-05/0.1726, allocations: 27.98 kB / 423.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001063/0.1727, allocations: 73.2 kB / 423.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.1743, allocations: 1.036 MB / 424.5 MB, free: 13.68 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.006789/0.1811, allocations: 4.446 MB / 428.9 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.1822, allocations: 0.5747 MB / 429.5 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004872/0.1827, allocations: 318 kB / 429.8 MB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002731/0.1854, allocations: 1.977 MB / 431.8 MB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.1855, allocations: 42.83 kB / 431.8 MB, free: 5.828 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 3.627e-06/0.1855, allocations: 0 / 431.8 MB, free: 5.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.004761/0.1903, allocations: 1.981 MB / 433.8 MB, free: 3.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.998e-05/0.1904, allocations: 158.2 kB / 434 MB, free: 3.559 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.1917, allocations: 0.9313 MB / 434.9 MB, free: 2.602 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.73e-05/0.1918, allocations: 37.7 kB / 434.9 MB, free: 2.559 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003548/0.1921, allocations: 500 kB / 435.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.1923, allocations: 166.6 kB / 435.6 MB, free: 1.898 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002725/0.1925, allocations: 186.5 kB / 435.8 MB, free: 1.711 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1927, allocations: 345.9 kB / 436.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005203/0.1932, allocations: 336.6 kB / 436.4 MB, free: 1.035 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007532/0.194, allocations: 0.6251 MB / 437 MB, free: 280 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.1953, allocations: 0.889 MB / 437.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.1953, allocations: 0 / 437.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002101/0.1974, allocations: 1.129 MB / 439.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.1974, allocations: 8 kB / 439.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/0.1975, allocations: 8 kB / 439.1 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002534/0.2, allocations: 381.6 kB / 439.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006552/0.2007, allocations: 179.7 kB / 439.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.2019, allocations: 1.343 MB / 441 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008147/0.2027, allocations: 43.97 kB / 441 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.621e-05/0.2028, allocations: 40 kB / 441.1 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008503/0.2037, allocations: 0.5214 MB / 441.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007228/0.2044, allocations: 0.619 MB / 442.2 MB, free: 10.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001132/0.2056, allocations: 0.8753 MB / 443.1 MB, free: 9.777 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.418e-05/0.2056, allocations: 4 kB / 443.1 MB, free: 9.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.00183/0.2074, allocations: 1.097 MB / 444.2 MB, free: 8.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.2075, allocations: 12 kB / 444.2 MB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.2075, allocations: 8 kB / 444.2 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002193/0.2097, allocations: 341.9 kB / 444.5 MB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006447/0.2103, allocations: 187.6 kB / 444.7 MB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/0.2115, allocations: 1.315 MB / 446 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007405/0.2122, allocations: 47.91 kB / 446.1 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.842e-05/0.2123, allocations: 47.94 kB / 446.1 MB, free: 6.66 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.0002743/0.2126, allocations: 243.4 kB / 446.4 MB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.2128, allocations: 99.39 kB / 446.5 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/0.2144, allocations: 0.7935 MB / 447.2 MB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.2145, allocations: 4 kB / 447.2 MB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.2145, allocations: 4 kB / 447.3 MB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2145, allocations: 4 kB / 447.3 MB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002541/0.217, allocations: 1.579 MB / 448.8 MB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2171, allocations: 0 / 448.8 MB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003863/0.2174, allocations: 79.89 kB / 448.9 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001367/0.2188, allocations: 269.5 kB / 449.2 MB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.2e-05/0.2189, allocations: 15.98 kB / 449.2 MB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009974/0.2199, allocations: 1.308 MB / 450.5 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2199, allocations: 0 / 450.5 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.2215, allocations: 1.093 MB / 451.6 MB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002535/0.2217, allocations: 168.5 kB / 451.8 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.2219, allocations: 24.06 kB / 451.8 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006175/0.2225, allocations: 23.98 kB / 451.8 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.2226, allocations: 48.38 kB / 451.9 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.258e-05/0.2227, allocations: 23.92 kB / 451.9 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008144/0.2235, allocations: 0.652 MB / 452.5 MB, free: 48 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2235, allocations: 0 / 452.5 MB, free: 48 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.1978/0.4213, allocations: 0.757 MB / 453.3 MB, free: 74.25 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.001541/0.4229, allocations: 0.6251 MB / 453.9 MB, free: 74.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002689/0.4256, allocations: 1.273 MB / 455.2 MB, free: 74.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.4256, allocations: 4.781 kB / 455.2 MB, free: 74.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006589/0.4263, allocations: 338.3 kB / 455.5 MB, free: 74.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.4282, allocations: 409.2 kB / 455.9 MB, free: 74.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.431, allocations: 1.719 MB / 457.6 MB, free: 73.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/0.4315, allocations: 1.038 MB / 458.7 MB, free: 72.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001105/0.4326, allocations: 363.9 kB / 459 MB, free: 72.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.4329, allocations: 75.81 kB / 459.1 MB, free: 72.55 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4329, allocations: 0 / 459.1 MB, free: 72.55 MB / 382.1 MB Notification: Performance of Templates: time 0.03461/0.4675, allocations: 25.33 MB / 484.4 MB, free: 55.44 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)