Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001551/0.001552, allocations: 108.8 kB / 16.62 MB, free: 6.816 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.001742/0.001742, allocations: 189.8 kB / 17.55 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.38/1.38, allocations: 205.1 MB / 223.4 MB, free: 12.48 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.001334/0.001334, allocations: 51.92 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08492/0.08627, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02071/0.107, allocations: 21.2 MB / 347.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009163/0.1162, allocations: 7.109 MB / 354.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008973/0.1172, allocations: 35.75 kB / 354.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.1182, allocations: 322.3 kB / 354.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002849/0.1211, allocations: 1.027 MB / 355.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004185/0.1253, allocations: 1.688 MB / 357.5 MB, free: 5.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002443/0.1278, allocations: 2.152 MB / 359.7 MB, free: 3.145 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009537/0.1287, allocations: 0.5695 MB / 360.2 MB, free: 2.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001474/0.1302, allocations: 0.833 MB / 361.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.1313, allocations: 0.7941 MB / 361.9 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001268/0.1314, allocations: 80 kB / 361.9 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002101/0.1335, allocations: 1.24 MB / 363.2 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.1338, allocations: 283.2 kB / 363.5 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004898/0.1343, allocations: 469.9 kB / 363.9 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002397/0.1367, allocations: 1.882 MB / 365.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1367, allocations: 0 / 365.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1367, allocations: 3.938 kB / 365.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.911e-05/0.1368, allocations: 0 / 365.8 MB, free: 12.98 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002761/0.1396, allocations: 1.278 MB / 367.1 MB, free: 11.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.1396, allocations: 12.03 kB / 367.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004087/0.14, allocations: 103.9 kB / 367.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000873/0.1409, allocations: 0.5855 MB / 367.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.77e-05/0.141, allocations: 49.28 kB / 367.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.174e-05/0.1411, allocations: 55.91 kB / 367.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.1424, allocations: 0.8906 MB / 368.8 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.1425, allocations: 8 kB / 368.8 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.747e-05/0.1425, allocations: 23.98 kB / 368.8 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.47e-05/0.1426, allocations: 45.3 kB / 368.8 MB, free: 9.789 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.1439, allocations: 0.8091 MB / 369.7 MB, free: 8.98 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.005574/0.1495, allocations: 3.83 MB / 373.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009753/0.1505, allocations: 0.547 MB / 374 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004206/0.1509, allocations: 270 kB / 374.3 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004242/0.1513, allocations: 0.5073 MB / 374.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.1514, allocations: 42.94 kB / 374.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 3.446e-06/0.1514, allocations: 0 / 374.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.004837/0.1562, allocations: 2.116 MB / 377 MB, free: 1.191 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.1563, allocations: 133 kB / 377.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009273/0.1573, allocations: 0.7348 MB / 377.8 MB, free: 296 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.502e-05/0.1574, allocations: 41.69 kB / 377.9 MB, free: 248 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.147/0.3044, allocations: 375.5 kB / 378.2 MB, free: 55.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002602/0.3047, allocations: 185 kB / 378.4 MB, free: 55.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003164/0.305, allocations: 150 kB / 378.6 MB, free: 55.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3052, allocations: 388 kB / 378.9 MB, free: 55.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005643/0.3057, allocations: 310.9 kB / 379.2 MB, free: 55.44 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006408/0.3064, allocations: 0.5177 MB / 379.8 MB, free: 55.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.3075, allocations: 0.7713 MB / 380.5 MB, free: 54.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.3075, allocations: 3.625 kB / 380.5 MB, free: 54.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002086/0.3096, allocations: 0.9982 MB / 381.5 MB, free: 54.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.3096, allocations: 6.375 kB / 381.5 MB, free: 54.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.3096, allocations: 10.03 kB / 381.5 MB, free: 54.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001768/0.3114, allocations: 297.3 kB / 381.8 MB, free: 54.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005891/0.312, allocations: 147.6 kB / 382 MB, free: 54.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008972/0.3129, allocations: 1.3 MB / 383.3 MB, free: 53.33 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006678/0.3136, allocations: 49.7 kB / 383.3 MB, free: 53.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.209e-05/0.3137, allocations: 35.83 kB / 383.4 MB, free: 53.3 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008342/0.3145, allocations: 483.8 kB / 383.8 MB, free: 53.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006855/0.3152, allocations: 0.509 MB / 384.3 MB, free: 52.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001154/0.3164, allocations: 0.7518 MB / 385.1 MB, free: 52.24 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.698e-06/0.3164, allocations: 3.062 kB / 385.1 MB, free: 52.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001858/0.3183, allocations: 0.9411 MB / 386 MB, free: 51.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3183, allocations: 11.27 kB / 386.1 MB, free: 51.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.3183, allocations: 6.5 kB / 386.1 MB, free: 51.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00116/0.3195, allocations: 179.1 kB / 386.2 MB, free: 51.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007179/0.3202, allocations: 173.6 kB / 386.4 MB, free: 51.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006264/0.3209, allocations: 1.185 MB / 387.6 MB, free: 50.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006693/0.3216, allocations: 46.66 kB / 387.6 MB, free: 50.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.424e-05/0.3217, allocations: 34.05 kB / 387.7 MB, free: 50.69 MB / 318.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.0002757/0.3219, allocations: 243 kB / 387.9 MB, free: 50.46 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.3221, allocations: 80 kB / 388 MB, free: 50.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002095/0.3242, allocations: 0.9725 MB / 389 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.3243, allocations: 7.453 kB / 389 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.3243, allocations: 5.5 kB / 389 MB, free: 50.03 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3243, allocations: 3.703 kB / 389 MB, free: 50.03 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003068/0.3274, allocations: 1.752 MB / 390.7 MB, free: 49.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.3274, allocations: 5.688 kB / 390.7 MB, free: 49.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/0.3279, allocations: 101.9 kB / 390.8 MB, free: 49.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.329, allocations: 242.1 kB / 391.1 MB, free: 49.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.497e-05/0.3291, allocations: 20.56 kB / 391.1 MB, free: 49.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007266/0.3298, allocations: 1.267 MB / 392.4 MB, free: 47.97 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/0.3298, allocations: 5.844 kB / 392.4 MB, free: 47.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/0.3317, allocations: 1.31 MB / 393.7 MB, free: 47.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002781/0.332, allocations: 155.7 kB / 393.8 MB, free: 47.19 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/0.3322, allocations: 20.88 kB / 393.8 MB, free: 47.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005845/0.3328, allocations: 37.48 kB / 393.9 MB, free: 47.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.3329, allocations: 60.52 kB / 393.9 MB, free: 47.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.239e-05/0.333, allocations: 25.44 kB / 394 MB, free: 47.15 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006552/0.3337, allocations: 0.5122 MB / 394.5 MB, free: 46.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3337, allocations: 0 / 394.5 MB, free: 46.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001795/0.3355, allocations: 0.5956 MB / 395.1 MB, free: 46.87 MB / 318.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.001462/0.337, allocations: 0.4909 MB / 395.6 MB, free: 46.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002643/0.3396, allocations: 1.329 MB / 396.9 MB, free: 46.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.3397, allocations: 0 / 396.9 MB, free: 46.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006181/0.3403, allocations: 403.4 kB / 397.3 MB, free: 46.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/0.3422, allocations: 425.2 kB / 397.7 MB, free: 45.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002432/0.3446, allocations: 1.876 MB / 399.6 MB, free: 44.76 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.345, allocations: 0.9921 MB / 400.6 MB, free: 43.92 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001054/0.3461, allocations: 330.6 kB / 400.9 MB, free: 43.72 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000284/0.3464, allocations: 87.34 kB / 401 MB, free: 43.64 MB / 318.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3464, allocations: 0 / 401 MB, free: 43.64 MB / 318.1 MB Notification: Performance of Templates: time 0.02912/0.3755, allocations: 22.68 MB / 423.7 MB, free: 20.94 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)