Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 258.3 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2275/0.2275, allocations: 46.94 MB / 361.6 MB, free: 4.258 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 63.91 kB / 0.4974 GB, free: 7.387 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3161, allocations: 66.04 MB / 0.5619 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002062/0.3182, allocations: 0.542 MB / 0.5624 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.3192, allocations: 450.6 kB / 0.5628 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.102e-05/0.3192, allocations: 0 / 0.5628 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.844e-05/0.3193, allocations: 7.938 kB / 0.5628 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.3195, allocations: 11.92 kB / 0.5629 GB, free: 3.398 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.0006276/0.3201, allocations: 163.6 kB / 0.563 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.3203, allocations: 91.78 kB / 0.5631 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.24e-05/0.3203, allocations: 3.984 kB / 0.5631 GB, free: 3.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.23e-05/0.3204, allocations: 35.97 kB / 0.5631 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.661e-05/0.3205, allocations: 19.92 kB / 0.5632 GB, free: 3.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.579e-05/0.3205, allocations: 4 kB / 0.5632 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002789/0.3208, allocations: 139.7 kB / 0.5633 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.568e-05/0.3208, allocations: 19.97 kB / 0.5633 GB, free: 2.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.321e-05/0.3209, allocations: 31.84 kB / 0.5633 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.3211, allocations: 130.1 kB / 0.5635 GB, free: 2.777 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3211, allocations: 0 / 0.5635 GB, free: 2.777 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3211, allocations: 0 / 0.5635 GB, free: 2.777 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.3211, allocations: 0 / 0.5635 GB, free: 2.777 MB / 398.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.0006147/0.3217, allocations: 335.7 kB / 0.5638 GB, free: 2.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.3218, allocations: 12.03 kB / 0.5638 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.344e-05/0.3218, allocations: 8.891 kB / 0.5638 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.322, allocations: 130.4 kB / 0.5639 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.322, allocations: 4.375 kB / 0.5639 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.782e-05/0.3221, allocations: 4.375 kB / 0.5639 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.3223, allocations: 90.19 kB / 0.564 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3223, allocations: 192 / 0.564 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.3223, allocations: 3.938 kB / 0.564 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3223, allocations: 0 / 0.564 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.443e-05/0.3224, allocations: 23.97 kB / 0.5641 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002003/0.3226, allocations: 144.7 kB / 0.5642 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.392e-05/0.3227, allocations: 42.5 kB / 0.5642 GB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.692e-05/0.3227, allocations: 24.91 kB / 0.5643 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.3227, allocations: 0 / 0.5643 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002897/0.323, allocations: 131.3 kB / 0.5644 GB, free: 1.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.323, allocations: 0 / 0.5644 GB, free: 1.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003041/0.3233, allocations: 125.5 kB / 0.5645 GB, free: 1.578 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.3234, allocations: 63.33 kB / 0.5646 GB, free: 1.504 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.733e-05/0.3235, allocations: 97.8 kB / 0.5647 GB, free: 1.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/0.3235, allocations: 33.69 kB / 0.5647 GB, free: 1.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.763e-05/0.3235, allocations: 84.14 kB / 0.5648 GB, free: 1.273 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.523e-05/0.3236, allocations: 24 kB / 0.5648 GB, free: 1.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.743e-05/0.3236, allocations: 33.7 kB / 0.5648 GB, free: 1.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.3238, allocations: 322.8 kB / 0.5651 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.714e-05/0.3238, allocations: 19.98 kB / 0.5651 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.444e-05/0.3239, allocations: 74.86 kB / 0.5652 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000203/0.3241, allocations: 148.4 kB / 0.5654 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3241, allocations: 0 / 0.5654 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002244/0.3243, allocations: 159.2 kB / 0.5655 GB, free: 436 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.796e-05/0.3244, allocations: 37.64 kB / 0.5655 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.3244, allocations: 480 / 0.5655 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3244, allocations: 4 kB / 0.5656 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.3245, allocations: 15.98 kB / 0.5656 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.3245, allocations: 11.88 kB / 0.5656 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.631e-05/0.3246, allocations: 20.09 kB / 0.5656 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.3246, allocations: 8.062 kB / 0.5656 GB, free: 332 kB / 398.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.0001477/0.3248, allocations: 129.8 kB / 0.5657 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.146e-05/0.3248, allocations: 15.89 kB / 0.5657 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.954e-05/0.3248, allocations: 8.047 kB / 0.5658 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.3248, allocations: 4 kB / 0.5658 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3248, allocations: 0 / 0.5658 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.3248, allocations: 0 / 0.5658 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.325, allocations: 140.7 kB / 0.5659 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.325, allocations: 0 / 0.5659 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.116e-05/0.325, allocations: 15.92 kB / 0.5659 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.325, allocations: 3.938 kB / 0.5659 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.3251, allocations: 0 / 0.5659 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3251, allocations: 0 / 0.5659 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3251, allocations: 0 / 0.5659 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002115/0.3253, allocations: 129.1 kB / 0.566 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.159e-05/0.3253, allocations: 7.891 kB / 0.566 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.3253, allocations: 11.98 kB / 0.5661 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.3255, allocations: 11.98 kB / 0.5661 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.816e-05/0.3255, allocations: 11.92 kB / 0.5661 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.3255, allocations: 11.98 kB / 0.5661 GB, free: 15.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.07e-05/0.3256, allocations: 79.28 kB / 0.5662 GB, free: 15.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3256, allocations: 0 / 0.5662 GB, free: 15.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.3259, allocations: 35.94 kB / 0.5662 GB, free: 15.64 MB / 414.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.0004294/0.3263, allocations: 189.1 kB / 0.5664 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002291/0.3265, allocations: 139.2 kB / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3265, allocations: 448 / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.251e-05/0.3266, allocations: 23.98 kB / 0.5665 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001534/0.3267, allocations: 21.42 kB / 0.5666 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003766/0.3271, allocations: 162.4 kB / 0.5667 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.3274, allocations: 0.6851 MB / 0.5674 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.996e-05/0.3275, allocations: 19.42 kB / 0.5674 GB, free: 14.36 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3275, allocations: 0 / 0.5674 GB, free: 14.36 MB / 414.1 MB Notification: Performance of Templates: time 0.00387/0.3313, allocations: 1.802 MB / 0.5692 GB, free: 12.56 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y [Calling sys.exit(0), Time elapsed: 8.121620294870809]