Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 2.068/2.068, allocations: 194.9 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003669/0.000367, allocations: 12 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.113, allocations: 44.51 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.045/1.158, allocations: 316.7 MB / 0.611 GB, free: 66.58 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/1.159, allocations: 85.95 kB / 0.6111 GB, free: 66.54 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.578/2.737, allocations: 267.7 MB / 0.8725 GB, free: 43.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.346e-06/2.737, allocations: 0 / 0.8725 GB, free: 43.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001635/2.737, allocations: 35.77 kB / 0.8725 GB, free: 43.39 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.009842/2.747, allocations: 2.001 MB / 0.8745 GB, free: 42.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/2.747, allocations: 7.906 kB / 0.8745 GB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001566/2.748, allocations: 178.9 kB / 0.8746 GB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004327/2.753, allocations: 1.111 MB / 0.8757 GB, free: 42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001934/2.753, allocations: 179.4 kB / 0.8759 GB, free: 41.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003377/2.753, allocations: 103.3 kB / 0.876 GB, free: 41.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004506/2.758, allocations: 1.773 MB / 0.8777 GB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.851e-05/2.758, allocations: 3.906 kB / 0.8777 GB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002376/2.758, allocations: 49.09 kB / 0.8778 GB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002261/2.759, allocations: 113 kB / 0.8779 GB, free: 41.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004583/2.763, allocations: 1.773 MB / 0.8796 GB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01806/2.781, allocations: 6.399 MB / 0.8859 GB, free: 39.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002836/2.784, allocations: 1.181 MB / 0.887 GB, free: 39.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00869/2.793, allocations: 4.16 MB / 0.8911 GB, free: 37.31 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/2.793, allocations: 49.84 kB / 0.8911 GB, free: 37.27 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00162/2.795, allocations: 217.5 kB / 0.8913 GB, free: 37.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 5.691e-06/2.795, allocations: 0 / 0.8913 GB, free: 37.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.03273/2.827, allocations: 5.477 MB / 0.8967 GB, free: 36.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/2.827, allocations: 140.6 kB / 0.8968 GB, free: 36.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/2.83, allocations: 1.239 MB / 0.898 GB, free: 36.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003339/2.83, allocations: 52.11 kB / 0.8981 GB, free: 36.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004235/2.831, allocations: 0.5708 MB / 0.8986 GB, free: 35.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000435/2.831, allocations: 387.2 kB / 0.899 GB, free: 35.63 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/2.831, allocations: 32.66 kB / 0.899 GB, free: 35.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/2.831, allocations: 366.7 kB / 0.8994 GB, free: 35.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/2.833, allocations: 0.6391 MB / 0.9 GB, free: 35.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001911/2.835, allocations: 0.9779 MB / 0.901 GB, free: 34.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001909/2.837, allocations: 0.7556 MB / 0.9017 GB, free: 34.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/2.837, allocations: 5.875 kB / 0.9017 GB, free: 34.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005433/2.842, allocations: 2.027 MB / 0.9037 GB, free: 34.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000226/2.843, allocations: 365.8 kB / 0.904 GB, free: 34.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/2.843, allocations: 13.38 kB / 0.904 GB, free: 34.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01269/2.855, allocations: 1.224 MB / 0.9052 GB, free: 34.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002428/2.858, allocations: 296.6 kB / 0.9055 GB, free: 34.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003568/2.862, allocations: 1.524 MB / 0.907 GB, free: 33.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00246/2.864, allocations: 85.44 kB / 0.9071 GB, free: 33.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000215/2.864, allocations: 73.88 kB / 0.9072 GB, free: 33.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/2.864, allocations: 7.891 kB / 0.9072 GB, free: 33.88 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004766/2.869, allocations: 1.784 MB / 0.9089 GB, free: 33.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/2.869, allocations: 10.97 kB / 0.9089 GB, free: 33.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01106/2.88, allocations: 0.9566 MB / 0.9099 GB, free: 33.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/2.883, allocations: 296.9 kB / 0.9101 GB, free: 33.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002501/2.885, allocations: 1.221 MB / 0.9113 GB, free: 33.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/2.887, allocations: 90.11 kB / 0.9114 GB, free: 33.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/2.887, allocations: 65.94 kB / 0.9115 GB, free: 33.28 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.001189/2.888, allocations: 460.2 kB / 0.9119 GB, free: 33.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004817/2.889, allocations: 150.7 kB / 0.9121 GB, free: 33.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006263/2.895, allocations: 2.025 MB / 0.914 GB, free: 32.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/2.895, allocations: 19.56 kB / 0.9141 GB, free: 32.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/2.895, allocations: 0 / 0.9141 GB, free: 32.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/2.895, allocations: 7.594 kB / 0.9141 GB, free: 32.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008396/2.903, allocations: 3.43 MB / 0.9174 GB, free: 32.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/2.903, allocations: 2.062 kB / 0.9174 GB, free: 32.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00171/2.905, allocations: 192.3 kB / 0.9176 GB, free: 32.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006178/2.911, allocations: 0.962 MB / 0.9185 GB, free: 32.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002522/2.912, allocations: 36.58 kB / 0.9186 GB, free: 32.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003206/2.915, allocations: 1.561 MB / 0.9201 GB, free: 31.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/2.915, allocations: 3.891 kB / 0.9201 GB, free: 31.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006785/2.922, allocations: 2.747 MB / 0.9228 GB, free: 31.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001187/2.923, allocations: 401.1 kB / 0.9232 GB, free: 31.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000442/2.923, allocations: 21.19 kB / 0.9232 GB, free: 31.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00188/2.925, allocations: 90.05 kB / 0.9233 GB, free: 31.51 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/2.926, allocations: 104.8 kB / 0.9234 GB, free: 31.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001695/2.926, allocations: 46.08 kB / 0.9234 GB, free: 31.51 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001618/2.927, allocations: 0.8403 MB / 0.9242 GB, free: 31.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/2.927, allocations: 2.688 kB / 0.9242 GB, free: 31.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004536/2.932, allocations: 1.243 MB / 0.9255 GB, free: 31.19 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.003286/2.935, allocations: 1.064 MB / 0.9265 GB, free: 30.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008512/2.944, allocations: 2.547 MB / 0.929 GB, free: 30.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/2.944, allocations: 7.594 kB / 0.929 GB, free: 30.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002889/2.947, allocations: 0.8351 MB / 0.9298 GB, free: 30.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004904/2.952, allocations: 0.5854 MB / 0.9304 GB, free: 30.76 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008591/2.96, allocations: 3.589 MB / 0.9339 GB, free: 28.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008998/2.961, allocations: 1.309 MB / 0.9352 GB, free: 28.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009142/2.962, allocations: 150 kB / 0.9353 GB, free: 28.18 MB / 410.7 MB Notification: Performance of SimCode: time 1.182e-06/2.962, allocations: 0 / 0.9353 GB, free: 28.18 MB / 410.7 MB Notification: Performance of Templates: time 0.06786/3.03, allocations: 35.52 MB / 0.97 GB, free: 9.234 MB / 410.7 MB