Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001443/0.001443, allocations: 94.94 kB / 16.3 MB, free: 5.531 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.001706/0.001707, allocations: 178 kB / 17.19 MB, free: 5.465 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.521/1.521, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.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.0004509/0.000451, allocations: 12 kB / 280.1 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09826/0.09872, allocations: 47.58 MB / 327.7 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02254/0.1213, allocations: 18.81 MB / 346.5 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01298/0.1343, allocations: 8.824 MB / 355.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.1357, allocations: 35.69 kB / 355.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001522/0.1373, allocations: 350.2 kB / 355.7 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004212/0.1415, allocations: 1.153 MB / 356.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006468/0.148, allocations: 2.042 MB / 358.9 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003097/0.1511, allocations: 1.417 MB / 360.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00124/0.1524, allocations: 0.5478 MB / 360.9 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002182/0.1546, allocations: 0.7712 MB / 361.6 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001406/0.156, allocations: 0.6268 MB / 362.3 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002953/0.1563, allocations: 55.94 kB / 362.3 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003797/0.1601, allocations: 1.56 MB / 363.9 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005848/0.1607, allocations: 287.2 kB / 364.2 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005195/0.1612, allocations: 209.1 kB / 364.4 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003658/0.1649, allocations: 1.754 MB / 366.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1649, allocations: 0 / 366.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1649, allocations: 4 kB / 366.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.375e-05/0.165, allocations: 3.938 kB / 366.1 MB, free: 13.55 MB / 318.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.003331/0.1683, allocations: 1.32 MB / 367.5 MB, free: 12.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.1684, allocations: 12.03 kB / 367.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005226/0.1689, allocations: 110.8 kB / 367.6 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/0.1704, allocations: 0.6557 MB / 368.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.519e-05/0.1704, allocations: 57.3 kB / 368.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.1706, allocations: 63.89 kB / 368.3 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/0.1723, allocations: 1.052 MB / 369.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.1724, allocations: 0 / 369.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.988e-05/0.1725, allocations: 27.98 kB / 369.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.744e-05/0.1726, allocations: 65.27 kB / 369.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.1743, allocations: 1.028 MB / 370.5 MB, free: 9.016 MB / 318.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.008366/0.1827, allocations: 4.528 MB / 375 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009726/0.1837, allocations: 0.5631 MB / 375.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00309/0.1868, allocations: 2.008 MB / 377.6 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.52e-05/0.1868, allocations: 38.89 kB / 377.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.235e-06/0.1868, allocations: 0 / 377.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.1616/0.3484, allocations: 1.949 MB / 379.6 MB, free: 54.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.3485, allocations: 161.6 kB / 379.8 MB, free: 53.9 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.3497, allocations: 0.9191 MB / 380.7 MB, free: 53.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.814e-05/0.3498, allocations: 41.92 kB / 380.7 MB, free: 53.72 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004508/0.3502, allocations: 480.5 kB / 381.2 MB, free: 53.51 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/0.3504, allocations: 164.5 kB / 381.4 MB, free: 53.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-05/0.3505, allocations: 17.38 kB / 381.4 MB, free: 53.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.882e-05/0.3506, allocations: 345.2 kB / 381.7 MB, free: 53.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006416/0.3512, allocations: 317.6 kB / 382 MB, free: 53.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006136/0.3518, allocations: 0.6127 MB / 382.6 MB, free: 52.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000662/0.3525, allocations: 399.4 kB / 383 MB, free: 52.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.3525, allocations: 2.469 kB / 383 MB, free: 52.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002092/0.3546, allocations: 1.094 MB / 384.1 MB, free: 52.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009057/0.3555, allocations: 3.487 MB / 387.6 MB, free: 48.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/0.3556, allocations: 11.09 kB / 387.6 MB, free: 48.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002698/0.3583, allocations: 381.3 kB / 388 MB, free: 48.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007624/0.3591, allocations: 183.7 kB / 388.2 MB, free: 48.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.3601, allocations: 1.338 MB / 389.5 MB, free: 47.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.3613, allocations: 56.61 kB / 389.6 MB, free: 47.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.3614, allocations: 46.52 kB / 389.6 MB, free: 47.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3614, allocations: 4.891 kB / 389.6 MB, free: 47.19 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001898/0.3633, allocations: 0.9731 MB / 390.6 MB, free: 46.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.3634, allocations: 8.938 kB / 390.6 MB, free: 46.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/0.3656, allocations: 364.3 kB / 390.9 MB, free: 46.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006743/0.3663, allocations: 183.4 kB / 391.1 MB, free: 46.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008964/0.3672, allocations: 1.302 MB / 392.4 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008718/0.3681, allocations: 57.2 kB / 392.5 MB, free: 45.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.861e-05/0.3682, allocations: 43.73 kB / 392.5 MB, free: 45.56 MB / 318.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 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006154/0.3689, allocations: 371.3 kB / 392.9 MB, free: 45.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/0.3691, allocations: 93.5 kB / 393 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/0.3708, allocations: 0.7903 MB / 393.8 MB, free: 44.9 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.3708, allocations: 5.625 kB / 393.8 MB, free: 44.9 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3708, allocations: 0.6094 kB / 393.8 MB, free: 44.9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.3708, allocations: 7.844 kB / 393.8 MB, free: 44.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002473/0.3733, allocations: 1.595 MB / 395.4 MB, free: 44.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.3733, allocations: 5.141 kB / 395.4 MB, free: 44.1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003675/0.3737, allocations: 85.12 kB / 395.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001415/0.3751, allocations: 304.2 kB / 395.8 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.619e-05/0.3751, allocations: 9.406 kB / 395.8 MB, free: 44.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007122/0.3759, allocations: 1.303 MB / 397.1 MB, free: 42.87 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3759, allocations: 1.219 kB / 397.1 MB, free: 42.87 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.3772, allocations: 1.102 MB / 398.2 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002129/0.3775, allocations: 196.5 kB / 398.4 MB, free: 42.13 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.3776, allocations: 11.56 kB / 398.4 MB, free: 42.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005368/0.3781, allocations: 40.42 kB / 398.4 MB, free: 42.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.3783, allocations: 51.48 kB / 398.5 MB, free: 42.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.502e-05/0.3783, allocations: 26.64 kB / 398.5 MB, free: 42.1 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007226/0.3791, allocations: 0.6419 MB / 399.1 MB, free: 41.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3791, allocations: 0 / 399.1 MB, free: 41.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001946/0.381, allocations: 0.7468 MB / 399.9 MB, free: 41.75 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001084/0.3821, allocations: 0.6042 MB / 400.5 MB, free: 41.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.384, allocations: 1.223 MB / 401.7 MB, free: 41.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.384, allocations: 4.125 kB / 401.7 MB, free: 41.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004596/0.3845, allocations: 315.2 kB / 402 MB, free: 41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.386, allocations: 378.5 kB / 402.4 MB, free: 40.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.388, allocations: 1.991 MB / 404.4 MB, free: 39.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.3884, allocations: 1.058 MB / 405.4 MB, free: 38.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009699/0.3894, allocations: 369.2 kB / 405.8 MB, free: 38.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.3896, allocations: 76.48 kB / 405.9 MB, free: 38.44 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3896, allocations: 0 / 405.9 MB, free: 38.44 MB / 318.1 MB Notification: Performance of Templates: time 0.02723/0.4168, allocations: 23.47 MB / 429.4 MB, free: 14.95 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) Environment - environmentSimulation: