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.TestDistributions.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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadModel(ModelicaTest): time 2.255/2.255, allocations: 235.1 MB / 243 MB, free: 9.508 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.802e-05/3.82e-05, allocations: 7.938 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3111, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1425/0.4537, allocations: 81.4 MB / 439.4 MB, free: 13.44 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003574/0.4541, allocations: 63.97 kB / 439.5 MB, free: 13.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.88/2.334, allocations: 81.53 MB / 0.5088 GB, free: 56.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.379e-06/2.334, allocations: 1.031 kB / 0.5088 GB, free: 56.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.488e-06/2.334, allocations: 4 kB / 0.5088 GB, free: 56.04 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.003592/2.338, allocations: 432.6 kB / 0.5092 GB, free: 55.6 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/2.338, allocations: 12.03 kB / 0.5092 GB, free: 55.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.631e-05/2.338, allocations: 0 / 0.5092 GB, free: 55.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.346e-05/2.338, allocations: 162.1 kB / 0.5094 GB, free: 55.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/2.338, allocations: 0 / 0.5094 GB, free: 55.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/2.338, allocations: 0 / 0.5094 GB, free: 55.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.114e-05/2.338, allocations: 4 kB / 0.5094 GB, free: 55.39 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.576e-05/2.338, allocations: 33.64 kB / 0.5094 GB, free: 55.35 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.048e-06/2.338, allocations: 4 kB / 0.5094 GB, free: 55.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-06/2.338, allocations: 7.875 kB / 0.5094 GB, free: 55.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.729e-06/2.338, allocations: 0 / 0.5094 GB, free: 55.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.284e-05/2.338, allocations: 126.2 kB / 0.5096 GB, free: 55.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.235e-05/2.338, allocations: 18.58 kB / 0.5096 GB, free: 55.15 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.189e-05/2.338, allocations: 4.859 kB / 0.5096 GB, free: 55.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.008e-06/2.338, allocations: 0 / 0.5096 GB, free: 55.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/2.338, allocations: 68.34 kB / 0.5097 GB, free: 55.06 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.962e-06/2.338, allocations: 0 / 0.5097 GB, free: 55.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001817/2.339, allocations: 33.69 kB / 0.5097 GB, free: 55.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.47e-05/2.339, allocations: 77.11 kB / 0.5098 GB, free: 54.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.063e-05/2.339, allocations: 96.84 kB / 0.5098 GB, free: 54.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.422e-06/2.339, allocations: 25.7 kB / 0.5099 GB, free: 54.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.133e-05/2.339, allocations: 150.6 kB / 0.51 GB, free: 54.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/2.339, allocations: 0 / 0.51 GB, free: 54.64 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.783e-06/2.339, allocations: 1.094 kB / 0.51 GB, free: 54.64 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.939e-05/2.339, allocations: 326.2 kB / 0.5103 GB, free: 54.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.402e-06/2.339, allocations: 0 / 0.5103 GB, free: 54.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.274e-06/2.339, allocations: 4 kB / 0.5103 GB, free: 54.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.587e-05/2.339, allocations: 3.984 kB / 0.5103 GB, free: 54.31 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.126e-06/2.339, allocations: 0 / 0.5103 GB, free: 54.31 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.066e-05/2.339, allocations: 33.7 kB / 0.5104 GB, free: 54.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/2.339, allocations: 29.7 kB / 0.5104 GB, free: 54.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.337e-06/2.339, allocations: 1.078 kB / 0.5104 GB, free: 54.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/2.339, allocations: 4.094 kB / 0.5104 GB, free: 54.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.561e-06/2.339, allocations: 3.719 kB / 0.5104 GB, free: 54.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.888e-06/2.339, allocations: 4 kB / 0.5104 GB, free: 54.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.643e-05/2.339, allocations: 3.984 kB / 0.5104 GB, free: 54.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.078e-06/2.339, allocations: 0 / 0.5104 GB, free: 54.23 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.325e-05/2.339, allocations: 130.6 kB / 0.5105 GB, free: 54.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.262e-05/2.339, allocations: 4 kB / 0.5105 GB, free: 54.08 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.348e-05/2.339, allocations: 7.703 kB / 0.5106 GB, free: 54.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/2.339, allocations: 3.938 kB / 0.5106 GB, free: 54.07 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.711e-06/2.339, allocations: 4 kB / 0.5106 GB, free: 54.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.676e-06/2.339, allocations: 0 / 0.5106 GB, free: 54.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.003e-05/2.339, allocations: 134.2 kB / 0.5107 GB, free: 53.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.707e-06/2.339, allocations: 0 / 0.5107 GB, free: 53.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.28e-06/2.339, allocations: 4 kB / 0.5107 GB, free: 53.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/2.339, allocations: 1.312 kB / 0.5107 GB, free: 53.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.936e-06/2.339, allocations: 3.875 kB / 0.5107 GB, free: 53.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/2.339, allocations: 0 / 0.5107 GB, free: 53.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.201e-06/2.339, allocations: 0 / 0.5107 GB, free: 53.9 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.663e-05/2.34, allocations: 69.08 kB / 0.5108 GB, free: 53.81 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.631e-05/2.34, allocations: 85.05 kB / 0.5108 GB, free: 53.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/2.34, allocations: 0 / 0.5108 GB, free: 53.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.2e-05/2.34, allocations: 0 / 0.5108 GB, free: 53.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.589e-05/2.34, allocations: 0 / 0.5108 GB, free: 53.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.196e-06/2.34, allocations: 4 kB / 0.5108 GB, free: 53.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.421e-05/2.34, allocations: 75.28 kB / 0.5109 GB, free: 53.63 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.55e-07/2.34, allocations: 0 / 0.5109 GB, free: 53.63 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00881/2.349, allocations: 2.156 MB / 0.513 GB, free: 51.49 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.01429/2.363, allocations: 2.269 MB / 0.5152 GB, free: 49.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.813e-05/2.363, allocations: 59.41 kB / 0.5153 GB, free: 49.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.05e-06/2.363, allocations: 3.562 kB / 0.5153 GB, free: 49.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.317e-05/2.363, allocations: 59.41 kB / 0.5154 GB, free: 49.11 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001027/2.363, allocations: 3.953 kB / 0.5154 GB, free: 49.11 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001361/2.363, allocations: 68.03 kB / 0.5154 GB, free: 49.02 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/2.363, allocations: 0.6806 MB / 0.5161 GB, free: 48.31 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.685e-06/2.363, allocations: 7.438 kB / 0.5161 GB, free: 48.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.352e-06/2.363, allocations: 0 / 0.5161 GB, free: 48.3 MB / 394.7 MB Notification: Performance of Templates: time 0.2875/2.651, allocations: 120.9 MB / 0.6342 GB, free: 7.156 MB / 474.7 MB