Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b") translateModel(ModelicaTest.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001628/0.001628, allocations: 199.9 kB / 16.76 MB, free: 4.902 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 226.5 MB / 244.1 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007598/0.0007599, allocations: 100.8 kB / 296.1 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3024/0.3024, allocations: 44.82 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002489/0.0002489, allocations: 4 kB / 465.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2992, allocations: 62.96 MB / 0.5165 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.0005033/0.2998, allocations: 224.2 kB / 0.5167 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.3018, allocations: 2.041 MB / 0.5187 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.539e-05/0.3018, allocations: 0 / 0.5187 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.767e-06/0.3019, allocations: 3 kB / 0.5187 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.743e-06/0.3019, allocations: 0 / 0.5187 GB, free: 35.63 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:485:3-574:17:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices2b‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.3033, allocations: 0.6415 MB / 0.5193 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.597e-05/0.3033, allocations: 0 / 0.5193 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.094e-05/0.3033, allocations: 3.984 kB / 0.5193 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.282e-05/0.3034, allocations: 0 / 0.5193 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.892e-05/0.3034, allocations: 6.938 kB / 0.5193 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.539e-06/0.3034, allocations: 0 / 0.5193 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00132/0.3047, allocations: 1.345 MB / 0.5207 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.032e-06/0.3047, allocations: 3.938 kB / 0.5207 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.197e-05/0.3048, allocations: 29.7 kB / 0.5207 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007004/0.3055, allocations: 1.162 MB / 0.5218 GB, free: 34.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3055, allocations: 0 / 0.5218 GB, free: 34.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3055, allocations: 0 / 0.5218 GB, free: 34.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.3055, allocations: 0 / 0.5218 GB, free: 34.98 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.0004063/0.3059, allocations: 413.6 kB / 0.5222 GB, free: 34.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.306, allocations: 10.72 kB / 0.5222 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.346e-05/0.306, allocations: 0.9375 kB / 0.5222 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.825e-05/0.306, allocations: 167.6 kB / 0.5224 GB, free: 34.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.3061, allocations: 4.375 kB / 0.5224 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.3061, allocations: 4.125 kB / 0.5224 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.473e-05/0.3062, allocations: 32.58 kB / 0.5224 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.3062, allocations: 0 / 0.5224 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-06/0.3062, allocations: 2.469 kB / 0.5224 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.3062, allocations: 0 / 0.5224 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.334e-05/0.3062, allocations: 0 / 0.5224 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.571e-05/0.3063, allocations: 151.8 kB / 0.5226 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.487e-05/0.3063, allocations: 22.56 kB / 0.5226 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.137e-05/0.3063, allocations: 11.08 kB / 0.5226 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.953e-06/0.3063, allocations: 0 / 0.5226 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.3064, allocations: 58.92 kB / 0.5227 GB, free: 34.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3064, allocations: 3.938 kB / 0.5227 GB, free: 34 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001209/0.3065, allocations: 64.19 kB / 0.5227 GB, free: 33.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.977e-05/0.3065, allocations: 80.11 kB / 0.5228 GB, free: 33.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.16e-05/0.3066, allocations: 93.86 kB / 0.5229 GB, free: 33.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.131e-06/0.3066, allocations: 25.7 kB / 0.5229 GB, free: 33.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.616e-06/0.3066, allocations: 80.14 kB / 0.523 GB, free: 33.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.146e-05/0.3066, allocations: 0 / 0.523 GB, free: 33.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.593e-06/0.3066, allocations: 0 / 0.523 GB, free: 33.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.113e-05/0.3067, allocations: 321 kB / 0.5233 GB, free: 33.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.893e-06/0.3067, allocations: 0 / 0.5233 GB, free: 33.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.897e-06/0.3067, allocations: 0 / 0.5233 GB, free: 33.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.008e-05/0.3067, allocations: 69.58 kB / 0.5234 GB, free: 33.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.3067, allocations: 0 / 0.5234 GB, free: 33.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.604e-05/0.3068, allocations: 64.06 kB / 0.5234 GB, free: 33.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.3068, allocations: 34.08 kB / 0.5235 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.3068, allocations: 4 kB / 0.5235 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.3068, allocations: 2.5 kB / 0.5235 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.3068, allocations: 0 / 0.5235 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/0.3068, allocations: 3.984 kB / 0.5235 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.265e-05/0.3069, allocations: 0 / 0.5235 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.3069, allocations: 7.969 kB / 0.5235 GB, free: 33.12 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.515e-05/0.3069, allocations: 142.2 kB / 0.5236 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.066e-06/0.3069, allocations: 6.406 kB / 0.5236 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.143e-06/0.3069, allocations: 7.062 kB / 0.5236 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-06/0.307, allocations: 0 / 0.5236 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.307, allocations: 0 / 0.5236 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.363e-05/0.307, allocations: 77.11 kB / 0.5237 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.047e-05/0.307, allocations: 2.938 kB / 0.5237 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.444e-06/0.307, allocations: 0 / 0.5237 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.33e-05/0.307, allocations: 4 kB / 0.5237 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 6.789e-05/0.3071, allocations: 201.4 kB / 0.5239 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.209e-05/0.3072, allocations: 236.9 kB / 0.5241 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.225e-05/0.3072, allocations: 0 / 0.5241 GB, free: 32.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.14e-05/0.3072, allocations: 75.28 kB / 0.5242 GB, free: 32.34 MB / 378.7 MB Notification: Performance of Backend: time 1.9e-07/0.3072, allocations: 7 kB / 0.5242 GB, free: 32.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.3085, allocations: 441.8 kB / 0.5246 GB, free: 32.15 MB / 378.7 MB Notification: Performance of SimCode: time 0.0001924/0.3087, allocations: 0.6032 MB / 0.5252 GB, free: 31.49 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!