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.001619/0.001619, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002476/0.002476, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.418/1.418, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001975/0.001975, allocations: 51.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2124, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02047/0.2329, allocations: 21.79 MB / 347.1 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01251/0.2454, allocations: 9.968 MB / 357.1 MB, free: 4.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.2466, allocations: 27.81 kB / 357.1 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.2476, allocations: 397.5 kB / 357.5 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003157/0.2508, allocations: 1.423 MB / 358.9 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005867/0.2567, allocations: 2.63 MB / 361.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0038/0.2605, allocations: 2.565 MB / 364.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001012/0.2615, allocations: 0.6715 MB / 364.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001366/0.2629, allocations: 0.9617 MB / 365.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001354/0.2642, allocations: 0.9733 MB / 366.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002043/0.2645, allocations: 92 kB / 366.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003414/0.2679, allocations: 1.7 MB / 368.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004314/0.2683, allocations: 370.9 kB / 368.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006229/0.269, allocations: 0.5327 MB / 369.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003313/0.2723, allocations: 2.435 MB / 371.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2723, allocations: 0 / 371.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2723, allocations: 0 / 371.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.2723, allocations: 4 kB / 371.8 MB, free: 5.258 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.00289/0.2752, allocations: 1.488 MB / 373.3 MB, free: 3.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.2753, allocations: 16.03 kB / 373.3 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000389/0.2757, allocations: 114.8 kB / 373.4 MB, free: 3.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000974/0.2767, allocations: 0.6824 MB / 374.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.877e-05/0.2767, allocations: 49.3 kB / 374.2 MB, free: 2.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.2768, allocations: 63.98 kB / 374.2 MB, free: 2.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.2784, allocations: 1.056 MB / 375.3 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.2784, allocations: 7.875 kB / 375.3 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-05/0.2785, allocations: 27.98 kB / 375.3 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.65e-05/0.2786, allocations: 65.27 kB / 375.4 MB, free: 1.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001616/0.2803, allocations: 1.036 MB / 376.4 MB, free: 0.5117 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.006212/0.2865, allocations: 4.445 MB / 380.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.2875, allocations: 0.5825 MB / 381.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005991/0.2882, allocations: 318 kB / 381.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00281/0.291, allocations: 1.973 MB / 383.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.291, allocations: 38.89 kB / 383.8 MB, free: 8.652 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.405e-06/0.291, allocations: 3.938 kB / 383.8 MB, free: 8.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004419/0.2955, allocations: 1.961 MB / 385.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.971e-05/0.2956, allocations: 166.2 kB / 385.9 MB, free: 6.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001153/0.2967, allocations: 0.9235 MB / 386.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.757e-05/0.2968, allocations: 37.7 kB / 386.9 MB, free: 5.402 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003549/0.2972, allocations: 494.8 kB / 387.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.2973, allocations: 161.7 kB / 387.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002733/0.2976, allocations: 182.5 kB / 387.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.2977, allocations: 341.9 kB / 388 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005414/0.2983, allocations: 336.7 kB / 388.3 MB, free: 3.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007262/0.299, allocations: 0.6212 MB / 389 MB, free: 3.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.3002, allocations: 0.889 MB / 389.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3002, allocations: 4 kB / 389.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00184/0.3021, allocations: 1.128 MB / 391 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.3021, allocations: 8 kB / 391 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.3021, allocations: 8 kB / 391 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002436/0.3045, allocations: 377.5 kB / 391.4 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006526/0.3052, allocations: 179.7 kB / 391.5 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.3064, allocations: 1.343 MB / 392.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007238/0.3071, allocations: 47.97 kB / 392.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-05/0.3072, allocations: 40 kB / 393 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008022/0.308, allocations: 0.5175 MB / 393.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007263/0.3088, allocations: 0.619 MB / 394.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001097/0.3099, allocations: 0.8792 MB / 395 MB, free: 12.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.97e-06/0.3099, allocations: 4 kB / 395 MB, free: 12.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001743/0.3116, allocations: 1.097 MB / 396.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.3116, allocations: 8 kB / 396.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.3117, allocations: 12 kB / 396.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002163/0.3138, allocations: 341.9 kB / 396.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000629/0.3145, allocations: 175.7 kB / 396.6 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001092/0.3156, allocations: 1.315 MB / 397.9 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007691/0.3164, allocations: 43.97 kB / 398 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.521e-05/0.3165, allocations: 47.92 kB / 398 MB, free: 9.539 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.0002706/0.3167, allocations: 240.1 kB / 398.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.3169, allocations: 94.81 kB / 398.3 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/0.3186, allocations: 0.8012 MB / 399.1 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3186, allocations: 11.88 kB / 399.2 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3186, allocations: 0 / 399.2 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3186, allocations: 3.984 kB / 399.2 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002501/0.3211, allocations: 1.591 MB / 400.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3212, allocations: 0 / 400.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003667/0.3215, allocations: 71.91 kB / 400.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001368/0.3229, allocations: 273.5 kB / 401.1 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/0.323, allocations: 15.98 kB / 401.1 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.324, allocations: 1.3 MB / 402.4 MB, free: 4.996 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.324, allocations: 4 kB / 402.4 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/0.3256, allocations: 1.084 MB / 403.5 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002212/0.3258, allocations: 167.9 kB / 403.7 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.326, allocations: 19.98 kB / 403.7 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004942/0.3265, allocations: 19.98 kB / 403.7 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.3266, allocations: 52.38 kB / 403.7 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.086e-05/0.3267, allocations: 23.98 kB / 403.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008376/0.3275, allocations: 0.652 MB / 404.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3275, allocations: 0 / 404.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001951/0.3295, allocations: 0.7535 MB / 405.2 MB, free: 2.168 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.001363/0.3309, allocations: 0.6147 MB / 405.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.3336, allocations: 1.359 MB / 407.2 MB, free: 192 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3336, allocations: 0 / 407.2 MB, free: 192 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006515/0.3343, allocations: 331.9 kB / 407.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.3361, allocations: 414.9 kB / 407.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.3389, allocations: 1.725 MB / 409.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006491/0.3395, allocations: 1.037 MB / 410.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001148/0.3407, allocations: 368 kB / 411 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.3409, allocations: 75.42 kB / 411.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3409, allocations: 0 / 411.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of Templates: time 0.03711/0.378, allocations: 25.1 MB / 436.2 MB, free: 3.043 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)