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.001216/0.001216, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.00133/0.00133, allocations: 166.7 kB / 24.99 MB, free: 8.793 MB / 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.018/1.018, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] 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.2546/0.2546, allocations: 34.26 MB / 296 MB, free: 0.7773 MB / 266.7 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.[0-9,]+.|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.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 378 MB, free: 3.012 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.833e-05/3.001e-05, allocations: 6.25 kB / 378 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001448/0.001478, allocations: 0.5436 MB / 378.6 MB, free: 2.457 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009123/0.002391, allocations: 454.4 kB / 379 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.326e-05/0.002464, allocations: 4 kB / 379 MB, free: 2.008 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.002593, allocations: 0 / 379 MB, free: 2.008 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001895/0.002782, allocations: 7.922 kB / 379 MB, free: 2 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.0006531/0.003436, allocations: 175.4 kB / 379.2 MB, free: 1.828 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001529/0.003588, allocations: 83.8 kB / 379.3 MB, free: 1.746 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.024e-05/0.003639, allocations: 4 kB / 379.3 MB, free: 1.742 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.505e-05/0.003724, allocations: 47.95 kB / 379.3 MB, free: 1.695 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.846e-05/0.003782, allocations: 19.97 kB / 379.3 MB, free: 1.676 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.003806, allocations: 3.938 kB / 379.3 MB, free: 1.672 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.004015, allocations: 127.7 kB / 379.5 MB, free: 1.547 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.112e-05/0.004077, allocations: 23.91 kB / 379.5 MB, free: 1.523 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.317e-05/0.00412, allocations: 19.97 kB / 379.5 MB, free: 1.504 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002739/0.004394, allocations: 159.5 kB / 379.7 MB, free: 1.348 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.004398, allocations: 4 kB / 379.7 MB, free: 1.344 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.0044, allocations: 0 / 379.7 MB, free: 1.344 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.00441, allocations: 0 / 379.7 MB, free: 1.344 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.0006972/0.005108, allocations: 438 kB / 380.1 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.005157, allocations: 8.031 kB / 380.1 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.721e-05/0.005225, allocations: 4.938 kB / 380.1 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.00538, allocations: 128.5 kB / 380.2 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.005391, allocations: 4.375 kB / 380.2 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.733e-05/0.005408, allocations: 4.375 kB / 380.2 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001586/0.005567, allocations: 86.91 kB / 380.3 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.005577, allocations: 4.172 kB / 380.3 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.005595, allocations: 8.312 kB / 380.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.005603, allocations: 384 / 380.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.167e-05/0.005645, allocations: 19.92 kB / 380.4 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.005798, allocations: 124.6 kB / 380.5 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.078e-05/0.005869, allocations: 47.05 kB / 380.5 MB, free: 368 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.262e-05/0.005901, allocations: 15.69 kB / 380.5 MB, free: 348 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.702e-05/0.005918, allocations: 4.062 kB / 380.5 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001692/0.006087, allocations: 120.9 kB / 380.7 MB, free: 208 kB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.006089, allocations: 0 / 380.7 MB, free: 208 kB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002481/0.006337, allocations: 109.5 kB / 380.8 MB, free: 92 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.006387, allocations: 63.34 kB / 380.8 MB, free: 16 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.006487, allocations: 169.8 kB / 381 MB, free: 15.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.006509, allocations: 29.7 kB / 381 MB, free: 15.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.51e-05/0.006554, allocations: 126.9 kB / 381.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.00669, allocations: 31.94 kB / 381.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.006736, allocations: 39.36 kB / 381.2 MB, free: 15.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.00685, allocations: 496.1 kB / 381.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.832e-05/0.006898, allocations: 41.69 kB / 381.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.939e-05/0.006968, allocations: 119.1 kB / 381.9 MB, free: 14.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.007093, allocations: 151.1 kB / 382 MB, free: 14.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.007095, allocations: 0 / 382 MB, free: 14.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000162/0.007257, allocations: 180.8 kB / 382.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/0.007291, allocations: 37.92 kB / 382.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.007297, allocations: 0 / 382.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.007314, allocations: 4 kB / 382.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.007424, allocations: 23.92 kB / 382.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.007432, allocations: 8.016 kB / 382.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.464e-05/0.007466, allocations: 11.89 kB / 382.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.007481, allocations: 11.98 kB / 382.3 MB, free: 14.41 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.0001357/0.007617, allocations: 172.5 kB / 382.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.066e-05/0.007638, allocations: 8 kB / 382.5 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.788e-05/0.007676, allocations: 12.12 kB / 382.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.007679, allocations: 3.984 kB / 382.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/0.007684, allocations: 3.938 kB / 382.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.007688, allocations: 0 / 382.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.597e-05/0.007784, allocations: 128.5 kB / 382.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.007786, allocations: 0 / 382.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.593e-05/0.007812, allocations: 8 kB / 382.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.007814, allocations: 0 / 382.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.007823, allocations: 4 kB / 382.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.007824, allocations: 0 / 382.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.007825, allocations: 4 kB / 382.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001478/0.007973, allocations: 136.3 kB / 382.7 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.016e-05/0.007983, allocations: 7.953 kB / 382.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.008003, allocations: 4 kB / 382.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.008105, allocations: 20.03 kB / 382.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.995e-05/0.008135, allocations: 4 kB / 382.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.00815, allocations: 11.92 kB / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.685e-05/0.008187, allocations: 119.2 kB / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008187, allocations: 0 / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002073/0.008394, allocations: 47.92 kB / 383 MB, free: 13.66 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.0004162/0.00881, allocations: 203 kB / 383.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001798/0.00899, allocations: 144.7 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.008993, allocations: 4.438 kB / 383.3 MB, free: 13.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.675e-05/0.009029, allocations: 39.59 kB / 383.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.009165, allocations: 15.98 kB / 383.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003288/0.009494, allocations: 142.2 kB / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.587e-05/0.009529, allocations: 63.28 kB / 383.6 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.052e-05/0.00957, allocations: 12.72 kB / 383.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.17e-05/0.009592, allocations: 16.5 kB / 383.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of SimCode: time 7.31e-07/0.009592, allocations: 0 / 383.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of Templates: time 0.004052/0.01364, allocations: 2.108 MB / 385.7 MB, free: 10.89 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.31697238702327]