Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001172/0.001172, allocations: 199.9 kB / 16.76 MB, free: 5.016 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.5 MB / 244.1 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007503/0.0007503, allocations: 100.1 kB / 296.1 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.291/0.291, allocations: 44.82 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002836/0.0002837, allocations: 11.98 kB / 465.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2981, allocations: 62.97 MB / 0.5165 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0005058/0.2986, allocations: 236.3 kB / 0.5167 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.3006, allocations: 1.985 MB / 0.5187 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.038e-05/0.3006, allocations: 0 / 0.5187 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.037e-06/0.3006, allocations: 0 / 0.5187 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.472e-06/0.3006, allocations: 0 / 0.5187 GB, free: 35.44 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1013:5-1096:22:writable] Warning: Pure function ‘ModelicaTest.Math.Random.distributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0009741/0.3016, allocations: 426.7 kB / 0.5191 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.612e-05/0.3016, allocations: 4 kB / 0.5191 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.615e-05/0.3017, allocations: 3.375 kB / 0.5191 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.279e-05/0.3017, allocations: 6.797 kB / 0.5191 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.589e-05/0.3017, allocations: 0 / 0.5191 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.45e-06/0.3017, allocations: 0 / 0.5191 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008055/0.3025, allocations: 0.6324 MB / 0.5197 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.524e-06/0.3026, allocations: 2.844 kB / 0.5197 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.3026, allocations: 25.7 kB / 0.5197 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002971/0.3029, allocations: 261.2 kB / 0.52 GB, free: 34.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3029, allocations: 3.938 kB / 0.52 GB, free: 34.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3029, allocations: 0 / 0.52 GB, free: 34.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.3029, allocations: 0 / 0.52 GB, free: 34.99 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.0002818/0.3032, allocations: 407.7 kB / 0.5204 GB, free: 34.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3033, allocations: 8.719 kB / 0.5204 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.64e-05/0.3033, allocations: 0.9375 kB / 0.5204 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.778e-05/0.3034, allocations: 164.4 kB / 0.5205 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.3034, allocations: 4.312 kB / 0.5206 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.885e-06/0.3034, allocations: 3.891 kB / 0.5206 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.063e-05/0.3035, allocations: 32.89 kB / 0.5206 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.3035, allocations: 0 / 0.5206 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.764e-06/0.3035, allocations: 2.812 kB / 0.5206 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.3035, allocations: 0 / 0.5206 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.372e-05/0.3035, allocations: 0 / 0.5206 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.105e-05/0.3036, allocations: 156.1 kB / 0.5207 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.98e-05/0.3036, allocations: 22.52 kB / 0.5208 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.208e-05/0.3037, allocations: 7.703 kB / 0.5208 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-06/0.3037, allocations: 3.938 kB / 0.5208 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.3037, allocations: 60.2 kB / 0.5208 GB, free: 34.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.3037, allocations: 0 / 0.5208 GB, free: 34.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001334/0.3038, allocations: 67.14 kB / 0.5209 GB, free: 33.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.917e-05/0.3039, allocations: 77.23 kB / 0.521 GB, free: 33.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.782e-05/0.3039, allocations: 93.86 kB / 0.5211 GB, free: 33.76 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.524e-06/0.3039, allocations: 32.48 kB / 0.5211 GB, free: 33.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.528e-06/0.3039, allocations: 80.14 kB / 0.5212 GB, free: 33.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.581e-05/0.3039, allocations: 0 / 0.5212 GB, free: 33.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.593e-06/0.3039, allocations: 0 / 0.5212 GB, free: 33.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.908e-05/0.304, allocations: 310.8 kB / 0.5215 GB, free: 33.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.306e-06/0.304, allocations: 6.875 kB / 0.5215 GB, free: 33.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-06/0.304, allocations: 0 / 0.5215 GB, free: 33.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.58e-05/0.3041, allocations: 70.38 kB / 0.5215 GB, free: 33.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3041, allocations: 0 / 0.5215 GB, free: 33.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.036e-05/0.3041, allocations: 60.12 kB / 0.5216 GB, free: 33.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.3042, allocations: 32.02 kB / 0.5216 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3042, allocations: 6.812 kB / 0.5216 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.3042, allocations: 0 / 0.5216 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.3042, allocations: 0 / 0.5216 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.3042, allocations: 0 / 0.5216 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.3042, allocations: 0 / 0.5216 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.3042, allocations: 6.906 kB / 0.5216 GB, free: 33.14 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 5.36e-05/0.3043, allocations: 139.5 kB / 0.5218 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.725e-06/0.3043, allocations: 2.875 kB / 0.5218 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.002e-05/0.3043, allocations: 13.89 kB / 0.5218 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3043, allocations: 3.984 kB / 0.5218 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3043, allocations: 0 / 0.5218 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.538e-05/0.3044, allocations: 77.11 kB / 0.5219 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.3044, allocations: 2.781 kB / 0.5219 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.904e-06/0.3044, allocations: 0 / 0.5219 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.084e-05/0.3044, allocations: 4 kB / 0.5219 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.124e-05/0.3045, allocations: 196.6 kB / 0.5221 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.488e-05/0.3046, allocations: 240.5 kB / 0.5223 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.315e-05/0.3046, allocations: 2.969 kB / 0.5223 GB, free: 32.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.096e-05/0.3046, allocations: 75.28 kB / 0.5224 GB, free: 32.36 MB / 378.7 MB Notification: Performance of Backend: time 3.01e-07/0.3046, allocations: 8 kB / 0.5224 GB, free: 32.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008664/0.3055, allocations: 343.8 kB / 0.5227 GB, free: 32.16 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002166/0.3057, allocations: 0.6036 MB / 0.5233 GB, free: 31.5 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!