Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003524, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1042, allocations: 44.5 MB / 309 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.701/1.805, allocations: 405 MB / 0.6973 GB, free: 105.7 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004417/1.806, allocations: 93.34 kB / 0.6974 GB, free: 105.7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.105/2.911, allocations: 210.8 MB / 0.9032 GB, free: 84.37 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.066e-06/2.911, allocations: 7.906 kB / 0.9032 GB, free: 84.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001948/2.911, allocations: 38.17 kB / 0.9033 GB, free: 84.36 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.008979/2.92, allocations: 1.938 MB / 0.9052 GB, free: 83.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/2.92, allocations: 10.69 kB / 0.9052 GB, free: 83.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001461/2.922, allocations: 161.7 kB / 0.9053 GB, free: 83.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00395/2.926, allocations: 0.9885 MB / 0.9063 GB, free: 82.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000275/2.926, allocations: 241.8 kB / 0.9065 GB, free: 82.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006079/2.927, allocations: 105.7 kB / 0.9066 GB, free: 82.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005465/2.932, allocations: 1.798 MB / 0.9084 GB, free: 81.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.469e-05/2.932, allocations: 3.953 kB / 0.9084 GB, free: 81.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000287/2.932, allocations: 43.75 kB / 0.9084 GB, free: 81.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002113/2.933, allocations: 103 kB / 0.9085 GB, free: 81.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005665/2.938, allocations: 1.757 MB / 0.9102 GB, free: 80.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02112/2.959, allocations: 6.838 MB / 0.9169 GB, free: 76.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004612/2.964, allocations: 1.435 MB / 0.9183 GB, free: 75.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01072/2.975, allocations: 3.947 MB / 0.9222 GB, free: 71.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.802e-05/2.975, allocations: 50.62 kB / 0.9222 GB, free: 71.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 4.398e-06/2.975, allocations: 0 / 0.9222 GB, free: 71.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.02665/3.002, allocations: 5.902 MB / 0.928 GB, free: 65.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.983e-05/3.002, allocations: 171.2 kB / 0.9281 GB, free: 65.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002085/3.004, allocations: 1.104 MB / 0.9292 GB, free: 64.26 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004786/3.004, allocations: 45.7 kB / 0.9293 GB, free: 64.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005075/3.005, allocations: 0.5301 MB / 0.9298 GB, free: 63.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007414/3.006, allocations: 413.6 kB / 0.9302 GB, free: 63.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/3.006, allocations: 24 kB / 0.9302 GB, free: 63.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/3.006, allocations: 361.9 kB / 0.9305 GB, free: 62.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002205/3.008, allocations: 0.7651 MB / 0.9313 GB, free: 62.13 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002554/3.011, allocations: 1.025 MB / 0.9323 GB, free: 61.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/3.013, allocations: 0.8314 MB / 0.9331 GB, free: 60.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/3.013, allocations: 0 / 0.9331 GB, free: 60.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.007903/3.021, allocations: 2.456 MB / 0.9355 GB, free: 57.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001681/3.022, allocations: 272.6 kB / 0.9358 GB, free: 57.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/3.022, allocations: 4 kB / 0.9358 GB, free: 57.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006086/3.028, allocations: 1.234 MB / 0.937 GB, free: 56.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002002/3.03, allocations: 219.7 kB / 0.9372 GB, free: 55.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008666/3.038, allocations: 6.236 MB / 0.9433 GB, free: 49.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002738/3.041, allocations: 99.8 kB / 0.9434 GB, free: 49.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004714/3.042, allocations: 63.97 kB / 0.9434 GB, free: 49.24 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/3.042, allocations: 4 kB / 0.9434 GB, free: 49.24 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00654/3.048, allocations: 2.049 MB / 0.9454 GB, free: 47.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/3.048, allocations: 4 kB / 0.9454 GB, free: 47.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003612/3.052, allocations: 0.7922 MB / 0.9462 GB, free: 46.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002136/3.054, allocations: 239 kB / 0.9464 GB, free: 46.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00827/3.063, allocations: 6.797 MB / 0.9531 GB, free: 38.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002346/3.065, allocations: 95.84 kB / 0.9532 GB, free: 38.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003157/3.065, allocations: 59.97 kB / 0.9532 GB, free: 38.76 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001256/3.067, allocations: 461.1 kB / 0.9537 GB, free: 38.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004689/3.067, allocations: 134.4 kB / 0.9538 GB, free: 38.17 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008246/3.075, allocations: 2.603 MB / 0.9563 GB, free: 35.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.121e-05/3.075, allocations: 16 kB / 0.9563 GB, free: 35.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/3.075, allocations: 0 / 0.9563 GB, free: 35.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.775e-05/3.075, allocations: 7.969 kB / 0.9564 GB, free: 35.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01139/3.087, allocations: 4.19 MB / 0.9604 GB, free: 31.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/3.087, allocations: 0 / 0.9604 GB, free: 31.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/3.088, allocations: 159.7 kB / 0.9606 GB, free: 31.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005472/3.094, allocations: 1.216 MB / 0.9618 GB, free: 29.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003103/3.094, allocations: 39.97 kB / 0.9618 GB, free: 29.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008234/3.102, allocations: 6.25 MB / 0.9679 GB, free: 23.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/3.103, allocations: 0 / 0.9679 GB, free: 23.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009377/3.112, allocations: 3.588 MB / 0.9714 GB, free: 19.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/3.113, allocations: 435.1 kB / 0.9718 GB, free: 19.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004589/3.114, allocations: 31.98 kB / 0.9719 GB, free: 19.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00197/3.116, allocations: 102.7 kB / 0.972 GB, free: 19.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005214/3.116, allocations: 141.1 kB / 0.9721 GB, free: 18.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000204/3.117, allocations: 55.95 kB / 0.9722 GB, free: 18.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001462/3.118, allocations: 0.7458 MB / 0.9729 GB, free: 18.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.31e-07/3.118, allocations: 4 kB / 0.9729 GB, free: 18.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005035/3.123, allocations: 1.112 MB / 0.974 GB, free: 17.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {5 11,2 4,5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.002958/3.126, allocations: 0.8299 MB / 0.9748 GB, free: 16.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0106/3.137, allocations: 3.59 MB / 0.9783 GB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/3.137, allocations: 0 / 0.9783 GB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004735/3.142, allocations: 1.36 MB / 0.9796 GB, free: 11.24 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00441/3.146, allocations: 0.5484 MB / 0.9802 GB, free: 10.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/3.157, allocations: 3.602 MB / 0.9837 GB, free: 7.113 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009121/3.158, allocations: 1.287 MB / 0.9849 GB, free: 5.801 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003314/3.161, allocations: 0.5754 MB / 0.9855 GB, free: 5.238 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000597/3.162, allocations: 135.3 kB / 0.9856 GB, free: 5.105 MB / 410.7 MB Notification: Performance of SimCode: time 1.322e-06/3.162, allocations: 0 / 0.9856 GB, free: 5.105 MB / 410.7 MB Notification: Performance of Templates: time 0.3883/3.55, allocations: 40.48 MB / 1.025 GB, free: 74.02 MB / 410.7 MB