Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 190.8 kB / 16.75 MB, free: 4.941 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 226.5 MB / 244.1 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009715/0.0009718, allocations: 96.92 kB / 296.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.323/0.323, allocations: 44.82 MB / 392.9 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002927/0.0002929, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3985/0.3988, allocations: 62.97 MB / 0.5165 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0006261/0.3995, allocations: 219.4 kB / 0.5167 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002457/0.402, allocations: 1.716 MB / 0.5184 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.004e-05/0.402, allocations: 0 / 0.5184 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.113e-05/0.4021, allocations: 0 / 0.5184 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.622e-06/0.4021, allocations: 0 / 0.5184 GB, free: 35.86 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:120:3-169:18:writable] Warning: Pure function ‘ModelicaTest.Math.Polynomials‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0009476/0.403, allocations: 193.6 kB / 0.5186 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.494e-05/0.4031, allocations: 4 kB / 0.5186 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.517e-05/0.4031, allocations: 2.562 kB / 0.5186 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.92e-05/0.4032, allocations: 0 / 0.5186 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.036e-05/0.4032, allocations: 0 / 0.5186 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.524e-06/0.4032, allocations: 2.844 kB / 0.5186 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006879/0.4039, allocations: 373.7 kB / 0.5189 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.415e-06/0.4039, allocations: 0 / 0.5189 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.022e-05/0.404, allocations: 29.08 kB / 0.519 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000339/0.4043, allocations: 204.9 kB / 0.5192 GB, free: 35.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4043, allocations: 3 kB / 0.5192 GB, free: 35.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4044, allocations: 4 kB / 0.5192 GB, free: 35.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.476e-06/0.4044, allocations: 0 / 0.5192 GB, free: 35.6 MB / 378.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.0003361/0.4047, allocations: 386.8 kB / 0.5195 GB, free: 35.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.4048, allocations: 8.531 kB / 0.5195 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.268e-05/0.4048, allocations: 0.9375 kB / 0.5195 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.17e-05/0.4049, allocations: 164.3 kB / 0.5197 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.4049, allocations: 384 / 0.5197 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.4049, allocations: 384 / 0.5197 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.269e-05/0.405, allocations: 36.14 kB / 0.5197 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.4051, allocations: 7.938 kB / 0.5197 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.4051, allocations: 2.844 kB / 0.5197 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.4051, allocations: 0 / 0.5197 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.772e-05/0.4051, allocations: 0 / 0.5197 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001066/0.4052, allocations: 144.6 kB / 0.5199 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.653e-05/0.4053, allocations: 25.75 kB / 0.5199 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.734e-05/0.4053, allocations: 11.67 kB / 0.5199 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/0.4053, allocations: 0 / 0.5199 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.4054, allocations: 64.2 kB / 0.52 GB, free: 34.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.352e-06/0.4054, allocations: 0 / 0.52 GB, free: 34.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001664/0.4056, allocations: 63.67 kB / 0.52 GB, free: 34.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.645e-05/0.4056, allocations: 81.11 kB / 0.5201 GB, free: 34.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.635e-05/0.4056, allocations: 89.86 kB / 0.5202 GB, free: 34.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.023e-06/0.4056, allocations: 29.64 kB / 0.5202 GB, free: 34.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.263e-05/0.4057, allocations: 82.98 kB / 0.5203 GB, free: 34.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.4057, allocations: 4.125 kB / 0.5203 GB, free: 34.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.504e-06/0.4057, allocations: 0 / 0.5203 GB, free: 34.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.799e-05/0.4058, allocations: 310.8 kB / 0.5206 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.07e-05/0.4058, allocations: 3 kB / 0.5206 GB, free: 33.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.252e-06/0.4058, allocations: 0 / 0.5206 GB, free: 33.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.775e-05/0.4058, allocations: 62.77 kB / 0.5207 GB, free: 33.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4059, allocations: 0 / 0.5207 GB, free: 33.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.304e-05/0.4059, allocations: 62.22 kB / 0.5207 GB, free: 33.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.406, allocations: 35.42 kB / 0.5208 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.406, allocations: 3.938 kB / 0.5208 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.406, allocations: 0 / 0.5208 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.607e-06/0.406, allocations: 7.219 kB / 0.5208 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.406, allocations: 2.969 kB / 0.5208 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.982e-05/0.4061, allocations: 0 / 0.5208 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.4061, allocations: 3.984 kB / 0.5208 GB, free: 33.76 MB / 378.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 6.213e-05/0.4062, allocations: 134.3 kB / 0.5209 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.055e-05/0.4062, allocations: 0 / 0.5209 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.648e-06/0.4062, allocations: 11.06 kB / 0.5209 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.4062, allocations: 2.969 kB / 0.5209 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4062, allocations: 0 / 0.5209 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.4063, allocations: 80.39 kB / 0.521 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.4063, allocations: 7.938 kB / 0.521 GB, free: 33.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.419e-05/0.4063, allocations: 4 kB / 0.521 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.598e-05/0.4063, allocations: 2.719 kB / 0.521 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.325e-05/0.4064, allocations: 190 kB / 0.5212 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001067/0.4066, allocations: 247.8 kB / 0.5214 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.979e-05/0.4066, allocations: 4 kB / 0.5214 GB, free: 33.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.315e-05/0.4066, allocations: 78.25 kB / 0.5215 GB, free: 32.98 MB / 378.7 MB Notification: Performance of Backend: time 4.41e-07/0.4066, allocations: 0 / 0.5215 GB, free: 32.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008812/0.4075, allocations: 234.4 kB / 0.5217 GB, free: 32.82 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002455/0.4078, allocations: 0.6035 MB / 0.5223 GB, free: 32.16 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: result (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for result found!