Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001747/0.001747, allocations: 77.78 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001766/0.001766, allocations: 161.3 kB / 24.5 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 177.1 MB / 204.7 MB, free: 8.977 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2123/0.2123, allocations: 34.26 MB / 295.4 MB, free: 14.48 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002403/0.002403, allocations: 83.88 kB / 443.2 MB, free: 6.496 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3033, allocations: 66.05 MB / 0.4973 GB, free: 29.78 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001453/0.3048, allocations: 0.5386 MB / 0.4978 GB, free: 29.45 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007086/0.3055, allocations: 428.4 kB / 0.4982 GB, free: 29.2 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.948e-05/0.3055, allocations: 3.938 kB / 0.4982 GB, free: 29.19 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 6.717e-05/0.3056, allocations: 3.062 kB / 0.4982 GB, free: 29.19 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.3057, allocations: 11.39 kB / 0.4982 GB, free: 29.18 MB / 446.1 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.0005001/0.3062, allocations: 168.8 kB / 0.4984 GB, free: 29.11 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001421/0.3063, allocations: 83.31 kB / 0.4985 GB, free: 29.08 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.26e-05/0.3064, allocations: 7.125 kB / 0.4985 GB, free: 29.08 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.941e-05/0.3064, allocations: 39.73 kB / 0.4985 GB, free: 29.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.334e-05/0.3065, allocations: 24.97 kB / 0.4985 GB, free: 29.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.3065, allocations: 3.25 kB / 0.4985 GB, free: 29.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002295/0.3067, allocations: 126.4 kB / 0.4987 GB, free: 29.03 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.161e-05/0.3068, allocations: 20.52 kB / 0.4987 GB, free: 29.02 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.234e-05/0.3068, allocations: 21.47 kB / 0.4987 GB, free: 29.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.307, allocations: 136.4 kB / 0.4988 GB, free: 28.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.307, allocations: 7.453 kB / 0.4988 GB, free: 28.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.307, allocations: 0 / 0.4988 GB, free: 28.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.307, allocations: 4 kB / 0.4988 GB, free: 28.96 MB / 446.1 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.0004104/0.3074, allocations: 328 kB / 0.4992 GB, free: 28.65 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.3074, allocations: 9.281 kB / 0.4992 GB, free: 28.65 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.241e-05/0.3075, allocations: 7.984 kB / 0.4992 GB, free: 28.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.3076, allocations: 130.4 kB / 0.4993 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.3076, allocations: 384 / 0.4993 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.3076, allocations: 3.344 kB / 0.4993 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.3078, allocations: 93.39 kB / 0.4994 GB, free: 28.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.3078, allocations: 192 / 0.4994 GB, free: 28.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.3078, allocations: 3.938 kB / 0.4994 GB, free: 28.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-06/0.3078, allocations: 3.938 kB / 0.4994 GB, free: 28.46 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.003e-05/0.3079, allocations: 31.88 kB / 0.4994 GB, free: 28.45 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001178/0.308, allocations: 111.7 kB / 0.4995 GB, free: 28.31 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.476e-05/0.3081, allocations: 41.34 kB / 0.4996 GB, free: 28.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.056e-05/0.3081, allocations: 21.98 kB / 0.4996 GB, free: 28.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.3082, allocations: 3.25 kB / 0.4996 GB, free: 28.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.3084, allocations: 128.9 kB / 0.4997 GB, free: 28.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.3084, allocations: 4 kB / 0.4997 GB, free: 28.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002627/0.3086, allocations: 136.4 kB / 0.4998 GB, free: 28.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.3087, allocations: 54.56 kB / 0.4999 GB, free: 28.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.98e-05/0.3087, allocations: 100.5 kB / 0.5 GB, free: 27.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.3087, allocations: 28.77 kB / 0.5 GB, free: 27.94 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.643e-05/0.3088, allocations: 80.14 kB / 0.5001 GB, free: 27.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.3088, allocations: 33.92 kB / 0.5001 GB, free: 27.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.774e-05/0.3088, allocations: 30.94 kB / 0.5002 GB, free: 27.81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.073e-05/0.3089, allocations: 314 kB / 0.5005 GB, free: 27.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.703e-05/0.3089, allocations: 53.27 kB / 0.5005 GB, free: 27.46 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.121e-05/0.309, allocations: 109.6 kB / 0.5006 GB, free: 27.35 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.3091, allocations: 149.9 kB / 0.5008 GB, free: 27.22 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3091, allocations: 4 kB / 0.5008 GB, free: 27.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001781/0.3093, allocations: 182.2 kB / 0.5009 GB, free: 27.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3093, allocations: 35.53 kB / 0.501 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3093, allocations: 6.938 kB / 0.501 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.3093, allocations: 3.094 kB / 0.501 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.667e-05/0.3094, allocations: 21.56 kB / 0.501 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.3094, allocations: 3.344 kB / 0.501 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.916e-05/0.3095, allocations: 11.05 kB / 0.501 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.3095, allocations: 6.219 kB / 0.501 GB, free: 27.04 MB / 446.1 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,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.3096, allocations: 130.8 kB / 0.5011 GB, free: 26.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.606e-05/0.3096, allocations: 7.172 kB / 0.5012 GB, free: 26.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.245e-05/0.3096, allocations: 12.06 kB / 0.5012 GB, free: 26.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3096, allocations: 3.375 kB / 0.5012 GB, free: 26.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3097, allocations: 0 / 0.5012 GB, free: 26.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3097, allocations: 3.938 kB / 0.5012 GB, free: 26.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.075e-05/0.3097, allocations: 115 kB / 0.5013 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3097, allocations: 6.438 kB / 0.5013 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.41e-05/0.3098, allocations: 3.125 kB / 0.5013 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3098, allocations: 4 kB / 0.5013 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.3098, allocations: 3.469 kB / 0.5013 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.3098, allocations: 3.938 kB / 0.5013 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3098, allocations: 0 / 0.5013 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001678/0.31, allocations: 134.2 kB / 0.5014 GB, free: 26.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.864e-06/0.31, allocations: 7.266 kB / 0.5014 GB, free: 26.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.31, allocations: 2.938 kB / 0.5014 GB, free: 26.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.3102, allocations: 24.14 kB / 0.5015 GB, free: 26.65 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.533e-05/0.3102, allocations: 6.406 kB / 0.5015 GB, free: 26.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.3102, allocations: 6.812 kB / 0.5015 GB, free: 26.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.839e-05/0.3102, allocations: 82.44 kB / 0.5016 GB, free: 26.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3102, allocations: 0 / 0.5016 GB, free: 26.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002663/0.3105, allocations: 46.58 kB / 0.5016 GB, free: 26.56 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003462/0.3108, allocations: 181.8 kB / 0.5018 GB, free: 26.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000172/0.311, allocations: 154.9 kB / 0.5019 GB, free: 26.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.311, allocations: 0 / 0.5019 GB, free: 26.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.713e-05/0.3111, allocations: 26.84 kB / 0.5019 GB, free: 26.31 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001497/0.3112, allocations: 16.05 kB / 0.502 GB, free: 26.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002816/0.3115, allocations: 148.2 kB / 0.5021 GB, free: 26.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.677e-05/0.3115, allocations: 75.17 kB / 0.5022 GB, free: 26.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.918e-05/0.3116, allocations: 18.38 kB / 0.5022 GB, free: 26.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.082e-05/0.3116, allocations: 14.94 kB / 0.5022 GB, free: 26.08 MB / 446.1 MB Notification: Performance of SimCode: time 3e-07/0.3116, allocations: 0 / 0.5022 GB, free: 26.08 MB / 446.1 MB Notification: Performance of Templates: time 0.004478/0.3161, allocations: 2.068 MB / 0.5042 GB, free: 25.84 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.886614850023761]