Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3") Notification: Performance of loadModel(ModelicaTest): time 2.625/2.625, allocations: 234.9 MB / 251.1 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004982/0.0004984, allocations: 15.98 kB / 314.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3849, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.0008004/0.3858, allocations: 224.4 kB / 370 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003295/0.3891, allocations: 1.475 MB / 371.5 MB, free: 9.039 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.553e-05/0.3892, allocations: 0 / 371.5 MB, free: 9.039 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.306e-05/0.3893, allocations: 0 / 371.5 MB, free: 9.039 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.783e-06/0.3893, allocations: 0 / 371.5 MB, free: 9.039 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.3908, allocations: 187.5 kB / 371.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.818e-05/0.3908, allocations: 0 / 371.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.13e-05/0.3909, allocations: 0 / 371.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.303e-05/0.3909, allocations: 7.938 kB / 371.7 MB, free: 8.848 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.254e-05/0.391, allocations: 0 / 371.7 MB, free: 8.848 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.987e-06/0.391, allocations: 4 kB / 371.7 MB, free: 8.844 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002067/0.3931, allocations: 0.6597 MB / 372.4 MB, free: 8.184 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.042e-05/0.3932, allocations: 0 / 372.4 MB, free: 8.184 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.109e-05/0.3932, allocations: 25.7 kB / 372.4 MB, free: 8.152 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.3944, allocations: 455.3 kB / 372.8 MB, free: 7.707 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3945, allocations: 0 / 372.8 MB, free: 7.707 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.188e-06/0.3945, allocations: 0 / 372.8 MB, free: 7.707 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.3945, allocations: 0 / 372.8 MB, free: 7.707 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.0008044/0.3953, allocations: 361.1 kB / 373.2 MB, free: 7.301 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.096e-05/0.3954, allocations: 12.03 kB / 373.2 MB, free: 7.289 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.273e-05/0.3955, allocations: 0 / 373.2 MB, free: 7.289 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.3957, allocations: 163.1 kB / 373.3 MB, free: 7.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.3957, allocations: 4 kB / 373.3 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.707e-05/0.3957, allocations: 0 / 373.3 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.3959, allocations: 25.7 kB / 373.4 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.3959, allocations: 3.953 kB / 373.4 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.3959, allocations: 4 kB / 373.4 MB, free: 7.047 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.3959, allocations: 0 / 373.4 MB, free: 7.047 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.864e-05/0.396, allocations: 11.92 kB / 373.4 MB, free: 7.035 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002113/0.3962, allocations: 145.7 kB / 373.5 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.287e-05/0.3963, allocations: 22.61 kB / 373.6 MB, free: 6.812 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.3963, allocations: 0 / 373.6 MB, free: 6.812 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.726e-05/0.3964, allocations: 56.27 kB / 373.6 MB, free: 6.742 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.114e-06/0.3964, allocations: 0 / 373.6 MB, free: 6.742 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002868/0.3967, allocations: 79.34 kB / 373.7 MB, free: 6.652 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/0.3968, allocations: 85.08 kB / 373.8 MB, free: 6.551 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.661e-05/0.3969, allocations: 89.86 kB / 373.9 MB, free: 6.453 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.3969, allocations: 25.7 kB / 373.9 MB, free: 6.422 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/0.397, allocations: 158.5 kB / 374 MB, free: 6.266 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.81e-05/0.3971, allocations: 3.938 kB / 374 MB, free: 6.262 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-06/0.3971, allocations: 0 / 374 MB, free: 6.262 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3973, allocations: 310.8 kB / 374.3 MB, free: 5.949 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.684e-05/0.3973, allocations: 0 / 374.3 MB, free: 5.949 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.48e-05/0.3973, allocations: 8 kB / 374.4 MB, free: 5.941 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.782e-05/0.3974, allocations: 29.69 kB / 374.4 MB, free: 5.906 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3974, allocations: 0 / 374.4 MB, free: 5.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001471/0.3976, allocations: 67.34 kB / 374.5 MB, free: 5.828 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.738e-05/0.3976, allocations: 29.7 kB / 374.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.3977, allocations: 0 / 374.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.3977, allocations: 0 / 374.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.004e-06/0.3977, allocations: 0 / 374.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.3977, allocations: 0 / 374.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.665e-05/0.3978, allocations: 12.03 kB / 374.5 MB, free: 5.781 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.3978, allocations: 4 kB / 374.5 MB, free: 5.777 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.0001439/0.398, allocations: 131.5 kB / 374.6 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.856e-05/0.398, allocations: 4 kB / 374.6 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.564e-05/0.398, allocations: 3.125 kB / 374.6 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.398, allocations: 0 / 374.6 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3981, allocations: 0 / 374.6 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.468e-05/0.3981, allocations: 77.11 kB / 374.7 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.3982, allocations: 3.953 kB / 374.7 MB, free: 5.531 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.701e-05/0.3982, allocations: 11.98 kB / 374.7 MB, free: 5.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.335e-05/0.3982, allocations: 4 kB / 374.7 MB, free: 5.516 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002258/0.3985, allocations: 190 kB / 374.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002372/0.3987, allocations: 236.5 kB / 375.1 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.685e-05/0.3988, allocations: 0 / 375.1 MB, free: 5.051 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.828e-05/0.3988, allocations: 83.3 kB / 375.2 MB, free: 4.969 MB / 298.7 MB Notification: Performance of Backend: time 1.052e-06/0.3989, allocations: 4 kB / 375.2 MB, free: 4.965 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001907/0.4008, allocations: 226.8 kB / 375.4 MB, free: 4.734 MB / 298.7 MB Notification: Performance of SimCode: time 0.000595/0.4014, allocations: 0.5994 MB / 376 MB, free: 4.07 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) []