Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.001534/0.001534, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.002024/0.002024, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.4 MB / 222.1 MB, free: 5.883 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.0004404/0.0004405, allocations: 8 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2645, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.01948/0.284, allocations: 18.8 MB / 345.3 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01216/0.2962, allocations: 8.829 MB / 354.1 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001308/0.2976, allocations: 35.69 kB / 354.1 MB, free: 7.812 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.2988, allocations: 350.2 kB / 354.5 MB, free: 7.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003115/0.3019, allocations: 1.157 MB / 355.6 MB, free: 6.309 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005644/0.3076, allocations: 2.038 MB / 357.7 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002722/0.3103, allocations: 1.413 MB / 359.1 MB, free: 2.852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008978/0.3112, allocations: 0.5556 MB / 359.6 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001386/0.3126, allocations: 0.7673 MB / 360.4 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000931/0.3136, allocations: 0.6385 MB / 361 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.3137, allocations: 48 kB / 361.1 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003469/0.3172, allocations: 1.56 MB / 362.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003506/0.3176, allocations: 283.2 kB / 362.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002896/0.3179, allocations: 205.3 kB / 363.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00272/0.3206, allocations: 1.769 MB / 364.9 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.3206, allocations: 0 / 364.9 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3206, allocations: 0 / 364.9 MB, free: 13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.3206, allocations: 0 / 364.9 MB, free: 13 MB / 302.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.002796/0.3234, allocations: 1.313 MB / 366.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3235, allocations: 8.031 kB / 366.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003911/0.3239, allocations: 118.8 kB / 366.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001137/0.325, allocations: 0.6635 MB / 367 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.715e-05/0.3251, allocations: 49.3 kB / 367 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.3252, allocations: 71.91 kB / 367.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.3268, allocations: 1.044 MB / 368.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.3268, allocations: 0 / 368.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.67e-05/0.3269, allocations: 31.92 kB / 368.2 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.892e-05/0.327, allocations: 69.2 kB / 368.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.3286, allocations: 1.024 MB / 369.3 MB, free: 8.469 MB / 302.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.006527/0.3352, allocations: 4.527 MB / 373.8 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009118/0.3361, allocations: 0.567 MB / 374.4 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002508/0.3386, allocations: 2 MB / 376.4 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.3387, allocations: 38.89 kB / 376.4 MB, free: 0.832 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.274e-06/0.3387, allocations: 3.938 kB / 376.4 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004224/0.3429, allocations: 1.95 MB / 378.4 MB, free: 14.78 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.866e-05/0.343, allocations: 166.2 kB / 378.5 MB, free: 14.58 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.3442, allocations: 0.9196 MB / 379.4 MB, free: 13.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-05/0.3442, allocations: 37.7 kB / 379.5 MB, free: 13.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003397/0.3446, allocations: 486.8 kB / 380 MB, free: 13.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.3447, allocations: 165.7 kB / 380.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.3448, allocations: 20 kB / 380.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.3449, allocations: 337.9 kB / 380.5 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004969/0.3454, allocations: 313.8 kB / 380.8 MB, free: 12.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006893/0.3461, allocations: 0.6055 MB / 381.4 MB, free: 11.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006171/0.3467, allocations: 405.9 kB / 381.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.3468, allocations: 4 kB / 381.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001705/0.3485, allocations: 1.097 MB / 382.9 MB, free: 10.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001251/0.3497, allocations: 3.491 MB / 386.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.3498, allocations: 12 kB / 386.4 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002478/0.3522, allocations: 381.2 kB / 386.7 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006777/0.3529, allocations: 171.7 kB / 386.9 MB, free: 5.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.3541, allocations: 1.35 MB / 388.3 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008243/0.3549, allocations: 60.09 kB / 388.3 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.683e-05/0.355, allocations: 40 kB / 388.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.355, allocations: 4 kB / 388.4 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001559/0.3566, allocations: 0.9715 MB / 389.3 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3566, allocations: 11.94 kB / 389.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002214/0.3589, allocations: 361.5 kB / 389.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000616/0.3595, allocations: 171.7 kB / 389.9 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009731/0.3605, allocations: 1.315 MB / 391.2 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006861/0.3612, allocations: 55.91 kB / 391.2 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.899e-05/0.3612, allocations: 43.98 kB / 391.3 MB, free: 1.223 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.0004798/0.3617, allocations: 356.9 kB / 391.6 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.3619, allocations: 98.86 kB / 391.7 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001573/0.3635, allocations: 0.7934 MB / 392.5 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.3635, allocations: 8.234 kB / 392.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3635, allocations: 0 / 392.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3635, allocations: 3.984 kB / 392.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.3659, allocations: 1.606 MB / 394.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.366, allocations: 0 / 394.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003552/0.3663, allocations: 75.91 kB / 394.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001509/0.3678, allocations: 301.4 kB / 394.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.947e-05/0.3679, allocations: 15.98 kB / 394.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.3689, allocations: 1.304 MB / 395.8 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.369, allocations: 7.922 kB / 395.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.3706, allocations: 1.099 MB / 396.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003129/0.3709, allocations: 195.9 kB / 397.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.371, allocations: 8 kB / 397.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000542/0.3716, allocations: 44.03 kB / 397.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.3717, allocations: 56.25 kB / 397.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-05/0.3718, allocations: 23.98 kB / 397.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000886/0.3727, allocations: 0.6442 MB / 397.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3727, allocations: 0 / 397.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00214/0.3748, allocations: 0.7496 MB / 398.6 MB, free: 9.629 MB / 334.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.001312/0.3762, allocations: 0.6065 MB / 399.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002373/0.3785, allocations: 1.223 MB / 400.5 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.3786, allocations: 0 / 400.5 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006223/0.3792, allocations: 311.9 kB / 400.8 MB, free: 7.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001897/0.3811, allocations: 370.9 kB / 401.1 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.3841, allocations: 1.993 MB / 403.1 MB, free: 5.102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005975/0.3847, allocations: 1.057 MB / 404.2 MB, free: 4.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001121/0.3858, allocations: 368 kB / 404.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.386, allocations: 75.42 kB / 404.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of SimCode: time 9.82e-07/0.386, allocations: 4 kB / 404.6 MB, free: 3.574 MB / 334.1 MB Notification: Performance of Templates: time 0.03661/0.4226, allocations: 23.47 MB / 428.1 MB, free: 12.07 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) Environment - environmentSimulation: