Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.62/1.62, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.842e-05/2.865e-05, allocations: 4 kB / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2113, allocations: 38.78 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7324/0.9437, allocations: 311.1 MB / 0.5651 GB, free: 61.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/0.944, allocations: 80.7 kB / 0.5652 GB, free: 60.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6001/1.544, allocations: 130.3 MB / 0.6924 GB, free: 84.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.806e-06/1.544, allocations: 4 kB / 0.6924 GB, free: 84.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.616e-05/1.544, allocations: 23.94 kB / 0.6924 GB, free: 84.84 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.002606/1.547, allocations: 1.08 MB / 0.6935 GB, free: 83.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/1.547, allocations: 12.25 kB / 0.6935 GB, free: 83.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005446/1.547, allocations: 87.06 kB / 0.6936 GB, free: 83.63 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/1.549, allocations: 0.6636 MB / 0.6942 GB, free: 82.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/1.549, allocations: 100.5 kB / 0.6943 GB, free: 82.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/1.549, allocations: 55.91 kB / 0.6944 GB, free: 82.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/1.551, allocations: 0.8848 MB / 0.6953 GB, free: 81.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/1.551, allocations: 0 / 0.6953 GB, free: 81.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/1.551, allocations: 23.83 kB / 0.6953 GB, free: 81.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.639e-05/1.551, allocations: 45.28 kB / 0.6953 GB, free: 81.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/1.553, allocations: 0.8133 MB / 0.6961 GB, free: 81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006426/1.559, allocations: 3.312 MB / 0.6994 GB, free: 77.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/1.561, allocations: 0.6493 MB / 0.7 GB, free: 76.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006198/1.561, allocations: 358.4 kB / 0.7003 GB, free: 76.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003294/1.564, allocations: 2.066 MB / 0.7023 GB, free: 74.31 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/1.565, allocations: 39.12 kB / 0.7024 GB, free: 74.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.267e-06/1.565, allocations: 0 / 0.7024 GB, free: 74.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.00537/1.57, allocations: 2.226 MB / 0.7046 GB, free: 71.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/1.57, allocations: 89.61 kB / 0.7046 GB, free: 71.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008835/1.571, allocations: 0.5933 MB / 0.7052 GB, free: 71.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.807e-05/1.571, allocations: 41.7 kB / 0.7053 GB, free: 71.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/1.571, allocations: 355 kB / 0.7056 GB, free: 70.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/1.571, allocations: 228.4 kB / 0.7058 GB, free: 70.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.868e-05/1.571, allocations: 16 kB / 0.7058 GB, free: 70.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.628e-05/1.572, allocations: 342.8 kB / 0.7062 GB, free: 70.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006844/1.572, allocations: 349.4 kB / 0.7065 GB, free: 69.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007497/1.573, allocations: 496.8 kB / 0.707 GB, free: 69.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007473/1.574, allocations: 405.9 kB / 0.7074 GB, free: 69.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/1.574, allocations: 0 / 0.7074 GB, free: 69.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002277/1.576, allocations: 1.086 MB / 0.7084 GB, free: 67.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003046/1.576, allocations: 1.579 MB / 0.71 GB, free: 66.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/1.576, allocations: 4 kB / 0.71 GB, free: 66.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/1.578, allocations: 436.5 kB / 0.7104 GB, free: 65.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009375/1.579, allocations: 159.7 kB / 0.7105 GB, free: 65.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/1.58, allocations: 1.017 MB / 0.7115 GB, free: 64.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009312/1.581, allocations: 51.86 kB / 0.7116 GB, free: 64.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/1.581, allocations: 35.98 kB / 0.7116 GB, free: 64.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/1.581, allocations: 7.953 kB / 0.7116 GB, free: 64.51 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001921/1.583, allocations: 0.9129 MB / 0.7125 GB, free: 63.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.525e-06/1.583, allocations: 4 kB / 0.7125 GB, free: 63.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006798/1.584, allocations: 245.2 kB / 0.7127 GB, free: 63.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008198/1.585, allocations: 159.8 kB / 0.7129 GB, free: 63.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007614/1.586, allocations: 0.8098 MB / 0.7137 GB, free: 62.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005944/1.586, allocations: 44.02 kB / 0.7137 GB, free: 62.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.251e-05/1.586, allocations: 35.98 kB / 0.7138 GB, free: 62.27 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 () * 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.000271/1.587, allocations: 148.8 kB / 0.7139 GB, free: 62.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/1.587, allocations: 79.06 kB / 0.714 GB, free: 62.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002332/1.589, allocations: 1.082 MB / 0.715 GB, free: 60.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.852e-06/1.589, allocations: 8 kB / 0.715 GB, free: 60.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.827e-06/1.589, allocations: 0 / 0.715 GB, free: 60.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/1.589, allocations: 3.984 kB / 0.715 GB, free: 60.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003671/1.593, allocations: 1.989 MB / 0.717 GB, free: 58.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.399e-06/1.593, allocations: 0 / 0.717 GB, free: 58.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000742/1.594, allocations: 115.9 kB / 0.7171 GB, free: 58.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/1.595, allocations: 446 kB / 0.7175 GB, free: 58.35 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.763e-05/1.596, allocations: 16 kB / 0.7175 GB, free: 58.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/1.597, allocations: 1.028 MB / 0.7185 GB, free: 57.28 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.448e-06/1.597, allocations: 0 / 0.7185 GB, free: 57.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002862/1.6, allocations: 1.576 MB / 0.7201 GB, free: 55.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006475/1.6, allocations: 252 kB / 0.7203 GB, free: 55.42 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/1.601, allocations: 12 kB / 0.7203 GB, free: 55.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008239/1.601, allocations: 51.95 kB / 0.7204 GB, free: 55.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/1.602, allocations: 52.7 kB / 0.7204 GB, free: 55.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.953e-05/1.602, allocations: 35.91 kB / 0.7205 GB, free: 55.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007507/1.602, allocations: 467.1 kB / 0.7209 GB, free: 54.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.55e-07/1.603, allocations: 0 / 0.7209 GB, free: 54.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002382/1.605, allocations: 0.6401 MB / 0.7215 GB, free: 54.18 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 () * 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.001505/1.606, allocations: 0.6097 MB / 0.7221 GB, free: 53.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003134/1.61, allocations: 1.33 MB / 0.7234 GB, free: 52.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.575e-06/1.61, allocations: 0 / 0.7234 GB, free: 52.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/1.611, allocations: 464.7 kB / 0.7239 GB, free: 51.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002201/1.613, allocations: 358.8 kB / 0.7242 GB, free: 51.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/1.617, allocations: 1.391 MB / 0.7256 GB, free: 50.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000492/1.617, allocations: 1.003 MB / 0.7266 GB, free: 49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004123/1.618, allocations: 87.41 kB / 0.7266 GB, free: 48.92 MB / 362.7 MB Notification: Performance of SimCode: time 1.69e-06/1.618, allocations: 3.938 kB / 0.7266 GB, free: 48.91 MB / 362.7 MB Notification: Performance of Templates: time 0.02814/1.646, allocations: 19.17 MB / 0.7454 GB, free: 29.77 MB / 362.7 MB