Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.0009978/0.0009978, allocations: 100.2 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.0009469/0.0009471, 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.69/1.69, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004972/0.0004974, allocations: 10.81 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2595, allocations: 47.57 MB / 326.4 MB, free: 1.633 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.01983/0.2794, allocations: 17.73 MB / 344.2 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.2907, allocations: 6.235 MB / 350.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001377/0.2922, allocations: 31.75 kB / 350.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.2933, allocations: 314.4 kB / 350.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002928/0.2962, allocations: 0.8958 MB / 351.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003891/0.3001, allocations: 1.427 MB / 353.1 MB, free: 9 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002358/0.3025, allocations: 1.207 MB / 354.3 MB, free: 7.793 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009579/0.3035, allocations: 487.3 kB / 354.8 MB, free: 7.305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00155/0.305, allocations: 0.6426 MB / 355.4 MB, free: 6.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001002/0.306, allocations: 0.4982 MB / 355.9 MB, free: 6.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.3062, allocations: 40 kB / 355.9 MB, free: 6.121 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003129/0.3093, allocations: 1.108 MB / 357 MB, free: 5.012 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002906/0.3096, allocations: 227.3 kB / 357.3 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002758/0.3099, allocations: 181.3 kB / 357.4 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001972/0.3119, allocations: 1.356 MB / 358.8 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3119, allocations: 0 / 358.8 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3119, allocations: 0 / 358.8 MB, free: 3.246 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.3119, allocations: 0 / 358.8 MB, free: 3.246 MB / 286.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.002715/0.3146, allocations: 1.114 MB / 359.9 MB, free: 2.082 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.3147, allocations: 12.03 kB / 359.9 MB, free: 2.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003776/0.3151, allocations: 98.92 kB / 360 MB, free: 1.973 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.3161, allocations: 0.5739 MB / 360.6 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.427e-05/0.3162, allocations: 49.3 kB / 360.6 MB, free: 1.305 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.653e-05/0.3163, allocations: 59.92 kB / 360.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.3177, allocations: 0.8751 MB / 361.6 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.3178, allocations: 3.938 kB / 361.6 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.074e-05/0.3179, allocations: 27.98 kB / 361.6 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.77e-05/0.3179, allocations: 49.23 kB / 361.7 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.3194, allocations: 0.8052 MB / 362.5 MB, free: 15.44 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.005285/0.3247, allocations: 3.854 MB / 366.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008119/0.3255, allocations: 0.5319 MB / 366.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004221/0.3259, allocations: 0.5034 MB / 367.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.326, allocations: 39 kB / 367.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 1.913e-06/0.326, allocations: 0 / 367.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.004478/0.3304, allocations: 2.113 MB / 369.5 MB, free: 7.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.311e-05/0.3305, allocations: 152.8 kB / 369.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/0.3316, allocations: 0.723 MB / 370.4 MB, free: 7.012 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.041e-05/0.3316, allocations: 37.7 kB / 370.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003378/0.332, allocations: 379.9 kB / 370.8 MB, free: 6.594 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/0.3322, allocations: 181.5 kB / 371 MB, free: 6.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.043e-05/0.3323, allocations: 16 kB / 371 MB, free: 6.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002215/0.3325, allocations: 386.8 kB / 371.3 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004584/0.333, allocations: 293.8 kB / 371.6 MB, free: 5.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007048/0.3337, allocations: 0.507 MB / 372.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005244/0.3342, allocations: 354 kB / 372.5 MB, free: 4.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3342, allocations: 0 / 372.5 MB, free: 4.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001572/0.3358, allocations: 0.9795 MB / 373.5 MB, free: 3.785 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001106/0.3369, allocations: 2.266 MB / 375.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.3369, allocations: 16 kB / 375.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/0.3386, allocations: 301.4 kB / 376 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005483/0.3392, allocations: 147.7 kB / 376.2 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/0.3403, allocations: 1.308 MB / 377.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005969/0.3409, allocations: 52 kB / 377.5 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.88e-05/0.3409, allocations: 39.98 kB / 377.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.035e-06/0.341, allocations: 4 kB / 377.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001448/0.3424, allocations: 0.8343 MB / 378.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.3424, allocations: 8 kB / 378.4 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.3435, allocations: 194.2 kB / 378.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006546/0.3442, allocations: 167.7 kB / 378.8 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009868/0.3452, allocations: 1.187 MB / 380 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005323/0.3457, allocations: 52.05 kB / 380 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.219e-05/0.3458, allocations: 35.98 kB / 380.1 MB, free: 12.89 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 ($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 (85): * Single equations (assignments): 83 * 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 2,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004562/0.3462, allocations: 336.1 kB / 380.4 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001876/0.3464, allocations: 79.06 kB / 380.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.3482, allocations: 0.9845 MB / 381.4 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.3482, allocations: 11.94 kB / 381.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3482, allocations: 0 / 381.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.3482, allocations: 3.984 kB / 381.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/0.3508, allocations: 1.759 MB / 383.2 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3508, allocations: 7.938 kB / 383.2 MB, free: 9.629 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004141/0.3512, allocations: 99.88 kB / 383.3 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.3522, allocations: 249.7 kB / 383.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.264e-05/0.3523, allocations: 27.92 kB / 383.6 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009164/0.3532, allocations: 1.265 MB / 384.9 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3532, allocations: 4.031 kB / 384.9 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.355, allocations: 1.345 MB / 386.2 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/0.3552, allocations: 168 kB / 386.4 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.3553, allocations: 19.98 kB / 386.4 MB, free: 6.336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005034/0.3558, allocations: 43.83 kB / 386.4 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.356, allocations: 60.53 kB / 386.5 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.833e-05/0.356, allocations: 27.98 kB / 386.5 MB, free: 6.207 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006067/0.3566, allocations: 0.5068 MB / 387 MB, free: 5.707 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3566, allocations: 0 / 387 MB, free: 5.707 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001586/0.3582, allocations: 0.5896 MB / 387.6 MB, free: 5.117 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 (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 7,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001102/0.3593, allocations: 498.6 kB / 388.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.3614, allocations: 1.188 MB / 389.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.3615, allocations: 4 kB / 389.3 MB, free: 3.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005936/0.3621, allocations: 391.3 kB / 389.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.3637, allocations: 382.5 kB / 390.1 MB, free: 2.676 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002537/0.3662, allocations: 1.9 MB / 392 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005487/0.3668, allocations: 1.003 MB / 393 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001018/0.3678, allocations: 327 kB / 393.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.368, allocations: 79.41 kB / 393.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.368, allocations: 0 / 393.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of Templates: time 0.03338/0.4014, allocations: 21.15 MB / 414.5 MB, free: 10.12 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) Environment - environmentSimulation: