Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001798/0.001798, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00204/0.00204, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 247.5 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 68.97 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1074, allocations: 50.52 MB / 358.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.2048/0.3123, allocations: 31.16 MB / 389.3 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02088/0.3332, allocations: 14.3 MB / 403.6 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002208/0.3355, allocations: 45.47 kB / 403.7 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002141/0.3377, allocations: 0.5783 MB / 404.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008578/0.3463, allocations: 2.18 MB / 406.4 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01123/0.3575, allocations: 3.656 MB / 410.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006151/0.3637, allocations: 3.969 MB / 414.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002031/0.3658, allocations: 1.015 MB / 415.1 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003935/0.3697, allocations: 1.475 MB / 416.6 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004072/0.3738, allocations: 1.526 MB / 418.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005478/0.3744, allocations: 144 kB / 418.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006311/0.3807, allocations: 2.355 MB / 420.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009917/0.3818, allocations: 0.5493 MB / 421.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001579/0.3834, allocations: 0.8283 MB / 422 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008587/0.392, allocations: 3.635 MB / 425.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.392, allocations: 0 / 425.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.392, allocations: 0 / 425.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.824e-05/0.3921, allocations: 0 / 425.6 MB, free: 8.223 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005388/0.3975, allocations: 2.107 MB / 427.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3975, allocations: 8.031 kB / 427.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006758/0.3982, allocations: 170.1 kB / 427.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/0.3999, allocations: 0.9522 MB / 428.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.08e-05/0.4, allocations: 89.84 kB / 428.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.4002, allocations: 99.92 kB / 429 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00287/0.4031, allocations: 1.631 MB / 430.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.124e-05/0.4031, allocations: 4 kB / 430.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001456/0.4033, allocations: 47.97 kB / 430.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001523/0.4035, allocations: 101.9 kB / 430.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002874/0.4063, allocations: 1.643 MB / 432.4 MB, free: 1.195 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.01138/0.4177, allocations: 6.661 MB / 439.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001675/0.4194, allocations: 0.9261 MB / 440 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009065/0.4204, allocations: 0.5547 MB / 440.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004462/0.4248, allocations: 2.812 MB / 443.4 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.196e-05/0.4249, allocations: 47.22 kB / 443.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.615e-06/0.4249, allocations: 0 / 443.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.00954/0.4345, allocations: 3.7 MB / 447.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/0.4346, allocations: 188.9 kB / 447.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/0.4367, allocations: 1.306 MB / 448.6 MB, free: 176 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001658/0.4368, allocations: 53.69 kB / 448.7 MB, free: 116 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006307/0.4375, allocations: 0.651 MB / 449.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003614/0.4379, allocations: 315.6 kB / 449.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005019/0.4384, allocations: 291.3 kB / 449.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.4385, allocations: 301.1 kB / 450.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.4396, allocations: 0.5825 MB / 450.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001485/0.4411, allocations: 1.005 MB / 451.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002601/0.4437, allocations: 1.489 MB / 453.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/0.4437, allocations: 4 kB / 453.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.00367/0.4474, allocations: 1.908 MB / 455.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.4475, allocations: 8 kB / 455.2 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.4475, allocations: 12.62 kB / 455.2 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004859/0.4523, allocations: 0.7597 MB / 456 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/0.4537, allocations: 291.5 kB / 456.3 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002473/0.4562, allocations: 2.166 MB / 458.4 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.4576, allocations: 67.95 kB / 458.5 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/0.4577, allocations: 67.92 kB / 458.6 MB, free: 5.758 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001563/0.4593, allocations: 0.8512 MB / 459.4 MB, free: 4.902 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001432/0.4607, allocations: 0.9915 MB / 460.4 MB, free: 3.727 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00219/0.4629, allocations: 1.452 MB / 461.9 MB, free: 2.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.265e-05/0.463, allocations: 4 kB / 461.9 MB, free: 2.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003715/0.4667, allocations: 1.834 MB / 463.7 MB, free: 256 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.4667, allocations: 12 kB / 463.7 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.4668, allocations: 12 kB / 463.7 MB, free: 232 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004127/0.4709, allocations: 0.5957 MB / 464.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.4722, allocations: 287.5 kB / 464.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.4742, allocations: 2.025 MB / 466.6 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.4756, allocations: 76.08 kB / 466.7 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.4757, allocations: 71.98 kB / 466.8 MB, free: 13.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0004712/0.4762, allocations: 277 kB / 467 MB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003198/0.4765, allocations: 138.3 kB / 467.2 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003269/0.4798, allocations: 1.52 MB / 468.7 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.44e-05/0.4798, allocations: 12 kB / 468.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.4799, allocations: 0 / 468.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.4799, allocations: 7.922 kB / 468.7 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005313/0.4852, allocations: 2.811 MB / 471.5 MB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.4853, allocations: 3.938 kB / 471.5 MB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007451/0.486, allocations: 155.8 kB / 471.7 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002856/0.4889, allocations: 0.5723 MB / 472.3 MB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001259/0.489, allocations: 27.98 kB / 472.3 MB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002329/0.4914, allocations: 2.122 MB / 474.4 MB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.4914, allocations: 4.031 kB / 474.4 MB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003797/0.4952, allocations: 2.098 MB / 476.5 MB, free: 3.129 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005114/0.4957, allocations: 215.3 kB / 476.7 MB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002618/0.496, allocations: 35.83 kB / 476.8 MB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008416/0.4968, allocations: 47.91 kB / 476.8 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/0.4971, allocations: 92.86 kB / 476.9 MB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.4972, allocations: 47.97 kB / 476.9 MB, free: 2.676 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001408/0.4986, allocations: 0.9045 MB / 477.8 MB, free: 1.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4986, allocations: 0 / 477.8 MB, free: 1.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003198/0.5018, allocations: 1.117 MB / 479 MB, free: 0.6523 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,12), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002247/0.5041, allocations: 0.8282 MB / 479.8 MB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006033/0.5101, allocations: 2.577 MB / 482.4 MB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/0.5102, allocations: 3.859 kB / 482.4 MB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.5117, allocations: 0.6857 MB / 483.1 MB, free: 12.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/0.515, allocations: 0.627 MB / 483.7 MB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005099/0.5201, allocations: 2.812 MB / 486.5 MB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.5211, allocations: 1.256 MB / 487.7 MB, free: 7.816 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005767/0.5217, allocations: 123.4 kB / 487.9 MB, free: 7.695 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5217, allocations: 0 / 487.9 MB, free: 7.695 MB / 398.1 MB Notification: Performance of Templates: time 0.06756/0.5893, allocations: 45.3 MB / 0.5207 GB, free: 10.48 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)