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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.624/1.624, allocations: 171.3 MB / 179.2 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.64e-05/1.644e-05, allocations: 4 kB / 222.5 MB, free: 4.754 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2067, allocations: 38.76 MB / 261.3 MB, free: 13.02 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.714/0.9208, allocations: 310.4 MB / 0.5583 GB, free: 55.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.921, allocations: 83 kB / 0.5584 GB, free: 55.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6184/1.539, allocations: 129.4 MB / 0.6847 GB, free: 68.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.19e-06/1.539, allocations: 4 kB / 0.6847 GB, free: 68.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.087e-05/1.54, allocations: 16 kB / 0.6848 GB, free: 68.18 MB / 346.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.002465/1.542, allocations: 1.08 MB / 0.6858 GB, free: 67.06 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/1.542, allocations: 12.03 kB / 0.6858 GB, free: 67.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004199/1.543, allocations: 95 kB / 0.6859 GB, free: 66.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/1.544, allocations: 0.656 MB / 0.6866 GB, free: 66.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.346e-05/1.544, allocations: 80.72 kB / 0.6866 GB, free: 66.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/1.544, allocations: 39.98 kB / 0.6867 GB, free: 66.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001481/1.546, allocations: 0.7483 MB / 0.6874 GB, free: 65.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/1.547, allocations: 0.8087 MB / 0.6882 GB, free: 64.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/1.547, allocations: 0 / 0.6882 GB, free: 64.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/1.547, allocations: 0 / 0.6882 GB, free: 64.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.581e-05/1.547, allocations: 53.22 kB / 0.6882 GB, free: 64.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006127/1.554, allocations: 3.157 MB / 0.6913 GB, free: 61.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/1.555, allocations: 0.6248 MB / 0.6919 GB, free: 60.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005647/1.555, allocations: 350.4 kB / 0.6923 GB, free: 60.26 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003161/1.558, allocations: 2.023 MB / 0.6942 GB, free: 58.06 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/1.559, allocations: 43.12 kB / 0.6943 GB, free: 58.01 MB / 346.7 MB Notification: Performance of pre-optimization done (n=56): time 3.239e-06/1.559, allocations: 3.938 kB / 0.6943 GB, free: 58 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.008851/1.567, allocations: 2.475 MB / 0.6967 GB, free: 55.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/1.567, allocations: 85.67 kB / 0.6968 GB, free: 55.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006669/1.568, allocations: 454.1 kB / 0.6972 GB, free: 54.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.557e-05/1.568, allocations: 25.7 kB / 0.6972 GB, free: 54.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00018/1.568, allocations: 374.5 kB / 0.6976 GB, free: 54.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/1.569, allocations: 220.8 kB / 0.6978 GB, free: 54.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.979e-05/1.569, allocations: 4 kB / 0.6978 GB, free: 54.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.758e-05/1.569, allocations: 342.8 kB / 0.6981 GB, free: 53.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006113/1.569, allocations: 337.4 kB / 0.6985 GB, free: 53.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006807/1.57, allocations: 487.2 kB / 0.6989 GB, free: 53.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005467/1.576, allocations: 1.003 MB / 0.6999 GB, free: 52.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/1.576, allocations: 0 / 0.6999 GB, free: 52.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.007455/1.583, allocations: 1.64 MB / 0.7015 GB, free: 50.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003142/1.583, allocations: 1.579 MB / 0.7031 GB, free: 48.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/1.583, allocations: 4 kB / 0.7031 GB, free: 48.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/1.585, allocations: 365.3 kB / 0.7034 GB, free: 48.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008976/1.585, allocations: 163.8 kB / 0.7036 GB, free: 48.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002661/1.588, allocations: 1.224 MB / 0.7048 GB, free: 46.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009983/1.589, allocations: 39.86 kB / 0.7048 GB, free: 46.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/1.589, allocations: 35.98 kB / 0.7048 GB, free: 46.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/1.589, allocations: 4 kB / 0.7048 GB, free: 46.89 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005553/1.595, allocations: 1.307 MB / 0.7061 GB, free: 45.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/1.595, allocations: 8 kB / 0.7061 GB, free: 45.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000693/1.596, allocations: 240.7 kB / 0.7063 GB, free: 45.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008005/1.596, allocations: 167.7 kB / 0.7065 GB, free: 45.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008256/1.597, allocations: 0.8255 MB / 0.7073 GB, free: 44.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005766/1.598, allocations: 27.92 kB / 0.7073 GB, free: 44.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.286e-05/1.598, allocations: 32 kB / 0.7074 GB, free: 44.26 MB / 346.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.0002677/1.598, allocations: 128.7 kB / 0.7075 GB, free: 44.13 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000215/1.599, allocations: 67.25 kB / 0.7076 GB, free: 44.06 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003677/1.602, allocations: 1.191 MB / 0.7087 GB, free: 42.86 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/1.602, allocations: 8 kB / 0.7087 GB, free: 42.85 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.904e-06/1.602, allocations: 4 kB / 0.7087 GB, free: 42.85 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/1.602, allocations: 3.984 kB / 0.7087 GB, free: 42.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00495/1.607, allocations: 2.028 MB / 0.7107 GB, free: 40.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-06/1.607, allocations: 0 / 0.7107 GB, free: 40.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007063/1.608, allocations: 123.8 kB / 0.7108 GB, free: 40.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/1.609, allocations: 367.2 kB / 0.7112 GB, free: 40.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-05/1.609, allocations: 11.98 kB / 0.7112 GB, free: 40.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/1.611, allocations: 1.212 MB / 0.7124 GB, free: 39.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.273e-06/1.611, allocations: 0 / 0.7124 GB, free: 39.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004001/1.615, allocations: 1.689 MB / 0.714 GB, free: 37.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00046/1.616, allocations: 236.1 kB / 0.7143 GB, free: 37.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/1.616, allocations: 4 kB / 0.7143 GB, free: 37.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007566/1.617, allocations: 31.97 kB / 0.7143 GB, free: 37.06 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/1.617, allocations: 60.69 kB / 0.7143 GB, free: 37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.372e-05/1.617, allocations: 23.98 kB / 0.7144 GB, free: 36.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004791/1.618, allocations: 346.9 kB / 0.7147 GB, free: 36.64 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.88e-07/1.618, allocations: 0 / 0.7147 GB, free: 36.64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002086/1.62, allocations: 0.5932 MB / 0.7153 GB, free: 36.05 MB / 346.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.00138/1.621, allocations: 0.5781 MB / 0.7158 GB, free: 35.49 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002761/1.624, allocations: 1.273 MB / 0.7171 GB, free: 34.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.752e-06/1.624, allocations: 6.062 kB / 0.7171 GB, free: 34.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/1.625, allocations: 446.6 kB / 0.7175 GB, free: 33.78 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/1.627, allocations: 317.6 kB / 0.7178 GB, free: 33.47 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003195/1.63, allocations: 1.333 MB / 0.7191 GB, free: 32.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000486/1.631, allocations: 1.003 MB / 0.7201 GB, free: 31.06 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003646/1.631, allocations: 87.33 kB / 0.7202 GB, free: 30.98 MB / 346.7 MB Notification: Performance of SimCode: time 1.831e-06/1.631, allocations: 0 / 0.7202 GB, free: 30.98 MB / 346.7 MB Notification: Performance of Templates: time 0.02746/1.658, allocations: 18.61 MB / 0.7384 GB, free: 12.37 MB / 346.7 MB