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.001813/0.001813, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.002375/0.002375, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.562/1.562, allocations: 177.1 MB / 204.6 MB, free: 5.582 MB / 186.7 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.393/0.393, allocations: 34.27 MB / 295.3 MB, free: 0.6719 MB / 266.7 MB " [Timeout remaining time 179] 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 2.004e-06/2.004e-06, allocations: 0 / 377.3 MB, free: 2.941 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.278e-05/3.478e-05, allocations: 2.312 kB / 377.3 MB, free: 2.938 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002415/0.00245, allocations: 0.5391 MB / 377.8 MB, free: 2.398 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.003731, allocations: 442.2 kB / 378.3 MB, free: 1.965 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.184e-05/0.003773, allocations: 0 / 378.3 MB, free: 1.965 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.00389, allocations: 0 / 378.3 MB, free: 1.965 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.004023, allocations: 3.938 kB / 378.3 MB, free: 1.961 MB / 346.7 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.0008657/0.004888, allocations: 179.3 kB / 378.4 MB, free: 1.785 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.005101, allocations: 83.84 kB / 378.5 MB, free: 1.703 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.329e-05/0.005154, allocations: 4 kB / 378.5 MB, free: 1.699 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.005284, allocations: 43.95 kB / 378.6 MB, free: 1.656 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.431e-05/0.005368, allocations: 23.91 kB / 378.6 MB, free: 1.633 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.677e-05/0.005405, allocations: 4 kB / 378.6 MB, free: 1.629 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004019/0.005807, allocations: 127.7 kB / 378.7 MB, free: 1.504 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.524e-05/0.005882, allocations: 19.97 kB / 378.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.607e-05/0.005948, allocations: 19.97 kB / 378.8 MB, free: 1.465 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000426/0.006374, allocations: 155.6 kB / 378.9 MB, free: 1.312 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.006377, allocations: 0 / 378.9 MB, free: 1.312 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.006377, allocations: 4 kB / 378.9 MB, free: 1.309 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.006382, allocations: 3.938 kB / 378.9 MB, free: 1.305 MB / 346.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.0007521/0.007134, allocations: 331.7 kB / 379.2 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.007182, allocations: 12.03 kB / 379.3 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.734e-05/0.007279, allocations: 4.938 kB / 379.3 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/0.007544, allocations: 125.7 kB / 379.4 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.007564, allocations: 4.375 kB / 379.4 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.563e-05/0.0076, allocations: 8.359 kB / 379.4 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.007877, allocations: 90.2 kB / 379.5 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.007887, allocations: 192 / 379.5 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.007912, allocations: 4.375 kB / 379.5 MB, free: 0.668 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.007921, allocations: 4.359 kB / 379.5 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.008031, allocations: 31.86 kB / 379.5 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002306/0.008262, allocations: 109.2 kB / 379.6 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.008397, allocations: 42.64 kB / 379.7 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.854e-05/0.008465, allocations: 21 kB / 379.7 MB, free: 432 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.00849, allocations: 3.984 kB / 379.7 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003844/0.008874, allocations: 127.2 kB / 379.8 MB, free: 288 kB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.008875, allocations: 8 kB / 379.8 MB, free: 280 kB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004443/0.00932, allocations: 125.5 kB / 379.9 MB, free: 148 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.009387, allocations: 63.39 kB / 380 MB, free: 72 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.009526, allocations: 97.8 kB / 380.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.009579, allocations: 33.7 kB / 380.1 MB, free: 15.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.038e-05/0.009649, allocations: 84.12 kB / 380.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.721e-05/0.009696, allocations: 23.8 kB / 380.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.761e-05/0.009774, allocations: 37.7 kB / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002227/0.009997, allocations: 314.8 kB / 380.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.0101, allocations: 53.67 kB / 380.6 MB, free: 15.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.01026, allocations: 104.6 kB / 380.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.01056, allocations: 140.4 kB / 380.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.01056, allocations: 0 / 380.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004273/0.01099, allocations: 196.9 kB / 381.1 MB, free: 14.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.971e-05/0.01105, allocations: 39.89 kB / 381.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.01107, allocations: 7.984 kB / 381.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.72e-05/0.01109, allocations: 4 kB / 381.1 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.01124, allocations: 15.94 kB / 381.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.052e-05/0.01126, allocations: 12 kB / 381.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.979e-05/0.01135, allocations: 7.891 kB / 381.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.01138, allocations: 15.98 kB / 381.2 MB, free: 14.78 MB / 362.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,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.0002186/0.0116, allocations: 126 kB / 381.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.81e-05/0.01165, allocations: 4 kB / 381.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.848e-05/0.01169, allocations: 16.11 kB / 381.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.0117, allocations: 0 / 381.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.01171, allocations: 3.938 kB / 381.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.01171, allocations: 0 / 381.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002138/0.01192, allocations: 117.2 kB / 381.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.01193, allocations: 192 / 381.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.656e-05/0.01197, allocations: 4 kB / 381.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.01198, allocations: 4 kB / 381.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.012, allocations: 11.97 kB / 381.5 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.012, allocations: 0 / 381.5 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.012, allocations: 0 / 381.5 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003471/0.01235, allocations: 141 kB / 381.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.642e-05/0.01236, allocations: 7.891 kB / 381.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.697e-05/0.01239, allocations: 4 kB / 381.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000281/0.01267, allocations: 19.97 kB / 381.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.01272, allocations: 7.984 kB / 381.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.01274, allocations: 11.88 kB / 381.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.22e-05/0.01281, allocations: 83.28 kB / 381.7 MB, free: 14.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.01281, allocations: 4 kB / 381.7 MB, free: 14.17 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005046/0.01332, allocations: 39.92 kB / 381.8 MB, free: 14.13 MB / 362.7 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.0006696/0.01399, allocations: 183.2 kB / 381.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003386/0.01433, allocations: 156.9 kB / 382.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.01433, allocations: 0 / 382.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.166e-05/0.01442, allocations: 27.92 kB / 382.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.0147, allocations: 18.48 kB / 382.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005477/0.01524, allocations: 156.4 kB / 382.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.926e-05/0.01534, allocations: 71.28 kB / 382.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.238e-05/0.01541, allocations: 17.16 kB / 382.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.923e-05/0.01545, allocations: 12.5 kB / 382.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of SimCode: time 5.82e-07/0.01545, allocations: 4 kB / 382.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of Templates: time 0.005894/0.02135, allocations: 2.089 MB / 384.5 MB, free: 11.38 MB / 362.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 5.128809355897829]