Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestColorMapToSvg.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.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadModel(ModelicaTest): time 2.484/2.484, allocations: 234.9 MB / 251.1 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004357/0.0004359, allocations: 8 kB / 314.9 MB, free: 9.539 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4015/0.402, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0007032/0.4028, allocations: 216.5 kB / 370 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.4054, allocations: 1.026 MB / 371 MB, free: 9.504 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.081e-05/0.4055, allocations: 4 kB / 371 MB, free: 9.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.495e-05/0.4055, allocations: 0 / 371 MB, free: 9.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.52e-06/0.4055, allocations: 0 / 371 MB, free: 9.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002302/0.4078, allocations: 0.6042 MB / 371.7 MB, free: 8.895 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.96e-05/0.4079, allocations: 0 / 371.7 MB, free: 8.895 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.842e-05/0.408, allocations: 7.984 kB / 371.7 MB, free: 8.887 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.657e-05/0.408, allocations: 0 / 371.7 MB, free: 8.887 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.835e-05/0.408, allocations: 0 / 371.7 MB, free: 8.887 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.408, allocations: 0 / 371.7 MB, free: 8.887 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001377/0.4094, allocations: 0.5499 MB / 372.2 MB, free: 8.336 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.614e-06/0.4094, allocations: 0 / 372.2 MB, free: 8.336 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.4095, allocations: 25.7 kB / 372.2 MB, free: 8.305 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006287/0.4101, allocations: 271.6 kB / 372.5 MB, free: 8.039 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.4101, allocations: 0 / 372.5 MB, free: 8.039 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4102, allocations: 0 / 372.5 MB, free: 8.039 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.4102, allocations: 0 / 372.5 MB, free: 8.039 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.0004853/0.4107, allocations: 397 kB / 372.9 MB, free: 7.598 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.4107, allocations: 8.031 kB / 372.9 MB, free: 7.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.493e-05/0.4108, allocations: 0 / 372.9 MB, free: 7.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.4109, allocations: 159.1 kB / 373.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.411, allocations: 8 kB / 373.1 MB, free: 7.387 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.411, allocations: 3.938 kB / 373.1 MB, free: 7.383 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.825e-05/0.4111, allocations: 29.69 kB / 373.1 MB, free: 7.348 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.4111, allocations: 7.953 kB / 373.1 MB, free: 7.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.4111, allocations: 0 / 373.1 MB, free: 7.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.4111, allocations: 0 / 373.1 MB, free: 7.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.848e-05/0.4112, allocations: 4 kB / 373.1 MB, free: 7.336 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000164/0.4113, allocations: 149.6 kB / 373.3 MB, free: 7.141 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.742e-05/0.4114, allocations: 18.61 kB / 373.3 MB, free: 7.113 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.184e-05/0.4114, allocations: 7.875 kB / 373.3 MB, free: 7.105 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.899e-05/0.4115, allocations: 60.25 kB / 373.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.4115, allocations: 0 / 373.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001979/0.4117, allocations: 71.42 kB / 373.4 MB, free: 6.949 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.962e-05/0.4118, allocations: 77.11 kB / 373.5 MB, free: 6.855 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.732e-05/0.4118, allocations: 89.86 kB / 373.6 MB, free: 6.758 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.4119, allocations: 29.7 kB / 373.6 MB, free: 6.723 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.381e-05/0.4119, allocations: 150.6 kB / 373.7 MB, free: 6.574 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.412, allocations: 3.938 kB / 373.7 MB, free: 6.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-06/0.412, allocations: 0 / 373.7 MB, free: 6.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.4121, allocations: 314.8 kB / 374.1 MB, free: 6.254 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.949e-06/0.4122, allocations: 128 / 374.1 MB, free: 6.254 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.241e-05/0.4122, allocations: 11.94 kB / 374.1 MB, free: 6.242 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.584e-05/0.4122, allocations: 25.7 kB / 374.1 MB, free: 6.211 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.4122, allocations: 0 / 374.1 MB, free: 6.211 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.077e-05/0.4123, allocations: 63.41 kB / 374.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.374e-05/0.4124, allocations: 33.69 kB / 374.2 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.4124, allocations: 0 / 374.2 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.4124, allocations: 3.984 kB / 374.2 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.4124, allocations: 0 / 374.2 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.4125, allocations: 3.984 kB / 374.2 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.141e-05/0.4125, allocations: 12.05 kB / 374.2 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.4125, allocations: 0 / 374.2 MB, free: 6.078 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.0001047/0.4126, allocations: 131.5 kB / 374.3 MB, free: 5.934 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.134e-05/0.4126, allocations: 4 kB / 374.3 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.059e-05/0.4127, allocations: 3.125 kB / 374.3 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.4127, allocations: 0 / 374.3 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.4127, allocations: 0 / 374.3 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.845e-05/0.4127, allocations: 81.09 kB / 374.4 MB, free: 5.832 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.4128, allocations: 3.953 kB / 374.4 MB, free: 5.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.332e-05/0.4128, allocations: 8 kB / 374.4 MB, free: 5.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.614e-05/0.4128, allocations: 0 / 374.4 MB, free: 5.82 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001568/0.413, allocations: 198 kB / 374.6 MB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001819/0.4132, allocations: 232.5 kB / 374.9 MB, free: 5.352 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.002e-05/0.4132, allocations: 0 / 374.9 MB, free: 5.352 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.782e-05/0.4133, allocations: 87.28 kB / 374.9 MB, free: 5.266 MB / 298.7 MB Notification: Performance of Backend: time 5.71e-07/0.4133, allocations: 7.875 kB / 374.9 MB, free: 5.258 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001428/0.4147, allocations: 420.8 kB / 375.4 MB, free: 4.891 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004865/0.4152, allocations: 0.6104 MB / 376 MB, free: 4.211 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) []