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.001043/0.001043, allocations: 114.3 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 55.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2086, allocations: 50.54 MB / 409.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01694/0.2256, allocations: 17.65 MB / 427.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008121/0.2337, allocations: 6.043 MB / 433.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005922/0.2344, allocations: 19.88 kB / 433.6 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009136/0.2353, allocations: 329.9 kB / 434 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002408/0.2377, allocations: 1.042 MB / 435 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003497/0.2413, allocations: 1.64 MB / 436.7 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002115/0.2434, allocations: 1.941 MB / 438.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005598/0.244, allocations: 481.7 kB / 439.1 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009059/0.2449, allocations: 0.7397 MB / 439.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008616/0.2457, allocations: 0.7357 MB / 440.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.2459, allocations: 68 kB / 440.6 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001849/0.2477, allocations: 1.139 MB / 441.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002527/0.248, allocations: 251.3 kB / 442 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003906/0.2484, allocations: 414 kB / 442.4 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001946/0.2504, allocations: 1.692 MB / 444.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2504, allocations: 0 / 444.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2504, allocations: 0 / 444.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.168e-06/0.2504, allocations: 0 / 444.1 MB, free: 15.36 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.002151/0.2526, allocations: 1.18 MB / 445.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.2526, allocations: 8.031 kB / 445.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003044/0.2529, allocations: 91.92 kB / 445.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009175/0.2538, allocations: 0.5714 MB / 445.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.614e-05/0.2539, allocations: 44.98 kB / 446 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.875e-05/0.254, allocations: 51.92 kB / 446 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.2552, allocations: 0.7295 MB / 446.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.2552, allocations: 7.938 kB / 446.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.044e-05/0.2553, allocations: 27.98 kB / 446.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.465e-05/0.2554, allocations: 44.97 kB / 446.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.2565, allocations: 0.687 MB / 447.5 MB, free: 11.8 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.004247/0.2608, allocations: 3.03 MB / 450.6 MB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007761/0.2616, allocations: 496.9 kB / 451 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003978/0.262, allocations: 270 kB / 451.3 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002657/0.2623, allocations: 344.8 kB / 451.6 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.2623, allocations: 39 kB / 451.7 MB, free: 7.328 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.014e-06/0.2623, allocations: 3.938 kB / 451.7 MB, free: 7.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=58): time 0.005286/0.2676, allocations: 2.299 MB / 454 MB, free: 4.953 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.2677, allocations: 85.67 kB / 454.1 MB, free: 4.852 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006967/0.2684, allocations: 0.625 MB / 454.7 MB, free: 4.215 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.61e-05/0.2684, allocations: 37.7 kB / 454.7 MB, free: 4.172 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002382/0.2687, allocations: 328.4 kB / 455 MB, free: 3.844 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.2688, allocations: 209 kB / 455.3 MB, free: 3.637 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002122/0.2691, allocations: 138.6 kB / 455.4 MB, free: 3.496 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.2692, allocations: 382.8 kB / 455.8 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005026/0.2697, allocations: 312.7 kB / 456.1 MB, free: 2.805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006118/0.2704, allocations: 489.3 kB / 456.5 MB, free: 2.258 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.2714, allocations: 0.7367 MB / 457.3 MB, free: 1.457 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2714, allocations: 4 kB / 457.3 MB, free: 1.453 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001544/0.273, allocations: 0.9732 MB / 458.3 MB, free: 480 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.273, allocations: 11.94 kB / 458.3 MB, free: 468 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.273, allocations: 4.625 kB / 458.3 MB, free: 464 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002529/0.2756, allocations: 408.3 kB / 458.7 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006365/0.2762, allocations: 151.8 kB / 458.8 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009022/0.2771, allocations: 0.8293 MB / 459.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004928/0.2776, allocations: 31.98 kB / 459.7 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.571e-05/0.2777, allocations: 35.92 kB / 459.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006814/0.2784, allocations: 473.9 kB / 460.2 MB, free: 14.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005883/0.279, allocations: 474.1 kB / 460.6 MB, free: 13.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001006/0.28, allocations: 0.7242 MB / 461.4 MB, free: 13.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.398e-06/0.28, allocations: 4 kB / 461.4 MB, free: 13.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001444/0.2815, allocations: 0.9123 MB / 462.3 MB, free: 12.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.2815, allocations: 10.81 kB / 462.3 MB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.82e-06/0.2815, allocations: 4 kB / 462.3 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001968/0.2835, allocations: 273.1 kB / 462.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006111/0.2841, allocations: 159.7 kB / 462.7 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005838/0.2847, allocations: 0.7123 MB / 463.4 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004802/0.2852, allocations: 27.98 kB / 463.5 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.057e-05/0.2853, allocations: 39.92 kB / 463.5 MB, free: 11.02 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.0002136/0.2855, allocations: 224.1 kB / 463.7 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.2856, allocations: 71.16 kB / 463.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.2872, allocations: 0.877 MB / 464.7 MB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2872, allocations: 3.984 kB / 464.7 MB, free: 9.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2872, allocations: 0 / 464.7 MB, free: 9.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.2873, allocations: 144.2 kB / 464.8 MB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.865e-05/0.2874, allocations: 12 kB / 464.8 MB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004463/0.2879, allocations: 27.97 kB / 464.8 MB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.288, allocations: 48.5 kB / 464.9 MB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001886/0.2899, allocations: 0.9209 MB / 465.8 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001606/0.2915, allocations: 1.186 MB / 467 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004436/0.292, allocations: 316.3 kB / 467.3 MB, free: 7.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005052/0.2925, allocations: 443 kB / 467.7 MB, free: 6.723 MB / 382.1 MB Notification: Performance of Backend: time 4.41e-07/0.2925, allocations: 96 / 467.7 MB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003051/0.2956, allocations: 1.36 MB / 469.1 MB, free: 5.355 MB / 382.1 MB Notification: Performance of SimCode: time 0.002883/0.2985, allocations: 2.181 MB / 471.3 MB, free: 3.133 MB / 382.1 MB Notification: Performance of Templates: time 0.03128/0.3298, allocations: 22.09 MB / 493.4 MB, free: 13.19 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)