Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009624/0.0009624, allocations: 199.9 kB / 16.76 MB, free: 5.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 226.5 MB / 244 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007665/0.0007664, allocations: 103.2 kB / 296.1 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3249/0.3249, allocations: 44.82 MB / 392.9 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002429/0.0002429, allocations: 8 kB / 465.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2816, allocations: 62.96 MB / 0.5165 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0005209/0.2822, allocations: 239.1 kB / 0.5167 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.2847, allocations: 2.231 MB / 0.5189 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.189e-05/0.2847, allocations: 4 kB / 0.5189 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.2848, allocations: 0 / 0.5189 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.492e-06/0.2848, allocations: 3.938 kB / 0.5189 GB, free: 35.44 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1098:5-1194:31:writable] Warning: Pure function ‘ModelicaTest.Math.Random.truncatedDistributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001368/0.2862, allocations: 461.8 kB / 0.5194 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.021e-05/0.2862, allocations: 2.906 kB / 0.5194 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.178e-05/0.2862, allocations: 3.234 kB / 0.5194 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.405e-05/0.2863, allocations: 0 / 0.5194 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.874e-05/0.2863, allocations: 6.922 kB / 0.5194 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.43e-06/0.2863, allocations: 4 kB / 0.5194 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001084/0.2874, allocations: 0.7066 MB / 0.5201 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-06/0.2874, allocations: 4 kB / 0.5201 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.808e-05/0.2874, allocations: 25.7 kB / 0.5201 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004775/0.2879, allocations: 300.6 kB / 0.5204 GB, free: 34.94 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2879, allocations: 0 / 0.5204 GB, free: 34.94 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.288, allocations: 0 / 0.5204 GB, free: 34.94 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.288, allocations: 0 / 0.5204 GB, free: 34.94 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.0003811/0.2883, allocations: 437.6 kB / 0.5208 GB, free: 34.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.2884, allocations: 16.53 kB / 0.5208 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.229e-05/0.2884, allocations: 0.9375 kB / 0.5208 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.56e-05/0.2885, allocations: 160.4 kB / 0.521 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.2885, allocations: 4.312 kB / 0.521 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-06/0.2885, allocations: 3.406 kB / 0.521 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.423e-05/0.2886, allocations: 36.16 kB / 0.521 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.2886, allocations: 0 / 0.521 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.2886, allocations: 0 / 0.521 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.2886, allocations: 3.984 kB / 0.521 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.528e-05/0.2887, allocations: 4 kB / 0.521 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.98e-05/0.2888, allocations: 148.6 kB / 0.5212 GB, free: 34.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.811e-05/0.2888, allocations: 24.91 kB / 0.5212 GB, free: 34.03 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.1e-05/0.2888, allocations: 4.859 kB / 0.5212 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.078e-06/0.2888, allocations: 0 / 0.5212 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.2889, allocations: 66.89 kB / 0.5212 GB, free: 33.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.2889, allocations: 0 / 0.5212 GB, free: 33.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001398/0.289, allocations: 68.23 kB / 0.5213 GB, free: 33.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.389e-05/0.289, allocations: 83.83 kB / 0.5214 GB, free: 33.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.031e-05/0.2891, allocations: 89.86 kB / 0.5215 GB, free: 33.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.423e-06/0.2891, allocations: 25.7 kB / 0.5215 GB, free: 33.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.102e-05/0.2891, allocations: 80.14 kB / 0.5216 GB, free: 33.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.46e-05/0.2891, allocations: 0 / 0.5216 GB, free: 33.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.2891, allocations: 0 / 0.5216 GB, free: 33.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.296e-05/0.2892, allocations: 313.7 kB / 0.5219 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.644e-06/0.2892, allocations: 4.125 kB / 0.5219 GB, free: 33.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.138e-06/0.2892, allocations: 0 / 0.5219 GB, free: 33.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.168e-05/0.2893, allocations: 69.41 kB / 0.5219 GB, free: 33.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2893, allocations: 0 / 0.5219 GB, free: 33.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.266e-05/0.2893, allocations: 57.03 kB / 0.522 GB, free: 33.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.2894, allocations: 31.3 kB / 0.522 GB, free: 33.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2894, allocations: 6.656 kB / 0.522 GB, free: 33.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.2894, allocations: 3.938 kB / 0.522 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.2894, allocations: 2.844 kB / 0.522 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.381e-06/0.2894, allocations: 8.094 kB / 0.5221 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.517e-05/0.2894, allocations: 0 / 0.5221 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.2894, allocations: 0 / 0.5221 GB, free: 33.07 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.459e-05/0.2895, allocations: 134.5 kB / 0.5222 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-06/0.2895, allocations: 4 kB / 0.5222 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.043e-05/0.2895, allocations: 16.72 kB / 0.5222 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.2895, allocations: 3.938 kB / 0.5222 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.2895, allocations: 0 / 0.5222 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.507e-05/0.2896, allocations: 77.11 kB / 0.5223 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.2896, allocations: 4 kB / 0.5223 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-06/0.2896, allocations: 2.844 kB / 0.5223 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.115e-05/0.2896, allocations: 0 / 0.5223 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.01e-05/0.2897, allocations: 194.2 kB / 0.5225 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 8.549e-05/0.2898, allocations: 247 kB / 0.5227 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.526e-05/0.2898, allocations: 7 kB / 0.5227 GB, free: 32.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.226e-05/0.2898, allocations: 75.28 kB / 0.5228 GB, free: 32.28 MB / 378.7 MB Notification: Performance of Backend: time 2e-07/0.2898, allocations: 0 / 0.5228 GB, free: 32.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000981/0.2908, allocations: 368.8 kB / 0.5231 GB, free: 32.08 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002223/0.291, allocations: 0.6152 MB / 0.5237 GB, free: 31.41 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!