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.186/2.186, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004442/0.0004443, allocations: 20 kB / 314.4 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2767, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1525/0.4292, allocations: 81.44 MB / 450.7 MB, free: 9.168 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.4295, allocations: 63.97 kB / 450.8 MB, free: 9.105 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01158/0.4411, allocations: 2.758 MB / 453.5 MB, free: 6.336 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.643e-06/0.4411, allocations: 0 / 453.5 MB, free: 6.336 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.954e-06/0.4412, allocations: 0 / 453.5 MB, free: 6.336 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.0003996/0.4416, allocations: 384.9 kB / 453.9 MB, free: 5.906 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.4416, allocations: 12.02 kB / 453.9 MB, free: 5.895 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.533e-05/0.4417, allocations: 3.938 kB / 453.9 MB, free: 5.891 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.4418, allocations: 171.1 kB / 454.1 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.4418, allocations: 0 / 454.1 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.812e-06/0.4418, allocations: 0 / 454.1 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.693e-05/0.4419, allocations: 33.66 kB / 454.1 MB, free: 5.645 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.546e-06/0.4419, allocations: 3.938 kB / 454.1 MB, free: 5.641 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.2e-06/0.442, allocations: 0 / 454.1 MB, free: 5.641 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.442, allocations: 0 / 454.1 MB, free: 5.641 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.715e-05/0.442, allocations: 0 / 454.1 MB, free: 5.641 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001672/0.4422, allocations: 145.7 kB / 454.3 MB, free: 5.449 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.244e-05/0.4422, allocations: 26.55 kB / 454.3 MB, free: 5.414 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.4423, allocations: 0 / 454.3 MB, free: 5.414 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.626e-05/0.4423, allocations: 64.25 kB / 454.4 MB, free: 5.336 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 3.573e-06/0.4423, allocations: 3.984 kB / 454.4 MB, free: 5.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001748/0.4425, allocations: 67.41 kB / 454.4 MB, free: 5.254 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/0.4426, allocations: 77.11 kB / 454.5 MB, free: 5.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.903e-05/0.4427, allocations: 97.06 kB / 454.6 MB, free: 5.059 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.4427, allocations: 25.7 kB / 454.6 MB, free: 5.027 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.883e-05/0.4428, allocations: 154.5 kB / 454.8 MB, free: 4.875 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.4428, allocations: 0 / 454.8 MB, free: 4.875 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.826e-06/0.4428, allocations: 4 kB / 454.8 MB, free: 4.871 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.443, allocations: 310.8 kB / 455.1 MB, free: 4.559 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.079e-05/0.443, allocations: 0 / 455.1 MB, free: 4.559 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.956e-06/0.443, allocations: 4 kB / 455.1 MB, free: 4.555 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.351e-05/0.443, allocations: 25.77 kB / 455.1 MB, free: 4.523 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.008e-06/0.4431, allocations: 4 kB / 455.1 MB, free: 4.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.633e-05/0.4432, allocations: 63.39 kB / 455.2 MB, free: 4.445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.4432, allocations: 29.7 kB / 455.2 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.294e-06/0.4432, allocations: 0 / 455.2 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.4433, allocations: 0 / 455.2 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.907e-06/0.4433, allocations: 4 kB / 455.2 MB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.631e-06/0.4433, allocations: 3.953 kB / 455.2 MB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.679e-05/0.4433, allocations: 0 / 455.2 MB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.894e-06/0.4433, allocations: 0 / 455.2 MB, free: 4.402 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 () * Number of clocked 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.0001212/0.4434, allocations: 147.6 kB / 455.4 MB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.4435, allocations: 3.938 kB / 455.4 MB, free: 4.238 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.185e-05/0.4435, allocations: 3.125 kB / 455.4 MB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.4435, allocations: 0 / 455.4 MB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.638e-06/0.4435, allocations: 0 / 455.4 MB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.386e-06/0.4435, allocations: 3.953 kB / 455.4 MB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.4437, allocations: 149.7 kB / 455.5 MB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-06/0.4437, allocations: 0 / 455.5 MB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-06/0.4437, allocations: 0 / 455.5 MB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.398e-06/0.4437, allocations: 0 / 455.5 MB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.764e-06/0.4437, allocations: 4 kB / 455.5 MB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.92e-06/0.4437, allocations: 0 / 455.5 MB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.447e-06/0.4437, allocations: 0 / 455.5 MB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.4439, allocations: 98.72 kB / 455.6 MB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.72e-05/0.4439, allocations: 81.11 kB / 455.7 MB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/0.4439, allocations: 4 kB / 455.7 MB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.239e-05/0.444, allocations: 0 / 455.7 MB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.981e-05/0.444, allocations: 4.031 kB / 455.7 MB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.673e-06/0.444, allocations: 3.938 kB / 455.7 MB, free: 3.801 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.765e-05/0.4441, allocations: 75.28 kB / 455.8 MB, free: 3.727 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.78e-07/0.4441, allocations: 3.938 kB / 455.8 MB, free: 3.723 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004208/0.4445, allocations: 79.92 kB / 455.9 MB, free: 3.645 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) * Number of clocked states: 0 () * 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.0005503/0.4451, allocations: 213.8 kB / 456.1 MB, free: 3.434 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.473e-05/0.4452, allocations: 55.41 kB / 456.1 MB, free: 3.367 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.511e-06/0.4452, allocations: 0 / 456.1 MB, free: 3.367 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.236e-05/0.4452, allocations: 67.38 kB / 456.2 MB, free: 3.289 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.398e-05/0.4454, allocations: 11.45 kB / 456.2 MB, free: 3.281 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001822/0.4456, allocations: 100.5 kB / 456.3 MB, free: 3.148 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.4459, allocations: 0.6731 MB / 457 MB, free: 2.449 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.402e-05/0.4459, allocations: 11.44 kB / 457 MB, free: 2.438 MB / 378.7 MB Notification: Performance of SimCode: time 1.276e-06/0.4459, allocations: 0 / 457 MB, free: 2.438 MB / 378.7 MB Notification: Performance of Templates: time 0.003652/0.4496, allocations: 1.445 MB / 458.4 MB, free: 0.9922 MB / 378.7 MB