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.001685/0.001686, allocations: 107.1 kB / 17.06 MB, free: 6.117 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.001793/0.001793, allocations: 195 kB / 18 MB, free: 5.191 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.589/1.589, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001253/0.001253, allocations: 51.88 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08587/0.08714, allocations: 46.61 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.1856/0.2728, allocations: 21.79 MB / 396.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01379/0.2866, allocations: 9.96 MB / 406.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001175/0.2879, allocations: 29.47 kB / 406.3 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.2893, allocations: 397.3 kB / 406.6 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004143/0.2934, allocations: 1.429 MB / 408.1 MB, free: 7.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007299/0.3007, allocations: 2.622 MB / 410.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003988/0.3047, allocations: 2.562 MB / 413.3 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001394/0.3061, allocations: 0.6665 MB / 413.9 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0022/0.3084, allocations: 0.9934 MB / 414.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001792/0.3102, allocations: 0.9737 MB / 415.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001912/0.3104, allocations: 92.53 kB / 416 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004087/0.3145, allocations: 1.714 MB / 417.7 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004376/0.3149, allocations: 365.8 kB / 418.1 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007299/0.3157, allocations: 0.532 MB / 418.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003938/0.3196, allocations: 2.452 MB / 421 MB, free: 252 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3196, allocations: 0 / 421 MB, free: 252 kB / 334.1 MB Notification: Performance of FrontEnd: time 9.518e-06/0.3196, allocations: 1.375 kB / 421 MB, free: 252 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.542e-05/0.3197, allocations: 7.922 kB / 421 MB, free: 244 kB / 334.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.003787/0.3235, allocations: 1.498 MB / 422.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.3235, allocations: 13.64 kB / 422.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000455/0.324, allocations: 104.8 kB / 422.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001415/0.3254, allocations: 0.7247 MB / 423.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.006e-05/0.3255, allocations: 52.69 kB / 423.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.3256, allocations: 63.98 kB / 423.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/0.3273, allocations: 1.062 MB / 424.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.3274, allocations: 0 / 424.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.41e-05/0.3275, allocations: 31.92 kB / 424.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.089e-05/0.3276, allocations: 65.27 kB / 424.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001574/0.3291, allocations: 1.036 MB / 425.7 MB, free: 12.23 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.007101/0.3362, allocations: 4.442 MB / 430.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.3373, allocations: 0.563 MB / 430.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005856/0.3379, allocations: 322 kB / 431 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002621/0.3405, allocations: 1.973 MB / 433 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.3406, allocations: 42.88 kB / 433 MB, free: 4.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.693e-06/0.3406, allocations: 4 kB / 433 MB, free: 4.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004583/0.3452, allocations: 1.958 MB / 435 MB, free: 2.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.431e-05/0.3453, allocations: 158.2 kB / 435.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/0.3465, allocations: 0.9312 MB / 436.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.763e-05/0.3466, allocations: 45.69 kB / 436.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003677/0.3469, allocations: 482.8 kB / 436.6 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.3471, allocations: 157.8 kB / 436.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003037/0.3474, allocations: 194.4 kB / 436.9 MB, free: 316 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.3476, allocations: 341.9 kB / 437.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006053/0.3482, allocations: 332.7 kB / 437.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000835/0.349, allocations: 0.625 MB / 438.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.3502, allocations: 0.8851 MB / 439.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.3502, allocations: 4.875 kB / 439.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001839/0.3521, allocations: 1.124 MB / 440.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.3521, allocations: 12 kB / 440.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.3521, allocations: 8 kB / 440.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002371/0.3545, allocations: 381.8 kB / 440.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007176/0.3552, allocations: 183.7 kB / 440.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001199/0.3564, allocations: 1.341 MB / 442.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007351/0.3572, allocations: 39.98 kB / 442.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.602e-05/0.3573, allocations: 43.98 kB / 442.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008208/0.3581, allocations: 0.5213 MB / 442.7 MB, free: 10.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007239/0.3588, allocations: 0.6229 MB / 443.4 MB, free: 9.387 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001174/0.36, allocations: 0.8753 MB / 444.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.657e-06/0.36, allocations: 4 kB / 444.2 MB, free: 8.379 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001683/0.3617, allocations: 1.089 MB / 445.3 MB, free: 7.277 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.3618, allocations: 8.906 kB / 445.3 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.3618, allocations: 8 kB / 445.4 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002135/0.3639, allocations: 337.3 kB / 445.7 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006194/0.3645, allocations: 183.7 kB / 445.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001147/0.3657, allocations: 1.321 MB / 447.2 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007302/0.3664, allocations: 39.98 kB / 447.2 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.411e-05/0.3665, allocations: 47.98 kB / 447.3 MB, free: 5.289 MB / 366.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.000282/0.3668, allocations: 251.6 kB / 447.5 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.367, allocations: 94.88 kB / 447.6 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.3686, allocations: 0.7854 MB / 448.4 MB, free: 4.152 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.896e-06/0.3686, allocations: 12 kB / 448.4 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3687, allocations: 0 / 448.4 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.3687, allocations: 3.984 kB / 448.4 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/0.3712, allocations: 1.583 MB / 450 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.3713, allocations: 4 kB / 450 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003544/0.3716, allocations: 83.95 kB / 450.1 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00132/0.373, allocations: 265.4 kB / 450.3 MB, free: 2.133 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.264e-05/0.373, allocations: 13 kB / 450.3 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001038/0.3741, allocations: 1.308 MB / 451.7 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/0.3741, allocations: 4.031 kB / 451.7 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.3757, allocations: 1.085 MB / 452.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002655/0.376, allocations: 168 kB / 452.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.3761, allocations: 12 kB / 452.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000497/0.3766, allocations: 27.97 kB / 452.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.3767, allocations: 48.38 kB / 453 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.197e-05/0.3768, allocations: 24.86 kB / 453 MB, free: 15.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008093/0.3776, allocations: 0.6558 MB / 453.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3776, allocations: 0 / 453.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002044/0.3797, allocations: 0.7496 MB / 454.4 MB, free: 13.93 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.001736/0.3814, allocations: 0.633 MB / 455.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002618/0.384, allocations: 1.271 MB / 456.3 MB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.3841, allocations: 4 kB / 456.3 MB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006528/0.3847, allocations: 338.2 kB / 456.7 MB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.3867, allocations: 406.8 kB / 457.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003417/0.3901, allocations: 1.703 MB / 458.8 MB, free: 9.551 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007026/0.3908, allocations: 1.029 MB / 459.8 MB, free: 8.492 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001081/0.3919, allocations: 368 kB / 460.2 MB, free: 8.129 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/0.3921, allocations: 75.42 kB / 460.2 MB, free: 8.059 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3921, allocations: 0 / 460.2 MB, free: 8.059 MB / 382.1 MB Notification: Performance of Templates: time 0.0401/0.4323, allocations: 25.74 MB / 486 MB, free: 14.27 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (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)