Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001016/0.001016, allocations: 179 kB / 17.39 MB, free: 4.277 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.503/1.503, allocations: 205.4 MB / 223.5 MB, free: 9.004 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.0007768/0.0007769, allocations: 90.36 kB / 271.9 MB, free: 8.242 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.3397/0.3397, allocations: 43.56 MB / 363.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004958/0.0004958, allocations: 12 kB / 432.6 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1573, allocations: 58.85 MB / 491.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.0008029/0.1582, allocations: 224.3 kB / 491.7 MB, free: 10.67 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.1685, allocations: 4.806 MB / 496.5 MB, free: 5.848 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.984e-05/0.1686, allocations: 3.938 kB / 496.5 MB, free: 5.844 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.322e-05/0.1686, allocations: 0 / 496.5 MB, free: 5.844 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.957e-06/0.1686, allocations: 0 / 496.5 MB, free: 5.844 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00897/0.1776, allocations: 2.606 MB / 499.1 MB, free: 3.234 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.064e-05/0.1777, allocations: 4 kB / 499.1 MB, free: 3.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.218e-05/0.1777, allocations: 3.984 kB / 499.1 MB, free: 3.227 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.979e-05/0.1778, allocations: 4 kB / 499.1 MB, free: 3.223 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.96e-05/0.1778, allocations: 0 / 499.1 MB, free: 3.223 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.991e-06/0.1778, allocations: 0 / 499.1 MB, free: 3.223 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2599/0.4377, allocations: 19.82 MB / 0.5068 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.663e-05/0.4378, allocations: 3.203 kB / 0.5068 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.196e-05/0.4379, allocations: 29.08 kB / 0.5068 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03977/0.4776, allocations: 20.48 MB / 0.5268 GB, free: 34.94 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.4777, allocations: 0 / 0.5268 GB, free: 34.94 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4777, allocations: 1.344 kB / 0.5268 GB, free: 34.94 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.4777, allocations: 2.094 kB / 0.5268 GB, free: 34.94 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.02037/0.4981, allocations: 0.6666 MB / 0.5275 GB, free: 34.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.4982, allocations: 8.438 kB / 0.5275 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.749e-05/0.4982, allocations: 0.9375 kB / 0.5275 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.971e-05/0.4983, allocations: 173.9 kB / 0.5276 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.4983, allocations: 0 / 0.5276 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.935e-06/0.4983, allocations: 0 / 0.5276 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.678e-05/0.4984, allocations: 32.55 kB / 0.5277 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.892e-06/0.4984, allocations: 0 / 0.5277 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.4984, allocations: 2.016 kB / 0.5277 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.4985, allocations: 0 / 0.5277 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.737e-05/0.4985, allocations: 1.125 kB / 0.5277 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.748e-05/0.4986, allocations: 155.2 kB / 0.5278 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.327e-05/0.4986, allocations: 20.11 kB / 0.5278 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.373e-05/0.4986, allocations: 8.609 kB / 0.5278 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.707e-06/0.4987, allocations: 1.516 kB / 0.5278 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.4987, allocations: 58.8 kB / 0.5279 GB, free: 33.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.4987, allocations: 0.9375 kB / 0.5279 GB, free: 33.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001652/0.4989, allocations: 64.8 kB / 0.528 GB, free: 33.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.4989, allocations: 80.2 kB / 0.528 GB, free: 33.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.009e-05/0.4989, allocations: 89.86 kB / 0.5281 GB, free: 33.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.977e-06/0.499, allocations: 26.83 kB / 0.5282 GB, free: 33.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.364e-05/0.499, allocations: 81.27 kB / 0.5282 GB, free: 33.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.499, allocations: 1.812 kB / 0.5282 GB, free: 33.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.499, allocations: 1.219 kB / 0.5282 GB, free: 33.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.429e-05/0.4991, allocations: 315 kB / 0.5285 GB, free: 33.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.398e-06/0.4991, allocations: 4.594 kB / 0.5285 GB, free: 33.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.661e-06/0.4991, allocations: 4.656 kB / 0.5285 GB, free: 33.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.882e-05/0.4991, allocations: 65.78 kB / 0.5286 GB, free: 33.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4991, allocations: 3.938 kB / 0.5286 GB, free: 33.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.638e-05/0.4992, allocations: 58.5 kB / 0.5287 GB, free: 32.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.4992, allocations: 31.3 kB / 0.5287 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.4992, allocations: 0 / 0.5287 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.4993, allocations: 5.438 kB / 0.5287 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.4993, allocations: 3.75 kB / 0.5287 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.4993, allocations: 0 / 0.5287 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.918e-05/0.4993, allocations: 2.281 kB / 0.5287 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.948e-06/0.4993, allocations: 10.98 kB / 0.5287 GB, free: 32.94 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.408e-05/0.4994, allocations: 137.8 kB / 0.5288 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-06/0.4994, allocations: 1.219 kB / 0.5288 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.161e-05/0.4994, allocations: 3.125 kB / 0.5289 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.4994, allocations: 0 / 0.5289 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.4994, allocations: 5.719 kB / 0.5289 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.82e-05/0.4995, allocations: 78.89 kB / 0.5289 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.4995, allocations: 1.031 kB / 0.5289 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.955e-06/0.4995, allocations: 0 / 0.5289 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.616e-05/0.4995, allocations: 9.016 kB / 0.5289 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.978e-05/0.4996, allocations: 194 kB / 0.5291 GB, free: 32.49 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 8.505e-05/0.4997, allocations: 244.6 kB / 0.5294 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.473e-05/0.4997, allocations: 2.844 kB / 0.5294 GB, free: 32.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.286e-05/0.4997, allocations: 78.06 kB / 0.5294 GB, free: 32.17 MB / 378.7 MB Notification: Performance of Backend: time 4.01e-07/0.4997, allocations: 0 / 0.5294 GB, free: 32.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0434/0.5431, allocations: 1.028 MB / 0.5304 GB, free: 31.51 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003739/0.5436, allocations: 0.6104 MB / 0.531 GB, free: 30.84 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!