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.001233/0.001233, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001727/0.001727, allocations: 192.4 kB / 16.25 MB, free: 6.625 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.614/1.614, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.0014/0.001401, allocations: 51.94 kB / 278.2 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2823, allocations: 46.63 MB / 324.8 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03126/0.3136, allocations: 30.23 MB / 355.1 MB, free: 5.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02203/0.3357, allocations: 15.3 MB / 370.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002798/0.3385, allocations: 67.5 kB / 370.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001854/0.3405, allocations: 0.5246 MB / 371 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007123/0.3476, allocations: 2.132 MB / 373.1 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01038/0.358, allocations: 3.418 MB / 376.5 MB, free: 300 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006373/0.3644, allocations: 4.181 MB / 380.7 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00222/0.3666, allocations: 1.152 MB / 381.8 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0033/0.37, allocations: 1.553 MB / 383.4 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003175/0.3732, allocations: 1.737 MB / 385.1 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004158/0.3736, allocations: 160 kB / 385.3 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006171/0.3798, allocations: 2.414 MB / 387.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008516/0.3807, allocations: 0.6194 MB / 388.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001494/0.3822, allocations: 0.875 MB / 389.2 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007889/0.3901, allocations: 3.698 MB / 392.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3901, allocations: 4 kB / 392.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3901, allocations: 0 / 392.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.527e-05/0.3901, allocations: 0 / 392.9 MB, free: 15.83 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.005551/0.3957, allocations: 2.204 MB / 395.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3957, allocations: 8.031 kB / 395.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005526/0.3963, allocations: 174.1 kB / 395.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00151/0.3978, allocations: 1.007 MB / 396.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/0.398, allocations: 175.1 kB / 396.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/0.3982, allocations: 108 kB / 396.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002716/0.4009, allocations: 1.753 MB / 398.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/0.401, allocations: 0 / 398.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001337/0.4011, allocations: 47.97 kB / 398.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001464/0.4013, allocations: 113.9 kB / 398.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002755/0.404, allocations: 1.78 MB / 400.3 MB, free: 8.293 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.01119/0.4152, allocations: 6.692 MB / 407 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.417, allocations: 1.242 MB / 408.2 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.4181, allocations: 0.7689 MB / 409 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005579/0.4237, allocations: 4.271 MB / 413.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.4238, allocations: 47.56 kB / 413.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009019/0.4247, allocations: 198.7 kB / 413.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.307e-06/0.4247, allocations: 0 / 413.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.0187/0.4434, allocations: 5.691 MB / 419.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.4436, allocations: 145.4 kB / 419.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/0.4456, allocations: 1.25 MB / 420.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002733/0.4458, allocations: 49.7 kB / 420.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004993/0.4463, allocations: 0.6129 MB / 421.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004595/0.4468, allocations: 394.3 kB / 421.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004865/0.4473, allocations: 291.4 kB / 421.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.475e-05/0.4474, allocations: 305.1 kB / 422.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.4486, allocations: 0.7191 MB / 422.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.45, allocations: 1.064 MB / 424 MB, free: 15.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002624/0.4527, allocations: 1.747 MB / 425.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.4527, allocations: 3.938 kB / 425.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.00459/0.4573, allocations: 2.296 MB / 428 MB, free: 11.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.442e-05/0.4573, allocations: 10.97 kB / 428 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.4574, allocations: 8 kB / 428 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006848/0.4642, allocations: 1.285 MB / 429.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.4657, allocations: 299.5 kB / 429.6 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002478/0.4681, allocations: 1.603 MB / 431.2 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.4697, allocations: 75.86 kB / 431.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.4699, allocations: 71.91 kB / 431.4 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001592/0.4715, allocations: 0.984 MB / 432.3 MB, free: 6.984 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001312/0.4728, allocations: 1.055 MB / 433.4 MB, free: 5.781 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002327/0.4751, allocations: 1.722 MB / 435.1 MB, free: 3.918 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.422e-06/0.4751, allocations: 4 kB / 435.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.00371/0.4789, allocations: 2.195 MB / 437.3 MB, free: 1.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.4789, allocations: 12 kB / 437.3 MB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.4789, allocations: 8 kB / 437.3 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006055/0.485, allocations: 1.101 MB / 438.4 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.4864, allocations: 307.5 kB / 438.7 MB, free: 288 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002012/0.4884, allocations: 1.457 MB / 440.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.49, allocations: 87.8 kB / 440.3 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.4902, allocations: 72.28 kB / 440.4 MB, free: 14.64 MB / 382.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.0005703/0.4908, allocations: 267.9 kB / 440.6 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003086/0.4911, allocations: 146.2 kB / 440.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004009/0.4951, allocations: 2.094 MB / 442.8 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.067e-05/0.4951, allocations: 12 kB / 442.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.4952, allocations: 4 kB / 442.9 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.4952, allocations: 3.984 kB / 442.9 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005525/0.5007, allocations: 3.586 MB / 446.5 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.5007, allocations: 0 / 446.5 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009083/0.5016, allocations: 195.8 kB / 446.6 MB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002328/0.504, allocations: 0.8557 MB / 447.5 MB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.5041, allocations: 31.98 kB / 447.5 MB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.5064, allocations: 1.619 MB / 449.2 MB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5064, allocations: 0 / 449.2 MB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004538/0.5109, allocations: 2.911 MB / 452.1 MB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.512, allocations: 395.1 kB / 452.4 MB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002475/0.5122, allocations: 20 kB / 452.5 MB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.5133, allocations: 79.91 kB / 452.5 MB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/0.5135, allocations: 101.3 kB / 452.6 MB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/0.5137, allocations: 47.97 kB / 452.7 MB, free: 2.148 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001173/0.5148, allocations: 0.8596 MB / 453.6 MB, free: 1.285 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5148, allocations: 0 / 453.6 MB, free: 1.285 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003311/0.5182, allocations: 1.156 MB / 454.7 MB, free: 132 kB / 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.2004/0.7185, allocations: 0.8333 MB / 455.5 MB, free: 118.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00873/0.7273, allocations: 3.3 MB / 458.8 MB, free: 117.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.697e-06/0.7273, allocations: 1.062 kB / 458.8 MB, free: 117.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001856/0.7292, allocations: 0.8755 MB / 459.7 MB, free: 117.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/0.7323, allocations: 0.6596 MB / 460.4 MB, free: 117.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005086/0.7374, allocations: 3.569 MB / 463.9 MB, free: 115.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006147/0.738, allocations: 1.293 MB / 465.2 MB, free: 114.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002006/0.74, allocations: 0.5916 MB / 465.8 MB, free: 114.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003289/0.7404, allocations: 127.6 kB / 466 MB, free: 114.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.7404, allocations: 0 / 466 MB, free: 114.4 MB / 382.1 MB Notification: Performance of Templates: time 0.05504/0.7954, allocations: 43.59 MB / 0.4976 GB, free: 72.73 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)