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.554/1.554, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003548, allocations: 8 kB / 233.2 MB, free: 0.9375 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06833/0.06871, allocations: 38.78 MB / 272 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8992/0.968, allocations: 311.2 MB / 0.5695 GB, free: 80.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.9682, allocations: 82.67 kB / 0.5696 GB, free: 80.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5984/1.567, allocations: 130.7 MB / 0.6972 GB, free: 81.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.958e-06/1.567, allocations: 0 / 0.6972 GB, free: 81.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.864e-05/1.567, allocations: 22.08 kB / 0.6973 GB, free: 81.11 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.003323/1.57, allocations: 1.182 MB / 0.6984 GB, free: 80.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/1.57, allocations: 16.59 kB / 0.6984 GB, free: 80.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005237/1.571, allocations: 96.03 kB / 0.6985 GB, free: 80.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/1.572, allocations: 0.6561 MB / 0.6992 GB, free: 80.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/1.573, allocations: 107.9 kB / 0.6993 GB, free: 80.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/1.573, allocations: 55.69 kB / 0.6993 GB, free: 80.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/1.575, allocations: 0.8957 MB / 0.7002 GB, free: 80.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.841e-05/1.575, allocations: 2.344 kB / 0.7002 GB, free: 80.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/1.575, allocations: 26.83 kB / 0.7002 GB, free: 80.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.765e-05/1.575, allocations: 52.09 kB / 0.7003 GB, free: 80.03 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001873/1.577, allocations: 0.8301 MB / 0.7011 GB, free: 80.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006898/1.584, allocations: 3.3 MB / 0.7043 GB, free: 78.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/1.585, allocations: 0.6488 MB / 0.7049 GB, free: 78.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003323/1.588, allocations: 2.074 MB / 0.707 GB, free: 77.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/1.588, allocations: 44.59 kB / 0.707 GB, free: 77.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.43e-06/1.588, allocations: 0 / 0.707 GB, free: 77.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.008853/1.597, allocations: 2.827 MB / 0.7098 GB, free: 77.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/1.597, allocations: 88.58 kB / 0.7098 GB, free: 77.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009677/1.598, allocations: 0.5973 MB / 0.7104 GB, free: 76.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/1.598, allocations: 44.03 kB / 0.7105 GB, free: 76.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/1.599, allocations: 363 kB / 0.7108 GB, free: 76.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001927/1.599, allocations: 222.2 kB / 0.711 GB, free: 76.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.728e-05/1.599, allocations: 14.44 kB / 0.711 GB, free: 76.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.812e-05/1.599, allocations: 344.3 kB / 0.7114 GB, free: 76.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007984/1.6, allocations: 357.2 kB / 0.7117 GB, free: 76.19 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009004/1.601, allocations: 0.5077 MB / 0.7122 GB, free: 76.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008793/1.602, allocations: 403.8 kB / 0.7126 GB, free: 76.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.724e-06/1.602, allocations: 3.969 kB / 0.7126 GB, free: 76.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00258/1.604, allocations: 1.102 MB / 0.7137 GB, free: 75.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003188/1.605, allocations: 1.579 MB / 0.7152 GB, free: 74.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/1.605, allocations: 6.125 kB / 0.7152 GB, free: 74.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/1.606, allocations: 448.1 kB / 0.7156 GB, free: 74.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007929/1.607, allocations: 159.9 kB / 0.7158 GB, free: 74.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001425/1.609, allocations: 1.021 MB / 0.7168 GB, free: 73.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00097/1.61, allocations: 53.41 kB / 0.7168 GB, free: 73.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/1.61, allocations: 33.75 kB / 0.7169 GB, free: 73.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/1.61, allocations: 3.625 kB / 0.7169 GB, free: 73.78 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002192/1.612, allocations: 0.9329 MB / 0.7178 GB, free: 73.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.805e-06/1.612, allocations: 3.906 kB / 0.7178 GB, free: 73.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007808/1.613, allocations: 237.5 kB / 0.718 GB, free: 73.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008694/1.614, allocations: 165.2 kB / 0.7182 GB, free: 73.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008433/1.615, allocations: 0.8049 MB / 0.719 GB, free: 73.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006377/1.615, allocations: 43.75 kB / 0.719 GB, free: 73.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.602e-05/1.615, allocations: 37.2 kB / 0.719 GB, free: 73.23 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.0005928/1.616, allocations: 328.5 kB / 0.7194 GB, free: 73.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002327/1.616, allocations: 79.61 kB / 0.7194 GB, free: 72.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002605/1.619, allocations: 1.098 MB / 0.7205 GB, free: 72.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.284e-06/1.619, allocations: 7.844 kB / 0.7205 GB, free: 72.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.89e-06/1.619, allocations: 3.281 kB / 0.7205 GB, free: 72.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/1.619, allocations: 3.75 kB / 0.7205 GB, free: 72.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003968/1.623, allocations: 1.993 MB / 0.7225 GB, free: 72.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.743e-06/1.623, allocations: 0 / 0.7225 GB, free: 72.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000803/1.624, allocations: 120.2 kB / 0.7226 GB, free: 72.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001683/1.625, allocations: 454.4 kB / 0.723 GB, free: 72.56 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.305e-05/1.626, allocations: 18.48 kB / 0.723 GB, free: 72.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001396/1.627, allocations: 1.031 MB / 0.724 GB, free: 72.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.673e-06/1.627, allocations: 0 / 0.724 GB, free: 72.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003177/1.63, allocations: 1.592 MB / 0.7256 GB, free: 71.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005615/1.631, allocations: 251.9 kB / 0.7258 GB, free: 71.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/1.631, allocations: 15.09 kB / 0.7258 GB, free: 71.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000761/1.632, allocations: 43.33 kB / 0.7259 GB, free: 71.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/1.632, allocations: 62.58 kB / 0.7259 GB, free: 71.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.169e-05/1.632, allocations: 29.73 kB / 0.726 GB, free: 71.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007105/1.633, allocations: 475.4 kB / 0.7264 GB, free: 71.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.02e-07/1.633, allocations: 0 / 0.7264 GB, free: 71.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002061/1.635, allocations: 0.6293 MB / 0.727 GB, free: 71.19 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.001352/1.636, allocations: 0.6055 MB / 0.7276 GB, free: 70.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003286/1.639, allocations: 1.358 MB / 0.729 GB, free: 70.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.082e-06/1.639, allocations: 0 / 0.729 GB, free: 70.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001243/1.641, allocations: 464 kB / 0.7294 GB, free: 70.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002056/1.643, allocations: 347.9 kB / 0.7297 GB, free: 70.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/1.647, allocations: 2.077 MB / 0.7318 GB, free: 69.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/1.647, allocations: 1.004 MB / 0.7327 GB, free: 68.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/1.647, allocations: 87.72 kB / 0.7328 GB, free: 68.65 MB / 362.7 MB Notification: Performance of SimCode: time 1.532e-06/1.647, allocations: 0 / 0.7328 GB, free: 68.65 MB / 362.7 MB Notification: Performance of Templates: time 0.03671/1.684, allocations: 19.23 MB / 0.7516 GB, free: 66.72 MB / 362.7 MB