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.TestTruncatedDistributions.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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadModel(ModelicaTest): time 2.231/2.231, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.31e-05/1.318e-05, allocations: 0 / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.273, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.127/0.4001, allocations: 82.75 MB / 440.8 MB, free: 12.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001932/0.4003, allocations: 63.97 kB / 440.9 MB, free: 12.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.371/1.771, allocations: 71.54 MB / 0.5004 GB, free: 65.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.277e-06/1.771, allocations: 4 kB / 0.5004 GB, free: 65.44 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.973e-06/1.771, allocations: 0 / 0.5004 GB, free: 65.44 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.002915/1.774, allocations: 464 kB / 0.5008 GB, free: 64.97 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/1.774, allocations: 8.031 kB / 0.5008 GB, free: 64.96 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/1.774, allocations: 0 / 0.5008 GB, free: 64.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.339e-05/1.774, allocations: 159.1 kB / 0.501 GB, free: 64.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/1.774, allocations: 1.031 kB / 0.501 GB, free: 64.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/1.774, allocations: 7.938 kB / 0.501 GB, free: 64.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.257e-05/1.774, allocations: 3.719 kB / 0.501 GB, free: 64.76 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.372e-05/1.774, allocations: 33.66 kB / 0.501 GB, free: 64.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/1.774, allocations: 0 / 0.501 GB, free: 64.72 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.119e-06/1.774, allocations: 4 kB / 0.501 GB, free: 64.72 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.269e-06/1.774, allocations: 0 / 0.501 GB, free: 64.72 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.209e-05/1.774, allocations: 126.2 kB / 0.5012 GB, free: 64.56 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.753e-05/1.774, allocations: 18.58 kB / 0.5012 GB, free: 64.53 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.265e-05/1.774, allocations: 4.953 kB / 0.5012 GB, free: 64.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.754e-06/1.774, allocations: 8 kB / 0.5012 GB, free: 64.52 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/1.774, allocations: 64.14 kB / 0.5012 GB, free: 64.44 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 2.122e-06/1.774, allocations: 0 / 0.5012 GB, free: 64.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001637/1.775, allocations: 37.67 kB / 0.5013 GB, free: 64.39 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.137e-05/1.775, allocations: 81.11 kB / 0.5014 GB, free: 64.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.839e-05/1.775, allocations: 85 kB / 0.5014 GB, free: 64.21 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.779e-06/1.775, allocations: 25.7 kB / 0.5015 GB, free: 64.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.125e-05/1.775, allocations: 150.6 kB / 0.5016 GB, free: 64.03 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.314e-05/1.775, allocations: 4.031 kB / 0.5016 GB, free: 64.02 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.429e-06/1.775, allocations: 0 / 0.5016 GB, free: 64.02 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.766e-05/1.775, allocations: 318.8 kB / 0.5019 GB, free: 63.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.943e-06/1.775, allocations: 4 kB / 0.5019 GB, free: 63.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.958e-06/1.775, allocations: 0 / 0.5019 GB, free: 63.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.413e-05/1.775, allocations: 0 / 0.5019 GB, free: 63.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.173e-06/1.775, allocations: 0 / 0.5019 GB, free: 63.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.302e-05/1.775, allocations: 41.62 kB / 0.502 GB, free: 63.65 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/1.775, allocations: 29.8 kB / 0.502 GB, free: 63.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.464e-06/1.775, allocations: 4 kB / 0.502 GB, free: 63.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/1.775, allocations: 0 / 0.502 GB, free: 63.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.612e-06/1.775, allocations: 4 kB / 0.502 GB, free: 63.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.578e-06/1.775, allocations: 0 / 0.502 GB, free: 63.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.583e-05/1.775, allocations: 0 / 0.502 GB, free: 63.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-06/1.775, allocations: 0 / 0.502 GB, free: 63.61 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.444e-05/1.775, allocations: 134.6 kB / 0.5021 GB, free: 63.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.115e-05/1.775, allocations: 3.984 kB / 0.5021 GB, free: 63.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.372e-05/1.775, allocations: 8.781 kB / 0.5021 GB, free: 63.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.153e-06/1.775, allocations: 6.844 kB / 0.5021 GB, free: 63.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.409e-06/1.775, allocations: 0 / 0.5021 GB, free: 63.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.811e-06/1.775, allocations: 0 / 0.5021 GB, free: 63.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.063e-05/1.775, allocations: 134.2 kB / 0.5023 GB, free: 63.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-06/1.775, allocations: 0 / 0.5023 GB, free: 63.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.29e-06/1.775, allocations: 0 / 0.5023 GB, free: 63.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.552e-06/1.775, allocations: 0 / 0.5023 GB, free: 63.29 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.33e-06/1.775, allocations: 0.75 kB / 0.5023 GB, free: 63.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.787e-06/1.775, allocations: 3.984 kB / 0.5023 GB, free: 63.28 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.149e-06/1.775, allocations: 0 / 0.5023 GB, free: 63.28 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.549e-05/1.776, allocations: 69.03 kB / 0.5023 GB, free: 63.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.836e-05/1.776, allocations: 81.11 kB / 0.5024 GB, free: 63.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/1.776, allocations: 7.047 kB / 0.5024 GB, free: 63.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.196e-05/1.776, allocations: 0 / 0.5024 GB, free: 63.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.274e-05/1.776, allocations: 7.094 kB / 0.5024 GB, free: 63.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.81e-06/1.776, allocations: 0 / 0.5024 GB, free: 63.09 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.33e-05/1.776, allocations: 75.28 kB / 0.5025 GB, free: 63.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.04e-07/1.776, allocations: 3.969 kB / 0.5025 GB, free: 63.01 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006363/1.782, allocations: 1.523 MB / 0.504 GB, free: 61.51 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.01131/1.793, allocations: 2.027 MB / 0.506 GB, free: 59.51 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.188e-05/1.794, allocations: 67.33 kB / 0.506 GB, free: 59.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.385e-06/1.794, allocations: 0 / 0.506 GB, free: 59.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.187e-05/1.794, allocations: 59.12 kB / 0.5061 GB, free: 59.37 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001029/1.794, allocations: 3.953 kB / 0.5061 GB, free: 59.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001358/1.794, allocations: 74.81 kB / 0.5062 GB, free: 59.26 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.864e-05/1.794, allocations: 0.6768 MB / 0.5068 GB, free: 58.56 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.797e-06/1.794, allocations: 7.438 kB / 0.5068 GB, free: 58.55 MB / 394.7 MB Notification: Performance of SimCode: time 1.473e-06/1.794, allocations: 0 / 0.5068 GB, free: 58.55 MB / 394.7 MB Notification: Performance of Templates: time 0.1986/1.993, allocations: 86.11 MB / 0.5909 GB, free: 4.312 MB / 426.7 MB