Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009543/0.0009543, 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.00106/0.00106, allocations: 177.3 kB / 15.94 MB, free: 228 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.516/1.516, 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.0004421/0.0004422, allocations: 12 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2568, allocations: 47.58 MB / 326.4 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.0166/0.2734, allocations: 15.28 MB / 341.7 MB, free: 4.199 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00784/0.2813, allocations: 5.453 MB / 347.2 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008783/0.2822, allocations: 35.75 kB / 347.2 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007942/0.283, allocations: 294.4 kB / 347.5 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002156/0.2852, allocations: 0.8413 MB / 348.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003176/0.2884, allocations: 1.247 MB / 349.6 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.2903, allocations: 1.082 MB / 350.7 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006099/0.2909, allocations: 410.8 kB / 351.1 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008787/0.2918, allocations: 0.5491 MB / 351.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006121/0.2924, allocations: 458.4 kB / 352.1 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.421e-05/0.2925, allocations: 39.98 kB / 352.1 MB, free: 9.785 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00199/0.2945, allocations: 1.014 MB / 353.1 MB, free: 8.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002424/0.2948, allocations: 211.4 kB / 353.3 MB, free: 8.562 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.295, allocations: 161.3 kB / 353.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001569/0.2966, allocations: 1.212 MB / 354.7 MB, free: 7.184 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.2966, allocations: 0 / 354.7 MB, free: 7.184 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2966, allocations: 0 / 354.7 MB, free: 7.184 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.2966, allocations: 0 / 354.7 MB, free: 7.184 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001987/0.2986, allocations: 1.036 MB / 355.7 MB, free: 6.098 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2986, allocations: 8.031 kB / 355.7 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002663/0.2989, allocations: 91.05 kB / 355.8 MB, free: 6 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000833/0.2998, allocations: 0.5287 MB / 356.4 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.147e-05/0.2998, allocations: 33 kB / 356.4 MB, free: 5.398 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.313e-05/0.2999, allocations: 51.98 kB / 356.4 MB, free: 5.348 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.301, allocations: 0.7294 MB / 357.2 MB, free: 4.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.301, allocations: 3.953 kB / 357.2 MB, free: 4.586 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.166e-05/0.3011, allocations: 19.98 kB / 357.2 MB, free: 4.566 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-05/0.3011, allocations: 44.97 kB / 357.2 MB, free: 4.52 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.3022, allocations: 0.6947 MB / 357.9 MB, free: 3.828 MB / 286.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.004091/0.3063, allocations: 3.054 MB / 361 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006994/0.307, allocations: 492.5 kB / 361.5 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003079/0.3073, allocations: 341.3 kB / 361.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.3074, allocations: 42.94 kB / 361.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.224e-06/0.3074, allocations: 0 / 361.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.00509/0.3125, allocations: 2.312 MB / 364.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.3126, allocations: 85.67 kB / 364.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007188/0.3133, allocations: 0.6172 MB / 364.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.781e-05/0.3134, allocations: 41.64 kB / 364.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/0.3136, allocations: 328.4 kB / 365.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.3138, allocations: 209 kB / 365.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.3138, allocations: 12 kB / 365.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.314, allocations: 382.8 kB / 365.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004341/0.3144, allocations: 297.8 kB / 366.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005301/0.3149, allocations: 469.9 kB / 366.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004873/0.3154, allocations: 343.1 kB / 366.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.3154, allocations: 4 kB / 366.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00136/0.3168, allocations: 0.9574 MB / 367.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005844/0.3174, allocations: 1.836 MB / 369.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.3174, allocations: 4 kB / 369.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002462/0.3199, allocations: 424.2 kB / 370.1 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006085/0.3205, allocations: 151.8 kB / 370.3 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008507/0.3214, allocations: 0.8333 MB / 371.1 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006194/0.322, allocations: 48.03 kB / 371.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.651e-05/0.3221, allocations: 28 kB / 371.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.3221, allocations: 4 kB / 371.2 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001243/0.3234, allocations: 0.8165 MB / 372 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3234, allocations: 4 kB / 372 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001889/0.3253, allocations: 288.7 kB / 372.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005707/0.3258, allocations: 159.7 kB / 372.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000581/0.3264, allocations: 0.7123 MB / 373.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005074/0.327, allocations: 43.88 kB / 373.2 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.936e-05/0.327, allocations: 39.98 kB / 373.2 MB, free: 3.828 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],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 (84): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000381/0.3274, allocations: 320.9 kB / 373.5 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.3275, allocations: 75.11 kB / 373.6 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001417/0.329, allocations: 0.862 MB / 374.5 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.329, allocations: 8 kB / 374.5 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.329, allocations: 3.984 kB / 374.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.329, allocations: 0 / 374.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.3318, allocations: 1.723 MB / 376.2 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.3318, allocations: 8.062 kB / 376.2 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004858/0.3323, allocations: 111.8 kB / 376.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/0.3338, allocations: 352.5 kB / 376.7 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.733e-05/0.3339, allocations: 12.09 kB / 376.7 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008998/0.3348, allocations: 0.8138 MB / 377.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3348, allocations: 4.031 kB / 377.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.3367, allocations: 1.306 MB / 378.8 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/0.3369, allocations: 160.3 kB / 379 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.337, allocations: 15.98 kB / 379 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005653/0.3376, allocations: 31.98 kB / 379 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.3377, allocations: 60.41 kB / 379.1 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.523e-05/0.3378, allocations: 27.94 kB / 379.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006188/0.3384, allocations: 443 kB / 379.5 MB, free: 13.35 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3384, allocations: 0 / 379.5 MB, free: 13.35 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001436/0.3399, allocations: 0.5232 MB / 380 MB, free: 12.82 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008814/0.3408, allocations: 450.7 kB / 380.5 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002206/0.343, allocations: 1.154 MB / 381.6 MB, free: 11.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.343, allocations: 8.188 kB / 381.6 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006236/0.3436, allocations: 383 kB / 382 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.3451, allocations: 338.7 kB / 382.4 MB, free: 10.51 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.3477, allocations: 1.867 MB / 384.2 MB, free: 8.609 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.3482, allocations: 0.9871 MB / 385.2 MB, free: 7.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008597/0.3491, allocations: 278.2 kB / 385.5 MB, free: 7.312 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.3493, allocations: 63.42 kB / 385.5 MB, free: 7.254 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3493, allocations: 0 / 385.5 MB, free: 7.254 MB / 318.1 MB Notification: Performance of Templates: time 0.02866/0.3779, allocations: 18.74 MB / 404.3 MB, free: 4.484 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) Environment - environmentSimulation: