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.TestSpecial.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.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.46/2.46, allocations: 234.9 MB / 251.1 MB, free: 9.707 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006685/0.0006689, allocations: 16 kB / 315 MB, free: 9.75 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.413, allocations: 54.86 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.000838/0.414, allocations: 224.4 kB / 370 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004449/0.4185, allocations: 1.916 MB / 371.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.43e-05/0.4186, allocations: 4 kB / 372 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.307e-05/0.4186, allocations: 0 / 372 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.4186, allocations: 4 kB / 372 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002239/0.4209, allocations: 391.1 kB / 372.3 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.487e-05/0.4209, allocations: 0 / 372.3 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.581e-05/0.421, allocations: 0 / 372.3 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.691e-05/0.421, allocations: 0 / 372.3 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.984e-05/0.4211, allocations: 3.938 kB / 372.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.747e-06/0.4211, allocations: 3.938 kB / 372.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001959/0.4231, allocations: 0.6359 MB / 373 MB, free: 9.594 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.949e-06/0.4232, allocations: 0 / 373 MB, free: 9.594 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.052e-05/0.4232, allocations: 33.69 kB / 373 MB, free: 9.555 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.4242, allocations: 247.5 kB / 373.3 MB, free: 9.312 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.4243, allocations: 0 / 373.3 MB, free: 9.312 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4243, allocations: 0 / 373.3 MB, free: 9.312 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.4243, allocations: 0 / 373.3 MB, free: 9.312 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.0006684/0.425, allocations: 405 kB / 373.7 MB, free: 8.863 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.981e-05/0.4251, allocations: 8.031 kB / 373.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.418e-05/0.4251, allocations: 0 / 373.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.4253, allocations: 163.1 kB / 373.8 MB, free: 8.656 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.4253, allocations: 4 kB / 373.8 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.389e-05/0.4254, allocations: 4 kB / 373.8 MB, free: 8.648 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.4255, allocations: 25.7 kB / 373.9 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.4255, allocations: 3.953 kB / 373.9 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.4256, allocations: 7.938 kB / 373.9 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.4256, allocations: 0 / 373.9 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.92e-05/0.4256, allocations: 7.969 kB / 373.9 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001953/0.4258, allocations: 145.7 kB / 374 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.402e-05/0.4259, allocations: 26.48 kB / 374 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.4259, allocations: 4 kB / 374 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.789e-05/0.426, allocations: 60.27 kB / 374.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.683e-06/0.426, allocations: 0 / 374.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002482/0.4263, allocations: 71.31 kB / 374.2 MB, free: 8.211 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/0.4264, allocations: 77.11 kB / 374.2 MB, free: 8.117 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.711e-05/0.4264, allocations: 93.8 kB / 374.3 MB, free: 8.016 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.4265, allocations: 29.7 kB / 374.4 MB, free: 7.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.452e-05/0.4266, allocations: 154.7 kB / 374.5 MB, free: 7.828 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.819e-05/0.4266, allocations: 4 kB / 374.5 MB, free: 7.824 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-06/0.4266, allocations: 0 / 374.5 MB, free: 7.824 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.4268, allocations: 310.8 kB / 374.8 MB, free: 7.512 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.628e-05/0.4268, allocations: 0 / 374.8 MB, free: 7.512 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.423e-05/0.4268, allocations: 4 kB / 374.8 MB, free: 7.508 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.69e-05/0.4269, allocations: 29.69 kB / 374.9 MB, free: 7.473 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.4269, allocations: 0 / 374.9 MB, free: 7.473 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001248/0.427, allocations: 59.5 kB / 374.9 MB, free: 7.402 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.947e-05/0.4271, allocations: 33.7 kB / 374.9 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.4271, allocations: 0 / 374.9 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.4272, allocations: 4 kB / 375 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.014e-06/0.4272, allocations: 0 / 375 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.4272, allocations: 0 / 375 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.478e-05/0.4272, allocations: 7.938 kB / 375 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.4272, allocations: 0 / 375 MB, free: 7.352 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.0001401/0.4274, allocations: 147.5 kB / 375.1 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/0.4274, allocations: 0 / 375.1 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.471e-05/0.4274, allocations: 7.125 kB / 375.1 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.4275, allocations: 0 / 375.1 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4275, allocations: 0 / 375.1 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-05/0.4275, allocations: 77.11 kB / 375.2 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.4276, allocations: 7.953 kB / 375.2 MB, free: 7.086 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.973e-05/0.4276, allocations: 3.984 kB / 375.2 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.143e-05/0.4276, allocations: 0 / 375.2 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000194/0.4278, allocations: 190.1 kB / 375.4 MB, free: 6.871 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002373/0.4281, allocations: 244.5 kB / 375.6 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.005e-05/0.4281, allocations: 4 kB / 375.6 MB, free: 6.605 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.115e-05/0.4282, allocations: 83.17 kB / 375.7 MB, free: 6.523 MB / 298.7 MB Notification: Performance of Backend: time 6.91e-07/0.4282, allocations: 0 / 375.7 MB, free: 6.523 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.43, allocations: 343 kB / 376 MB, free: 6.18 MB / 298.7 MB Notification: Performance of SimCode: time 0.000547/0.4306, allocations: 0.5994 MB / 376.6 MB, free: 5.516 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) []