Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices3") translateModel(ModelicaTest.Math.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008898/0.0008898, allocations: 178.9 kB / 17.39 MB, free: 4.391 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.581/1.581, allocations: 205.4 MB / 223.5 MB, free: 9.008 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.0007073/0.0007073, allocations: 100.9 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.3212/0.3212, allocations: 43.55 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.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1237, allocations: 58.86 MB / 491.5 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.0006694/0.1245, allocations: 232.3 kB / 491.7 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.1264, allocations: 1.491 MB / 493.2 MB, free: 9.168 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.596e-05/0.1265, allocations: 0 / 493.2 MB, free: 9.168 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.09e-05/0.1265, allocations: 0 / 493.2 MB, free: 9.168 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.945e-06/0.1265, allocations: 4 kB / 493.2 MB, free: 9.164 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007934/0.1273, allocations: 207.6 kB / 493.4 MB, free: 8.961 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.166e-05/0.1273, allocations: 0 / 493.4 MB, free: 8.961 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.139e-05/0.1274, allocations: 0 / 493.4 MB, free: 8.961 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.821e-05/0.1274, allocations: 3.984 kB / 493.4 MB, free: 8.957 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.068e-05/0.1274, allocations: 0 / 493.4 MB, free: 8.957 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.74e-06/0.1274, allocations: 3.938 kB / 493.4 MB, free: 8.953 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008599/0.1283, allocations: 0.6714 MB / 494.1 MB, free: 8.277 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.167e-06/0.1283, allocations: 3.984 kB / 494.1 MB, free: 8.273 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.709e-05/0.1284, allocations: 25.7 kB / 494.1 MB, free: 8.242 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004141/0.1288, allocations: 451.3 kB / 494.6 MB, free: 7.801 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1288, allocations: 0 / 494.6 MB, free: 7.801 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1288, allocations: 0 / 494.6 MB, free: 7.801 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.1288, allocations: 0 / 494.6 MB, free: 7.801 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.0004308/0.1293, allocations: 357.2 kB / 494.9 MB, free: 7.398 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.1293, allocations: 8.031 kB / 494.9 MB, free: 7.391 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.31e-05/0.1294, allocations: 0.9375 kB / 494.9 MB, free: 7.391 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.674e-05/0.1295, allocations: 168.4 kB / 495.1 MB, free: 7.188 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.1295, allocations: 384 / 495.1 MB, free: 7.188 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.897e-06/0.1295, allocations: 8.312 kB / 495.1 MB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.339e-05/0.1296, allocations: 34.02 kB / 495.1 MB, free: 7.141 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1296, allocations: 3.938 kB / 495.1 MB, free: 7.137 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.1296, allocations: 0 / 495.1 MB, free: 7.137 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1296, allocations: 0 / 495.1 MB, free: 7.137 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.067e-05/0.1297, allocations: 7.984 kB / 495.1 MB, free: 7.129 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001163/0.1298, allocations: 141.7 kB / 495.3 MB, free: 6.941 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.51e-05/0.1298, allocations: 18.58 kB / 495.3 MB, free: 6.914 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.272e-05/0.1298, allocations: 8.953 kB / 495.3 MB, free: 6.902 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.993e-06/0.1299, allocations: 0 / 495.3 MB, free: 6.902 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.1299, allocations: 64.2 kB / 495.4 MB, free: 6.824 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 3.476e-06/0.1299, allocations: 0 / 495.4 MB, free: 6.824 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001673/0.1301, allocations: 71.23 kB / 495.4 MB, free: 6.742 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.1301, allocations: 81.23 kB / 495.5 MB, free: 6.645 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.712e-05/0.1302, allocations: 89.86 kB / 495.6 MB, free: 6.547 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.1302, allocations: 25.7 kB / 495.6 MB, free: 6.516 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.772e-05/0.1302, allocations: 84.14 kB / 495.7 MB, free: 6.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.1303, allocations: 0 / 495.7 MB, free: 6.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.954e-06/0.1303, allocations: 0 / 495.7 MB, free: 6.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.907e-05/0.1304, allocations: 314.8 kB / 496 MB, free: 6.113 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.011e-05/0.1304, allocations: 3.984 kB / 496 MB, free: 6.109 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.429e-06/0.1304, allocations: 0 / 496 MB, free: 6.109 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.959e-05/0.1305, allocations: 68.27 kB / 496.1 MB, free: 6.027 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1305, allocations: 3.938 kB / 496.1 MB, free: 6.023 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.402e-05/0.1305, allocations: 63.41 kB / 496.1 MB, free: 5.949 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.1306, allocations: 32.83 kB / 496.2 MB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.1306, allocations: 11.91 kB / 496.2 MB, free: 5.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1306, allocations: 4 kB / 496.2 MB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.91e-07/0.1306, allocations: 0 / 496.2 MB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1306, allocations: 0 / 496.2 MB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.764e-05/0.1306, allocations: 4 kB / 496.2 MB, free: 5.895 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.1307, allocations: 4.031 kB / 496.2 MB, free: 5.891 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.787e-05/0.1308, allocations: 135.5 kB / 496.3 MB, free: 5.742 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.402e-06/0.1308, allocations: 0 / 496.3 MB, free: 5.742 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.182e-05/0.1308, allocations: 7.062 kB / 496.3 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1308, allocations: 0 / 496.3 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1308, allocations: 3.938 kB / 496.3 MB, free: 5.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.327e-05/0.1308, allocations: 81.09 kB / 496.4 MB, free: 5.633 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.1309, allocations: 4 kB / 496.4 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-06/0.1309, allocations: 0 / 496.4 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.418e-05/0.1309, allocations: 4 kB / 496.4 MB, free: 5.625 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001083/0.131, allocations: 194 kB / 496.6 MB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001245/0.1311, allocations: 240.5 kB / 496.9 MB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.351e-05/0.1312, allocations: 0 / 496.9 MB, free: 5.152 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.388e-05/0.1312, allocations: 79.28 kB / 496.9 MB, free: 5.074 MB / 378.7 MB Notification: Performance of Backend: time 1.473e-06/0.1312, allocations: 4.062 kB / 496.9 MB, free: 5.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009166/0.1321, allocations: 201.6 kB / 497.1 MB, free: 4.855 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003587/0.1325, allocations: 0.6105 MB / 497.7 MB, free: 4.184 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!