Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009881/0.0009881, allocations: 192.4 kB / 16.76 MB, free: 4.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 226.5 MB / 244.1 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007382/0.0007383, allocations: 98.25 kB / 296.1 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3402/0.3402, allocations: 44.82 MB / 392.9 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002654/0.0002655, allocations: 8 kB / 465.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3213, allocations: 62.97 MB / 0.5165 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.000573/0.3219, allocations: 218.8 kB / 0.5167 GB, free: 36.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000879/0.3228, allocations: 0.7336 MB / 0.5174 GB, free: 36.35 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.183e-05/0.3228, allocations: 0 / 0.5174 GB, free: 36.35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.088e-05/0.3229, allocations: 0 / 0.5174 GB, free: 36.35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.323, allocations: 13.78 kB / 0.5174 GB, free: 36.34 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.ReadFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005742/0.3236, allocations: 41.7 kB / 0.5175 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.08e-05/0.3237, allocations: 2.75 kB / 0.5175 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.601e-05/0.3237, allocations: 8 kB / 0.5175 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.229e-05/0.3238, allocations: 0 / 0.5175 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.988e-05/0.3238, allocations: 2.906 kB / 0.5175 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.317e-06/0.3239, allocations: 7.938 kB / 0.5175 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.324, allocations: 51.34 kB / 0.5175 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.618e-06/0.324, allocations: 0 / 0.5175 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.235e-05/0.324, allocations: 32.41 kB / 0.5176 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001004/0.3241, allocations: 29.31 kB / 0.5176 GB, free: 36.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3242, allocations: 0 / 0.5176 GB, free: 36.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3242, allocations: 0 / 0.5176 GB, free: 36.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.3242, allocations: 3.031 kB / 0.5176 GB, free: 36.25 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.0003127/0.3245, allocations: 350.2 kB / 0.5179 GB, free: 35.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3245, allocations: 12.27 kB / 0.518 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.3246, allocations: 4.938 kB / 0.518 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.033e-05/0.3247, allocations: 160.4 kB / 0.5181 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.3247, allocations: 384 / 0.5181 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.3247, allocations: 3.25 kB / 0.5181 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.753e-05/0.3248, allocations: 30.2 kB / 0.5181 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.3248, allocations: 2.781 kB / 0.5181 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.3248, allocations: 3.938 kB / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3249, allocations: 0 / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.647e-05/0.3249, allocations: 7.281 kB / 0.5182 GB, free: 35.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001046/0.325, allocations: 153.1 kB / 0.5183 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.342e-05/0.325, allocations: 17.05 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.143e-05/0.325, allocations: 4.859 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.819e-06/0.3251, allocations: 7.219 kB / 0.5183 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/0.3251, allocations: 66.73 kB / 0.5184 GB, free: 35.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.223e-06/0.3251, allocations: 3.938 kB / 0.5184 GB, free: 35.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001591/0.3253, allocations: 66.97 kB / 0.5185 GB, free: 35.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.3253, allocations: 80.48 kB / 0.5185 GB, free: 35.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.867e-05/0.3254, allocations: 92.36 kB / 0.5186 GB, free: 35.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.3254, allocations: 25.7 kB / 0.5187 GB, free: 35.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.861e-05/0.3254, allocations: 84.14 kB / 0.5187 GB, free: 34.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.54e-05/0.3254, allocations: 2.531 kB / 0.5187 GB, free: 34.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-06/0.3254, allocations: 0 / 0.5187 GB, free: 34.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.958e-05/0.3255, allocations: 314.8 kB / 0.519 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.604e-06/0.3255, allocations: 4.25 kB / 0.519 GB, free: 34.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.09e-06/0.3255, allocations: 2.469 kB / 0.519 GB, free: 34.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.357e-05/0.3256, allocations: 66.17 kB / 0.5191 GB, free: 34.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3256, allocations: 0 / 0.5191 GB, free: 34.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.331e-05/0.3256, allocations: 63.03 kB / 0.5192 GB, free: 34.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.3257, allocations: 30.73 kB / 0.5192 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3257, allocations: 5.781 kB / 0.5192 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.3257, allocations: 3.938 kB / 0.5192 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.3257, allocations: 96 / 0.5192 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.3257, allocations: 4 kB / 0.5192 GB, free: 34.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.644e-05/0.3257, allocations: 0 / 0.5192 GB, free: 34.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.3258, allocations: 2.688 kB / 0.5192 GB, free: 34.42 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.464e-05/0.3258, allocations: 134.1 kB / 0.5193 GB, free: 34.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-06/0.3258, allocations: 0 / 0.5193 GB, free: 34.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.849e-06/0.3259, allocations: 10.66 kB / 0.5193 GB, free: 34.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3259, allocations: 3.328 kB / 0.5194 GB, free: 34.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.3259, allocations: 3.781 kB / 0.5194 GB, free: 34.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.984e-05/0.3259, allocations: 77.11 kB / 0.5194 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.3259, allocations: 7.938 kB / 0.5194 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-06/0.3259, allocations: 0 / 0.5194 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.181e-05/0.326, allocations: 0 / 0.5194 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001124/0.3261, allocations: 196.8 kB / 0.5196 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001102/0.3262, allocations: 243 kB / 0.5199 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.826e-05/0.3262, allocations: 10.91 kB / 0.5199 GB, free: 33.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.923e-05/0.3263, allocations: 75.28 kB / 0.5199 GB, free: 33.64 MB / 378.7 MB Notification: Performance of Backend: time 1.8e-07/0.3263, allocations: 0 / 0.5199 GB, free: 33.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006505/0.3269, allocations: 237.6 kB / 0.5202 GB, free: 33.48 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002659/0.3272, allocations: 0.5997 MB / 0.5207 GB, free: 32.82 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 file 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: file (no alias) initial: "/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Resources/Data/ReadStreamTestFile.txt" no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for result found! Error: Internal error GetVarIndexListByMapping: No Element for file found!