Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.009425/0.009426, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001504/0.001504, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.511/1.511, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.00115/0.00115, allocations: 48.12 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1031, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03279/0.136, allocations: 28.68 MB / 401.8 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02339/0.1595, allocations: 15.03 MB / 416.9 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003496/0.1631, allocations: 47.69 kB / 416.9 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.1658, allocations: 0.5824 MB / 417.5 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008841/0.1747, allocations: 2.294 MB / 419.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01132/0.186, allocations: 3.728 MB / 423.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007283/0.1933, allocations: 4.127 MB / 427.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002359/0.1957, allocations: 1.168 MB / 428.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004329/0.2001, allocations: 1.538 MB / 430.4 MB, free: 7.902 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003361/0.2035, allocations: 1.659 MB / 432 MB, free: 6.238 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000417/0.2039, allocations: 164 kB / 432.2 MB, free: 6.078 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006289/0.2102, allocations: 2.418 MB / 434.6 MB, free: 3.656 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001036/0.2113, allocations: 0.6194 MB / 435.2 MB, free: 3.035 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001593/0.2129, allocations: 0.8672 MB / 436.1 MB, free: 2.164 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009207/0.2221, allocations: 3.721 MB / 439.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.2221, allocations: 0 / 439.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2221, allocations: 4 kB / 439.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.809e-05/0.2222, allocations: 0 / 439.8 MB, free: 14.43 MB / 382.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.006741/0.229, allocations: 2.2 MB / 442 MB, free: 12.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.229, allocations: 12.03 kB / 442 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006369/0.2297, allocations: 178.1 kB / 442.2 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.2317, allocations: 1.069 MB / 443.3 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/0.2319, allocations: 183.1 kB / 443.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/0.2321, allocations: 95.97 kB / 443.5 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002899/0.235, allocations: 1.757 MB / 445.3 MB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.022e-05/0.2351, allocations: 0 / 445.3 MB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001578/0.2352, allocations: 43.97 kB / 445.3 MB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001746/0.2354, allocations: 109.9 kB / 445.4 MB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003024/0.2385, allocations: 1.784 MB / 447.2 MB, free: 6.828 MB / 382.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.3126/0.5511, allocations: 6.691 MB / 453.9 MB, free: 72.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00341/0.5546, allocations: 1.242 MB / 455.2 MB, free: 72.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.5561, allocations: 0.7658 MB / 455.9 MB, free: 72.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006812/0.563, allocations: 4.268 MB / 460.2 MB, free: 69.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.563, allocations: 45.25 kB / 460.2 MB, free: 69.87 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000909/0.564, allocations: 177.9 kB / 460.4 MB, free: 69.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.897e-06/0.564, allocations: 0 / 460.4 MB, free: 69.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.02017/0.5841, allocations: 5.693 MB / 466.1 MB, free: 67.9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.897e-05/0.5843, allocations: 140.9 kB / 466.2 MB, free: 67.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00207/0.5863, allocations: 1.256 MB / 467.5 MB, free: 67.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001888/0.5865, allocations: 55.23 kB / 467.5 MB, free: 67.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003774/0.5869, allocations: 0.6017 MB / 468.1 MB, free: 66.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003309/0.5873, allocations: 391.3 kB / 468.5 MB, free: 66.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000463/0.5877, allocations: 293.9 kB / 468.8 MB, free: 66.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.546e-05/0.5878, allocations: 302.9 kB / 469.1 MB, free: 65.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.5889, allocations: 0.7242 MB / 469.8 MB, free: 65.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001442/0.5904, allocations: 1.067 MB / 470.9 MB, free: 64.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002481/0.5929, allocations: 1.744 MB / 472.6 MB, free: 63.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.5929, allocations: 3.969 kB / 472.7 MB, free: 63.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003551/0.5964, allocations: 2.284 MB / 474.9 MB, free: 62.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.109e-05/0.5965, allocations: 15.78 kB / 475 MB, free: 62.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.5965, allocations: 7.906 kB / 475 MB, free: 62.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006636/0.6032, allocations: 1.281 MB / 476.2 MB, free: 61.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.6045, allocations: 306.6 kB / 476.5 MB, free: 61.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/0.6068, allocations: 1.592 MB / 478.1 MB, free: 60.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.6085, allocations: 57.89 kB / 478.2 MB, free: 60.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/0.6087, allocations: 72.55 kB / 478.3 MB, free: 60.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0015/0.6102, allocations: 0.9775 MB / 479.2 MB, free: 60 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00114/0.6114, allocations: 1.063 MB / 480.3 MB, free: 59.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002107/0.6135, allocations: 1.72 MB / 482 MB, free: 57.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.582e-06/0.6135, allocations: 4 kB / 482 MB, free: 57.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.00322/0.6167, allocations: 2.195 MB / 484.2 MB, free: 55.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.6167, allocations: 16.03 kB / 484.2 MB, free: 55.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.6168, allocations: 12 kB / 484.2 MB, free: 55.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0058/0.6226, allocations: 1.105 MB / 485.4 MB, free: 54.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.6238, allocations: 299.5 kB / 485.6 MB, free: 54.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.6255, allocations: 1.457 MB / 487.1 MB, free: 52.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/0.6269, allocations: 59.97 kB / 487.2 MB, free: 52.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/0.6271, allocations: 71.91 kB / 487.2 MB, free: 52.62 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.0004786/0.6276, allocations: 268.1 kB / 487.5 MB, free: 52.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002973/0.6279, allocations: 146.2 kB / 487.6 MB, free: 52.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003562/0.6314, allocations: 2.086 MB / 489.7 MB, free: 50.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.6315, allocations: 19.94 kB / 489.7 MB, free: 50.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.6315, allocations: 0 / 489.7 MB, free: 50.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.6315, allocations: 3.984 kB / 489.7 MB, free: 50.1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005602/0.6371, allocations: 3.591 MB / 493.3 MB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.6372, allocations: 0 / 493.3 MB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008647/0.638, allocations: 191.8 kB / 493.5 MB, free: 46.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002073/0.6401, allocations: 0.8598 MB / 494.4 MB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.856e-05/0.6402, allocations: 31.97 kB / 494.4 MB, free: 45.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001834/0.6421, allocations: 1.618 MB / 496 MB, free: 43.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.6421, allocations: 3.938 kB / 496 MB, free: 43.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004017/0.6461, allocations: 2.912 MB / 498.9 MB, free: 40.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000945/0.6471, allocations: 395.2 kB / 499.3 MB, free: 40.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002407/0.6473, allocations: 27.92 kB / 499.4 MB, free: 40.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009349/0.6483, allocations: 55.95 kB / 499.4 MB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002275/0.6485, allocations: 105.1 kB / 499.5 MB, free: 40.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.6486, allocations: 47.97 kB / 499.6 MB, free: 40.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000956/0.6496, allocations: 0.8441 MB / 0.4887 GB, free: 39.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6496, allocations: 0 / 0.4887 GB, free: 39.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003054/0.6527, allocations: 1.161 MB / 0.4898 GB, free: 38.31 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.001903/0.6546, allocations: 0.8473 MB / 0.4906 GB, free: 37.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005559/0.6602, allocations: 2.855 MB / 0.4934 GB, free: 34.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/0.6602, allocations: 8 kB / 0.4934 GB, free: 34.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001601/0.6618, allocations: 0.8751 MB / 0.4943 GB, free: 33.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003341/0.6652, allocations: 0.659 MB / 0.4949 GB, free: 33.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005283/0.6705, allocations: 3.068 MB / 0.4979 GB, free: 30.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005984/0.6711, allocations: 1.292 MB / 0.4992 GB, free: 28.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001813/0.6729, allocations: 0.5823 MB / 0.4998 GB, free: 28.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003221/0.6732, allocations: 135.3 kB / 0.4999 GB, free: 28.12 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6733, allocations: 0 / 0.4999 GB, free: 28.12 MB / 382.1 MB Notification: Performance of Templates: time 0.06577/0.739, allocations: 44.21 MB / 0.5431 GB, free: 15.86 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)