Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices2b") Notification: Performance of loadModel(ModelicaTest): time 2.559/2.559, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004962/0.0004965, allocations: 16 kB / 314.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3794, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.0007681/0.3802, allocations: 220.4 kB / 370 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004052/0.3843, allocations: 1.998 MB / 372 MB, free: 8.504 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.02e-05/0.3844, allocations: 0 / 372 MB, free: 8.504 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.021e-05/0.3844, allocations: 0 / 372 MB, free: 8.504 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.841e-06/0.3844, allocations: 0 / 372 MB, free: 8.504 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002629/0.3871, allocations: 0.6042 MB / 372.6 MB, free: 7.898 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.096e-05/0.3871, allocations: 4 kB / 372.6 MB, free: 7.895 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.262e-05/0.3871, allocations: 0 / 372.6 MB, free: 7.895 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.036e-05/0.3872, allocations: 3.984 kB / 372.6 MB, free: 7.891 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.673e-05/0.3872, allocations: 7.938 kB / 372.6 MB, free: 7.883 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.444e-06/0.3872, allocations: 4 kB / 372.6 MB, free: 7.879 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002685/0.3899, allocations: 1.287 MB / 373.9 MB, free: 6.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.233e-06/0.39, allocations: 0 / 373.9 MB, free: 6.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.1e-05/0.39, allocations: 25.7 kB / 374 MB, free: 6.559 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001851/0.3919, allocations: 1.158 MB / 375.1 MB, free: 5.398 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3919, allocations: 4 kB / 375.1 MB, free: 5.395 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3919, allocations: 0 / 375.1 MB, free: 5.395 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.3919, allocations: 0 / 375.1 MB, free: 5.395 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.0008536/0.3928, allocations: 409 kB / 375.5 MB, free: 4.941 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.3928, allocations: 8.031 kB / 375.5 MB, free: 4.934 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.327e-05/0.3929, allocations: 4 kB / 375.5 MB, free: 4.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.393, allocations: 163.1 kB / 375.7 MB, free: 4.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.393, allocations: 0 / 375.7 MB, free: 4.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.597e-05/0.3931, allocations: 3.984 kB / 375.7 MB, free: 4.727 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.3932, allocations: 37.59 kB / 375.7 MB, free: 4.684 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.3932, allocations: 0 / 375.7 MB, free: 4.684 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.3932, allocations: 4 kB / 375.7 MB, free: 4.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3932, allocations: 0 / 375.7 MB, free: 4.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.16e-05/0.3933, allocations: 4 kB / 375.7 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001606/0.3934, allocations: 149.7 kB / 375.9 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.542e-05/0.3935, allocations: 18.56 kB / 375.9 MB, free: 4.453 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.647e-06/0.3935, allocations: 0 / 375.9 MB, free: 4.453 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.347e-05/0.3936, allocations: 60.2 kB / 376 MB, free: 4.379 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 3.747e-06/0.3936, allocations: 12.03 kB / 376 MB, free: 4.367 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002036/0.3938, allocations: 63.3 kB / 376 MB, free: 4.293 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.3939, allocations: 85.11 kB / 376.1 MB, free: 4.191 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.045e-05/0.3939, allocations: 93.84 kB / 376.2 MB, free: 4.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.394, allocations: 25.7 kB / 376.2 MB, free: 4.059 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.737e-05/0.394, allocations: 150.6 kB / 376.4 MB, free: 3.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.3941, allocations: 0 / 376.4 MB, free: 3.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-06/0.3941, allocations: 0 / 376.4 MB, free: 3.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.3942, allocations: 311 kB / 376.7 MB, free: 3.598 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.074e-05/0.3942, allocations: 4 kB / 376.7 MB, free: 3.594 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.692e-06/0.3943, allocations: 4 kB / 376.7 MB, free: 3.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.268e-05/0.3943, allocations: 25.7 kB / 376.7 MB, free: 3.559 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.3943, allocations: 0 / 376.7 MB, free: 3.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.243e-05/0.3944, allocations: 71.33 kB / 376.8 MB, free: 3.477 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.788e-05/0.3945, allocations: 29.7 kB / 376.8 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3945, allocations: 0 / 376.8 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.3945, allocations: 3.984 kB / 376.8 MB, free: 3.438 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.3945, allocations: 4.094 kB / 376.8 MB, free: 3.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.3945, allocations: 7.953 kB / 376.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.043e-05/0.3946, allocations: 0 / 376.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.547e-06/0.3946, allocations: 0 / 376.8 MB, free: 3.426 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.0001025/0.3947, allocations: 135.5 kB / 377 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.3947, allocations: 0 / 377 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.475e-05/0.3947, allocations: 7.109 kB / 377 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3947, allocations: 0 / 377 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3948, allocations: 0 / 377 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.19e-05/0.3948, allocations: 81.06 kB / 377 MB, free: 3.176 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.3948, allocations: 8 kB / 377.1 MB, free: 3.168 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.154e-05/0.3949, allocations: 0 / 377.1 MB, free: 3.168 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.832e-05/0.3949, allocations: 0 / 377.1 MB, free: 3.168 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001504/0.395, allocations: 198 kB / 377.2 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001863/0.3952, allocations: 232.5 kB / 377.5 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.116e-05/0.3953, allocations: 12 kB / 377.5 MB, free: 2.688 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.876e-05/0.3953, allocations: 75.28 kB / 377.6 MB, free: 2.613 MB / 298.7 MB Notification: Performance of Backend: time 7.21e-07/0.3953, allocations: 4 kB / 377.6 MB, free: 2.609 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.3978, allocations: 463 kB / 378 MB, free: 2.16 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004394/0.3982, allocations: 0.6026 MB / 378.6 MB, free: 1.492 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) []