Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices") Notification: Performance of loadModel(ModelicaTest): time 2.161/2.161, allocations: 235 MB / 248.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.604e-05/2.626e-05, allocations: 4 kB / 309.7 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3225, allocations: 54.85 MB / 364.5 MB, free: 5.555 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1237/0.4462, allocations: 81.36 MB / 445.9 MB, free: 15.15 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.4465, allocations: 67.95 kB / 446 MB, free: 15.08 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01195/0.4584, allocations: 2.732 MB / 448.7 MB, free: 12.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.157e-06/0.4585, allocations: 0 / 448.7 MB, free: 12.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.024e-06/0.4585, allocations: 0 / 448.7 MB, free: 12.36 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004271/0.4589, allocations: 389 kB / 449.1 MB, free: 11.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.459, allocations: 8.031 kB / 449.1 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.768e-05/0.459, allocations: 3.984 kB / 449.1 MB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.4592, allocations: 163.1 kB / 449.2 MB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.4592, allocations: 2.5 kB / 449.2 MB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.4592, allocations: 4 kB / 449.2 MB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.257e-05/0.4593, allocations: 33.64 kB / 449.3 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.206e-06/0.4593, allocations: 3.938 kB / 449.3 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.433e-06/0.4593, allocations: 0 / 449.3 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.07e-06/0.4594, allocations: 0 / 449.3 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.24e-05/0.4594, allocations: 8.594 kB / 449.3 MB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.4596, allocations: 153.7 kB / 449.4 MB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.476e-05/0.4596, allocations: 18.61 kB / 449.5 MB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.731e-05/0.4597, allocations: 4.859 kB / 449.5 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5e-06/0.4597, allocations: 0 / 449.5 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/0.4597, allocations: 56.27 kB / 449.5 MB, free: 11.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.819e-06/0.4598, allocations: 0 / 449.5 MB, free: 11.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001579/0.4599, allocations: 72.38 kB / 449.6 MB, free: 11.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.46, allocations: 85.14 kB / 449.7 MB, free: 11.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.061e-05/0.4601, allocations: 85 kB / 449.8 MB, free: 11.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.4601, allocations: 25.7 kB / 449.8 MB, free: 11.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.556e-05/0.4602, allocations: 154.6 kB / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.528e-05/0.4602, allocations: 0 / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-06/0.4602, allocations: 0 / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.4604, allocations: 310.8 kB / 450.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.045e-05/0.4604, allocations: 0 / 450.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.02e-05/0.4605, allocations: 4 kB / 450.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.61e-05/0.4605, allocations: 29.77 kB / 450.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.468e-06/0.4605, allocations: 1.406 kB / 450.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000109/0.4606, allocations: 67.39 kB / 450.3 MB, free: 10.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.429e-05/0.4607, allocations: 31.11 kB / 450.4 MB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.945e-06/0.4607, allocations: 3.938 kB / 450.4 MB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.4607, allocations: 0 / 450.4 MB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.335e-06/0.4607, allocations: 3.953 kB / 450.4 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.202e-06/0.4608, allocations: 4 kB / 450.4 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.802e-05/0.4608, allocations: 0 / 450.4 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.4608, allocations: 4.031 kB / 450.4 MB, free: 10.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.4609, allocations: 130.7 kB / 450.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.039e-05/0.4609, allocations: 4 kB / 450.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.809e-05/0.461, allocations: 7.109 kB / 450.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.52e-06/0.461, allocations: 0 / 450.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.461, allocations: 3.953 kB / 450.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.027e-06/0.461, allocations: 0 / 450.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.4612, allocations: 149.6 kB / 450.7 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4612, allocations: 4 kB / 450.7 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.21e-06/0.4612, allocations: 6 kB / 450.7 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4612, allocations: 0 / 450.7 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.883e-06/0.4612, allocations: 0 / 450.7 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.731e-06/0.4612, allocations: 3.984 kB / 450.7 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.701e-06/0.4612, allocations: 0 / 450.7 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001333/0.4614, allocations: 94.73 kB / 450.8 MB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.154e-05/0.4614, allocations: 77.11 kB / 450.8 MB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.4615, allocations: 3.984 kB / 450.8 MB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.582e-05/0.4615, allocations: 8.031 kB / 450.9 MB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.28e-05/0.4615, allocations: 0 / 450.9 MB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.4615, allocations: 0 / 450.9 MB, free: 9.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.041e-05/0.4616, allocations: 77.38 kB / 450.9 MB, free: 9.766 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.34e-07/0.4616, allocations: 0 / 450.9 MB, free: 9.766 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004651/0.4621, allocations: 83.88 kB / 451 MB, free: 9.684 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005908/0.4627, allocations: 218.6 kB / 451.2 MB, free: 9.469 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.912e-05/0.4628, allocations: 55.41 kB / 451.3 MB, free: 9.402 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.012e-06/0.4628, allocations: 0 / 451.3 MB, free: 9.402 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.236e-05/0.4629, allocations: 67.41 kB / 451.3 MB, free: 9.324 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.412e-05/0.463, allocations: 0.7656 kB / 451.3 MB, free: 9.324 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001695/0.4632, allocations: 74.75 kB / 451.4 MB, free: 9.223 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.4635, allocations: 0.6692 MB / 452.1 MB, free: 8.527 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.238e-05/0.4635, allocations: 7.438 kB / 452.1 MB, free: 8.52 MB / 378.7 MB Notification: Performance of SimCode: time 1.362e-06/0.4635, allocations: 0 / 452.1 MB, free: 8.52 MB / 378.7 MB Notification: Performance of Templates: time 0.003785/0.4673, allocations: 1.435 MB / 453.5 MB, free: 7.09 MB / 378.7 MB