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.008166/0.008166, allocations: 99.55 kB / 15.73 MB, free: 6.008 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.001484/0.001484, allocations: 198.5 kB / 16.68 MB, free: 5.93 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.556/1.556, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.00121/0.00121, allocations: 50.95 kB / 326.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09766, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02268/0.1204, allocations: 20.6 MB / 393.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.1314, allocations: 6.984 MB / 400.8 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001249/0.1328, allocations: 23.81 kB / 400.8 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.1341, allocations: 381.6 kB / 401.2 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003188/0.1373, allocations: 1.092 MB / 402.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005319/0.1427, allocations: 1.847 MB / 404.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003376/0.1461, allocations: 2.132 MB / 406.2 MB, free: 136 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.1472, allocations: 0.5776 MB / 406.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001743/0.149, allocations: 0.8176 MB / 407.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.1503, allocations: 0.7551 MB / 408.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001789/0.1505, allocations: 76 kB / 408.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002716/0.1532, allocations: 1.256 MB / 409.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004019/0.1536, allocations: 283.1 kB / 410 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006437/0.1543, allocations: 457.9 kB / 410.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003594/0.1579, allocations: 1.897 MB / 412.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.1579, allocations: 4 kB / 412.3 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1579, allocations: 0 / 412.3 MB, free: 10 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.481e-05/0.158, allocations: 0 / 412.3 MB, free: 10 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.002796/0.1608, allocations: 1.27 MB / 413.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.1608, allocations: 8.031 kB / 413.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004085/0.1612, allocations: 99.89 kB / 413.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.1623, allocations: 0.636 MB / 414.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.297e-05/0.1624, allocations: 41.31 kB / 414.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.1625, allocations: 55.98 kB / 414.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.1639, allocations: 0.8828 MB / 415.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.428e-05/0.1639, allocations: 4 kB / 415.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.059e-05/0.164, allocations: 20 kB / 415.3 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.987e-05/0.1641, allocations: 53.27 kB / 415.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.1655, allocations: 0.813 MB / 416.2 MB, free: 5.977 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.005773/0.1712, allocations: 3.815 MB / 420 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009509/0.1722, allocations: 0.543 MB / 420.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004194/0.1726, allocations: 278 kB / 420.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004287/0.1731, allocations: 0.4995 MB / 421.3 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.1731, allocations: 43 kB / 421.4 MB, free: 436 kB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.716e-06/0.1731, allocations: 0 / 421.4 MB, free: 436 kB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004954/0.1781, allocations: 2.124 MB / 423.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.776e-05/0.1782, allocations: 137 kB / 423.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.1792, allocations: 0.7309 MB / 424.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.411e-05/0.1793, allocations: 37.7 kB / 424.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002951/0.1796, allocations: 383.9 kB / 424.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.1798, allocations: 185.4 kB / 425 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002447/0.18, allocations: 146.6 kB / 425.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.1802, allocations: 390.7 kB / 425.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005308/0.1808, allocations: 316.7 kB / 425.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006911/0.1815, allocations: 0.5071 MB / 426.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.1827, allocations: 0.7778 MB / 427.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.1827, allocations: 4 kB / 427.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00177/0.1844, allocations: 0.9989 MB / 428.1 MB, free: 9.363 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.1845, allocations: 8.781 kB / 428.1 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.1845, allocations: 8 kB / 428.1 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001718/0.1862, allocations: 297.4 kB / 428.4 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005898/0.1868, allocations: 147.7 kB / 428.5 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/0.188, allocations: 1.304 MB / 429.8 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006663/0.1887, allocations: 31.98 kB / 429.9 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.571e-05/0.1888, allocations: 31.98 kB / 429.9 MB, free: 7.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007734/0.1896, allocations: 485.9 kB / 430.4 MB, free: 7.008 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006758/0.1903, allocations: 0.5041 MB / 430.9 MB, free: 6.414 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001107/0.1914, allocations: 0.7591 MB / 431.6 MB, free: 5.574 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.697e-06/0.1914, allocations: 0 / 431.6 MB, free: 5.574 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001733/0.1931, allocations: 0.945 MB / 432.6 MB, free: 4.613 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.1932, allocations: 8 kB / 432.6 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.1932, allocations: 11.97 kB / 432.6 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.1943, allocations: 181.7 kB / 432.8 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007102/0.195, allocations: 167.7 kB / 432.9 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008805/0.1959, allocations: 1.19 MB / 434.1 MB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006027/0.1965, allocations: 35.92 kB / 434.2 MB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.2e-05/0.1966, allocations: 40.06 kB / 434.2 MB, free: 2.93 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.0002935/0.1969, allocations: 224.1 kB / 434.4 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.1971, allocations: 79.06 kB / 434.5 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.199, allocations: 0.9807 MB / 435.5 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.199, allocations: 8 kB / 435.5 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-06/0.1991, allocations: 4 kB / 435.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.1991, allocations: 3.984 kB / 435.5 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002928/0.202, allocations: 1.747 MB / 437.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.202, allocations: 0 / 437.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004517/0.2025, allocations: 107.8 kB / 437.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.2036, allocations: 229.6 kB / 437.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.874e-05/0.2037, allocations: 19.98 kB / 437.6 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.2047, allocations: 1.28 MB / 438.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.2047, allocations: 0 / 438.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002176/0.2069, allocations: 1.313 MB / 440.2 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/0.2072, allocations: 156.1 kB / 440.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.2074, allocations: 16.08 kB / 440.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004875/0.2078, allocations: 31.97 kB / 440.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.208, allocations: 60.47 kB / 440.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.2082, allocations: 28.05 kB / 440.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007342/0.2089, allocations: 0.5107 MB / 441 MB, free: 11.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2089, allocations: 0 / 441 MB, free: 11.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001797/0.2107, allocations: 0.5857 MB / 441.6 MB, free: 11.36 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.001326/0.212, allocations: 0.5257 MB / 442.1 MB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002613/0.2147, allocations: 1.211 MB / 443.3 MB, free: 9.617 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.2147, allocations: 0 / 443.3 MB, free: 9.617 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007125/0.2154, allocations: 399.6 kB / 443.7 MB, free: 9.227 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002055/0.2175, allocations: 414.1 kB / 444.1 MB, free: 8.824 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.2204, allocations: 1.603 MB / 445.7 MB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006352/0.221, allocations: 0.9875 MB / 446.7 MB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001057/0.2221, allocations: 330.9 kB / 447 MB, free: 5.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002137/0.2223, allocations: 75.42 kB / 447.1 MB, free: 5.766 MB / 382.1 MB Notification: Performance of SimCode: time 7.02e-07/0.2223, allocations: 0 / 447.1 MB, free: 5.766 MB / 382.1 MB Notification: Performance of Templates: time 0.2269/0.4493, allocations: 23.04 MB / 470.1 MB, free: 67.19 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)