Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001083/0.001083, allocations: 105.2 kB / 17.06 MB, free: 6.027 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.001177/0.001177, allocations: 195 kB / 18 MB, free: 5.105 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.659/1.659, allocations: 205.1 MB / 223.9 MB, free: 12.26 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.001301/0.001301, allocations: 43.94 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09896/0.1003, allocations: 46.61 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.2562/0.3565, allocations: 17.53 MB / 392 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009977/0.3665, allocations: 5.977 MB / 398 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001502/0.3681, allocations: 25.47 kB / 398 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.3694, allocations: 330.3 kB / 398.3 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003595/0.373, allocations: 1.026 MB / 399.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005584/0.3786, allocations: 1.645 MB / 401 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0039/0.3825, allocations: 1.939 MB / 402.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000946/0.3835, allocations: 475.1 kB / 403.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001721/0.3852, allocations: 0.7391 MB / 404.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001423/0.3866, allocations: 0.734 MB / 404.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001521/0.3868, allocations: 65.94 kB / 404.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003323/0.3901, allocations: 1.112 MB / 406.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004254/0.3906, allocations: 257.3 kB / 406.3 MB, free: 11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006988/0.3913, allocations: 410.1 kB / 406.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004053/0.3953, allocations: 1.684 MB / 408.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.3954, allocations: 4 kB / 408.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3954, allocations: 1.156 kB / 408.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.949e-05/0.3954, allocations: 0 / 408.4 MB, free: 9.641 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.002881/0.3983, allocations: 1.17 MB / 409.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.3984, allocations: 9.312 kB / 409.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003742/0.3987, allocations: 81.88 kB / 409.7 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.3999, allocations: 0.5901 MB / 410.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.795e-05/0.4, allocations: 37.58 kB / 410.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.4001, allocations: 42.44 kB / 410.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.4015, allocations: 0.7393 MB / 411.1 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.4016, allocations: 2.906 kB / 411.1 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.022e-05/0.4016, allocations: 22.5 kB / 411.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.364e-05/0.4017, allocations: 43.19 kB / 411.1 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.403, allocations: 0.7014 MB / 411.8 MB, free: 7.312 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.004887/0.4079, allocations: 3.039 MB / 414.9 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008757/0.4088, allocations: 497.2 kB / 415.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004715/0.4093, allocations: 266.4 kB / 415.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003557/0.4096, allocations: 344.2 kB / 416 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.33e-05/0.4097, allocations: 38.06 kB / 416 MB, free: 3.891 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 3.928e-06/0.4097, allocations: 0 / 416 MB, free: 3.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.005791/0.4155, allocations: 2.305 MB / 418.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.4156, allocations: 83.17 kB / 418.4 MB, free: 2.426 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008242/0.4164, allocations: 0.6226 MB / 419 MB, free: 2.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.171e-05/0.4165, allocations: 37.83 kB / 419 MB, free: 2.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.4167, allocations: 329.5 kB / 419.4 MB, free: 1.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.4169, allocations: 199.3 kB / 419.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.4171, allocations: 143.6 kB / 419.7 MB, free: 1.469 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.4173, allocations: 385 kB / 420.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000533/0.4179, allocations: 314.9 kB / 420.4 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006413/0.4185, allocations: 478.8 kB / 420.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.4196, allocations: 0.7432 MB / 421.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.4196, allocations: 4 kB / 421.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0016/0.4212, allocations: 0.9703 MB / 422.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.4213, allocations: 16.03 kB / 422.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.4213, allocations: 7.984 kB / 422.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002468/0.4237, allocations: 412.3 kB / 423 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005923/0.4243, allocations: 151.7 kB / 423.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009475/0.4253, allocations: 0.8225 MB / 424 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006048/0.4259, allocations: 39.91 kB / 424 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.598e-05/0.426, allocations: 24 kB / 424 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007182/0.4267, allocations: 477.9 kB / 424.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006002/0.4273, allocations: 482.1 kB / 425 MB, free: 12.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001033/0.4284, allocations: 0.7253 MB / 425.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.825e-06/0.4284, allocations: 0 / 425.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001477/0.4299, allocations: 0.9047 MB / 426.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.4299, allocations: 8.625 kB / 426.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.4299, allocations: 4.875 kB / 426.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001856/0.4318, allocations: 268.5 kB / 426.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005848/0.4324, allocations: 163.7 kB / 427 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006076/0.433, allocations: 0.7146 MB / 427.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005549/0.4336, allocations: 28.05 kB / 427.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-05/0.4336, allocations: 39.98 kB / 427.8 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.0002758/0.4339, allocations: 228 kB / 428 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.4341, allocations: 75.09 kB / 428.1 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.4356, allocations: 0.8638 MB / 429 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.4357, allocations: 8 kB / 429 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4357, allocations: 0 / 429 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.4357, allocations: 3.984 kB / 429 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.4385, allocations: 1.718 MB / 430.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.4385, allocations: 1.312 kB / 430.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004859/0.439, allocations: 108 kB / 430.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.4405, allocations: 324.5 kB / 431.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.503e-05/0.4405, allocations: 27.86 kB / 431.1 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000777/0.4413, allocations: 0.8099 MB / 432 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4413, allocations: 32 / 432 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.4432, allocations: 1.299 MB / 433.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002521/0.4435, allocations: 144.2 kB / 433.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4436, allocations: 16 kB / 433.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004419/0.444, allocations: 25.05 kB / 433.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.4442, allocations: 56.48 kB / 433.5 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.697e-05/0.4442, allocations: 27.92 kB / 433.5 MB, free: 3.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005273/0.4448, allocations: 443 kB / 434 MB, free: 3.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4448, allocations: 0 / 434 MB, free: 3.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001679/0.4464, allocations: 0.5232 MB / 434.5 MB, free: 2.613 MB / 350.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.00105/0.4475, allocations: 450.8 kB / 434.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002341/0.4499, allocations: 1.197 MB / 436.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4499, allocations: 1.688 kB / 436.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006477/0.4505, allocations: 399.1 kB / 436.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.4522, allocations: 369 kB / 436.9 MB, free: 224 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.4547, allocations: 1.574 MB / 438.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000481/0.4552, allocations: 0.9674 MB / 439.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009542/0.4562, allocations: 286.1 kB / 439.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.4564, allocations: 67.42 kB / 439.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4564, allocations: 0 / 439.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of Templates: time 0.0332/0.4896, allocations: 20.85 MB / 460.6 MB, free: 8.371 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)