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.001102/0.001102, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.01097/0.01097, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.658/1.658, allocations: 205.4 MB / 222.5 MB, free: 5.797 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.0004378/0.0004378, allocations: 8 kB / 279.4 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2411, allocations: 47.58 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01792/0.2591, allocations: 17.76 MB / 344.8 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01035/0.2695, allocations: 6.227 MB / 351 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/0.2707, allocations: 35.69 kB / 351.1 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009577/0.2717, allocations: 278.5 kB / 351.3 MB, free: 11.04 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002614/0.2743, allocations: 0.9878 MB / 352.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003562/0.2779, allocations: 1.364 MB / 353.7 MB, free: 8.684 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003631/0.2816, allocations: 3.057 MB / 356.7 MB, free: 5.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007449/0.2823, allocations: 414.8 kB / 357.1 MB, free: 5.199 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001167/0.2835, allocations: 0.6226 MB / 357.8 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.2847, allocations: 0.7317 MB / 358.5 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.2848, allocations: 36 kB / 358.5 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002145/0.287, allocations: 1.092 MB / 359.6 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002781/0.2873, allocations: 231.2 kB / 359.9 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004709/0.2878, allocations: 395.8 kB / 360.2 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00227/0.29, allocations: 1.636 MB / 361.9 MB, free: 460 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2901, allocations: 0 / 361.9 MB, free: 460 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2901, allocations: 0 / 361.9 MB, free: 460 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.2901, allocations: 0 / 361.9 MB, free: 460 kB / 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.002084/0.2922, allocations: 1.029 MB / 362.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.2922, allocations: 8.031 kB / 362.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002765/0.2925, allocations: 91.94 kB / 363 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000782/0.2933, allocations: 0.5517 MB / 363.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.732e-05/0.2934, allocations: 33 kB / 363.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.576e-05/0.2935, allocations: 51.89 kB / 363.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.2946, allocations: 0.7411 MB / 364.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.2947, allocations: 4 kB / 364.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.995e-05/0.2947, allocations: 20 kB / 364.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-05/0.2948, allocations: 40.97 kB / 364.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.2959, allocations: 0.6947 MB / 365.1 MB, free: 13.07 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.004336/0.3003, allocations: 3.05 MB / 368.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007868/0.3011, allocations: 496.5 kB / 368.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000422/0.3015, allocations: 266 kB / 368.9 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003158/0.3018, allocations: 345.3 kB / 369.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.946e-05/0.3019, allocations: 42.94 kB / 369.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 3.186e-06/0.3019, allocations: 0 / 369.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005399/0.3073, allocations: 2.311 MB / 371.6 MB, free: 6.195 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.3074, allocations: 89.66 kB / 371.7 MB, free: 6.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007565/0.3081, allocations: 0.6172 MB / 372.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.198e-05/0.3082, allocations: 37.7 kB / 372.4 MB, free: 5.422 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.3085, allocations: 336.3 kB / 372.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.3086, allocations: 209 kB / 372.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.393e-05/0.3087, allocations: 73.67 kB / 373 MB, free: 4.805 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3089, allocations: 374.8 kB / 373.3 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000493/0.3094, allocations: 305.8 kB / 373.6 MB, free: 4.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000571/0.31, allocations: 477.3 kB / 374.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.311, allocations: 0.7483 MB / 374.8 MB, free: 2.777 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.311, allocations: 7.938 kB / 374.9 MB, free: 2.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001626/0.3127, allocations: 0.9658 MB / 375.8 MB, free: 1.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001492/0.3128, allocations: 229 kB / 376 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.3129, allocations: 4 kB / 376 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002676/0.3155, allocations: 428.3 kB / 376.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005986/0.3161, allocations: 155.8 kB / 376.6 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008337/0.317, allocations: 0.8292 MB / 377.4 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005391/0.3175, allocations: 43.97 kB / 377.5 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.726e-05/0.3176, allocations: 32.05 kB / 377.5 MB, free: 15.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.3176, allocations: 4 kB / 377.5 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001272/0.3189, allocations: 0.8245 MB / 378.3 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.319, allocations: 4 kB / 378.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002006/0.321, allocations: 288.5 kB / 378.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005987/0.3216, allocations: 155.8 kB / 378.8 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006326/0.3222, allocations: 0.7084 MB / 379.5 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004986/0.3227, allocations: 51.97 kB / 379.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.728e-05/0.3228, allocations: 31.98 kB / 379.6 MB, free: 13.91 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.0003875/0.3232, allocations: 320.8 kB / 379.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.3233, allocations: 75.16 kB / 380 MB, free: 13.51 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001465/0.3248, allocations: 0.8698 MB / 380.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.405e-06/0.3248, allocations: 8 kB / 380.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3248, allocations: 0 / 380.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.3248, allocations: 3.984 kB / 380.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002579/0.3274, allocations: 1.723 MB / 382.6 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3274, allocations: 0 / 382.6 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/0.3279, allocations: 107.9 kB / 382.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001564/0.3295, allocations: 364.6 kB / 383 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.471e-05/0.3296, allocations: 19.98 kB / 383 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007458/0.3303, allocations: 0.8059 MB / 383.9 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.3303, allocations: 4.125 kB / 383.9 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.3321, allocations: 1.299 MB / 385.2 MB, free: 8.176 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001728/0.3323, allocations: 152.2 kB / 385.3 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.662e-05/0.3324, allocations: 16 kB / 385.3 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004463/0.3328, allocations: 35.98 kB / 385.4 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.333, allocations: 48.48 kB / 385.4 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-05/0.333, allocations: 27.98 kB / 385.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005394/0.3336, allocations: 447 kB / 385.9 MB, free: 7.453 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3336, allocations: 0 / 385.9 MB, free: 7.453 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001462/0.335, allocations: 0.5349 MB / 386.4 MB, free: 6.918 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.0008662/0.3359, allocations: 442.6 kB / 386.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002082/0.338, allocations: 1.172 MB / 388 MB, free: 5.309 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.338, allocations: 5.688 kB / 388 MB, free: 5.305 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006229/0.3387, allocations: 387 kB / 388.4 MB, free: 4.926 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/0.3404, allocations: 331 kB / 388.7 MB, free: 4.602 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.3429, allocations: 1.961 MB / 390.7 MB, free: 2.609 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004993/0.3435, allocations: 0.9715 MB / 391.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009085/0.3444, allocations: 286.1 kB / 391.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.3445, allocations: 59.42 kB / 392 MB, free: 1.262 MB / 318.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3446, allocations: 0 / 392 MB, free: 1.262 MB / 318.1 MB Notification: Performance of Templates: time 0.03327/0.3778, allocations: 19.24 MB / 411.2 MB, free: 13.99 MB / 350.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)