Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles.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.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 194.8 kB / 16.75 MB, free: 4.934 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 226.5 MB / 244 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007677/0.0007677, allocations: 107 kB / 296.1 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3097/0.3097, allocations: 44.82 MB / 392.9 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000304/0.0003043, allocations: 8 kB / 465.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3471, allocations: 62.96 MB / 0.5165 GB, free: 36.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.000533/0.3477, allocations: 219.7 kB / 0.5167 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001433/0.3491, allocations: 1.191 MB / 0.5179 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.166e-05/0.3492, allocations: 0 / 0.5179 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.153e-05/0.3492, allocations: 4 kB / 0.5179 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.3493, allocations: 14.94 kB / 0.5179 GB, free: 35.9 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007129/0.3501, allocations: 187.8 kB / 0.5181 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.968e-05/0.3501, allocations: 6.75 kB / 0.5181 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.913e-05/0.3501, allocations: 0 / 0.5181 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.96e-05/0.3502, allocations: 10.73 kB / 0.5181 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.717e-05/0.3502, allocations: 9.594 kB / 0.5181 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.174e-06/0.3503, allocations: 3.938 kB / 0.5181 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001322/0.3516, allocations: 0.5735 MB / 0.5187 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.867e-06/0.3516, allocations: 0 / 0.5187 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.641e-05/0.3516, allocations: 32.67 kB / 0.5187 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001618/0.3518, allocations: 119.1 kB / 0.5188 GB, free: 35.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3518, allocations: 0 / 0.5188 GB, free: 35.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3518, allocations: 0 / 0.5188 GB, free: 35.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.3518, allocations: 0 / 0.5188 GB, free: 35.57 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.0002924/0.3521, allocations: 391.2 kB / 0.5192 GB, free: 35.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.3522, allocations: 8.906 kB / 0.5192 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.866e-05/0.3522, allocations: 0.9375 kB / 0.5192 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.289e-05/0.3523, allocations: 164.8 kB / 0.5193 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.3523, allocations: 384 / 0.5193 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.3523, allocations: 384 / 0.5193 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.686e-05/0.3524, allocations: 35.95 kB / 0.5194 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.3524, allocations: 0 / 0.5194 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-06/0.3525, allocations: 2.844 kB / 0.5194 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.3525, allocations: 4 kB / 0.5194 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.741e-05/0.3525, allocations: 7.938 kB / 0.5194 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001021/0.3526, allocations: 148.2 kB / 0.5195 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.168e-05/0.3526, allocations: 21.36 kB / 0.5195 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.387e-05/0.3527, allocations: 4.859 kB / 0.5196 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.3527, allocations: 0 / 0.5196 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.3527, allocations: 70.98 kB / 0.5196 GB, free: 34.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.034e-06/0.3527, allocations: 7.984 kB / 0.5196 GB, free: 34.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001598/0.3529, allocations: 63.52 kB / 0.5197 GB, free: 34.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.448e-05/0.3529, allocations: 81.05 kB / 0.5198 GB, free: 34.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.747e-05/0.353, allocations: 96.58 kB / 0.5199 GB, free: 34.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.273e-06/0.353, allocations: 25.7 kB / 0.5199 GB, free: 34.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.687e-05/0.353, allocations: 86.45 kB / 0.52 GB, free: 34.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.313e-05/0.353, allocations: 0 / 0.52 GB, free: 34.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.944e-06/0.353, allocations: 256 / 0.52 GB, free: 34.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.06e-05/0.3531, allocations: 314.8 kB / 0.5203 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.887e-06/0.3531, allocations: 2.938 kB / 0.5203 GB, free: 33.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.35e-06/0.3531, allocations: 0 / 0.5203 GB, free: 33.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.243e-05/0.3532, allocations: 66.92 kB / 0.5203 GB, free: 33.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.3532, allocations: 0 / 0.5203 GB, free: 33.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.642e-05/0.3532, allocations: 69.3 kB / 0.5204 GB, free: 33.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.3533, allocations: 36.33 kB / 0.5204 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.3533, allocations: 3.062 kB / 0.5204 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.3533, allocations: 4.094 kB / 0.5204 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.3533, allocations: 0 / 0.5204 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.3533, allocations: 0 / 0.5204 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.391e-05/0.3533, allocations: 0 / 0.5204 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.3533, allocations: 2.781 kB / 0.5204 GB, free: 33.73 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 6.691e-05/0.3534, allocations: 134.9 kB / 0.5206 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-06/0.3534, allocations: 6.906 kB / 0.5206 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.386e-06/0.3534, allocations: 6.719 kB / 0.5206 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3534, allocations: 0 / 0.5206 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.3534, allocations: 4 kB / 0.5206 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.355e-05/0.3535, allocations: 81.11 kB / 0.5207 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.3535, allocations: 6.266 kB / 0.5207 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-06/0.3535, allocations: 0 / 0.5207 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.78e-05/0.3535, allocations: 0 / 0.5207 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.374e-05/0.3536, allocations: 193.4 kB / 0.5209 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001039/0.3537, allocations: 247.4 kB / 0.5211 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.718e-05/0.3538, allocations: 10.09 kB / 0.5211 GB, free: 33.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.552e-05/0.3538, allocations: 77.97 kB / 0.5212 GB, free: 32.95 MB / 378.7 MB Notification: Performance of Backend: time 2.41e-07/0.3538, allocations: 0 / 0.5212 GB, free: 32.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007886/0.3546, allocations: 369.1 kB / 0.5215 GB, free: 32.73 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002398/0.3548, allocations: 0.6067 MB / 0.5221 GB, free: 32.07 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 trunk/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 trunk/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!