Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 96.62 kB / 15.36 MB, free: 0.7344 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.009105/0.009105, allocations: 169.9 kB / 16.27 MB, free: 6.656 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.548/1.548, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.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.0004894/0.0004894, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.283, allocations: 47.59 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03099/0.314, allocations: 29.52 MB / 356.5 MB, free: 5.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02417/0.3382, allocations: 15.5 MB / 372 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002886/0.3412, allocations: 59.5 kB / 372.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002142/0.3433, allocations: 0.5168 MB / 372.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007352/0.3507, allocations: 2.151 MB / 374.8 MB, free: 3.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01131/0.3621, allocations: 3.176 MB / 378 MB, free: 304 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007924/0.37, allocations: 6.155 MB / 384.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001912/0.372, allocations: 1.009 MB / 385.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002961/0.3749, allocations: 1.319 MB / 386.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002859/0.3778, allocations: 1.655 MB / 388.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003257/0.3782, allocations: 88 kB / 388.2 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005337/0.3835, allocations: 2.351 MB / 390.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007826/0.3843, allocations: 0.5491 MB / 391.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.3855, allocations: 0.8181 MB / 391.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007049/0.3926, allocations: 3.603 MB / 395.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.3926, allocations: 0 / 395.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3926, allocations: 0 / 395.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.394e-05/0.3926, allocations: 0 / 395.5 MB, free: 14.68 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.005069/0.3977, allocations: 1.9 MB / 397.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.3978, allocations: 8.031 kB / 397.4 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005214/0.3983, allocations: 174.1 kB / 397.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.4001, allocations: 1.003 MB / 398.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.4003, allocations: 175.1 kB / 398.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000203/0.4005, allocations: 108 kB / 398.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002751/0.4033, allocations: 1.749 MB / 400.6 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.305e-05/0.4033, allocations: 7.906 kB / 400.6 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001404/0.4034, allocations: 43.91 kB / 400.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001567/0.4036, allocations: 117.9 kB / 400.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002749/0.4064, allocations: 1.784 MB / 402.6 MB, free: 7.441 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.01109/0.4175, allocations: 6.735 MB / 409.3 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001879/0.4194, allocations: 1.242 MB / 410.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/0.4208, allocations: 0.7651 MB / 411.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006152/0.4269, allocations: 4.29 MB / 415.6 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.556e-05/0.427, allocations: 47.56 kB / 415.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008798/0.4279, allocations: 206.7 kB / 415.8 MB, free: 9.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.817e-06/0.4279, allocations: 0 / 415.8 MB, free: 9.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.0194/0.4473, allocations: 5.758 MB / 421.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.623e-05/0.4474, allocations: 141.5 kB / 421.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.4493, allocations: 1.246 MB / 423 MB, free: 2.141 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.4494, allocations: 49.7 kB / 423 MB, free: 2.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000561/0.45, allocations: 0.6246 MB / 423.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003693/0.4504, allocations: 378.5 kB / 424 MB, free: 1.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.4506, allocations: 125.6 kB / 424.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4507, allocations: 301.1 kB / 424.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.452, allocations: 0.7144 MB / 425.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/0.4535, allocations: 1.064 MB / 426.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002718/0.4563, allocations: 1.747 MB / 428 MB, free: 12.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.4563, allocations: 4 kB / 428 MB, free: 12.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.00411/0.4604, allocations: 2.285 MB / 430.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000335/0.4607, allocations: 387 kB / 430.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.4608, allocations: 12 kB / 430.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00697/0.4677, allocations: 1.273 MB / 431.9 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.469, allocations: 303.5 kB / 432.2 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002406/0.4715, allocations: 1.606 MB / 433.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001619/0.4731, allocations: 87.78 kB / 433.9 MB, free: 6.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/0.4732, allocations: 71.97 kB / 434 MB, free: 6.664 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.4733, allocations: 4 kB / 434 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003457/0.4767, allocations: 2.031 MB / 436 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.4768, allocations: 12 kB / 436 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006107/0.4829, allocations: 1.113 MB / 437.1 MB, free: 3.496 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.4841, allocations: 307.5 kB / 437.4 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002176/0.4862, allocations: 1.477 MB / 438.9 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.4876, allocations: 83.8 kB / 439 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.4877, allocations: 71.91 kB / 439.1 MB, free: 1.539 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0008465/0.4886, allocations: 468.6 kB / 439.5 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002504/0.4889, allocations: 150.2 kB / 439.7 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004055/0.4929, allocations: 2.09 MB / 441.8 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.4929, allocations: 15.94 kB / 441.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.493, allocations: 0 / 441.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.493, allocations: 11.97 kB / 441.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005278/0.4983, allocations: 3.571 MB / 445.4 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.4983, allocations: 0 / 445.4 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000898/0.4992, allocations: 195.8 kB / 445.5 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003719/0.5029, allocations: 1.004 MB / 446.5 MB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.503, allocations: 31.98 kB / 446.6 MB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00229/0.5053, allocations: 1.611 MB / 448.2 MB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.5054, allocations: 3.938 kB / 448.2 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004839/0.5102, allocations: 2.911 MB / 451.1 MB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008699/0.5111, allocations: 407.1 kB / 451.5 MB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.5113, allocations: 24 kB / 451.5 MB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.5123, allocations: 83.84 kB / 451.6 MB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.5126, allocations: 97.11 kB / 451.7 MB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.5127, allocations: 51.97 kB / 451.8 MB, free: 4.688 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001217/0.5139, allocations: 0.8519 MB / 452.6 MB, free: 3.832 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5139, allocations: 0 / 452.6 MB, free: 3.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003142/0.5171, allocations: 1.16 MB / 453.8 MB, free: 2.672 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002079/0.5192, allocations: 0.8495 MB / 454.6 MB, free: 1.812 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1998/0.719, allocations: 2.818 MB / 457.4 MB, free: 116.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/0.719, allocations: 1.344 kB / 457.4 MB, free: 116.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002387/0.7214, allocations: 0.8732 MB / 458.3 MB, free: 116.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003944/0.7254, allocations: 0.6205 MB / 458.9 MB, free: 116.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006767/0.7322, allocations: 3.718 MB / 462.6 MB, free: 114.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007482/0.733, allocations: 1.296 MB / 463.9 MB, free: 114.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002124/0.7351, allocations: 0.5866 MB / 464.5 MB, free: 114 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003207/0.7354, allocations: 128.9 kB / 464.7 MB, free: 114 MB / 382.1 MB Notification: Performance of SimCode: time 1.703e-06/0.7355, allocations: 0 / 464.7 MB, free: 114 MB / 382.1 MB Notification: Performance of Templates: time 0.05516/0.7906, allocations: 41.41 MB / 0.4942 GB, free: 76.67 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)