Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.527/2.527, allocations: 234.9 MB / 251.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006259/0.0006262, allocations: 12 kB / 314.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3854, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0008084/0.3863, allocations: 236.4 kB / 370 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004611/0.3909, allocations: 2.197 MB / 372.2 MB, free: 8.277 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.89e-05/0.391, allocations: 0 / 372.2 MB, free: 8.277 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.352e-05/0.3911, allocations: 3.938 kB / 372.2 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.172e-06/0.3911, allocations: 0 / 372.2 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002274/0.3934, allocations: 458.9 kB / 372.7 MB, free: 7.824 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.762e-05/0.3934, allocations: 0 / 372.7 MB, free: 7.824 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.315e-05/0.3935, allocations: 0 / 372.7 MB, free: 7.824 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.41e-05/0.3935, allocations: 4 kB / 372.7 MB, free: 7.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.702e-05/0.3936, allocations: 7.984 kB / 372.7 MB, free: 7.812 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.465e-06/0.3936, allocations: 0 / 372.7 MB, free: 7.812 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001971/0.3956, allocations: 0.6748 MB / 373.4 MB, free: 7.137 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.078e-05/0.3956, allocations: 3.984 kB / 373.4 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.027e-05/0.3957, allocations: 29.7 kB / 373.4 MB, free: 7.098 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009159/0.3966, allocations: 295.5 kB / 373.7 MB, free: 6.809 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.3966, allocations: 0 / 373.7 MB, free: 6.809 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3966, allocations: 3.938 kB / 373.7 MB, free: 6.805 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.3966, allocations: 0 / 373.7 MB, free: 6.805 MB / 298.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.0006101/0.3973, allocations: 433.7 kB / 374.1 MB, free: 6.328 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.993e-05/0.3973, allocations: 8.031 kB / 374.1 MB, free: 6.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.327e-05/0.3974, allocations: 11.94 kB / 374.1 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.3975, allocations: 163.1 kB / 374.3 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.3976, allocations: 3.938 kB / 374.3 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.3976, allocations: 4 kB / 374.3 MB, free: 6.102 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.3977, allocations: 29.69 kB / 374.3 MB, free: 6.066 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.3977, allocations: 3.953 kB / 374.3 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.3978, allocations: 0 / 374.3 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3978, allocations: 0 / 374.3 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.556e-05/0.3978, allocations: 4 kB / 374.3 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001735/0.398, allocations: 149.6 kB / 374.5 MB, free: 5.863 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.682e-05/0.3981, allocations: 22.55 kB / 374.5 MB, free: 5.832 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.297e-06/0.3981, allocations: 0 / 374.5 MB, free: 5.832 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.306e-05/0.3982, allocations: 60.27 kB / 374.6 MB, free: 5.758 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/0.3982, allocations: 0 / 374.6 MB, free: 5.758 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002195/0.3984, allocations: 67.41 kB / 374.6 MB, free: 5.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.3985, allocations: 77.23 kB / 374.7 MB, free: 5.586 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.622e-05/0.3985, allocations: 93.86 kB / 374.8 MB, free: 5.484 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.3986, allocations: 25.7 kB / 374.8 MB, free: 5.453 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.588e-05/0.3986, allocations: 150.6 kB / 375 MB, free: 5.305 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.3987, allocations: 11.94 kB / 375 MB, free: 5.293 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-06/0.3987, allocations: 0 / 375 MB, free: 5.293 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3989, allocations: 314.8 kB / 375.3 MB, free: 4.977 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.163e-05/0.3989, allocations: 0 / 375.3 MB, free: 4.977 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.454e-06/0.3989, allocations: 0 / 375.3 MB, free: 4.977 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.391e-05/0.399, allocations: 33.77 kB / 375.3 MB, free: 4.938 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.399, allocations: 0 / 375.3 MB, free: 4.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.986e-05/0.3991, allocations: 59.41 kB / 375.4 MB, free: 4.867 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.908e-05/0.3991, allocations: 29.7 kB / 375.4 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3991, allocations: 3.984 kB / 375.4 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.3992, allocations: 0 / 375.4 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.553e-06/0.3992, allocations: 0 / 375.4 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.3992, allocations: 0 / 375.4 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.411e-05/0.3992, allocations: 7.953 kB / 375.4 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.3992, allocations: 0 / 375.4 MB, free: 4.82 MB / 298.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.0001158/0.3994, allocations: 139.6 kB / 375.6 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.229e-05/0.3994, allocations: 4 kB / 375.6 MB, free: 4.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.206e-05/0.3994, allocations: 7.062 kB / 375.6 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.3994, allocations: 0 / 375.6 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3994, allocations: 7.875 kB / 375.6 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.3995, allocations: 81.09 kB / 375.7 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.3995, allocations: 3.953 kB / 375.7 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.437e-05/0.3996, allocations: 4 kB / 375.7 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.804e-05/0.3996, allocations: 3.984 kB / 375.7 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001706/0.3998, allocations: 198.1 kB / 375.9 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001951/0.4, allocations: 240.5 kB / 376.1 MB, free: 4.066 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.167e-05/0.4, allocations: 0 / 376.1 MB, free: 4.066 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.214e-05/0.4001, allocations: 83.23 kB / 376.2 MB, free: 3.984 MB / 298.7 MB Notification: Performance of Backend: time 6.81e-07/0.4001, allocations: 0 / 376.2 MB, free: 3.984 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.4017, allocations: 371.9 kB / 376.5 MB, free: 3.609 MB / 298.7 MB Notification: Performance of SimCode: time 0.0005474/0.4023, allocations: 0.5987 MB / 377.1 MB, free: 2.945 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: result (no alias) initial: no arrCref index:(1) []