Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.3_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.001114/0.001115, allocations: 106.3 kB / 18.4 MB, free: 4.676 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.001108/0.001108, allocations: 188.3 kB / 19.34 MB, free: 3.754 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.264/1.264, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.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.001192/0.001192, allocations: 55.92 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0713/0.0725, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.1679/0.2404, allocations: 17.52 MB / 393.4 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00749/0.248, allocations: 5.986 MB / 399.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007719/0.2488, allocations: 21.22 kB / 399.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008809/0.2497, allocations: 334.2 kB / 399.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002308/0.252, allocations: 1.023 MB / 400.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003864/0.2559, allocations: 1.645 MB / 402.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002364/0.2583, allocations: 1.942 MB / 404.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006022/0.2589, allocations: 471.5 kB / 404.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000935/0.2598, allocations: 0.722 MB / 405.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000952/0.2608, allocations: 0.7317 MB / 406.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.2609, allocations: 65.84 kB / 406.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002159/0.2631, allocations: 1.115 MB / 407.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002842/0.2634, allocations: 264.1 kB / 407.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004226/0.2638, allocations: 403.6 kB / 408 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002057/0.2659, allocations: 1.685 MB / 409.7 MB, free: 9.637 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2659, allocations: 3.938 kB / 409.7 MB, free: 9.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2659, allocations: 0 / 409.7 MB, free: 9.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.2659, allocations: 1.5 kB / 409.7 MB, free: 9.633 MB / 334.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.002055/0.268, allocations: 1.173 MB / 410.9 MB, free: 8.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.268, allocations: 8.281 kB / 410.9 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002961/0.2683, allocations: 82.28 kB / 411 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008291/0.2692, allocations: 0.5811 MB / 411.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.927e-05/0.2692, allocations: 41.42 kB / 411.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.641e-05/0.2693, allocations: 47.14 kB / 411.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.2705, allocations: 0.7343 MB / 412.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.2705, allocations: 1.219 kB / 412.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.788e-05/0.2706, allocations: 21.52 kB / 412.4 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.908e-05/0.2707, allocations: 48.25 kB / 412.5 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.2718, allocations: 0.6978 MB / 413.2 MB, free: 7.305 MB / 334.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.004098/0.2759, allocations: 3.036 MB / 416.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007625/0.2767, allocations: 0.4896 MB / 416.7 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004022/0.2771, allocations: 267 kB / 416.9 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002553/0.2773, allocations: 344.2 kB / 417.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.2774, allocations: 39.58 kB / 417.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.114e-06/0.2774, allocations: 0 / 417.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.005184/0.2826, allocations: 2.305 MB / 419.6 MB, free: 2.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.2826, allocations: 87 kB / 419.7 MB, free: 2.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007086/0.2834, allocations: 0.6187 MB / 420.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.548e-05/0.2834, allocations: 39.14 kB / 420.4 MB, free: 2.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.2837, allocations: 331.3 kB / 420.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.2838, allocations: 200.6 kB / 420.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002218/0.284, allocations: 143.1 kB / 421 MB, free: 1.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.2842, allocations: 384.6 kB / 421.4 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004912/0.2847, allocations: 310.6 kB / 421.7 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005901/0.2853, allocations: 480.2 kB / 422.2 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.2863, allocations: 0.7398 MB / 422.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.048e-05/0.2864, allocations: 10.81 kB / 422.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001543/0.2879, allocations: 0.9737 MB / 423.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.2879, allocations: 8 kB / 423.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.288, allocations: 7.938 kB / 423.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002422/0.2904, allocations: 412.2 kB / 424.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005803/0.291, allocations: 155.8 kB / 424.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008647/0.2919, allocations: 0.8237 MB / 425.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004697/0.2923, allocations: 31.97 kB / 425.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.821e-05/0.2924, allocations: 35.94 kB / 425.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006576/0.2931, allocations: 477.9 kB / 425.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005729/0.2937, allocations: 478.2 kB / 426.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009743/0.2946, allocations: 0.7204 MB / 427 MB, free: 11.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.799e-06/0.2947, allocations: 4 kB / 427 MB, free: 11.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001416/0.2961, allocations: 0.913 MB / 427.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.2961, allocations: 8 kB / 427.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2961, allocations: 8.031 kB / 427.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001808/0.2979, allocations: 264.5 kB / 428.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005843/0.2985, allocations: 151.8 kB / 428.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005539/0.2991, allocations: 0.7162 MB / 429.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004627/0.2996, allocations: 36.05 kB / 429.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.166e-05/0.2996, allocations: 35.98 kB / 429.1 MB, free: 9.422 MB / 350.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.0001954/0.2998, allocations: 224 kB / 429.4 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.3, allocations: 72.16 kB / 429.4 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.3015, allocations: 0.8745 MB / 430.3 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/0.3015, allocations: 3.984 kB / 430.3 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.3015, allocations: 0 / 430.3 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.3017, allocations: 152.2 kB / 430.5 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.3018, allocations: 15.94 kB / 430.5 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004269/0.3022, allocations: 27.98 kB / 430.5 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.3024, allocations: 52.48 kB / 430.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001841/0.3042, allocations: 0.9092 MB / 431.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001547/0.3058, allocations: 1.182 MB / 432.6 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004326/0.3062, allocations: 320.3 kB / 433 MB, free: 5.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004844/0.3067, allocations: 443 kB / 433.4 MB, free: 5.125 MB / 350.1 MB Notification: Performance of Backend: time 4.91e-07/0.3067, allocations: 0 / 433.4 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003103/0.3098, allocations: 1.359 MB / 434.7 MB, free: 3.762 MB / 350.1 MB Notification: Performance of SimCode: time 0.00288/0.3127, allocations: 2.175 MB / 436.9 MB, free: 1.547 MB / 350.1 MB Notification: Performance of Templates: time 0.03145/0.3442, allocations: 21.82 MB / 458.7 MB, free: 11.69 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)