Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2b") translateModel(ModelicaTest.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00139/0.00139, allocations: 178.2 kB / 17.39 MB, free: 4.398 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.507/1.507, allocations: 205.4 MB / 223.5 MB, free: 9.016 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.0007415/0.0007415, allocations: 88.86 kB / 271.9 MB, free: 8.25 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.3211/0.3211, allocations: 43.56 MB / 363.7 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003617, allocations: 12 kB / 432.6 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1238, allocations: 58.85 MB / 491.5 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.0007651/0.1246, allocations: 228.3 kB / 491.7 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003234/0.1279, allocations: 2.056 MB / 493.8 MB, free: 8.613 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.294e-05/0.1279, allocations: 0 / 493.8 MB, free: 8.613 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.327e-05/0.1279, allocations: 0 / 493.8 MB, free: 8.613 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.045e-06/0.128, allocations: 0 / 493.8 MB, free: 8.613 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001918/0.1299, allocations: 0.6355 MB / 494.4 MB, free: 7.977 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.749e-05/0.1299, allocations: 7.984 kB / 494.4 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.13, allocations: 0 / 494.4 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.714e-05/0.13, allocations: 0 / 494.4 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.88e-05/0.13, allocations: 3.938 kB / 494.4 MB, free: 7.965 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-06/0.13, allocations: 0 / 494.4 MB, free: 7.965 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001737/0.1318, allocations: 1.35 MB / 495.7 MB, free: 6.613 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.796e-06/0.1318, allocations: 0 / 495.7 MB, free: 6.613 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.555e-05/0.1318, allocations: 29.64 kB / 495.8 MB, free: 6.578 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009293/0.1328, allocations: 1.17 MB / 496.9 MB, free: 5.406 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1328, allocations: 0 / 496.9 MB, free: 5.406 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.337e-06/0.1328, allocations: 0 / 496.9 MB, free: 5.406 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.1328, allocations: 3.938 kB / 497 MB, free: 5.402 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.0005057/0.1333, allocations: 409.2 kB / 497.4 MB, free: 4.949 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1334, allocations: 8.031 kB / 497.4 MB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.805e-05/0.1334, allocations: 0.9375 kB / 497.4 MB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.541e-05/0.1335, allocations: 160.4 kB / 497.5 MB, free: 4.746 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-06/0.1335, allocations: 4.375 kB / 497.5 MB, free: 4.742 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.1335, allocations: 4.125 kB / 497.5 MB, free: 4.738 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.746e-05/0.1336, allocations: 37.62 kB / 497.6 MB, free: 4.695 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.1337, allocations: 3.984 kB / 497.6 MB, free: 4.691 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.936e-06/0.1337, allocations: 0 / 497.6 MB, free: 4.691 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.1337, allocations: 0 / 497.6 MB, free: 4.691 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.776e-05/0.1337, allocations: 4 kB / 497.6 MB, free: 4.688 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001173/0.1338, allocations: 145.7 kB / 497.7 MB, free: 4.496 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.295e-05/0.1339, allocations: 18.58 kB / 497.7 MB, free: 4.469 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.622e-05/0.1339, allocations: 16.88 kB / 497.7 MB, free: 4.449 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.083e-06/0.1339, allocations: 0 / 497.7 MB, free: 4.449 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.1339, allocations: 60.2 kB / 497.8 MB, free: 4.375 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.134, allocations: 0 / 497.8 MB, free: 4.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001442/0.1341, allocations: 63.41 kB / 497.9 MB, free: 4.301 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.1342, allocations: 77.23 kB / 497.9 MB, free: 4.207 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.746e-05/0.1342, allocations: 93.86 kB / 498 MB, free: 4.105 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.1342, allocations: 33.62 kB / 498.1 MB, free: 4.066 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.229e-05/0.1343, allocations: 80.14 kB / 498.1 MB, free: 3.984 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.674e-05/0.1343, allocations: 4 kB / 498.1 MB, free: 3.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.633e-06/0.1343, allocations: 0 / 498.1 MB, free: 3.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.353e-05/0.1344, allocations: 310.8 kB / 498.5 MB, free: 3.668 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.344e-06/0.1344, allocations: 0 / 498.5 MB, free: 3.668 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.997e-06/0.1344, allocations: 0 / 498.5 MB, free: 3.668 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.699e-05/0.1345, allocations: 72.27 kB / 498.5 MB, free: 3.582 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1345, allocations: 0 / 498.5 MB, free: 3.582 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.053e-05/0.1345, allocations: 67.33 kB / 498.6 MB, free: 3.504 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.63e-05/0.1346, allocations: 29.7 kB / 498.6 MB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.1346, allocations: 0 / 498.6 MB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1346, allocations: 0 / 498.6 MB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.1346, allocations: 0 / 498.6 MB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.1346, allocations: 4 kB / 498.6 MB, free: 3.465 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.447e-05/0.1346, allocations: 0 / 498.6 MB, free: 3.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-06/0.1347, allocations: 0 / 498.6 MB, free: 3.465 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.266e-05/0.1347, allocations: 143.5 kB / 498.8 MB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-06/0.1347, allocations: 3.938 kB / 498.8 MB, free: 3.305 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.41e-05/0.1348, allocations: 11.11 kB / 498.8 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1348, allocations: 0 / 498.8 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1348, allocations: 0 / 498.8 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.889e-05/0.1348, allocations: 77.39 kB / 498.9 MB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.1348, allocations: 4 kB / 498.9 MB, free: 3.195 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.755e-06/0.1348, allocations: 0 / 498.9 MB, free: 3.195 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.915e-05/0.1349, allocations: 7.938 kB / 498.9 MB, free: 3.188 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.971e-05/0.135, allocations: 194 kB / 499.1 MB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001158/0.1351, allocations: 240.5 kB / 499.3 MB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.505e-05/0.1351, allocations: 0 / 499.3 MB, free: 2.715 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.151e-05/0.1351, allocations: 79.22 kB / 499.4 MB, free: 2.637 MB / 378.7 MB Notification: Performance of Backend: time 1.81e-07/0.1352, allocations: 0 / 499.4 MB, free: 2.637 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.1366, allocations: 459.9 kB / 499.8 MB, free: 2.18 MB / 378.7 MB Notification: Performance of SimCode: time 0.000369/0.137, allocations: 0.6065 MB / 0.4887 GB, free: 1.508 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!