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.ThreeTanks.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.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003705/0.0003707, allocations: 12 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09849, allocations: 44.5 MB / 309 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.169/1.268, allocations: 316.7 MB / 0.6111 GB, free: 66.03 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/1.268, allocations: 84.08 kB / 0.6112 GB, free: 65.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.571/2.839, allocations: 267.7 MB / 0.8726 GB, free: 61.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.066e-06/2.839, allocations: 0 / 0.8726 GB, free: 61.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001764/2.84, allocations: 40.25 kB / 0.8726 GB, free: 61.97 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.008902/2.849, allocations: 1.99 MB / 0.8745 GB, free: 61.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/2.849, allocations: 7.438 kB / 0.8745 GB, free: 61.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001351/2.85, allocations: 178.3 kB / 0.8747 GB, free: 60.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004146/2.854, allocations: 1.115 MB / 0.8758 GB, free: 60.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002498/2.854, allocations: 180 kB / 0.876 GB, free: 60.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004262/2.855, allocations: 100.9 kB / 0.8761 GB, free: 60.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005396/2.86, allocations: 1.765 MB / 0.8778 GB, free: 60.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.184e-05/2.86, allocations: 3.656 kB / 0.8778 GB, free: 60.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002857/2.861, allocations: 48.75 kB / 0.8778 GB, free: 60.35 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002445/2.861, allocations: 109.3 kB / 0.8779 GB, free: 60.35 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005185/2.866, allocations: 1.776 MB / 0.8797 GB, free: 60.33 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0191/2.885, allocations: 6.402 MB / 0.8859 GB, free: 58.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002937/2.888, allocations: 1.177 MB / 0.8871 GB, free: 58.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009209/2.898, allocations: 4.17 MB / 0.8912 GB, free: 55.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/2.898, allocations: 51.77 kB / 0.8912 GB, free: 55.9 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00196/2.9, allocations: 212.3 kB / 0.8914 GB, free: 55.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 6.242e-06/2.9, allocations: 0 / 0.8914 GB, free: 55.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.03248/2.932, allocations: 5.463 MB / 0.8967 GB, free: 55.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.794e-05/2.932, allocations: 144.5 kB / 0.8969 GB, free: 55.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/2.935, allocations: 1.246 MB / 0.8981 GB, free: 54.85 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004345/2.935, allocations: 50.3 kB / 0.8981 GB, free: 54.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005376/2.936, allocations: 0.5999 MB / 0.8987 GB, free: 54.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000564/2.936, allocations: 384 kB / 0.8991 GB, free: 54.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/2.937, allocations: 28.53 kB / 0.8991 GB, free: 54.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/2.937, allocations: 366 kB / 0.8995 GB, free: 54.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001945/2.939, allocations: 0.6429 MB / 0.9001 GB, free: 54.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002554/2.941, allocations: 0.9677 MB / 0.901 GB, free: 53.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003554/2.945, allocations: 0.7527 MB / 0.9018 GB, free: 53.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-05/2.945, allocations: 3.875 kB / 0.9018 GB, free: 53.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.0105/2.956, allocations: 2.12 MB / 0.9039 GB, free: 53.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003504/2.956, allocations: 360.2 kB / 0.9042 GB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.762e-05/2.956, allocations: 6.781 kB / 0.9042 GB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03215/2.988, allocations: 1.235 MB / 0.9054 GB, free: 53.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007043/2.995, allocations: 289.6 kB / 0.9057 GB, free: 53.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/3.006, allocations: 1.522 MB / 0.9072 GB, free: 52.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007491/3.013, allocations: 85.22 kB / 0.9073 GB, free: 52.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004345/3.014, allocations: 72.67 kB / 0.9073 GB, free: 52.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/3.014, allocations: 8.297 kB / 0.9073 GB, free: 52.55 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01697/3.031, allocations: 1.784 MB / 0.9091 GB, free: 52.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-05/3.031, allocations: 11.69 kB / 0.9091 GB, free: 52.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01666/3.048, allocations: 0.9742 MB / 0.91 GB, free: 52.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003601/3.051, allocations: 300.7 kB / 0.9103 GB, free: 52.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003758/3.055, allocations: 1.233 MB / 0.9115 GB, free: 51.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003489/3.059, allocations: 89.69 kB / 0.9116 GB, free: 51.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003097/3.059, allocations: 67.23 kB / 0.9117 GB, free: 51.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * 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 initialization (153): * Single equations (assignments): 152 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.001244/3.06, allocations: 470.5 kB / 0.9121 GB, free: 51.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004846/3.061, allocations: 143.8 kB / 0.9123 GB, free: 51.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006771/3.068, allocations: 2.024 MB / 0.9142 GB, free: 51.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.133e-05/3.068, allocations: 13.5 kB / 0.9143 GB, free: 51.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/3.068, allocations: 0 / 0.9143 GB, free: 51.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.867e-05/3.068, allocations: 7.078 kB / 0.9143 GB, free: 51.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009053/3.077, allocations: 3.438 MB / 0.9176 GB, free: 51.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/3.077, allocations: 0 / 0.9176 GB, free: 51.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001715/3.078, allocations: 195.4 kB / 0.9178 GB, free: 51.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006419/3.085, allocations: 0.9623 MB / 0.9187 GB, free: 51.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003723/3.085, allocations: 31.5 kB / 0.9188 GB, free: 51.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003371/3.089, allocations: 1.561 MB / 0.9203 GB, free: 50.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/3.089, allocations: 0 / 0.9203 GB, free: 50.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00732/3.096, allocations: 2.755 MB / 0.923 GB, free: 50.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/3.098, allocations: 399.9 kB / 0.9234 GB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004388/3.098, allocations: 29.44 kB / 0.9234 GB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00206/3.1, allocations: 83.05 kB / 0.9235 GB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003456/3.1, allocations: 100.2 kB / 0.9236 GB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/3.101, allocations: 51.19 kB / 0.9236 GB, free: 50.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001713/3.102, allocations: 0.8362 MB / 0.9244 GB, free: 50.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.21e-07/3.102, allocations: 0 / 0.9244 GB, free: 50.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005336/3.108, allocations: 1.241 MB / 0.9257 GB, free: 49.86 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * 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 (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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003666/3.111, allocations: 1.07 MB / 0.9267 GB, free: 49.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009884/3.121, allocations: 2.573 MB / 0.9292 GB, free: 49.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/3.121, allocations: 3.75 kB / 0.9292 GB, free: 49.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003133/3.125, allocations: 0.8404 MB / 0.93 GB, free: 49.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00515/3.13, allocations: 0.593 MB / 0.9306 GB, free: 49.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009535/3.139, allocations: 3.518 MB / 0.934 GB, free: 47.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009564/3.14, allocations: 1.321 MB / 0.9353 GB, free: 46.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003568/3.144, allocations: 0.5597 MB / 0.9359 GB, free: 46.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005883/3.145, allocations: 126.3 kB / 0.936 GB, free: 46.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.383e-06/3.145, allocations: 0 / 0.936 GB, free: 46.8 MB / 410.7 MB Notification: Performance of Templates: time 0.09624/3.241, allocations: 40.59 MB / 0.9756 GB, free: 20.73 MB / 410.7 MB