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.TestDistributions.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.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.439/2.439, allocations: 234.9 MB / 251.1 MB, free: 9.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004519/0.0004521, allocations: 16 kB / 314.9 MB, free: 9.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.3789, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0007829/0.3797, allocations: 232.4 kB / 370 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004132/0.3839, allocations: 1.947 MB / 372 MB, free: 8.535 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.788e-05/0.384, allocations: 0 / 372 MB, free: 8.535 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.342e-05/0.384, allocations: 3.938 kB / 372 MB, free: 8.531 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.372e-06/0.384, allocations: 0 / 372 MB, free: 8.531 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002013/0.3861, allocations: 395.1 kB / 372.4 MB, free: 8.145 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.263e-05/0.3861, allocations: 7.938 kB / 372.4 MB, free: 8.137 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.458e-05/0.3862, allocations: 0 / 372.4 MB, free: 8.137 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.294e-05/0.3862, allocations: 4 kB / 372.4 MB, free: 8.133 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.357e-05/0.3862, allocations: 3.938 kB / 372.4 MB, free: 8.129 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.737e-06/0.3862, allocations: 0 / 372.4 MB, free: 8.129 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001738/0.388, allocations: 0.5773 MB / 373 MB, free: 7.551 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.678e-06/0.3881, allocations: 4 kB / 373 MB, free: 7.547 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.041e-05/0.3881, allocations: 25.7 kB / 373 MB, free: 7.516 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008394/0.389, allocations: 247.6 kB / 373.2 MB, free: 7.273 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.389, allocations: 0 / 373.2 MB, free: 7.273 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.389, allocations: 0 / 373.2 MB, free: 7.273 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.389, allocations: 4 kB / 373.2 MB, free: 7.27 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.0006057/0.3897, allocations: 411.9 kB / 373.6 MB, free: 6.816 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.3897, allocations: 8.031 kB / 373.7 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.246e-05/0.3898, allocations: 0 / 373.7 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.3899, allocations: 163.8 kB / 373.8 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.39, allocations: 4 kB / 373.8 MB, free: 6.605 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.644e-05/0.39, allocations: 0 / 373.8 MB, free: 6.605 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.3901, allocations: 45.52 kB / 373.9 MB, free: 6.555 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3901, allocations: 4 kB / 373.9 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.3902, allocations: 0 / 373.9 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.3902, allocations: 0 / 373.9 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.18e-05/0.3902, allocations: 0 / 373.9 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001772/0.3904, allocations: 149.7 kB / 374 MB, free: 6.355 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.395e-05/0.3904, allocations: 14.58 kB / 374 MB, free: 6.332 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.3905, allocations: 0 / 374 MB, free: 6.332 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.522e-05/0.3905, allocations: 64.19 kB / 374.1 MB, free: 6.254 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.533e-06/0.3906, allocations: 4 kB / 374.1 MB, free: 6.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002115/0.3908, allocations: 71.33 kB / 374.2 MB, free: 6.168 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/0.3909, allocations: 81.11 kB / 374.2 MB, free: 6.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.514e-05/0.3909, allocations: 89.86 kB / 374.3 MB, free: 5.973 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.391, allocations: 25.7 kB / 374.4 MB, free: 5.941 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.53e-05/0.391, allocations: 150.6 kB / 374.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.3911, allocations: 0 / 374.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-06/0.3911, allocations: 0 / 374.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3912, allocations: 319 kB / 374.8 MB, free: 5.473 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.392e-05/0.3913, allocations: 7.938 kB / 374.8 MB, free: 5.465 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.205e-06/0.3913, allocations: 0 / 374.8 MB, free: 5.465 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.986e-05/0.3913, allocations: 25.7 kB / 374.8 MB, free: 5.434 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3913, allocations: 3.938 kB / 374.8 MB, free: 5.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.538e-05/0.3914, allocations: 63.41 kB / 374.9 MB, free: 5.355 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.067e-05/0.3915, allocations: 37.69 kB / 374.9 MB, free: 5.312 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3915, allocations: 0 / 374.9 MB, free: 5.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.3915, allocations: 0 / 374.9 MB, free: 5.312 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.683e-06/0.3916, allocations: 4.094 kB / 374.9 MB, free: 5.309 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.3916, allocations: 3.953 kB / 375 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.115e-05/0.3916, allocations: 0 / 375 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.3916, allocations: 0 / 375 MB, free: 5.305 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.0001195/0.3917, allocations: 139.5 kB / 375.1 MB, free: 5.152 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.188e-05/0.3918, allocations: 3.984 kB / 375.1 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.584e-05/0.3918, allocations: 3.125 kB / 375.1 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3918, allocations: 0 / 375.1 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.3918, allocations: 3.984 kB / 375.1 MB, free: 5.145 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.296e-05/0.3919, allocations: 89.06 kB / 375.2 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.3919, allocations: 0 / 375.2 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.128e-05/0.3919, allocations: 0 / 375.2 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.963e-05/0.392, allocations: 0 / 375.2 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001723/0.3921, allocations: 202 kB / 375.4 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000182/0.3923, allocations: 228.5 kB / 375.6 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.986e-05/0.3924, allocations: 16 kB / 375.6 MB, free: 4.555 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.548e-05/0.3924, allocations: 79.22 kB / 375.7 MB, free: 4.477 MB / 298.7 MB Notification: Performance of Backend: time 6.51e-07/0.3925, allocations: 0 / 375.7 MB, free: 4.477 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.3939, allocations: 340.6 kB / 376 MB, free: 4.133 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004765/0.3944, allocations: 0.6066 MB / 376.6 MB, free: 3.461 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) []