Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.763/1.763, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.000346, allocations: 8 kB / 233.8 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08643/0.0868, allocations: 38.78 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9538/1.041, allocations: 311.2 MB / 0.5701 GB, free: 2.621 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/1.041, allocations: 85.2 kB / 0.5702 GB, free: 2.574 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.782/1.823, allocations: 130.7 MB / 0.6978 GB, free: 25.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.823, allocations: 0 / 0.6978 GB, free: 25.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.049e-05/1.823, allocations: 24.16 kB / 0.6979 GB, free: 25.88 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003884/1.827, allocations: 1.177 MB / 0.699 GB, free: 24.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/1.827, allocations: 8.031 kB / 0.699 GB, free: 24.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006076/1.828, allocations: 99 kB / 0.6991 GB, free: 24.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002211/1.83, allocations: 0.648 MB / 0.6997 GB, free: 23.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/1.83, allocations: 108.7 kB / 0.6999 GB, free: 23.74 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/1.83, allocations: 59.98 kB / 0.6999 GB, free: 23.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002639/1.833, allocations: 0.8892 MB / 0.7008 GB, free: 22.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.789e-05/1.833, allocations: 3.906 kB / 0.7008 GB, free: 22.76 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001515/1.833, allocations: 27.98 kB / 0.7008 GB, free: 22.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001233/1.833, allocations: 53.22 kB / 0.7009 GB, free: 22.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002473/1.836, allocations: 0.8327 MB / 0.7017 GB, free: 21.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009255/1.845, allocations: 3.301 MB / 0.7049 GB, free: 18.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/1.847, allocations: 0.6532 MB / 0.7055 GB, free: 17.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004619/1.852, allocations: 2.058 MB / 0.7075 GB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.942e-05/1.852, allocations: 39.12 kB / 0.7076 GB, free: 15.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 4.087e-06/1.852, allocations: 0 / 0.7076 GB, free: 15.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.01174/1.863, allocations: 2.86 MB / 0.7104 GB, free: 12.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/1.863, allocations: 89.66 kB / 0.7105 GB, free: 12.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/1.865, allocations: 0.6759 MB / 0.7111 GB, free: 11.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/1.865, allocations: 49.64 kB / 0.7112 GB, free: 11.65 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/1.865, allocations: 336.5 kB / 0.7115 GB, free: 11.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000241/1.865, allocations: 224.8 kB / 0.7117 GB, free: 11.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.487e-05/1.865, allocations: 16 kB / 0.7117 GB, free: 11.08 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/1.866, allocations: 382.8 kB / 0.7121 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009678/1.867, allocations: 361.8 kB / 0.7124 GB, free: 10.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/1.868, allocations: 0.5026 MB / 0.7129 GB, free: 9.785 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/1.869, allocations: 407 kB / 0.7133 GB, free: 9.391 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/1.869, allocations: 4 kB / 0.7133 GB, free: 9.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003162/1.872, allocations: 1.145 MB / 0.7144 GB, free: 8.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000129/1.872, allocations: 206.3 kB / 0.7146 GB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/1.872, allocations: 4 kB / 0.7146 GB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002029/1.874, allocations: 452.4 kB / 0.7151 GB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/1.876, allocations: 151.8 kB / 0.7152 GB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001804/1.877, allocations: 1.034 MB / 0.7162 GB, free: 6.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/1.879, allocations: 47.86 kB / 0.7163 GB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/1.879, allocations: 35.98 kB / 0.7163 GB, free: 6.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/1.879, allocations: 4 kB / 0.7163 GB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002566/1.881, allocations: 0.9294 MB / 0.7172 GB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/1.881, allocations: 4.531 kB / 0.7172 GB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000979/1.882, allocations: 248.7 kB / 0.7175 GB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/1.884, allocations: 171.7 kB / 0.7176 GB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/1.885, allocations: 0.8139 MB / 0.7184 GB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/1.886, allocations: 36.03 kB / 0.7184 GB, free: 4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/1.886, allocations: 31.98 kB / 0.7185 GB, free: 3.969 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.000673/1.887, allocations: 328.9 kB / 0.7188 GB, free: 3.637 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002744/1.887, allocations: 79.16 kB / 0.7189 GB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00318/1.891, allocations: 1.099 MB / 0.7199 GB, free: 2.445 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/1.891, allocations: 11.95 kB / 0.7199 GB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.819e-06/1.891, allocations: 0 / 0.7199 GB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/1.891, allocations: 3.984 kB / 0.72 GB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005237/1.896, allocations: 1.99 MB / 0.7219 GB, free: 392 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/1.896, allocations: 0 / 0.7219 GB, free: 392 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/1.897, allocations: 123.8 kB / 0.722 GB, free: 268 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2413/2.138, allocations: 448.1 kB / 0.7224 GB, free: 77.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002009/2.139, allocations: 19.52 kB / 0.7225 GB, free: 77.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001997/2.141, allocations: 1.025 MB / 0.7235 GB, free: 76.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/2.141, allocations: 4.906 kB / 0.7235 GB, free: 76.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004497/2.145, allocations: 1.592 MB / 0.725 GB, free: 76.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007911/2.146, allocations: 249.2 kB / 0.7253 GB, free: 76.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002423/2.146, allocations: 12.69 kB / 0.7253 GB, free: 76.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/2.148, allocations: 55.91 kB / 0.7253 GB, free: 76.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002572/2.148, allocations: 58.05 kB / 0.7254 GB, free: 76.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/2.148, allocations: 30.45 kB / 0.7254 GB, free: 76.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009998/2.149, allocations: 471 kB / 0.7259 GB, free: 76.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.149, allocations: 0 / 0.7259 GB, free: 76.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002781/2.152, allocations: 0.6359 MB / 0.7265 GB, free: 76.5 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001948/2.154, allocations: 0.5908 MB / 0.7271 GB, free: 76.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004445/2.158, allocations: 1.353 MB / 0.7284 GB, free: 76.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.465e-06/2.159, allocations: 5.844 kB / 0.7284 GB, free: 76.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00164/2.16, allocations: 470.3 kB / 0.7288 GB, free: 76.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002807/2.163, allocations: 347 kB / 0.7292 GB, free: 76.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00547/2.169, allocations: 2.032 MB / 0.7311 GB, free: 75.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006221/2.169, allocations: 1.007 MB / 0.7321 GB, free: 74.97 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001927/2.171, allocations: 306.4 kB / 0.7324 GB, free: 74.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000365/2.172, allocations: 72.67 kB / 0.7325 GB, free: 74.95 MB / 362.7 MB Notification: Performance of SimCode: time 1.353e-06/2.172, allocations: 3.172 kB / 0.7325 GB, free: 74.95 MB / 362.7 MB Notification: Performance of Templates: time 0.05337/2.225, allocations: 21.7 MB / 0.7537 GB, free: 74.12 MB / 362.7 MB