Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.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.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001631/0.001631, allocations: 191.8 kB / 16.75 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 226.5 MB / 244 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007576/0.0007577, allocations: 100.2 kB / 296.1 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2967/0.2967, allocations: 44.81 MB / 392.9 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.0003078, allocations: 8 kB / 465.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2929, allocations: 62.97 MB / 0.5165 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0005267/0.2935, allocations: 259.9 kB / 0.5168 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006332/0.2941, allocations: 408.2 kB / 0.5171 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.2942, allocations: 3.938 kB / 0.5171 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 6.875e-05/0.2942, allocations: 2.781 kB / 0.5171 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.2944, allocations: 11.12 kB / 0.5172 GB, free: 36.84 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.2948, allocations: 146.1 kB / 0.5173 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.2949, allocations: 63.69 kB / 0.5174 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.974e-05/0.295, allocations: 2.812 kB / 0.5174 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.848e-05/0.295, allocations: 42.47 kB / 0.5174 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.227e-05/0.2951, allocations: 25.09 kB / 0.5174 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.2951, allocations: 2.875 kB / 0.5174 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.2953, allocations: 88.48 kB / 0.5175 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.504e-05/0.2953, allocations: 20.94 kB / 0.5175 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.165e-05/0.2954, allocations: 52.77 kB / 0.5176 GB, free: 36.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.2955, allocations: 86.33 kB / 0.5177 GB, free: 36.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2955, allocations: 4 kB / 0.5177 GB, free: 36.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2956, allocations: 3.938 kB / 0.5177 GB, free: 36.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.2956, allocations: 0 / 0.5177 GB, free: 36.62 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004059/0.296, allocations: 373.5 kB / 0.518 GB, free: 36.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.296, allocations: 9.594 kB / 0.518 GB, free: 36.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.138e-05/0.2961, allocations: 7.656 kB / 0.518 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.2962, allocations: 182.4 kB / 0.5182 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.2962, allocations: 3.281 kB / 0.5182 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.406e-05/0.2963, allocations: 7.406 kB / 0.5182 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/0.2964, allocations: 89.92 kB / 0.5183 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.2965, allocations: 192 / 0.5183 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.2965, allocations: 10.72 kB / 0.5183 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2965, allocations: 4 kB / 0.5183 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.689e-05/0.2966, allocations: 24.7 kB / 0.5184 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001394/0.2967, allocations: 165.3 kB / 0.5185 GB, free: 35.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.349e-05/0.2968, allocations: 42.78 kB / 0.5186 GB, free: 35.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.317e-05/0.2968, allocations: 28 kB / 0.5186 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.2969, allocations: 0 / 0.5186 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002171/0.2971, allocations: 132.4 kB / 0.5187 GB, free: 35.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.2971, allocations: 0 / 0.5187 GB, free: 35.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002578/0.2974, allocations: 131.9 kB / 0.5188 GB, free: 35.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.346e-05/0.2974, allocations: 61.33 kB / 0.5189 GB, free: 35.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.355e-05/0.2974, allocations: 100.1 kB / 0.519 GB, free: 35.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.2975, allocations: 28.73 kB / 0.519 GB, free: 35.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.918e-05/0.2975, allocations: 80.14 kB / 0.5191 GB, free: 35.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/0.2975, allocations: 27.61 kB / 0.5191 GB, free: 35.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.2975, allocations: 2.781 kB / 0.5191 GB, free: 35.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.05e-05/0.2976, allocations: 318.8 kB / 0.5194 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.388e-05/0.2976, allocations: 26.95 kB / 0.5194 GB, free: 34.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.848e-05/0.2977, allocations: 72.94 kB / 0.5195 GB, free: 34.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.2979, allocations: 145.9 kB / 0.5197 GB, free: 34.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2979, allocations: 3.938 kB / 0.5197 GB, free: 34.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001808/0.2981, allocations: 166.7 kB / 0.5198 GB, free: 34.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.2981, allocations: 38.23 kB / 0.5199 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.2981, allocations: 2.969 kB / 0.5199 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.2981, allocations: 2.875 kB / 0.5199 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.941e-05/0.2982, allocations: 19.52 kB / 0.5199 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.2982, allocations: 2.844 kB / 0.5199 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.531e-05/0.2983, allocations: 3 kB / 0.5199 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.2983, allocations: 9.938 kB / 0.5199 GB, free: 34.6 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 0.0001168/0.2984, allocations: 130 kB / 0.52 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/0.2985, allocations: 11.09 kB / 0.52 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.029e-05/0.2985, allocations: 11.95 kB / 0.52 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2985, allocations: 0 / 0.52 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2985, allocations: 0 / 0.52 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.928e-05/0.2986, allocations: 86.5 kB / 0.5201 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.2986, allocations: 2.906 kB / 0.5201 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.2988, allocations: 31.23 kB / 0.5202 GB, free: 34.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.574e-05/0.2988, allocations: 6.828 kB / 0.5202 GB, free: 34.35 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001595/0.299, allocations: 174.4 kB / 0.5203 GB, free: 34.23 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001695/0.2992, allocations: 283.7 kB / 0.5206 GB, free: 33.99 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.448e-05/0.2992, allocations: 25.91 kB / 0.5206 GB, free: 33.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.159e-05/0.2992, allocations: 81.55 kB / 0.5207 GB, free: 33.91 MB / 378.7 MB Notification: Performance of Backend: time 3.5e-07/0.2993, allocations: 7.875 kB / 0.5207 GB, free: 33.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006292/0.2999, allocations: 259.7 kB / 0.521 GB, free: 33.73 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003002/0.3002, allocations: 0.5926 MB / 0.5215 GB, free: 33.11 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for avg 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: avg (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for highBound 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: highBound (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for lowBound 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:2: lowBound (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for nrSigma 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: nrSigma (no alias) initial: 3.0 no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for cnt 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: cnt[1] (no alias) initial: 0 arrCref:cnt index:(5) [3] Error: Internal error GetVarIndexListByMapping: No Element for cnt 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: cnt[2] (no alias) initial: 0 no arrCref index:(6) [3] Error: Internal error GetVarIndexListByMapping: No Element for cnt 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:2: cnt[3] (no alias) initial: 0 no arrCref index:(7) [3] Error: Internal error GetVarIndexListByMapping: No Element for samples 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:3: samples (no alias) initial: 0 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for y 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:4: y (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for id 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: id (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for n 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: n (no alias) initial: 3 no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 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: $whenCondition1 (no alias) protected hideResult initial: no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition2 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: $whenCondition2 (no alias) protected hideResult initial: no arrCref index:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for cnt found! Error: Internal error GetVarIndexListByMapping: No Element for avg found! Error: Internal error GetVarIndexListByMapping: No Element for highBound found! Error: Internal error GetVarIndexListByMapping: No Element for lowBound found! Error: Internal error GetVarIndexListByMapping: No Element for samples found! Error: Internal error GetVarIndexListByMapping: No Element for y found! Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 found! Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition2 found! Error: Internal error GetVarIndexListByMapping: No Element for nrSigma found! Error: Internal error GetVarIndexListByMapping: No Element for id found! Error: Internal error GetVarIndexListByMapping: No Element for n found!