Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001154/0.001154, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001418/0.001418, allocations: 190.3 kB / 16.25 MB, free: 6.617 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.394/1.394, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.001255/0.001255, allocations: 51.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2295, allocations: 46.63 MB / 324.9 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02279/0.2523, allocations: 22.51 MB / 347.4 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01316/0.2655, allocations: 10.12 MB / 357.5 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.2668, allocations: 39.69 kB / 357.5 MB, free: 3.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.2679, allocations: 358.1 kB / 357.9 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003059/0.271, allocations: 1.326 MB / 359.2 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005539/0.2765, allocations: 2.405 MB / 361.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002923/0.2794, allocations: 2.569 MB / 364.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009287/0.2804, allocations: 0.6597 MB / 364.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001443/0.2818, allocations: 0.9927 MB / 365.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001194/0.283, allocations: 1.012 MB / 366.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001462/0.2832, allocations: 92 kB / 366.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002965/0.2862, allocations: 1.704 MB / 368.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003755/0.2866, allocations: 363 kB / 369 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005372/0.2871, allocations: 0.5328 MB / 369.5 MB, free: 7.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002828/0.29, allocations: 2.451 MB / 372 MB, free: 4.832 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.29, allocations: 0 / 372 MB, free: 4.832 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.29, allocations: 0 / 372 MB, free: 4.832 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.29, allocations: 0 / 372 MB, free: 4.832 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.002844/0.2928, allocations: 1.495 MB / 373.5 MB, free: 3.285 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.2929, allocations: 12.03 kB / 373.5 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003711/0.2933, allocations: 110.8 kB / 373.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000939/0.2942, allocations: 0.6863 MB / 374.3 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.1e-05/0.2943, allocations: 57.27 kB / 374.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.2944, allocations: 59.98 kB / 374.4 MB, free: 2.316 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.296, allocations: 1.056 MB / 375.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.296, allocations: 15.86 kB / 375.5 MB, free: 1.191 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.647e-05/0.2961, allocations: 27.98 kB / 375.5 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.933e-05/0.2962, allocations: 65.27 kB / 375.5 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.2977, allocations: 1.036 MB / 376.6 MB, free: 68 kB / 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.006045/0.3038, allocations: 4.434 MB / 381 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009455/0.3047, allocations: 0.5748 MB / 381.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004594/0.3052, allocations: 318 kB / 381.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002379/0.3076, allocations: 1.977 MB / 383.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.3076, allocations: 38.89 kB / 383.9 MB, free: 8.223 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 3.186e-06/0.3076, allocations: 0 / 383.9 MB, free: 8.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004377/0.312, allocations: 1.965 MB / 385.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.312e-05/0.3121, allocations: 158.2 kB / 386 MB, free: 5.973 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.3132, allocations: 0.9312 MB / 387 MB, free: 5.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.976e-05/0.3133, allocations: 37.7 kB / 387 MB, free: 4.973 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003385/0.3136, allocations: 486.9 kB / 387.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.3137, allocations: 161.8 kB / 387.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002793/0.314, allocations: 186.5 kB / 387.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3142, allocations: 338 kB / 388.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005367/0.3147, allocations: 336.7 kB / 388.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000724/0.3154, allocations: 0.6172 MB / 389.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.3166, allocations: 0.8967 MB / 390 MB, free: 1.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3166, allocations: 4 kB / 390 MB, free: 1.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001731/0.3183, allocations: 1.132 MB / 391.1 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.3183, allocations: 8 kB / 391.1 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.3184, allocations: 8 kB / 391.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002432/0.3208, allocations: 381.6 kB / 391.5 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006356/0.3214, allocations: 179.8 kB / 391.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001131/0.3226, allocations: 1.339 MB / 393 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006868/0.3233, allocations: 51.97 kB / 393.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.545e-05/0.3234, allocations: 43.98 kB / 393.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007364/0.3241, allocations: 0.5214 MB / 393.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007388/0.3249, allocations: 0.6229 MB / 394.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001065/0.3259, allocations: 0.8714 MB / 395.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.859e-06/0.3259, allocations: 4 kB / 395.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001679/0.3276, allocations: 1.089 MB / 396.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3277, allocations: 12 kB / 396.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.3277, allocations: 8 kB / 396.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/0.3298, allocations: 341.3 kB / 396.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005914/0.3304, allocations: 183.7 kB / 396.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.3315, allocations: 1.312 MB / 398.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006852/0.3322, allocations: 52.09 kB / 398.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.555e-05/0.3323, allocations: 51.92 kB / 398.2 MB, free: 9.094 MB / 334.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.0002837/0.3326, allocations: 243 kB / 398.4 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.3328, allocations: 94.88 kB / 398.5 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/0.3344, allocations: 0.7974 MB / 399.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.3345, allocations: 11.94 kB / 399.3 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3345, allocations: 7.938 kB / 399.3 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.3345, allocations: 3.984 kB / 399.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.3368, allocations: 1.579 MB / 400.9 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3368, allocations: 0 / 400.9 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003549/0.3372, allocations: 79.97 kB / 401 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001283/0.3384, allocations: 273.4 kB / 401.3 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.733e-05/0.3385, allocations: 12 kB / 401.3 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009705/0.3395, allocations: 1.304 MB / 402.6 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3395, allocations: 3.984 kB / 402.6 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.341, allocations: 1.08 MB / 403.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.3412, allocations: 171.9 kB / 403.8 MB, free: 3.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.3413, allocations: 15.94 kB / 403.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005225/0.3418, allocations: 31.97 kB / 403.9 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.342, allocations: 56.38 kB / 403.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.045e-05/0.342, allocations: 23.98 kB / 403.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007803/0.3428, allocations: 0.652 MB / 404.6 MB, free: 2.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3428, allocations: 3.938 kB / 404.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001697/0.3445, allocations: 0.7457 MB / 405.3 MB, free: 1.711 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 (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.001292/0.3458, allocations: 0.6079 MB / 406 MB, free: 1.094 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002616/0.3484, allocations: 1.359 MB / 407.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3485, allocations: 0 / 407.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006131/0.3491, allocations: 335.7 kB / 407.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/0.3508, allocations: 402.7 kB / 408 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002613/0.3534, allocations: 2.019 MB / 410.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/0.354, allocations: 1.037 MB / 411.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001099/0.3551, allocations: 376 kB / 411.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.3553, allocations: 71.44 kB / 411.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3553, allocations: 0 / 411.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Templates: time 0.03735/0.3927, allocations: 24.93 MB / 436.5 MB, free: 2.473 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)