Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 114.8 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2103, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01718/0.2275, allocations: 17.66 MB / 427.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00766/0.2352, allocations: 6.039 MB / 433.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003246/0.2355, allocations: 23.88 kB / 433.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00071/0.2362, allocations: 330 kB / 434 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001829/0.2381, allocations: 1.05 MB / 435 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003022/0.2411, allocations: 1.655 MB / 436.7 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001823/0.2429, allocations: 1.941 MB / 438.6 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006677/0.2436, allocations: 477.7 kB / 439.1 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001068/0.2447, allocations: 0.7514 MB / 439.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001/0.2457, allocations: 0.7318 MB / 440.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001492/0.2459, allocations: 64 kB / 440.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.2476, allocations: 1.135 MB / 441.8 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002839/0.2479, allocations: 255.3 kB / 442 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004419/0.2484, allocations: 402.1 kB / 442.4 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002025/0.2504, allocations: 1.707 MB / 444.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2504, allocations: 7.922 kB / 444.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2504, allocations: 0 / 444.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.935e-05/0.2505, allocations: 0 / 444.1 MB, free: 15.29 MB / 366.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.002232/0.2527, allocations: 1.168 MB / 445.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.2528, allocations: 16.02 kB / 445.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002895/0.2531, allocations: 84 kB / 445.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008748/0.2539, allocations: 0.5792 MB / 446 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.254, allocations: 36.98 kB / 446 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.253e-05/0.2541, allocations: 47.98 kB / 446.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.2552, allocations: 0.7372 MB / 446.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.2553, allocations: 3.938 kB / 446.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.672e-05/0.2553, allocations: 23.98 kB / 446.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-05/0.2554, allocations: 44.97 kB / 446.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.2565, allocations: 0.6987 MB / 447.6 MB, free: 11.72 MB / 366.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.004039/0.2605, allocations: 3.03 MB / 450.6 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007221/0.2613, allocations: 496.4 kB / 451.1 MB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003794/0.2617, allocations: 262 kB / 451.3 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002673/0.2619, allocations: 345.3 kB / 451.7 MB, free: 7.309 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.262, allocations: 39 kB / 451.7 MB, free: 7.262 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 3.206e-06/0.262, allocations: 3.984 kB / 451.7 MB, free: 7.258 MB / 366.1 MB Notification: Performance of matching and sorting (n=58): time 0.005124/0.2671, allocations: 2.296 MB / 454 MB, free: 4.891 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.2672, allocations: 81.67 kB / 454.1 MB, free: 4.793 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006773/0.2679, allocations: 0.625 MB / 454.7 MB, free: 4.156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.2679, allocations: 41.7 kB / 454.8 MB, free: 4.109 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.2681, allocations: 336.4 kB / 455.1 MB, free: 3.773 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.2683, allocations: 205 kB / 455.3 MB, free: 3.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/0.2685, allocations: 142.6 kB / 455.4 MB, free: 3.426 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.2687, allocations: 382.8 kB / 455.8 MB, free: 3.043 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004913/0.2692, allocations: 308.7 kB / 456.1 MB, free: 2.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005907/0.2698, allocations: 484.7 kB / 456.6 MB, free: 2.199 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.2708, allocations: 0.7484 MB / 457.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2708, allocations: 0 / 457.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001518/0.2723, allocations: 0.9693 MB / 458.3 MB, free: 416 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.2724, allocations: 4 kB / 458.3 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.2724, allocations: 8 kB / 458.3 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002434/0.2748, allocations: 420.8 kB / 458.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005904/0.2754, allocations: 143.8 kB / 458.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008608/0.2763, allocations: 0.8294 MB / 459.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004598/0.2768, allocations: 35.97 kB / 459.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.788e-05/0.2768, allocations: 31.94 kB / 459.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006562/0.2775, allocations: 481.9 kB / 460.2 MB, free: 14.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005722/0.2781, allocations: 466.2 kB / 460.7 MB, free: 13.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009708/0.2791, allocations: 0.7319 MB / 461.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.494e-06/0.2791, allocations: 0 / 461.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001427/0.2805, allocations: 0.9165 MB / 462.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.438e-06/0.2805, allocations: 7.125 kB / 462.3 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2805, allocations: 8 kB / 462.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001853/0.2824, allocations: 260.9 kB / 462.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005793/0.283, allocations: 159.8 kB / 462.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005957/0.2836, allocations: 0.7201 MB / 463.5 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004634/0.2841, allocations: 31.98 kB / 463.5 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.765e-05/0.2841, allocations: 31.98 kB / 463.5 MB, free: 10.96 MB / 382.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.0001837/0.2843, allocations: 226.2 kB / 463.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.2845, allocations: 79.22 kB / 463.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.286, allocations: 0.8734 MB / 464.7 MB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.286, allocations: 3.984 kB / 464.7 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.286, allocations: 3.938 kB / 464.7 MB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.2861, allocations: 140.2 kB / 464.8 MB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.2862, allocations: 12 kB / 464.9 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004406/0.2867, allocations: 27.98 kB / 464.9 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.812e-05/0.2868, allocations: 44.58 kB / 464.9 MB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001898/0.2887, allocations: 0.9287 MB / 465.9 MB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001605/0.2903, allocations: 1.174 MB / 467 MB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000452/0.2908, allocations: 320.3 kB / 467.3 MB, free: 7.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004954/0.2913, allocations: 443 kB / 467.8 MB, free: 6.66 MB / 382.1 MB Notification: Performance of Backend: time 2.2e-07/0.2913, allocations: 0 / 467.8 MB, free: 6.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002961/0.2943, allocations: 1.358 MB / 469.1 MB, free: 5.293 MB / 382.1 MB Notification: Performance of SimCode: time 0.002868/0.2971, allocations: 2.185 MB / 471.3 MB, free: 3.066 MB / 382.1 MB Notification: Performance of Templates: time 0.03093/0.3281, allocations: 22.08 MB / 493.4 MB, free: 13.12 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)