Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00128/0.00128, allocations: 117.2 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 202.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2099, allocations: 50.55 MB / 410 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.03343/0.2434, allocations: 36.97 MB / 446.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01791/0.2613, allocations: 15.14 MB / 462.1 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001145/0.2625, allocations: 47.69 kB / 462.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001529/0.264, allocations: 0.6948 MB / 462.8 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00442/0.2685, allocations: 2.566 MB / 465.4 MB, free: 9.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006991/0.2755, allocations: 3.761 MB / 469.1 MB, free: 6.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004181/0.2797, allocations: 4.721 MB / 473.8 MB, free: 1.461 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001252/0.2809, allocations: 1.268 MB / 475.1 MB, free: 172 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.2829, allocations: 1.768 MB / 476.9 MB, free: 14.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002013/0.2849, allocations: 1.814 MB / 478.7 MB, free: 12.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002871/0.2852, allocations: 172 kB / 478.9 MB, free: 12.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003905/0.2891, allocations: 2.48 MB / 481.3 MB, free: 9.922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005767/0.2897, allocations: 0.6506 MB / 482 MB, free: 9.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009273/0.2906, allocations: 0.9954 MB / 483 MB, free: 8.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004356/0.295, allocations: 4.151 MB / 487.1 MB, free: 4.105 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.295, allocations: 0 / 487.1 MB, free: 4.105 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.295, allocations: 4 kB / 487.1 MB, free: 4.102 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.2951, allocations: 0 / 487.1 MB, free: 4.102 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.004319/0.2994, allocations: 2.485 MB / 489.6 MB, free: 1.555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.2994, allocations: 8.031 kB / 489.6 MB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005985/0.3, allocations: 214.8 kB / 489.8 MB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001661/0.3017, allocations: 1.153 MB / 491 MB, free: 128 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.344e-05/0.3018, allocations: 102.2 kB / 491.1 MB, free: 24 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002119/0.302, allocations: 116 kB / 491.2 MB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00286/0.3049, allocations: 1.964 MB / 493.2 MB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.301e-05/0.3049, allocations: 7.953 kB / 493.2 MB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001472/0.3051, allocations: 51.97 kB / 493.2 MB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/0.3052, allocations: 114.3 kB / 493.3 MB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00311/0.3083, allocations: 1.996 MB / 495.3 MB, free: 11.68 MB / 414.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.01049/0.3188, allocations: 7.877 MB / 0.4914 GB, free: 3.324 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001906/0.3208, allocations: 1.177 MB / 0.4926 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.3219, allocations: 0.7495 MB / 0.4933 GB, free: 1.383 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004273/0.3262, allocations: 3.415 MB / 0.4966 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.3262, allocations: 51.56 kB / 0.4967 GB, free: 13.64 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 2.315e-06/0.3262, allocations: 4 kB / 0.4967 GB, free: 13.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=134): time 0.01198/0.3382, allocations: 5.418 MB / 0.502 GB, free: 8.094 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.3383, allocations: 175.5 kB / 0.5022 GB, free: 7.887 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001619/0.3399, allocations: 1.427 MB / 0.5036 GB, free: 6.449 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.3401, allocations: 65.69 kB / 0.5036 GB, free: 6.379 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005035/0.3406, allocations: 0.7167 MB / 0.5043 GB, free: 5.656 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003546/0.3409, allocations: 499.8 kB / 0.5048 GB, free: 5.164 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005073/0.3415, allocations: 339.4 kB / 0.5051 GB, free: 4.828 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.211e-05/0.3415, allocations: 305.1 kB / 0.5054 GB, free: 4.527 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00125/0.3428, allocations: 0.7855 MB / 0.5062 GB, free: 3.738 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.3443, allocations: 1.203 MB / 0.5073 GB, free: 2.363 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002584/0.3469, allocations: 1.895 MB / 0.5092 GB, free: 320 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.347, allocations: 4 kB / 0.5092 GB, free: 316 kB / 430.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003914/0.3509, allocations: 2.452 MB / 0.5116 GB, free: 13.83 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3509, allocations: 15.94 kB / 0.5116 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.3509, allocations: 8 kB / 0.5116 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00687/0.3578, allocations: 1.104 MB / 0.5127 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.3591, allocations: 351.5 kB / 0.513 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002487/0.3616, allocations: 2.904 MB / 0.5159 GB, free: 9.344 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.3627, allocations: 88 kB / 0.516 GB, free: 9.258 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.3629, allocations: 79.98 kB / 0.516 GB, free: 9.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001611/0.3645, allocations: 1.081 MB / 0.5171 GB, free: 8.094 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00148/0.366, allocations: 1.197 MB / 0.5183 GB, free: 6.711 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002437/0.3684, allocations: 1.833 MB / 0.52 GB, free: 4.711 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.472e-06/0.3685, allocations: 4 kB / 0.52 GB, free: 4.707 MB / 446.1 MB Notification: Performance of matching and sorting (n=224) (initialization_lambda0): time 0.003624/0.3721, allocations: 2.307 MB / 0.5223 GB, free: 2.379 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.3721, allocations: 11.94 kB / 0.5223 GB, free: 2.367 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.3721, allocations: 12 kB / 0.5223 GB, free: 2.355 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00558/0.3777, allocations: 0.8154 MB / 0.5231 GB, free: 1.527 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.379, allocations: 367.4 kB / 0.5235 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001944/0.381, allocations: 2.65 MB / 0.5261 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.3821, allocations: 92.12 kB / 0.5261 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.3822, allocations: 84.11 kB / 0.5262 GB, free: 14.24 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 18 (tank2.aboveLevel[3],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank3.aboveLevel[2],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[1],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (203): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,2), (2,7), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003134/0.3826, allocations: 297.5 kB / 0.5265 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002772/0.3828, allocations: 178.9 kB / 0.5267 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004194/0.387, allocations: 2.352 MB / 0.529 GB, free: 11.42 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/0.3871, allocations: 11.91 kB / 0.529 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3871, allocations: 4 kB / 0.529 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002578/0.3873, allocations: 259.8 kB / 0.5292 GB, free: 11.13 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002406/0.3876, allocations: 35.95 kB / 0.5293 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008994/0.3885, allocations: 67.94 kB / 0.5293 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/0.3888, allocations: 125.8 kB / 0.5295 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004624/0.3934, allocations: 2.219 MB / 0.5316 GB, free: 8.68 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004202/0.3976, allocations: 2.784 MB / 0.5343 GB, free: 5.887 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00117/0.3988, allocations: 0.808 MB / 0.5351 GB, free: 5.074 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001222/0.4, allocations: 0.9825 MB / 0.5361 GB, free: 4.094 MB / 462.1 MB Notification: Performance of Backend: time 6.31e-07/0.4, allocations: 0 / 0.5361 GB, free: 4.094 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006943/0.407, allocations: 3.343 MB / 0.5394 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of SimCode: time 0.1598/0.5668, allocations: 4.291 MB / 0.5435 GB, free: 129.4 MB / 462.1 MB Notification: Performance of Templates: time 0.05542/0.6223, allocations: 54.49 MB / 0.5968 GB, free: 83.13 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)