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.00131/0.00131, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001713/0.001713, allocations: 172.7 kB / 15.95 MB, free: 208 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.666/1.666, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004984/0.0004984, allocations: 14.66 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2548, allocations: 47.59 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01767/0.2725, allocations: 16.82 MB / 343.3 MB, free: 2.637 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008578/0.2811, allocations: 5.751 MB / 349 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008409/0.2819, allocations: 31.75 kB / 349.1 MB, free: 12.85 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007925/0.2828, allocations: 278.2 kB / 349.4 MB, free: 12.57 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Examples/AST_BatchPlant.mo:1451:62-1451:67:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Examples/AST_BatchPlant.mo:1451:48-1451:55:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Examples/AST_BatchPlant.mo:1465:40-1465:47:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Examples/AST_BatchPlant.mo:1451:62-1451:67:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Examples/AST_BatchPlant.mo:1451:48-1451:55:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Examples/AST_BatchPlant.mo:1465:40-1465:47:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002649/0.2854, allocations: 1.003 MB / 350.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00345/0.2889, allocations: 1.259 MB / 351.6 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003194/0.2921, allocations: 2.471 MB / 354.1 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007145/0.2928, allocations: 406.8 kB / 354.5 MB, free: 7.414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.2939, allocations: 0.65 MB / 355.1 MB, free: 6.762 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.295, allocations: 0.7085 MB / 355.8 MB, free: 6.051 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.425e-05/0.2951, allocations: 36 kB / 355.9 MB, free: 6.016 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001983/0.2971, allocations: 0.9867 MB / 356.9 MB, free: 5.027 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002681/0.2973, allocations: 219.3 kB / 357.1 MB, free: 4.812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002163/0.2976, allocations: 165.3 kB / 357.2 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001676/0.2993, allocations: 1.2 MB / 358.4 MB, free: 3.441 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2993, allocations: 0 / 358.4 MB, free: 3.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2993, allocations: 0 / 358.4 MB, free: 3.441 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.2993, allocations: 0 / 358.4 MB, free: 3.441 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.002068/0.3014, allocations: 1.032 MB / 359.5 MB, free: 2.359 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.3014, allocations: 8.031 kB / 359.5 MB, free: 2.352 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.3017, allocations: 91.06 kB / 359.6 MB, free: 2.262 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007831/0.3025, allocations: 0.5325 MB / 360.1 MB, free: 1.688 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.3025, allocations: 40.98 kB / 360.1 MB, free: 1.648 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.588e-05/0.3026, allocations: 51.98 kB / 360.2 MB, free: 1.598 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.3038, allocations: 0.7333 MB / 360.9 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.3038, allocations: 3.953 kB / 360.9 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.175e-05/0.3039, allocations: 23.98 kB / 361 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.817e-05/0.304, allocations: 40.97 kB / 361 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.3051, allocations: 0.6987 MB / 361.7 MB, free: 72 kB / 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.004317/0.3094, allocations: 3.042 MB / 364.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007793/0.3102, allocations: 484.5 kB / 365.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003948/0.3106, allocations: 266 kB / 365.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003128/0.3109, allocations: 353.2 kB / 365.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.311, allocations: 39 kB / 365.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.054e-06/0.311, allocations: 0 / 365.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005161/0.3162, allocations: 2.308 MB / 368.2 MB, free: 9.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.3162, allocations: 89.66 kB / 368.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008223/0.3171, allocations: 0.6133 MB / 368.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.276e-05/0.3171, allocations: 41.7 kB / 368.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002382/0.3174, allocations: 328.4 kB / 369.2 MB, free: 8.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.3175, allocations: 213 kB / 369.4 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.986e-05/0.3176, allocations: 16 kB / 369.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3178, allocations: 378.8 kB / 369.8 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004653/0.3182, allocations: 301.8 kB / 370.1 MB, free: 7.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005973/0.3188, allocations: 473.9 kB / 370.6 MB, free: 6.688 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005308/0.3194, allocations: 347.1 kB / 370.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3194, allocations: 4 kB / 370.9 MB, free: 6.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00157/0.321, allocations: 0.9575 MB / 371.9 MB, free: 5.379 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001505/0.3211, allocations: 229.4 kB / 372.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.3212, allocations: 12 kB / 372.1 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002389/0.3236, allocations: 412.3 kB / 372.5 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006135/0.3242, allocations: 155.7 kB / 372.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008901/0.3251, allocations: 0.8216 MB / 373.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005445/0.3256, allocations: 48.03 kB / 373.5 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-05/0.3257, allocations: 32 kB / 373.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.757e-06/0.3257, allocations: 4 kB / 373.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00135/0.3271, allocations: 0.8166 MB / 374.4 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3271, allocations: 4 kB / 374.4 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001825/0.3289, allocations: 284.6 kB / 374.7 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005743/0.3295, allocations: 167.7 kB / 374.8 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006327/0.3302, allocations: 0.7045 MB / 375.5 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.3307, allocations: 47.88 kB / 375.6 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-05/0.3308, allocations: 35.98 kB / 375.6 MB, free: 1.504 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.0003978/0.3312, allocations: 320.9 kB / 375.9 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.3313, allocations: 75.09 kB / 376 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001602/0.3329, allocations: 0.8619 MB / 376.9 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.3329, allocations: 8 kB / 376.9 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3329, allocations: 0 / 376.9 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3329, allocations: 3.984 kB / 376.9 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.3356, allocations: 1.723 MB / 378.6 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3356, allocations: 4 kB / 378.6 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004987/0.3361, allocations: 115.9 kB / 378.7 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001483/0.3376, allocations: 352.5 kB / 379.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/0.3377, allocations: 12 kB / 379.1 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007599/0.3385, allocations: 0.8139 MB / 379.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3385, allocations: 4.062 kB / 379.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.3405, allocations: 1.279 MB / 381.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002338/0.3407, allocations: 156.2 kB / 381.3 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.3408, allocations: 15.98 kB / 381.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004286/0.3413, allocations: 35.98 kB / 381.4 MB, free: 11.58 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.3414, allocations: 56.59 kB / 381.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.093e-05/0.3415, allocations: 35.95 kB / 381.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005459/0.342, allocations: 443 kB / 381.9 MB, free: 11.06 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.342, allocations: 0 / 381.9 MB, free: 11.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001441/0.3435, allocations: 0.5271 MB / 382.4 MB, free: 10.54 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.0008698/0.3443, allocations: 442.8 kB / 382.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002204/0.3466, allocations: 1.154 MB / 384 MB, free: 8.941 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3466, allocations: 0 / 384 MB, free: 8.941 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006653/0.3473, allocations: 395.5 kB / 384.4 MB, free: 8.559 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/0.3489, allocations: 346.5 kB / 384.7 MB, free: 8.219 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.3514, allocations: 1.859 MB / 386.6 MB, free: 6.324 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/0.352, allocations: 0.9676 MB / 387.6 MB, free: 5.328 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009564/0.3529, allocations: 290.2 kB / 387.8 MB, free: 5.039 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.3531, allocations: 59.44 kB / 387.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3531, allocations: 0 / 387.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of Templates: time 0.02969/0.3828, allocations: 18.77 MB / 406.7 MB, free: 2.172 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (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)