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.006718/0.006718, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001309/0.001309, allocations: 201 kB / 16.68 MB, free: 5.969 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.588/1.588, allocations: 205.1 MB / 222.5 MB, free: 4.344 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.001367/0.001367, allocations: 45.91 kB / 326.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1078, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03094/0.1388, allocations: 28.68 MB / 401.8 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02197/0.1608, allocations: 15.03 MB / 416.9 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002482/0.1633, allocations: 43.75 kB / 416.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001973/0.1654, allocations: 0.5901 MB / 417.5 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007051/0.1725, allocations: 2.321 MB / 419.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01134/0.1838, allocations: 3.732 MB / 423.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007295/0.1912, allocations: 4.147 MB / 427.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002295/0.1935, allocations: 1.168 MB / 428.9 MB, free: 9.391 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003573/0.1971, allocations: 1.561 MB / 430.4 MB, free: 7.824 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003008/0.2001, allocations: 1.659 MB / 432.1 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004089/0.2005, allocations: 164 kB / 432.3 MB, free: 6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005547/0.2061, allocations: 2.418 MB / 434.7 MB, free: 3.578 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008167/0.2069, allocations: 0.6155 MB / 435.3 MB, free: 2.961 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001355/0.2083, allocations: 0.8711 MB / 436.2 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00851/0.2168, allocations: 3.738 MB / 439.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.2169, allocations: 0 / 439.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2169, allocations: 0 / 439.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.674e-05/0.217, allocations: 0 / 439.9 MB, free: 14.34 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.006529/0.2235, allocations: 2.274 MB / 442.2 MB, free: 12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.2236, allocations: 8.031 kB / 442.2 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006114/0.2242, allocations: 183 kB / 442.4 MB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00189/0.2261, allocations: 1.066 MB / 443.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.2263, allocations: 182.9 kB / 443.6 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001924/0.2265, allocations: 111.9 kB / 443.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002933/0.2294, allocations: 1.749 MB / 445.5 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.145e-05/0.2295, allocations: 0 / 445.5 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001361/0.2296, allocations: 47.97 kB / 445.5 MB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.2298, allocations: 109.9 kB / 445.6 MB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002925/0.2327, allocations: 1.784 MB / 447.4 MB, free: 6.648 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.2861/0.5188, allocations: 6.7 MB / 454.1 MB, free: 73.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003123/0.522, allocations: 1.238 MB / 455.3 MB, free: 73.06 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.5235, allocations: 0.7651 MB / 456.1 MB, free: 72.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007431/0.531, allocations: 4.272 MB / 460.4 MB, free: 69.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.44e-05/0.5311, allocations: 46.48 kB / 460.4 MB, free: 69.87 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008847/0.532, allocations: 180.9 kB / 460.6 MB, free: 69.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.366e-06/0.532, allocations: 0 / 460.6 MB, free: 69.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.02006/0.552, allocations: 5.724 MB / 466.3 MB, free: 67.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.453e-05/0.5522, allocations: 141.3 kB / 466.5 MB, free: 67.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001974/0.5541, allocations: 1.253 MB / 467.7 MB, free: 67.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001437/0.5543, allocations: 48.02 kB / 467.8 MB, free: 67.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003872/0.5547, allocations: 0.6249 MB / 468.4 MB, free: 66.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/0.555, allocations: 410 kB / 468.8 MB, free: 66.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005105/0.5555, allocations: 293.8 kB / 469.1 MB, free: 66.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.5556, allocations: 304 kB / 469.4 MB, free: 65.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.5568, allocations: 0.7253 MB / 470.1 MB, free: 65.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001313/0.5581, allocations: 1.062 MB / 471.2 MB, free: 64.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00237/0.5605, allocations: 1.746 MB / 472.9 MB, free: 63.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/0.5605, allocations: 0 / 472.9 MB, free: 63.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003687/0.5642, allocations: 2.296 MB / 475.2 MB, free: 62.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.5642, allocations: 11.81 kB / 475.2 MB, free: 62.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.5643, allocations: 7.875 kB / 475.2 MB, free: 62.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006364/0.5706, allocations: 1.279 MB / 476.5 MB, free: 61.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.572, allocations: 300.1 kB / 476.8 MB, free: 61.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.5742, allocations: 1.602 MB / 478.4 MB, free: 60.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.5758, allocations: 55.16 kB / 478.4 MB, free: 60.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.5759, allocations: 71.53 kB / 478.5 MB, free: 60.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001486/0.5774, allocations: 0.984 MB / 479.5 MB, free: 60.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001124/0.5786, allocations: 1.062 MB / 480.6 MB, free: 59.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002112/0.5807, allocations: 1.723 MB / 482.3 MB, free: 57.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.001e-05/0.5807, allocations: 4 kB / 482.3 MB, free: 57.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.00328/0.584, allocations: 2.191 MB / 484.5 MB, free: 55.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.584, allocations: 16.64 kB / 484.5 MB, free: 55.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.5841, allocations: 12 kB / 484.5 MB, free: 55.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005604/0.5897, allocations: 1.107 MB / 485.6 MB, free: 54.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.5909, allocations: 303.5 kB / 485.9 MB, free: 54.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.5926, allocations: 1.454 MB / 487.4 MB, free: 52.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/0.5943, allocations: 67.91 kB / 487.4 MB, free: 52.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001539/0.5944, allocations: 71.95 kB / 487.5 MB, free: 52.52 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.0006049/0.5951, allocations: 271.2 kB / 487.8 MB, free: 52.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003666/0.5954, allocations: 152.3 kB / 487.9 MB, free: 52.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003577/0.599, allocations: 2.089 MB / 490 MB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.599, allocations: 16 kB / 490 MB, free: 50.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.5991, allocations: 0 / 490 MB, free: 50.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.5991, allocations: 7.969 kB / 490 MB, free: 50 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004974/0.6041, allocations: 3.58 MB / 493.6 MB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.6041, allocations: 0 / 493.6 MB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008789/0.605, allocations: 191.8 kB / 493.8 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002123/0.6071, allocations: 0.8597 MB / 494.7 MB, free: 45.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.6072, allocations: 39.86 kB / 494.7 MB, free: 45.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/0.609, allocations: 1.618 MB / 496.3 MB, free: 43.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.609, allocations: 0 / 496.3 MB, free: 43.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003915/0.613, allocations: 2.921 MB / 499.2 MB, free: 40.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.614, allocations: 399.9 kB / 499.6 MB, free: 40.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/0.6142, allocations: 24 kB / 499.6 MB, free: 40.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009412/0.6152, allocations: 59.89 kB / 499.7 MB, free: 40.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.6154, allocations: 101.2 kB / 499.8 MB, free: 40.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.6155, allocations: 47.97 kB / 499.8 MB, free: 40.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001029/0.6166, allocations: 0.8441 MB / 0.489 GB, free: 39.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6166, allocations: 0 / 0.489 GB, free: 39.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002992/0.6196, allocations: 1.177 MB / 0.4901 GB, free: 38.2 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.001934/0.6215, allocations: 0.864 MB / 0.4909 GB, free: 37.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005664/0.6272, allocations: 2.861 MB / 0.4937 GB, free: 34.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/0.6272, allocations: 192 / 0.4937 GB, free: 34.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001589/0.6288, allocations: 0.879 MB / 0.4946 GB, free: 33.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003177/0.632, allocations: 0.6521 MB / 0.4952 GB, free: 33.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005159/0.6372, allocations: 3.11 MB / 0.4983 GB, free: 29.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005999/0.6378, allocations: 1.292 MB / 0.4995 GB, free: 28.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001965/0.6398, allocations: 0.5823 MB / 0.5001 GB, free: 27.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/0.6401, allocations: 139.3 kB / 0.5002 GB, free: 27.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.724e-06/0.6401, allocations: 0 / 0.5002 GB, free: 27.84 MB / 382.1 MB Notification: Performance of Templates: time 0.06532/0.7054, allocations: 44.21 MB / 0.5434 GB, free: 15.57 MB / 414.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)