Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001224/0.001224, allocations: 99.86 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.001652/0.001652, 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.518/1.518, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0004777/0.0004779, allocations: 8 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2495, allocations: 47.58 MB / 326.4 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.01802/0.2675, allocations: 17.73 MB / 344.2 MB, free: 1.762 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008965/0.2765, allocations: 6.223 MB / 350.4 MB, free: 11.53 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009803/0.2775, allocations: 39.69 kB / 350.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009646/0.2785, allocations: 314.4 kB / 350.7 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002482/0.281, allocations: 0.8919 MB / 351.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003628/0.2847, allocations: 1.419 MB / 353.1 MB, free: 8.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001958/0.2866, allocations: 1.211 MB / 354.3 MB, free: 7.656 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007104/0.2873, allocations: 491.2 kB / 354.7 MB, free: 7.164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001046/0.2884, allocations: 0.6426 MB / 355.4 MB, free: 6.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006508/0.2891, allocations: 0.4943 MB / 355.9 MB, free: 6.023 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.136e-05/0.2892, allocations: 40 kB / 355.9 MB, free: 5.984 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002121/0.2913, allocations: 1.116 MB / 357 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002501/0.2916, allocations: 223.4 kB / 357.3 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002043/0.2918, allocations: 185.3 kB / 357.4 MB, free: 4.461 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001769/0.2936, allocations: 1.341 MB / 358.8 MB, free: 3.117 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2936, allocations: 0 / 358.8 MB, free: 3.117 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2936, allocations: 4 kB / 358.8 MB, free: 3.113 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.2936, allocations: 0 / 358.8 MB, free: 3.113 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.002173/0.2958, allocations: 1.114 MB / 359.9 MB, free: 1.949 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.2958, allocations: 12.03 kB / 359.9 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.2962, allocations: 106.9 kB / 360 MB, free: 1.832 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009281/0.2971, allocations: 0.5739 MB / 360.6 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.576e-05/0.2972, allocations: 45.3 kB / 360.6 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.786e-05/0.2973, allocations: 52 kB / 360.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.2986, allocations: 0.8906 MB / 361.6 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.2986, allocations: 3.938 kB / 361.6 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.047e-05/0.2987, allocations: 27.98 kB / 361.6 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.966e-05/0.2988, allocations: 49.23 kB / 361.7 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.3, allocations: 0.8091 MB / 362.5 MB, free: 15.29 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.004943/0.305, allocations: 3.85 MB / 366.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008326/0.3058, allocations: 0.5358 MB / 366.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003513/0.3062, allocations: 0.4995 MB / 367.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.3062, allocations: 43 kB / 367.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 3.056e-06/0.3062, allocations: 0 / 367.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.004213/0.3105, allocations: 2.117 MB / 369.5 MB, free: 7.773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.961e-05/0.3105, allocations: 144.9 kB / 369.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008691/0.3114, allocations: 0.723 MB / 370.4 MB, free: 6.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.27e-05/0.3115, allocations: 37.7 kB / 370.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/0.3118, allocations: 379.9 kB / 370.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.3119, allocations: 185.5 kB / 371 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.312, allocations: 16 kB / 371 MB, free: 6.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.3121, allocations: 386.8 kB / 371.4 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004499/0.3126, allocations: 289.8 kB / 371.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005812/0.3132, allocations: 0.507 MB / 372.1 MB, free: 4.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005296/0.3137, allocations: 353.9 kB / 372.5 MB, free: 4.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3137, allocations: 4 kB / 372.5 MB, free: 4.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001493/0.3152, allocations: 0.9802 MB / 373.5 MB, free: 3.637 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008077/0.3161, allocations: 2.266 MB / 375.7 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3161, allocations: 4 kB / 375.7 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001685/0.3178, allocations: 305.4 kB / 376 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005711/0.3184, allocations: 151.7 kB / 376.2 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009833/0.3193, allocations: 1.296 MB / 377.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006226/0.32, allocations: 51.88 kB / 377.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.778e-05/0.3201, allocations: 39.98 kB / 377.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.3201, allocations: 4 kB / 377.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001383/0.3215, allocations: 0.8388 MB / 378.4 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3215, allocations: 4 kB / 378.4 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.3226, allocations: 197.7 kB / 378.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006616/0.3233, allocations: 167.7 kB / 378.8 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007748/0.324, allocations: 1.187 MB / 380 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006209/0.3247, allocations: 47.92 kB / 380 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.341e-05/0.3248, allocations: 44.05 kB / 380.1 MB, free: 12.75 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.0004752/0.3252, allocations: 324.8 kB / 380.4 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/0.3254, allocations: 83.06 kB / 380.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001739/0.3271, allocations: 0.9768 MB / 381.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.3271, allocations: 12 kB / 381.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3272, allocations: 0 / 381.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.3272, allocations: 7.922 kB / 381.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002514/0.3297, allocations: 1.762 MB / 383.2 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3297, allocations: 4.094 kB / 383.2 MB, free: 9.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004189/0.3301, allocations: 103.9 kB / 383.3 MB, free: 9.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00103/0.3312, allocations: 249.4 kB / 383.6 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.354e-05/0.3312, allocations: 23.94 kB / 383.6 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007813/0.332, allocations: 1.261 MB / 384.8 MB, free: 7.809 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.332, allocations: 4.031 kB / 384.8 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001822/0.3339, allocations: 1.337 MB / 386.2 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.3341, allocations: 172 kB / 386.4 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.3343, allocations: 15.98 kB / 386.4 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004897/0.3348, allocations: 47.89 kB / 386.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.3349, allocations: 56.47 kB / 386.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.043e-05/0.335, allocations: 35.98 kB / 386.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007131/0.3357, allocations: 0.5029 MB / 387 MB, free: 5.582 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3357, allocations: 0 / 387 MB, free: 5.582 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001594/0.3373, allocations: 0.5896 MB / 387.6 MB, free: 4.992 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.001135/0.3384, allocations: 0.4974 MB / 388.1 MB, free: 4.488 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002238/0.3407, allocations: 1.192 MB / 389.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.3407, allocations: 4 kB / 389.3 MB, free: 3.293 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006702/0.3414, allocations: 383 kB / 389.7 MB, free: 2.922 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001873/0.3433, allocations: 395 kB / 390.1 MB, free: 2.535 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003032/0.3463, allocations: 1.9 MB / 392 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006722/0.347, allocations: 1.003 MB / 393 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001126/0.3481, allocations: 323 kB / 393.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.3483, allocations: 83.41 kB / 393.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3483, allocations: 0 / 393.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of Templates: time 0.03416/0.3825, allocations: 21.15 MB / 414.5 MB, free: 9.977 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) Environment - environmentSimulation: