Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectors.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.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectors") Notification: Performance of loadModel(ModelicaTest): time 2.478/2.478, allocations: 234.9 MB / 251.1 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006237/0.0006239, allocations: 12 kB / 314.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3761, allocations: 54.88 MB / 369.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.0007683/0.3769, allocations: 224.4 kB / 370 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003837/0.3808, allocations: 1.869 MB / 371.9 MB, free: 8.754 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.256e-05/0.3809, allocations: 0 / 371.9 MB, free: 8.754 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.696e-05/0.3809, allocations: 4 kB / 371.9 MB, free: 8.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.492e-06/0.3809, allocations: 0 / 371.9 MB, free: 8.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002875/0.3838, allocations: 0.5842 MB / 372.5 MB, free: 8.164 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.849e-05/0.3839, allocations: 0 / 372.5 MB, free: 8.164 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.4e-05/0.3839, allocations: 3.938 kB / 372.5 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.054e-05/0.384, allocations: 4 kB / 372.5 MB, free: 8.156 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.229e-05/0.384, allocations: 0 / 372.5 MB, free: 8.156 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.364e-06/0.384, allocations: 0 / 372.5 MB, free: 8.156 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002061/0.3861, allocations: 0.6045 MB / 373.1 MB, free: 7.551 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.935e-06/0.3861, allocations: 0 / 373.1 MB, free: 7.551 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.03e-05/0.3862, allocations: 25.7 kB / 373.1 MB, free: 7.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.3873, allocations: 403.3 kB / 373.5 MB, free: 7.125 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.3873, allocations: 0 / 373.5 MB, free: 7.125 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3873, allocations: 0 / 373.5 MB, free: 7.125 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.3873, allocations: 0 / 373.5 MB, free: 7.125 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.0006287/0.388, allocations: 407.6 kB / 373.9 MB, free: 6.676 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.051e-05/0.3881, allocations: 12.03 kB / 373.9 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.338e-05/0.3881, allocations: 0 / 373.9 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.3883, allocations: 159.1 kB / 374.1 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.3883, allocations: 0 / 374.1 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.3883, allocations: 0 / 374.1 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.3885, allocations: 45.58 kB / 374.1 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.3885, allocations: 0 / 374.1 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.3885, allocations: 0 / 374.1 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.3885, allocations: 0 / 374.1 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.637e-05/0.3886, allocations: 4 kB / 374.1 MB, free: 6.414 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001884/0.3888, allocations: 145.7 kB / 374.3 MB, free: 6.223 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.186e-05/0.3888, allocations: 14.58 kB / 374.3 MB, free: 6.199 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/0.3889, allocations: 8.078 kB / 374.3 MB, free: 6.191 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.948e-05/0.3889, allocations: 64.2 kB / 374.4 MB, free: 6.113 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.295e-06/0.389, allocations: 0 / 374.4 MB, free: 6.113 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002253/0.3892, allocations: 67.36 kB / 374.4 MB, free: 6.035 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.3893, allocations: 81.23 kB / 374.5 MB, free: 5.938 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.337e-05/0.3894, allocations: 89.86 kB / 374.6 MB, free: 5.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.3894, allocations: 25.7 kB / 374.6 MB, free: 5.809 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.623e-05/0.3895, allocations: 154.5 kB / 374.8 MB, free: 5.656 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.073e-05/0.3895, allocations: 0 / 374.8 MB, free: 5.656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-06/0.3895, allocations: 0 / 374.8 MB, free: 5.656 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.3897, allocations: 318.8 kB / 375.1 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.274e-05/0.3898, allocations: 0 / 375.1 MB, free: 5.336 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.855e-06/0.3898, allocations: 0 / 375.1 MB, free: 5.336 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.542e-05/0.3898, allocations: 33.77 kB / 375.1 MB, free: 5.297 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3899, allocations: 7.875 kB / 375.1 MB, free: 5.289 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001134/0.39, allocations: 55.41 kB / 375.2 MB, free: 5.223 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.31e-05/0.3901, allocations: 37.69 kB / 375.2 MB, free: 5.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.3901, allocations: 0 / 375.2 MB, free: 5.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.3901, allocations: 3.938 kB / 375.2 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.003e-06/0.3901, allocations: 0 / 375.2 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.3901, allocations: 7.938 kB / 375.2 MB, free: 5.168 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.522e-05/0.3902, allocations: 0 / 375.2 MB, free: 5.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.3902, allocations: 32 / 375.2 MB, free: 5.168 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.0001355/0.3903, allocations: 143.5 kB / 375.4 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.18e-05/0.3904, allocations: 0 / 375.4 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.111e-05/0.3904, allocations: 3.125 kB / 375.4 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3904, allocations: 3.984 kB / 375.4 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.3904, allocations: 4 kB / 375.4 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.9e-05/0.3905, allocations: 81.06 kB / 375.4 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.3905, allocations: 0 / 375.4 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.642e-05/0.3906, allocations: 0 / 375.4 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.753e-05/0.3906, allocations: 4 kB / 375.5 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000211/0.3908, allocations: 202 kB / 375.6 MB, free: 4.68 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002197/0.391, allocations: 228.5 kB / 375.9 MB, free: 4.434 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.324e-05/0.3911, allocations: 11.94 kB / 375.9 MB, free: 4.422 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.805e-05/0.3912, allocations: 75.28 kB / 376 MB, free: 4.348 MB / 298.7 MB Notification: Performance of Backend: time 6.51e-07/0.3912, allocations: 64 / 376 MB, free: 4.348 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.3929, allocations: 310.1 kB / 376.3 MB, free: 4.035 MB / 298.7 MB Notification: Performance of SimCode: time 0.0005323/0.3934, allocations: 0.5994 MB / 376.9 MB, free: 3.371 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) []