Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3") translateModel(ModelicaTest.Math.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001699/0.001699, allocations: 196.3 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 226.5 MB / 244 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007329/0.000733, allocations: 104 kB / 296.1 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3054/0.3054, allocations: 44.82 MB / 392.9 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002648/0.0002649, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3034, allocations: 62.95 MB / 0.5165 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.000619/0.3041, allocations: 229 kB / 0.5167 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.3057, allocations: 1.497 MB / 0.5182 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.739e-05/0.3057, allocations: 0 / 0.5182 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.408e-05/0.3058, allocations: 0 / 0.5182 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.574e-06/0.3058, allocations: 0 / 0.5182 GB, free: 35.88 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:576:3-610:16:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices3‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007175/0.3065, allocations: 197.7 kB / 0.5184 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.088e-05/0.3065, allocations: 8 kB / 0.5184 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.562e-05/0.3066, allocations: 6.953 kB / 0.5184 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.504e-05/0.3066, allocations: 3.984 kB / 0.5184 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.629e-05/0.3066, allocations: 0 / 0.5184 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.549e-06/0.3067, allocations: 0 / 0.5184 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007496/0.3074, allocations: 0.6677 MB / 0.519 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.995e-06/0.3074, allocations: 0 / 0.519 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.877e-05/0.3075, allocations: 36.62 kB / 0.5191 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003481/0.3078, allocations: 445.9 kB / 0.5195 GB, free: 35.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3078, allocations: 4 kB / 0.5195 GB, free: 35.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3078, allocations: 0 / 0.5195 GB, free: 35.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.3079, allocations: 0 / 0.5195 GB, free: 35.64 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.0003363/0.3082, allocations: 361.7 kB / 0.5198 GB, free: 35.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3083, allocations: 8.562 kB / 0.5198 GB, free: 35.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.782e-05/0.3083, allocations: 6.797 kB / 0.5199 GB, free: 35.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.762e-05/0.3084, allocations: 160.4 kB / 0.52 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.3084, allocations: 384 / 0.52 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.795e-06/0.3084, allocations: 384 / 0.52 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.871e-05/0.3085, allocations: 36.86 kB / 0.52 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3085, allocations: 0 / 0.52 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-06/0.3085, allocations: 3.938 kB / 0.52 GB, free: 35.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.3085, allocations: 2.969 kB / 0.52 GB, free: 35.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.47e-05/0.3085, allocations: 0 / 0.52 GB, free: 35.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001002/0.3086, allocations: 149.1 kB / 0.5202 GB, free: 34.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.779e-05/0.3087, allocations: 21.52 kB / 0.5202 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.155e-05/0.3087, allocations: 4.859 kB / 0.5202 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.083e-06/0.3087, allocations: 6.875 kB / 0.5202 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.3087, allocations: 60.2 kB / 0.5203 GB, free: 34.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3087, allocations: 0 / 0.5203 GB, free: 34.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001537/0.3089, allocations: 71.42 kB / 0.5203 GB, free: 34.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.202e-05/0.3089, allocations: 77.11 kB / 0.5204 GB, free: 34.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.912e-05/0.309, allocations: 89.86 kB / 0.5205 GB, free: 34.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.055e-06/0.309, allocations: 25.7 kB / 0.5205 GB, free: 34.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.415e-05/0.309, allocations: 84.27 kB / 0.5206 GB, free: 34.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.309, allocations: 10.41 kB / 0.5206 GB, free: 34.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-06/0.309, allocations: 0 / 0.5206 GB, free: 34.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.08e-05/0.3091, allocations: 314.8 kB / 0.5209 GB, free: 34.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.063e-06/0.3091, allocations: 0 / 0.5209 GB, free: 34.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.86e-06/0.3091, allocations: 2.906 kB / 0.5209 GB, free: 34.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.207e-05/0.3091, allocations: 67.23 kB / 0.521 GB, free: 33.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3091, allocations: 0 / 0.521 GB, free: 33.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.893e-05/0.3092, allocations: 65.12 kB / 0.5211 GB, free: 33.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3092, allocations: 34.2 kB / 0.5211 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.3092, allocations: 3.938 kB / 0.5211 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.3093, allocations: 0 / 0.5211 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.12e-07/0.3093, allocations: 0 / 0.5211 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.3093, allocations: 2.969 kB / 0.5211 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.541e-05/0.3093, allocations: 0 / 0.5211 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.533e-06/0.3093, allocations: 0 / 0.5211 GB, free: 33.83 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 4.995e-05/0.3094, allocations: 134.6 kB / 0.5212 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.172e-06/0.3094, allocations: 4.031 kB / 0.5212 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.01e-05/0.3094, allocations: 14.53 kB / 0.5212 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3094, allocations: 0 / 0.5212 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3094, allocations: 4 kB / 0.5212 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.712e-05/0.3094, allocations: 79.86 kB / 0.5213 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.018e-05/0.3094, allocations: 0 / 0.5213 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.005e-06/0.3094, allocations: 0 / 0.5213 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.139e-05/0.3095, allocations: 2.875 kB / 0.5213 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.442e-05/0.3095, allocations: 194.3 kB / 0.5215 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.829e-05/0.3096, allocations: 244.5 kB / 0.5217 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.395e-05/0.3097, allocations: 3.031 kB / 0.5217 GB, free: 33.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.337e-05/0.3097, allocations: 75.28 kB / 0.5218 GB, free: 33.05 MB / 378.7 MB Notification: Performance of Backend: time 2.51e-07/0.3097, allocations: 0 / 0.5218 GB, free: 33.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009037/0.3106, allocations: 218.2 kB / 0.522 GB, free: 32.89 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002362/0.3108, allocations: 0.6072 MB / 0.5226 GB, free: 32.22 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!