Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestPolynomials.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.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadModel(ModelicaTest): time 2.601/2.601, allocations: 234.9 MB / 251.1 MB, free: 10.66 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000497/0.0004973, allocations: 12 kB / 314.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.389/0.3895, allocations: 54.87 MB / 369.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0009095/0.3905, allocations: 220.4 kB / 370 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006637/0.3972, allocations: 2.993 MB / 373 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.962e-05/0.3973, allocations: 0 / 373 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.117e-05/0.3973, allocations: 4 kB / 373 MB, free: 7.637 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.264e-06/0.3974, allocations: 4 kB / 373 MB, free: 7.633 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.3987, allocations: 171.5 kB / 373.2 MB, free: 7.465 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.794e-05/0.3987, allocations: 0 / 373.2 MB, free: 7.465 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.166e-05/0.3988, allocations: 4 kB / 373.2 MB, free: 7.461 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.964e-05/0.3988, allocations: 0 / 373.2 MB, free: 7.461 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.841e-05/0.3989, allocations: 11.97 kB / 373.2 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.414e-06/0.3989, allocations: 0 / 373.2 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001012/0.3999, allocations: 347.3 kB / 373.6 MB, free: 7.109 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.456e-06/0.4, allocations: 0 / 373.6 MB, free: 7.109 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.669e-05/0.4, allocations: 33.64 kB / 373.6 MB, free: 7.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006681/0.4007, allocations: 207.6 kB / 373.8 MB, free: 6.867 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.4007, allocations: 0 / 373.8 MB, free: 6.867 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.4007, allocations: 0 / 373.8 MB, free: 6.867 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.4008, allocations: 4 kB / 373.8 MB, free: 6.863 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.0004975/0.4013, allocations: 381.1 kB / 374.2 MB, free: 6.438 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.4013, allocations: 8.031 kB / 374.2 MB, free: 6.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.785e-05/0.4014, allocations: 0 / 374.2 MB, free: 6.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.4015, allocations: 167.1 kB / 374.3 MB, free: 6.227 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.4016, allocations: 0 / 374.3 MB, free: 6.227 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.4016, allocations: 0 / 374.3 MB, free: 6.227 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/0.4017, allocations: 33.59 kB / 374.4 MB, free: 6.188 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.4017, allocations: 4 kB / 374.4 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.4017, allocations: 3.938 kB / 374.4 MB, free: 6.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.4018, allocations: 0 / 374.4 MB, free: 6.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.139e-05/0.4018, allocations: 4 kB / 374.4 MB, free: 6.176 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000166/0.402, allocations: 149.7 kB / 374.5 MB, free: 5.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.159e-05/0.402, allocations: 22.61 kB / 374.5 MB, free: 5.949 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.748e-06/0.4021, allocations: 0 / 374.5 MB, free: 5.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.08e-05/0.4021, allocations: 56.27 kB / 374.6 MB, free: 5.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.633e-06/0.4021, allocations: 3.938 kB / 374.6 MB, free: 5.875 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002274/0.4024, allocations: 79.3 kB / 374.7 MB, free: 5.785 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.4024, allocations: 81.09 kB / 374.8 MB, free: 5.688 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.043e-05/0.4025, allocations: 93.86 kB / 374.9 MB, free: 5.586 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.4025, allocations: 29.7 kB / 374.9 MB, free: 5.551 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.4026, allocations: 150.6 kB / 375 MB, free: 5.402 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.4026, allocations: 0 / 375 MB, free: 5.402 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-06/0.4027, allocations: 0 / 375 MB, free: 5.402 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4028, allocations: 310.8 kB / 375.3 MB, free: 5.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.241e-05/0.4028, allocations: 0 / 375.3 MB, free: 5.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.165e-05/0.4028, allocations: 8.125 kB / 375.3 MB, free: 5.082 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.875e-05/0.4029, allocations: 25.7 kB / 375.4 MB, free: 5.051 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4029, allocations: 0 / 375.4 MB, free: 5.051 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001078/0.403, allocations: 67.33 kB / 375.4 MB, free: 4.973 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.32e-05/0.4031, allocations: 33.7 kB / 375.5 MB, free: 4.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.4031, allocations: 0 / 375.5 MB, free: 4.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.4031, allocations: 0 / 375.5 MB, free: 4.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-06/0.4032, allocations: 4 kB / 375.5 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.4032, allocations: 3.953 kB / 375.5 MB, free: 4.926 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.438e-05/0.4032, allocations: 4.094 kB / 375.5 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.4032, allocations: 0 / 375.5 MB, free: 4.922 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.0001194/0.4034, allocations: 135.5 kB / 375.6 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.227e-05/0.4034, allocations: 7.922 kB / 375.6 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.73e-05/0.4034, allocations: 3.125 kB / 375.6 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4034, allocations: 0 / 375.6 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4034, allocations: 0 / 375.6 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/0.4035, allocations: 81.06 kB / 375.7 MB, free: 4.664 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/0.4035, allocations: 4 kB / 375.7 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.434e-05/0.4035, allocations: 4 kB / 375.7 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.418e-05/0.4036, allocations: 3.938 kB / 375.7 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000178/0.4037, allocations: 198 kB / 375.9 MB, free: 4.434 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001885/0.4039, allocations: 240.5 kB / 376.1 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.768e-05/0.404, allocations: 4 kB / 376.1 MB, free: 4.172 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.849e-05/0.404, allocations: 79.34 kB / 376.2 MB, free: 4.094 MB / 298.7 MB Notification: Performance of Backend: time 9.02e-07/0.4041, allocations: 0 / 376.2 MB, free: 4.094 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.4051, allocations: 244.3 kB / 376.5 MB, free: 3.848 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004713/0.4057, allocations: 0.5987 MB / 377.1 MB, free: 3.184 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) []