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.Random.TestSpecial.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadModel(ModelicaTest): time 2.401/2.401, allocations: 235.1 MB / 243 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.841e-05/1.852e-05, allocations: 0 / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2772, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1241/0.4013, allocations: 80.94 MB / 439 MB, free: 13.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.4015, allocations: 63.97 kB / 439 MB, free: 13.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.335/1.736, allocations: 48.43 MB / 487.5 MB, free: 92.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.918e-06/1.736, allocations: 0 / 487.5 MB, free: 92.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.62e-06/1.736, allocations: 0 / 487.5 MB, free: 92.24 MB / 394.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.00189/1.738, allocations: 435.6 kB / 487.9 MB, free: 91.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/1.738, allocations: 12.03 kB / 487.9 MB, free: 91.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.808e-05/1.738, allocations: 3.953 kB / 487.9 MB, free: 91.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.604e-05/1.738, allocations: 163.1 kB / 488.1 MB, free: 91.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/1.738, allocations: 3.438 kB / 488.1 MB, free: 91.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/1.738, allocations: 0 / 488.1 MB, free: 91.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.251e-05/1.738, allocations: 4 kB / 488.1 MB, free: 91.58 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.933e-05/1.739, allocations: 29.7 kB / 488.1 MB, free: 91.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.509e-06/1.739, allocations: 0 / 488.1 MB, free: 91.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.9e-06/1.739, allocations: 1.031 kB / 488.1 MB, free: 91.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.652e-06/1.739, allocations: 3.953 kB / 488.1 MB, free: 91.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.076e-05/1.739, allocations: 130.2 kB / 488.2 MB, free: 91.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.1e-05/1.739, allocations: 26.2 kB / 488.3 MB, free: 91.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.232e-05/1.739, allocations: 4.859 kB / 488.3 MB, free: 91.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.503e-06/1.739, allocations: 0.9844 kB / 488.3 MB, free: 91.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/1.739, allocations: 63.09 kB / 488.3 MB, free: 91.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.933e-06/1.739, allocations: 0 / 488.3 MB, free: 91.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001501/1.739, allocations: 33.7 kB / 488.4 MB, free: 91.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.427e-05/1.739, allocations: 81.09 kB / 488.4 MB, free: 91.13 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.791e-05/1.739, allocations: 89.03 kB / 488.5 MB, free: 91.04 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.538e-06/1.739, allocations: 33.64 kB / 488.6 MB, free: 91 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.157e-05/1.739, allocations: 150.6 kB / 488.7 MB, free: 90.85 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/1.739, allocations: 0 / 488.7 MB, free: 90.85 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-06/1.739, allocations: 7.766 kB / 488.7 MB, free: 90.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.78e-05/1.739, allocations: 314.8 kB / 489 MB, free: 90.53 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.359e-06/1.739, allocations: 0 / 489 MB, free: 90.53 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.283e-06/1.739, allocations: 0 / 489 MB, free: 90.53 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.826e-05/1.739, allocations: 8.062 kB / 489 MB, free: 90.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.061e-06/1.739, allocations: 0 / 489 MB, free: 90.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.761e-05/1.739, allocations: 41.69 kB / 489.1 MB, free: 90.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/1.739, allocations: 29.7 kB / 489.1 MB, free: 90.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.715e-06/1.739, allocations: 0 / 489.1 MB, free: 90.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/1.739, allocations: 0 / 489.1 MB, free: 90.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.843e-06/1.739, allocations: 0 / 489.1 MB, free: 90.44 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.396e-06/1.739, allocations: 0 / 489.1 MB, free: 90.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.633e-05/1.739, allocations: 0 / 489.1 MB, free: 90.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/1.74, allocations: 4.984 kB / 489.1 MB, free: 90.43 MB / 394.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 5.492e-05/1.74, allocations: 136.2 kB / 489.2 MB, free: 90.29 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.007e-05/1.74, allocations: 0 / 489.2 MB, free: 90.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.09e-05/1.74, allocations: 11.7 kB / 489.3 MB, free: 90.28 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.727e-06/1.74, allocations: 3.984 kB / 489.3 MB, free: 90.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/1.74, allocations: 0 / 489.3 MB, free: 90.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/1.74, allocations: 0 / 489.3 MB, free: 90.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.769e-05/1.74, allocations: 122.2 kB / 489.4 MB, free: 90.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.358e-06/1.74, allocations: 7.891 kB / 489.4 MB, free: 90.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.212e-06/1.74, allocations: 0 / 489.4 MB, free: 90.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.128e-06/1.74, allocations: 4 kB / 489.4 MB, free: 90.11 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.681e-06/1.74, allocations: 4 kB / 489.4 MB, free: 90.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/1.74, allocations: 0 / 489.4 MB, free: 90.11 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.278e-06/1.74, allocations: 0 / 489.4 MB, free: 90.11 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.917e-05/1.74, allocations: 68.03 kB / 489.5 MB, free: 90.03 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.775e-05/1.74, allocations: 85.06 kB / 489.5 MB, free: 89.93 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/1.74, allocations: 0 / 489.5 MB, free: 89.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.237e-05/1.74, allocations: 0 / 489.5 MB, free: 89.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.499e-05/1.74, allocations: 4.031 kB / 489.5 MB, free: 89.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.723e-06/1.74, allocations: 0 / 489.5 MB, free: 89.92 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.497e-05/1.74, allocations: 79.27 kB / 489.6 MB, free: 89.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.487e-06/1.74, allocations: 4 kB / 489.6 MB, free: 89.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004784/1.745, allocations: 1.306 MB / 490.9 MB, free: 88.55 MB / 394.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.008068/1.753, allocations: 1.214 MB / 492.1 MB, free: 87.38 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001021/1.753, allocations: 55.41 kB / 492.2 MB, free: 87.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.953e-06/1.753, allocations: 0 / 492.2 MB, free: 87.31 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.295e-05/1.753, allocations: 55.41 kB / 492.3 MB, free: 87.25 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001027/1.753, allocations: 128 / 492.3 MB, free: 87.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001396/1.753, allocations: 78.86 kB / 492.3 MB, free: 87.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001/1.753, allocations: 0.6729 MB / 493 MB, free: 86.44 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.116e-05/1.754, allocations: 7.438 kB / 493 MB, free: 86.43 MB / 394.7 MB Notification: Performance of SimCode: time 1.486e-06/1.754, allocations: 0 / 493 MB, free: 86.43 MB / 394.7 MB Notification: Performance of Templates: time 0.1036/1.857, allocations: 68.61 MB / 0.5485 GB, free: 17.72 MB / 394.7 MB