Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001255/0.001255, allocations: 108 kB / 15.6 MB, free: 132 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.001238/0.001238, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.531/1.531, allocations: 205.1 MB / 222.4 MB, free: 4.57 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.001212/0.001212, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2952, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02021/0.3154, allocations: 17.53 MB / 342.8 MB, free: 2.359 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.3264, allocations: 5.965 MB / 348.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001279/0.3277, allocations: 27.81 kB / 348.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.3292, allocations: 337.9 kB / 349.2 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00344/0.3327, allocations: 1.022 MB / 350.2 MB, free: 11 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004344/0.337, allocations: 1.658 MB / 351.8 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002726/0.3398, allocations: 1.933 MB / 353.8 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007989/0.3406, allocations: 481.6 kB / 354.3 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001259/0.3418, allocations: 0.7203 MB / 355 MB, free: 6.188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.3432, allocations: 0.7279 MB / 355.7 MB, free: 5.457 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.3433, allocations: 64 kB / 355.8 MB, free: 5.395 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002406/0.3457, allocations: 1.108 MB / 356.9 MB, free: 4.285 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003197/0.3461, allocations: 259.2 kB / 357.1 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004778/0.3465, allocations: 406.1 kB / 357.5 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003077/0.3496, allocations: 1.667 MB / 359.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3497, allocations: 0 / 359.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3497, allocations: 4 kB / 359.2 MB, free: 1.957 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.3497, allocations: 0 / 359.2 MB, free: 1.957 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.002908/0.3526, allocations: 1.168 MB / 360.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.195e-05/0.3527, allocations: 19.97 kB / 360.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003591/0.353, allocations: 87.98 kB / 360.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000871/0.3539, allocations: 0.5439 MB / 361 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.975e-05/0.354, allocations: 40.98 kB / 361.1 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.3541, allocations: 48.03 kB / 361.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.3553, allocations: 0.7333 MB / 361.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.3553, allocations: 0 / 361.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.96e-05/0.3554, allocations: 27.98 kB / 361.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-05/0.3554, allocations: 40.97 kB / 361.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.3566, allocations: 0.6986 MB / 362.6 MB, free: 14.43 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.004689/0.3613, allocations: 3.046 MB / 365.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008001/0.3621, allocations: 496.5 kB / 366.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004165/0.3625, allocations: 270 kB / 366.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002994/0.3628, allocations: 349.2 kB / 366.7 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.3629, allocations: 39 kB / 366.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.124e-06/0.3629, allocations: 3.938 kB / 366.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005504/0.3684, allocations: 2.292 MB / 369.1 MB, free: 7.574 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.886e-05/0.3685, allocations: 81.67 kB / 369.1 MB, free: 7.477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007324/0.3692, allocations: 0.625 MB / 369.8 MB, free: 6.844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.478e-05/0.3693, allocations: 37.7 kB / 369.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002546/0.3695, allocations: 336.3 kB / 370.1 MB, free: 6.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.3697, allocations: 205 kB / 370.3 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002317/0.3699, allocations: 150.5 kB / 370.5 MB, free: 6.113 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002536/0.3702, allocations: 382.7 kB / 370.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005041/0.3707, allocations: 312.7 kB / 371.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006056/0.3713, allocations: 477.3 kB / 371.6 MB, free: 4.887 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.3724, allocations: 0.7483 MB / 372.4 MB, free: 4.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.3724, allocations: 7.938 kB / 372.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001619/0.374, allocations: 0.9618 MB / 373.3 MB, free: 3.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3741, allocations: 8 kB / 373.4 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.3741, allocations: 4 kB / 373.4 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002494/0.3766, allocations: 412.7 kB / 373.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005697/0.3772, allocations: 151.8 kB / 373.9 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009428/0.3781, allocations: 0.8255 MB / 374.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005077/0.3786, allocations: 39.91 kB / 374.8 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.255e-05/0.3787, allocations: 28 kB / 374.8 MB, free: 1.605 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000699/0.3794, allocations: 477.9 kB / 375.3 MB, free: 1.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005981/0.38, allocations: 474 kB / 375.7 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009836/0.381, allocations: 0.7359 MB / 376.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.635e-06/0.381, allocations: 4 kB / 376.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001453/0.3825, allocations: 0.9087 MB / 377.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.3825, allocations: 8 kB / 377.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3825, allocations: 4 kB / 377.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001902/0.3844, allocations: 264.9 kB / 377.6 MB, free: 14.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005891/0.385, allocations: 163.7 kB / 377.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006626/0.3857, allocations: 0.7161 MB / 378.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000541/0.3863, allocations: 31.97 kB / 378.6 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.3864, allocations: 35.98 kB / 378.6 MB, free: 13.63 MB / 318.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 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003288/0.3867, allocations: 228.1 kB / 378.8 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.3869, allocations: 75.09 kB / 378.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/0.3885, allocations: 0.8583 MB / 379.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.3885, allocations: 8 kB / 379.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3885, allocations: 0 / 379.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.3885, allocations: 3.984 kB / 379.8 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.3913, allocations: 1.719 MB / 381.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.3913, allocations: 0 / 381.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00051/0.3919, allocations: 107.9 kB / 381.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001556/0.3934, allocations: 324.5 kB / 381.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-05/0.3935, allocations: 19.98 kB / 381.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.3946, allocations: 0.8176 MB / 382.7 MB, free: 9.367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.3946, allocations: 3.984 kB / 382.7 MB, free: 9.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/0.3967, allocations: 1.291 MB / 384 MB, free: 8.047 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000285/0.397, allocations: 148.2 kB / 384.2 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.3972, allocations: 23.98 kB / 384.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005164/0.3977, allocations: 23.98 kB / 384.2 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.3979, allocations: 56.42 kB / 384.3 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.814e-05/0.398, allocations: 23.98 kB / 384.3 MB, free: 7.758 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006999/0.3987, allocations: 443 kB / 384.7 MB, free: 7.332 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3987, allocations: 0 / 384.7 MB, free: 7.332 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002152/0.4008, allocations: 0.5232 MB / 385.3 MB, free: 6.809 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001448/0.4023, allocations: 458.7 kB / 385.7 MB, free: 6.352 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003038/0.4053, allocations: 1.298 MB / 387 MB, free: 5.051 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.4054, allocations: 4.062 kB / 387 MB, free: 5.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007736/0.4062, allocations: 399 kB / 387.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002003/0.4082, allocations: 365.6 kB / 387.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002914/0.4111, allocations: 1.602 MB / 389.4 MB, free: 2.664 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000607/0.4117, allocations: 0.9673 MB / 390.3 MB, free: 1.672 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001042/0.4128, allocations: 290.1 kB / 390.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.413, allocations: 63.42 kB / 390.7 MB, free: 1.32 MB / 318.1 MB Notification: Performance of SimCode: time 1.303e-06/0.413, allocations: 0 / 390.7 MB, free: 1.32 MB / 318.1 MB Notification: Performance of Templates: time 0.03463/0.4476, allocations: 20.33 MB / 411 MB, free: 12.96 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)