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.0009485/0.0009486, allocations: 99.55 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.00111/0.00111, 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.632/1.632, allocations: 205.4 MB / 222.1 MB, free: 5.52 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.0004604/0.0004605, allocations: 8 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2848, allocations: 47.58 MB / 326.4 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01543/0.3003, allocations: 15.28 MB / 341.7 MB, free: 4.164 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008336/0.3086, allocations: 5.46 MB / 347.2 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008996/0.3096, allocations: 27.75 kB / 347.2 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009386/0.3105, allocations: 298.4 kB / 347.5 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002331/0.3129, allocations: 0.8451 MB / 348.4 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003215/0.3161, allocations: 1.243 MB / 349.6 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001882/0.318, allocations: 1.078 MB / 350.7 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006573/0.3187, allocations: 414.8 kB / 351.1 MB, free: 10.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009571/0.3196, allocations: 0.553 MB / 351.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006289/0.3203, allocations: 458.4 kB / 352.1 MB, free: 9.781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.556e-05/0.3204, allocations: 32 kB / 352.1 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002069/0.3225, allocations: 1.01 MB / 353.1 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002576/0.3227, allocations: 215.4 kB / 353.3 MB, free: 8.527 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.3229, allocations: 165.3 kB / 353.5 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001561/0.3245, allocations: 1.204 MB / 354.7 MB, free: 7.152 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.3245, allocations: 0 / 354.7 MB, free: 7.152 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3245, allocations: 0 / 354.7 MB, free: 7.152 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.3245, allocations: 0 / 354.7 MB, free: 7.152 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.002051/0.3266, allocations: 1.04 MB / 355.7 MB, free: 6.062 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.3266, allocations: 12.03 kB / 355.7 MB, free: 6.051 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002616/0.3269, allocations: 83.06 kB / 355.8 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008546/0.3278, allocations: 0.5326 MB / 356.4 MB, free: 5.395 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.931e-05/0.3278, allocations: 36.98 kB / 356.4 MB, free: 5.359 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.571e-05/0.3279, allocations: 47.98 kB / 356.4 MB, free: 5.312 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.3291, allocations: 0.7294 MB / 357.2 MB, free: 4.555 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.3291, allocations: 7.953 kB / 357.2 MB, free: 4.547 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.716e-05/0.3292, allocations: 23.98 kB / 357.2 MB, free: 4.523 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.001e-05/0.3293, allocations: 40.97 kB / 357.2 MB, free: 4.48 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.3303, allocations: 0.6947 MB / 357.9 MB, free: 3.789 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.004327/0.3347, allocations: 3.046 MB / 361 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007103/0.3354, allocations: 496.5 kB / 361.5 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003859/0.3358, allocations: 341.3 kB / 361.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.3358, allocations: 39 kB / 361.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 1.823e-06/0.3358, allocations: 3.938 kB / 361.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005226/0.3411, allocations: 2.308 MB / 364.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/0.3412, allocations: 85.67 kB / 364.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008397/0.342, allocations: 0.6172 MB / 364.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.236e-05/0.3421, allocations: 41.64 kB / 364.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002727/0.3424, allocations: 332.4 kB / 365.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.3426, allocations: 205 kB / 365.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.049e-05/0.3426, allocations: 19.94 kB / 365.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.3428, allocations: 378.8 kB / 365.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004671/0.3433, allocations: 297.8 kB / 366.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005762/0.3439, allocations: 465.9 kB / 366.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005322/0.3444, allocations: 355.1 kB / 366.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3444, allocations: 0 / 366.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001441/0.3459, allocations: 0.9614 MB / 367.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000722/0.3466, allocations: 1.832 MB / 369.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.3466, allocations: 4 kB / 369.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002455/0.3491, allocations: 420.3 kB / 370.1 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006304/0.3497, allocations: 155.7 kB / 370.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001001/0.3507, allocations: 0.8177 MB / 371.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006373/0.3514, allocations: 43.97 kB / 371.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.979e-05/0.3515, allocations: 36.05 kB / 371.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.3515, allocations: 4 kB / 371.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00144/0.3529, allocations: 0.8206 MB / 372 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.353, allocations: 4 kB / 372 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001912/0.3549, allocations: 288.5 kB / 372.3 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000563/0.3555, allocations: 155.7 kB / 372.4 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006508/0.3561, allocations: 0.7162 MB / 373.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005365/0.3567, allocations: 51.81 kB / 373.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.466e-05/0.3567, allocations: 28 kB / 373.2 MB, free: 3.801 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.0005211/0.3573, allocations: 324.9 kB / 373.5 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.3574, allocations: 75.11 kB / 373.6 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001598/0.359, allocations: 0.8697 MB / 374.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.188e-06/0.3591, allocations: 8 kB / 374.5 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3591, allocations: 0 / 374.5 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.3591, allocations: 3.984 kB / 374.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002719/0.3618, allocations: 1.723 MB / 376.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3618, allocations: 0 / 376.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004986/0.3623, allocations: 111.9 kB / 376.3 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001503/0.3639, allocations: 360.5 kB / 376.7 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.3639, allocations: 19.98 kB / 376.7 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007757/0.3647, allocations: 0.8022 MB / 377.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.3647, allocations: 4 kB / 377.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.3666, allocations: 1.31 MB / 378.8 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.3668, allocations: 156.2 kB / 379 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.3669, allocations: 16 kB / 379 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004393/0.3673, allocations: 39.97 kB / 379 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.3675, allocations: 52.48 kB / 379.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.285e-05/0.3675, allocations: 31.88 kB / 379.1 MB, free: 13.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000512/0.368, allocations: 439 kB / 379.5 MB, free: 13.31 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3681, allocations: 0 / 379.5 MB, free: 13.31 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001494/0.3696, allocations: 0.531 MB / 380.1 MB, free: 12.78 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.0009202/0.3705, allocations: 438.7 kB / 380.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.3725, allocations: 1.157 MB / 381.6 MB, free: 11.19 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.3725, allocations: 4 kB / 381.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006096/0.3732, allocations: 391.6 kB / 382 MB, free: 10.8 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.3746, allocations: 322.8 kB / 382.3 MB, free: 10.49 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.3772, allocations: 1.871 MB / 384.2 MB, free: 8.582 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.3777, allocations: 0.9832 MB / 385.2 MB, free: 7.566 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008768/0.3786, allocations: 282.1 kB / 385.5 MB, free: 7.285 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/0.3788, allocations: 63.42 kB / 385.5 MB, free: 7.227 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3788, allocations: 0 / 385.5 MB, free: 7.227 MB / 318.1 MB Notification: Performance of Templates: time 0.02945/0.4083, allocations: 18.74 MB / 404.3 MB, free: 4.453 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: