Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices.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.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001495, allocations: 177.8 kB / 17.39 MB, free: 4.27 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.401/1.401, allocations: 205.4 MB / 223.5 MB, free: 9.02 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.0007115/0.0007116, allocations: 90.36 kB / 271.9 MB, free: 8.246 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.3307/0.3307, allocations: 43.56 MB / 363.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003751/0.0003751, allocations: 12 kB / 432.6 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1318, allocations: 58.85 MB / 491.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0006797/0.1326, allocations: 228.3 kB / 491.7 MB, free: 10.67 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00194/0.1345, allocations: 1.537 MB / 493.2 MB, free: 9.121 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.719e-05/0.1345, allocations: 0 / 493.2 MB, free: 9.121 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.458e-05/0.1346, allocations: 0 / 493.2 MB, free: 9.121 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.043e-06/0.1346, allocations: 0 / 493.2 MB, free: 9.121 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007541/0.1353, allocations: 247.5 kB / 493.5 MB, free: 8.879 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.217e-05/0.1354, allocations: 7.938 kB / 493.5 MB, free: 8.871 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.87e-05/0.1354, allocations: 0 / 493.5 MB, free: 8.871 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.645e-05/0.1355, allocations: 0 / 493.5 MB, free: 8.871 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.399e-05/0.1355, allocations: 0 / 493.5 MB, free: 8.871 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.43e-06/0.1355, allocations: 3.938 kB / 493.5 MB, free: 8.867 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006076/0.1361, allocations: 447 kB / 493.9 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.1361, allocations: 0 / 493.9 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.098e-05/0.1362, allocations: 25.7 kB / 493.9 MB, free: 8.398 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002757/0.1364, allocations: 207.7 kB / 494.2 MB, free: 8.195 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.1365, allocations: 7.938 kB / 494.2 MB, free: 8.188 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1365, allocations: 0 / 494.2 MB, free: 8.188 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.1365, allocations: 0 / 494.2 MB, free: 8.188 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.0003555/0.1368, allocations: 377.1 kB / 494.5 MB, free: 7.766 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.1369, allocations: 8.031 kB / 494.5 MB, free: 7.758 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.834e-05/0.1369, allocations: 8.938 kB / 494.5 MB, free: 7.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.057e-05/0.137, allocations: 160.4 kB / 494.7 MB, free: 7.555 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.137, allocations: 4.375 kB / 494.7 MB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.1371, allocations: 384 / 494.7 MB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.299e-05/0.1372, allocations: 30.02 kB / 494.7 MB, free: 7.516 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1372, allocations: 3.938 kB / 494.7 MB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.1372, allocations: 7.984 kB / 494.7 MB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.1372, allocations: 0 / 494.7 MB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.555e-05/0.1372, allocations: 0 / 494.7 MB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001358/0.1374, allocations: 149.7 kB / 494.9 MB, free: 7.309 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.452e-05/0.1374, allocations: 18.61 kB / 494.9 MB, free: 7.281 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.277e-05/0.1374, allocations: 4.859 kB / 494.9 MB, free: 7.273 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-06/0.1374, allocations: 0 / 494.9 MB, free: 7.273 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.6e-05/0.1375, allocations: 60.27 kB / 495 MB, free: 7.199 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1375, allocations: 4 kB / 495 MB, free: 7.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001594/0.1377, allocations: 67.42 kB / 495 MB, free: 7.117 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.1377, allocations: 85.14 kB / 495.1 MB, free: 7.016 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.558e-05/0.1378, allocations: 89.86 kB / 495.2 MB, free: 6.918 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.1378, allocations: 25.7 kB / 495.2 MB, free: 6.887 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.397e-05/0.1378, allocations: 80.14 kB / 495.3 MB, free: 6.805 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.1378, allocations: 0 / 495.3 MB, free: 6.805 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.144e-06/0.1378, allocations: 0 / 495.3 MB, free: 6.805 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.138, allocations: 314.8 kB / 495.6 MB, free: 6.488 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.017e-06/0.138, allocations: 4 kB / 495.6 MB, free: 6.484 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.222e-06/0.138, allocations: 4 kB / 495.6 MB, free: 6.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.122e-05/0.138, allocations: 72.14 kB / 495.7 MB, free: 6.395 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.138, allocations: 0 / 495.7 MB, free: 6.395 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.673e-05/0.1381, allocations: 55.41 kB / 495.8 MB, free: 6.328 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.1382, allocations: 44.91 kB / 495.8 MB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.1382, allocations: 3.938 kB / 495.8 MB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.1382, allocations: 0 / 495.8 MB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.1382, allocations: 0 / 495.8 MB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.1382, allocations: 0 / 495.8 MB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.535e-05/0.1382, allocations: 4.094 kB / 495.8 MB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.737e-06/0.1383, allocations: 4 kB / 495.8 MB, free: 6.27 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.887e-05/0.1383, allocations: 131.5 kB / 495.9 MB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-06/0.1383, allocations: 0 / 495.9 MB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.553e-05/0.1384, allocations: 15.05 kB / 496 MB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1384, allocations: 0 / 496 MB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1384, allocations: 0 / 496 MB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.282e-05/0.1384, allocations: 85.09 kB / 496 MB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.133e-05/0.1384, allocations: 0 / 496 MB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-06/0.1384, allocations: 4 kB / 496 MB, free: 6.004 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.53e-05/0.1385, allocations: 4 kB / 496 MB, free: 6 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001244/0.1386, allocations: 194 kB / 496.2 MB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001735/0.1388, allocations: 236.5 kB / 496.5 MB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.032e-05/0.1388, allocations: 7.984 kB / 496.5 MB, free: 5.523 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.487e-05/0.1388, allocations: 79.34 kB / 496.6 MB, free: 5.445 MB / 378.7 MB Notification: Performance of Backend: time 1.8e-07/0.1388, allocations: 0 / 496.6 MB, free: 5.445 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007063/0.1396, allocations: 217.9 kB / 496.8 MB, free: 5.215 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003753/0.1399, allocations: 0.6065 MB / 497.4 MB, free: 4.543 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!