Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001324/0.001324, allocations: 179.4 kB / 17.39 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 205.4 MB / 223.5 MB, free: 9 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007876/0.0007876, allocations: 93 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3284/0.3284, allocations: 43.56 MB / 363.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003835/0.0003836, allocations: 12 kB / 432.6 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1217, allocations: 58.85 MB / 491.5 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0006295/0.1224, allocations: 236.3 kB / 491.7 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005421/0.1278, allocations: 4.746 MB / 496.4 MB, free: 5.898 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.22e-05/0.1279, allocations: 0 / 496.4 MB, free: 5.898 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.359e-05/0.1279, allocations: 4 kB / 496.5 MB, free: 5.895 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.312e-06/0.1279, allocations: 0 / 496.5 MB, free: 5.895 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007986/0.1287, allocations: 191.5 kB / 496.6 MB, free: 5.707 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.082e-05/0.1288, allocations: 4 kB / 496.6 MB, free: 5.703 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.1288, allocations: 0 / 496.6 MB, free: 5.703 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.52e-05/0.1288, allocations: 0 / 496.6 MB, free: 5.703 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.759e-05/0.1289, allocations: 4 kB / 496.6 MB, free: 5.699 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.37e-06/0.1289, allocations: 0 / 496.6 MB, free: 5.699 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005433/0.1294, allocations: 379.2 kB / 497 MB, free: 5.328 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.407e-06/0.1294, allocations: 0 / 497 MB, free: 5.328 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.33e-05/0.1295, allocations: 25.7 kB / 497 MB, free: 5.297 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000283/0.1298, allocations: 199.7 kB / 497.2 MB, free: 5.102 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1298, allocations: 0 / 497.2 MB, free: 5.102 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1298, allocations: 0 / 497.2 MB, free: 5.102 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.098e-06/0.1298, allocations: 0 / 497.2 MB, free: 5.102 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.0004393/0.1302, allocations: 397.2 kB / 497.6 MB, free: 4.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.1303, allocations: 8.031 kB / 497.6 MB, free: 4.652 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.411e-05/0.1303, allocations: 0.9375 kB / 497.6 MB, free: 4.652 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.74e-05/0.1304, allocations: 168.3 kB / 497.8 MB, free: 4.449 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.1305, allocations: 4.375 kB / 497.8 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.1305, allocations: 384 / 497.8 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.586e-05/0.1306, allocations: 33.81 kB / 497.8 MB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.1306, allocations: 0 / 497.8 MB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-06/0.1306, allocations: 4 kB / 497.8 MB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.1306, allocations: 4 kB / 497.8 MB, free: 4.398 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.618e-05/0.1306, allocations: 0 / 497.8 MB, free: 4.398 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.1308, allocations: 145.7 kB / 498 MB, free: 4.207 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.521e-05/0.1308, allocations: 22.55 kB / 498 MB, free: 4.176 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.581e-05/0.1308, allocations: 8.844 kB / 498 MB, free: 4.164 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.103e-06/0.1309, allocations: 0 / 498 MB, free: 4.164 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.471e-05/0.1309, allocations: 64.27 kB / 498.1 MB, free: 4.086 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.064e-06/0.1309, allocations: 7.984 kB / 498.1 MB, free: 4.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001657/0.1311, allocations: 67.31 kB / 498.2 MB, free: 4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.1312, allocations: 77.11 kB / 498.2 MB, free: 3.906 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.923e-05/0.1312, allocations: 93.84 kB / 498.3 MB, free: 3.805 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.1312, allocations: 25.7 kB / 498.3 MB, free: 3.773 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.626e-05/0.1312, allocations: 80.14 kB / 498.4 MB, free: 3.691 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.1313, allocations: 3.938 kB / 498.4 MB, free: 3.688 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-06/0.1313, allocations: 3.938 kB / 498.4 MB, free: 3.684 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1314, allocations: 315 kB / 498.7 MB, free: 3.367 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.267e-06/0.1314, allocations: 4 kB / 498.7 MB, free: 3.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.89e-06/0.1314, allocations: 0 / 498.7 MB, free: 3.363 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.036e-05/0.1315, allocations: 64.27 kB / 498.8 MB, free: 3.285 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1315, allocations: 3.938 kB / 498.8 MB, free: 3.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.337e-05/0.1316, allocations: 63.39 kB / 498.9 MB, free: 3.207 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.324e-05/0.1316, allocations: 33.64 kB / 498.9 MB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1316, allocations: 0 / 498.9 MB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1316, allocations: 4.094 kB / 498.9 MB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.127e-06/0.1317, allocations: 4 kB / 498.9 MB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.1317, allocations: 0 / 498.9 MB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.715e-05/0.1317, allocations: 7.938 kB / 498.9 MB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.1317, allocations: 4 kB / 498.9 MB, free: 3.148 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 7.999e-05/0.1318, allocations: 135.5 kB / 499.1 MB, free: 3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.1318, allocations: 11.92 kB / 499.1 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.758e-06/0.1318, allocations: 3.125 kB / 499.1 MB, free: 2.984 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1318, allocations: 0 / 499.1 MB, free: 2.984 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.1318, allocations: 4 kB / 499.1 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.1319, allocations: 77.11 kB / 499.1 MB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.1319, allocations: 0 / 499.1 MB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.575e-06/0.1319, allocations: 0 / 499.1 MB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.481e-05/0.1319, allocations: 4 kB / 499.2 MB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001199/0.1321, allocations: 194.1 kB / 499.3 MB, free: 2.668 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001343/0.1322, allocations: 248.4 kB / 499.6 MB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.517e-05/0.1322, allocations: 0 / 499.6 MB, free: 2.402 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.8e-05/0.1323, allocations: 75.28 kB / 499.7 MB, free: 2.328 MB / 378.7 MB Notification: Performance of Backend: time 4.21e-07/0.1323, allocations: 0 / 499.7 MB, free: 2.328 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007475/0.133, allocations: 245.4 kB / 499.9 MB, free: 2.074 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003607/0.1334, allocations: 0.6026 MB / 0.4888 GB, free: 1.406 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!