Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices.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.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices") Notification: Performance of loadModel(ModelicaTest): time 2.491/2.491, allocations: 234.9 MB / 251.1 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004533/0.0004533, allocations: 20 kB / 314.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3954/0.3959, allocations: 54.86 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0008627/0.3968, allocations: 212.5 kB / 370 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003726/0.4005, allocations: 1.51 MB / 371.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.681e-05/0.4006, allocations: 0 / 371.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.148e-05/0.4006, allocations: 3.938 kB / 371.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.332e-06/0.4006, allocations: 0 / 371.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001239/0.4019, allocations: 231.4 kB / 371.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.859e-05/0.4019, allocations: 4 kB / 371.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.757e-05/0.402, allocations: 0 / 371.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.774e-05/0.402, allocations: 0 / 371.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.755e-05/0.4021, allocations: 3.984 kB / 371.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.843e-06/0.4021, allocations: 0 / 371.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.4032, allocations: 427.2 kB / 372.2 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.322e-06/0.4033, allocations: 0 / 372.2 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.49e-05/0.4033, allocations: 25.7 kB / 372.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000622/0.404, allocations: 215.7 kB / 372.4 MB, free: 10.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.404, allocations: 0 / 372.4 MB, free: 10.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.404, allocations: 0 / 372.4 MB, free: 10.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.404, allocations: 0 / 372.4 MB, free: 10.15 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.0004865/0.4045, allocations: 376.9 kB / 372.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.4046, allocations: 8.031 kB / 372.8 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.379e-05/0.4046, allocations: 4 kB / 372.8 MB, free: 9.715 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.4048, allocations: 159.1 kB / 373 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.4048, allocations: 0 / 373 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.4048, allocations: 4 kB / 373 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.4049, allocations: 37.69 kB / 373 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.405, allocations: 3.953 kB / 373 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.405, allocations: 0 / 373 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.405, allocations: 0 / 373 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.809e-05/0.4051, allocations: 7.938 kB / 373 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001946/0.4053, allocations: 145.7 kB / 373.1 MB, free: 9.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.989e-05/0.4053, allocations: 14.58 kB / 373.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.4054, allocations: 0 / 373.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.559e-05/0.4054, allocations: 64.34 kB / 373.2 MB, free: 9.168 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.804e-06/0.4054, allocations: 0 / 373.2 MB, free: 9.168 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002286/0.4057, allocations: 71.3 kB / 373.3 MB, free: 9.086 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.725e-05/0.4058, allocations: 81.23 kB / 373.4 MB, free: 8.988 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.51e-05/0.4059, allocations: 89.86 kB / 373.5 MB, free: 8.891 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.4059, allocations: 25.7 kB / 373.5 MB, free: 8.859 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.815e-05/0.406, allocations: 150.6 kB / 373.6 MB, free: 8.711 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.406, allocations: 0 / 373.6 MB, free: 8.711 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-06/0.406, allocations: 3.938 kB / 373.6 MB, free: 8.707 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.4062, allocations: 322.8 kB / 374 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.299e-05/0.4063, allocations: 0 / 374 MB, free: 8.383 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.486e-06/0.4063, allocations: 0 / 374 MB, free: 8.383 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.307e-05/0.4063, allocations: 33.77 kB / 374 MB, free: 8.344 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4064, allocations: 0 / 374 MB, free: 8.344 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001239/0.4065, allocations: 59.34 kB / 374 MB, free: 8.273 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.205e-05/0.4066, allocations: 37.69 kB / 374.1 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4066, allocations: 0 / 374.1 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.4066, allocations: 0 / 374.1 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.994e-06/0.4066, allocations: 3.938 kB / 374.1 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.4066, allocations: 0 / 374.1 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.827e-05/0.4067, allocations: 3.953 kB / 374.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.4067, allocations: 4.031 kB / 374.1 MB, free: 8.219 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.00014/0.4068, allocations: 139.5 kB / 374.2 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.344e-05/0.4069, allocations: 0 / 374.2 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.161e-05/0.4069, allocations: 3.125 kB / 374.2 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.4069, allocations: 4 kB / 374.2 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4069, allocations: 0 / 374.2 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.444e-05/0.407, allocations: 81.09 kB / 374.3 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.407, allocations: 3.953 kB / 374.3 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.783e-05/0.4071, allocations: 0 / 374.3 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.895e-05/0.4071, allocations: 4 kB / 374.3 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001989/0.4073, allocations: 198.1 kB / 374.5 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002315/0.4076, allocations: 232.5 kB / 374.7 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.311e-05/0.4076, allocations: 4 kB / 374.7 MB, free: 7.484 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.562e-05/0.4077, allocations: 83.22 kB / 374.8 MB, free: 7.402 MB / 298.7 MB Notification: Performance of Backend: time 6.31e-07/0.4077, allocations: 64 / 374.8 MB, free: 7.402 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.4088, allocations: 231.5 kB / 375.1 MB, free: 7.168 MB / 298.7 MB Notification: Performance of SimCode: time 0.0005487/0.4093, allocations: 0.6072 MB / 375.7 MB, free: 6.496 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) []