Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001214/0.001214, allocations: 194 kB / 16.25 MB, free: 6.633 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.348/1.348, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.001127/0.001127, allocations: 47.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2034, allocations: 46.62 MB / 324.9 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03021/0.2337, allocations: 32.21 MB / 357.1 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0195/0.2532, allocations: 14.52 MB / 371.6 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.255, allocations: 59.56 kB / 371.6 MB, free: 5.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.2564, allocations: 0.5168 MB / 372.2 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004546/0.261, allocations: 2.019 MB / 374.2 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008308/0.2693, allocations: 3.383 MB / 377.6 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005864/0.2752, allocations: 3.984 MB / 381.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002249/0.2775, allocations: 1.002 MB / 382.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003532/0.281, allocations: 1.491 MB / 384 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002534/0.2836, allocations: 1.581 MB / 385.6 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003718/0.284, allocations: 144 kB / 385.8 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004232/0.2882, allocations: 2.309 MB / 388.1 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006948/0.289, allocations: 0.561 MB / 388.6 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.29, allocations: 0.8205 MB / 389.4 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005656/0.2957, allocations: 3.581 MB / 393 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2957, allocations: 4 kB / 393 MB, free: 15.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2957, allocations: 0 / 393 MB, free: 15.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.158e-05/0.2958, allocations: 0 / 393 MB, free: 15.71 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004383/0.3001, allocations: 2.103 MB / 395.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.3002, allocations: 8.031 kB / 395.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005667/0.3008, allocations: 170.2 kB / 395.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.3021, allocations: 0.9521 MB / 396.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.386e-05/0.3022, allocations: 81.97 kB / 396.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.3023, allocations: 95.97 kB / 396.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002495/0.3048, allocations: 1.632 MB / 398.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.971e-05/0.3049, allocations: 15.88 kB / 398.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.305, allocations: 39.98 kB / 398.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001333/0.3051, allocations: 101.9 kB / 398.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.3076, allocations: 1.643 MB / 399.9 MB, free: 8.699 MB / 334.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.009523/0.3171, allocations: 6.648 MB / 406.5 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.3186, allocations: 0.9305 MB / 407.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007614/0.3194, allocations: 0.5542 MB / 408 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003973/0.3233, allocations: 2.813 MB / 410.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.3234, allocations: 43.22 kB / 410.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.274e-06/0.3234, allocations: 0 / 410.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.008311/0.3317, allocations: 3.707 MB / 414.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.3319, allocations: 188.9 kB / 414.7 MB, free: 9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.3336, allocations: 1.31 MB / 416.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001461/0.3338, allocations: 49.69 kB / 416.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004712/0.3343, allocations: 0.6511 MB / 416.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/0.3346, allocations: 323.4 kB / 417.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004243/0.335, allocations: 283.3 kB / 417.3 MB, free: 6.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.393e-05/0.3351, allocations: 309 kB / 417.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009341/0.336, allocations: 0.5864 MB / 418.2 MB, free: 5.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.3373, allocations: 1.004 MB / 419.2 MB, free: 4.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/0.3392, allocations: 1.485 MB / 420.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.3393, allocations: 4 kB / 420.7 MB, free: 2.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003065/0.3423, allocations: 1.9 MB / 422.6 MB, free: 0.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.3424, allocations: 12 kB / 422.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.3424, allocations: 12.06 kB / 422.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004726/0.3471, allocations: 0.7716 MB / 423.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.3483, allocations: 283.5 kB / 423.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.3504, allocations: 2.16 MB / 425.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.3517, allocations: 95.91 kB / 426 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.3518, allocations: 71.92 kB / 426 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001298/0.3531, allocations: 0.8356 MB / 426.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001176/0.3543, allocations: 1.007 MB / 427.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001795/0.3561, allocations: 1.456 MB / 429.3 MB, free: 9.566 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.266e-06/0.3561, allocations: 4 kB / 429.3 MB, free: 9.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003095/0.3592, allocations: 1.826 MB / 431.2 MB, free: 7.715 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.3593, allocations: 16.03 kB / 431.2 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.3593, allocations: 12 kB / 431.2 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00394/0.3632, allocations: 0.5877 MB / 431.8 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.3643, allocations: 295.5 kB / 432.1 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.366, allocations: 2.016 MB / 434.1 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.3673, allocations: 96 kB / 434.2 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.3674, allocations: 63.98 kB / 434.2 MB, free: 4.551 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0004204/0.3678, allocations: 275.8 kB / 434.5 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002514/0.3681, allocations: 150.2 kB / 434.6 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00293/0.371, allocations: 1.518 MB / 436.2 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.3711, allocations: 19.94 kB / 436.2 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3711, allocations: 0 / 436.2 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.3711, allocations: 3.984 kB / 436.2 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004208/0.3753, allocations: 2.795 MB / 439 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.3753, allocations: 0 / 439 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006805/0.376, allocations: 155.8 kB / 439.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002691/0.3787, allocations: 0.584 MB / 439.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-05/0.3788, allocations: 24 kB / 439.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001702/0.3805, allocations: 2.118 MB / 441.9 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3806, allocations: 7.922 kB / 441.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00314/0.3837, allocations: 2.094 MB / 444 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004294/0.3842, allocations: 219.6 kB / 444.2 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002576/0.3844, allocations: 31.94 kB / 444.2 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008744/0.3853, allocations: 67.78 kB / 444.3 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000211/0.3855, allocations: 100.8 kB / 444.4 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.3857, allocations: 43.97 kB / 444.4 MB, free: 10.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001169/0.3868, allocations: 0.9006 MB / 445.3 MB, free: 9.203 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3868, allocations: 0 / 445.3 MB, free: 9.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002602/0.3894, allocations: 1.113 MB / 446.4 MB, free: 8.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,12), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001835/0.3913, allocations: 0.829 MB / 447.3 MB, free: 7.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005116/0.3964, allocations: 2.577 MB / 449.8 MB, free: 4.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.3965, allocations: 3.859 kB / 449.8 MB, free: 4.676 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.3977, allocations: 0.6932 MB / 450.5 MB, free: 3.984 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002825/0.4006, allocations: 0.6249 MB / 451.2 MB, free: 3.359 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004455/0.405, allocations: 3.189 MB / 454.3 MB, free: 128 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1462/0.5513, allocations: 1.251 MB / 455.6 MB, free: 115 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002163/0.5535, allocations: 0.5651 MB / 456.2 MB, free: 115 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/0.5539, allocations: 116.4 kB / 456.3 MB, free: 115 MB / 382.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5539, allocations: 4 kB / 456.3 MB, free: 115 MB / 382.1 MB Notification: Performance of Templates: time 0.04704/0.6009, allocations: 39.58 MB / 495.9 MB, free: 84.26 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)