Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.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.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001448/0.001448, allocations: 179.2 kB / 17.39 MB, free: 4.301 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.403/1.403, allocations: 205.4 MB / 223.5 MB, free: 9.027 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.0007635/0.0007635, allocations: 93.34 kB / 271.9 MB, free: 8.254 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.3261/0.3261, allocations: 43.55 MB / 363.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003617, allocations: 16 kB / 432.6 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1137, allocations: 58.85 MB / 491.5 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0006587/0.1144, allocations: 224.4 kB / 491.7 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002073/0.1165, allocations: 1.206 MB / 492.9 MB, free: 9.477 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.269e-05/0.1166, allocations: 0 / 492.9 MB, free: 9.477 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.481e-05/0.1166, allocations: 0 / 492.9 MB, free: 9.477 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.1168, allocations: 0 / 492.9 MB, free: 9.477 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009678/0.1178, allocations: 187.6 kB / 493.1 MB, free: 9.293 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.35e-05/0.1178, allocations: 15.94 kB / 493.1 MB, free: 9.277 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.623e-05/0.1179, allocations: 0 / 493.1 MB, free: 9.277 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.219e-05/0.1179, allocations: 3.984 kB / 493.1 MB, free: 9.273 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.511e-05/0.118, allocations: 8 kB / 493.1 MB, free: 9.266 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.195e-06/0.118, allocations: 3.938 kB / 493.1 MB, free: 9.262 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001678/0.1197, allocations: 0.5921 MB / 493.7 MB, free: 8.707 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.026e-05/0.1197, allocations: 0 / 493.7 MB, free: 8.707 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.164e-05/0.1198, allocations: 29.69 kB / 493.7 MB, free: 8.672 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002379/0.12, allocations: 119.7 kB / 493.8 MB, free: 8.555 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.12, allocations: 4 kB / 493.9 MB, free: 8.551 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.12, allocations: 0 / 493.9 MB, free: 8.551 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.12, allocations: 4 kB / 493.9 MB, free: 8.547 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.0004418/0.1205, allocations: 381.4 kB / 494.2 MB, free: 8.121 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.1206, allocations: 11.97 kB / 494.2 MB, free: 8.109 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.1206, allocations: 4.938 kB / 494.2 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.1207, allocations: 168.4 kB / 494.4 MB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.1208, allocations: 384 / 494.4 MB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.1208, allocations: 4.359 kB / 494.4 MB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.882e-05/0.1209, allocations: 37.77 kB / 494.5 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.1209, allocations: 0 / 494.5 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.1209, allocations: 0 / 494.5 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1209, allocations: 0 / 494.5 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.005e-05/0.1209, allocations: 7.984 kB / 494.5 MB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.1211, allocations: 145.7 kB / 494.6 MB, free: 7.656 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.848e-05/0.1211, allocations: 22.61 kB / 494.6 MB, free: 7.625 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.485e-05/0.1212, allocations: 4.859 kB / 494.6 MB, free: 7.617 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.829e-06/0.1212, allocations: 3.938 kB / 494.6 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.175e-05/0.1212, allocations: 68.12 kB / 494.7 MB, free: 7.531 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.223e-06/0.1212, allocations: 0 / 494.7 MB, free: 7.531 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001783/0.1214, allocations: 63.47 kB / 494.8 MB, free: 7.457 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.1215, allocations: 85.23 kB / 494.8 MB, free: 7.355 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.865e-05/0.1216, allocations: 97.84 kB / 494.9 MB, free: 7.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.1216, allocations: 25.7 kB / 495 MB, free: 7.219 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.16e-05/0.1216, allocations: 80.14 kB / 495 MB, free: 7.137 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.1217, allocations: 0 / 495 MB, free: 7.137 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-06/0.1217, allocations: 0 / 495 MB, free: 7.137 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1218, allocations: 310.8 kB / 495.3 MB, free: 6.824 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.142e-05/0.1218, allocations: 4 kB / 495.4 MB, free: 6.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.596e-06/0.1218, allocations: 8.125 kB / 495.4 MB, free: 6.812 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.923e-05/0.1219, allocations: 64.2 kB / 495.4 MB, free: 6.734 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1219, allocations: 0 / 495.4 MB, free: 6.734 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.552e-05/0.122, allocations: 63.39 kB / 495.5 MB, free: 6.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/0.122, allocations: 33.64 kB / 495.5 MB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.122, allocations: 0 / 495.5 MB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.122, allocations: 0 / 495.5 MB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.575e-06/0.122, allocations: 4 kB / 495.5 MB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.1221, allocations: 3.984 kB / 495.5 MB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.867e-05/0.1221, allocations: 8 kB / 495.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.1221, allocations: 0 / 495.5 MB, free: 6.605 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 8.679e-05/0.1222, allocations: 147.5 kB / 495.7 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.808e-06/0.1222, allocations: 3.938 kB / 495.7 MB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.163e-05/0.1222, allocations: 3.125 kB / 495.7 MB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1222, allocations: 0 / 495.7 MB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1222, allocations: 0 / 495.7 MB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.342e-05/0.1223, allocations: 81.05 kB / 495.8 MB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.1223, allocations: 4 kB / 495.8 MB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.628e-06/0.1223, allocations: 4 kB / 495.8 MB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.041e-05/0.1223, allocations: 0 / 495.8 MB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001343/0.1225, allocations: 202.1 kB / 496 MB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001582/0.1226, allocations: 240.5 kB / 496.2 MB, free: 5.852 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.639e-05/0.1227, allocations: 3.938 kB / 496.2 MB, free: 5.848 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.978e-05/0.1227, allocations: 83.34 kB / 496.3 MB, free: 5.766 MB / 378.7 MB Notification: Performance of Backend: time 5.71e-07/0.1227, allocations: 0 / 496.3 MB, free: 5.766 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009384/0.1237, allocations: 358.4 kB / 496.6 MB, free: 5.414 MB / 378.7 MB Notification: Performance of SimCode: time 0.0004194/0.1241, allocations: 0.6143 MB / 497.3 MB, free: 4.73 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 dirPath 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: dirPath (no alias) initial: "/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data" no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for filePath 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:1: filePath (no alias) initial: "/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/ReadStreamTestFile.txt" no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for result found! Error: Internal error GetVarIndexListByMapping: No Element for dirPath found! Error: Internal error GetVarIndexListByMapping: No Element for filePath found!