Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.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.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00112/0.00112, allocations: 195.8 kB / 16.76 MB, free: 4.898 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 226.5 MB / 244.1 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008491/0.0008489, allocations: 101.6 kB / 296.1 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3061/0.3061, allocations: 44.81 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00033/0.0003301, allocations: 8 kB / 465.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.31, allocations: 62.95 MB / 0.5165 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0005713/0.3107, allocations: 218.3 kB / 0.5167 GB, free: 36.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.3124, allocations: 1.54 MB / 0.5182 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.828e-05/0.3125, allocations: 0 / 0.5182 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.507e-05/0.3125, allocations: 0 / 0.5182 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.145e-06/0.3125, allocations: 0 / 0.5182 GB, free: 35.77 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:171:3-212:15:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007698/0.3133, allocations: 254.2 kB / 0.5184 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.558e-05/0.3133, allocations: 0 / 0.5184 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.37e-05/0.3134, allocations: 4 kB / 0.5185 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.744e-05/0.3134, allocations: 3.375 kB / 0.5185 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.399e-05/0.3135, allocations: 0 / 0.5185 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.291e-06/0.3135, allocations: 0 / 0.5185 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005227/0.314, allocations: 445 kB / 0.5189 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.228e-06/0.314, allocations: 4 kB / 0.5189 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.192e-05/0.3141, allocations: 28.77 kB / 0.5189 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002661/0.3143, allocations: 206.7 kB / 0.5191 GB, free: 35.53 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.3144, allocations: 7.344 kB / 0.5191 GB, free: 35.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3144, allocations: 0 / 0.5191 GB, free: 35.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.3144, allocations: 0 / 0.5191 GB, free: 35.53 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.0002752/0.3146, allocations: 363.3 kB / 0.5195 GB, free: 35.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3147, allocations: 8.781 kB / 0.5195 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.665e-05/0.3147, allocations: 3.719 kB / 0.5195 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.389e-05/0.3148, allocations: 167.8 kB / 0.5196 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.3148, allocations: 4.375 kB / 0.5196 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.3148, allocations: 384 / 0.5196 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.942e-05/0.3149, allocations: 32.89 kB / 0.5197 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.3149, allocations: 0 / 0.5197 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-06/0.315, allocations: 0 / 0.5197 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.315, allocations: 6.938 kB / 0.5197 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.809e-05/0.315, allocations: 3.938 kB / 0.5197 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.281e-05/0.3151, allocations: 149 kB / 0.5198 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.862e-05/0.3151, allocations: 21.48 kB / 0.5198 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.487e-05/0.3151, allocations: 11.73 kB / 0.5199 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.733e-06/0.3152, allocations: 0 / 0.5199 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.3152, allocations: 64.2 kB / 0.5199 GB, free: 34.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.3152, allocations: 0 / 0.5199 GB, free: 34.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000149/0.3154, allocations: 71.39 kB / 0.52 GB, free: 34.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.489e-05/0.3154, allocations: 77.11 kB / 0.5201 GB, free: 34.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.324e-05/0.3154, allocations: 93.98 kB / 0.5201 GB, free: 34.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.412e-06/0.3154, allocations: 25.7 kB / 0.5202 GB, free: 34.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.079e-05/0.3154, allocations: 80.14 kB / 0.5202 GB, free: 34.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.804e-05/0.3155, allocations: 2.906 kB / 0.5202 GB, free: 34.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-06/0.3155, allocations: 0 / 0.5202 GB, free: 34.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.008e-05/0.3155, allocations: 314.6 kB / 0.5205 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.174e-06/0.3156, allocations: 0 / 0.5205 GB, free: 33.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.61e-06/0.3156, allocations: 6.859 kB / 0.5206 GB, free: 33.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.086e-05/0.3156, allocations: 63.3 kB / 0.5206 GB, free: 33.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3156, allocations: 0 / 0.5206 GB, free: 33.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.001e-05/0.3157, allocations: 61.88 kB / 0.5207 GB, free: 33.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3157, allocations: 36.45 kB / 0.5207 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3157, allocations: 3.938 kB / 0.5207 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3157, allocations: 0 / 0.5207 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.3157, allocations: 0 / 0.5207 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.3157, allocations: 0 / 0.5207 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.548e-05/0.3158, allocations: 3.938 kB / 0.5207 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-06/0.3158, allocations: 2.844 kB / 0.5207 GB, free: 33.7 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.533e-05/0.3158, allocations: 142.6 kB / 0.5209 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-06/0.3158, allocations: 0 / 0.5209 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.813e-06/0.3158, allocations: 7.062 kB / 0.5209 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3158, allocations: 3.422 kB / 0.5209 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.3159, allocations: 0 / 0.5209 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.495e-05/0.3159, allocations: 77.11 kB / 0.5209 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.3159, allocations: 2.969 kB / 0.5209 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.526e-06/0.3159, allocations: 0 / 0.5209 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.528e-05/0.3159, allocations: 7.938 kB / 0.521 GB, free: 33.44 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.224e-05/0.316, allocations: 198.1 kB / 0.5211 GB, free: 33.23 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.438e-05/0.3161, allocations: 243.1 kB / 0.5214 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.555e-05/0.3161, allocations: 2.625 kB / 0.5214 GB, free: 32.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.196e-05/0.3161, allocations: 75.28 kB / 0.5214 GB, free: 32.91 MB / 378.7 MB Notification: Performance of Backend: time 3.2e-07/0.3161, allocations: 64 / 0.5214 GB, free: 32.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005783/0.3167, allocations: 229.8 kB / 0.5217 GB, free: 32.75 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002032/0.3169, allocations: 0.6039 MB / 0.5223 GB, free: 32.09 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!