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.0009856/0.0009856, allocations: 75.77 kB / 21.18 MB, free: 3.379 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.0011/0.0011, allocations: 161 kB / 24.56 MB, free: 8 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.014/1.014, allocations: 177.1 MB / 205 MB, free: 5.633 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.2902/0.2902, allocations: 34.26 MB / 295.7 MB, free: 0.7578 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.473e-06/1.473e-06, allocations: 0 / 378 MB, free: 2.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.405e-05/2.552e-05, allocations: 2.312 kB / 378 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001197/0.001222, allocations: 0.5396 MB / 378.6 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007375/0.00196, allocations: 450.5 kB / 379 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.449e-05/0.002034, allocations: 3.938 kB / 379 MB, free: 1.664 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.002176, allocations: 0 / 379 MB, free: 1.664 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000219/0.002395, allocations: 15.91 kB / 379 MB, free: 1.648 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.0007866/0.003181, allocations: 175.3 kB / 379.2 MB, free: 1.477 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001698/0.003351, allocations: 79.84 kB / 379.3 MB, free: 1.398 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.147e-05/0.003393, allocations: 8 kB / 379.3 MB, free: 1.391 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.906e-05/0.003462, allocations: 39.95 kB / 379.3 MB, free: 1.352 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.32e-05/0.003515, allocations: 19.98 kB / 379.4 MB, free: 1.332 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.024e-05/0.003545, allocations: 7.938 kB / 379.4 MB, free: 1.324 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002214/0.003767, allocations: 135.7 kB / 379.5 MB, free: 1.191 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.006e-05/0.003817, allocations: 19.97 kB / 379.5 MB, free: 1.172 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.756e-05/0.003854, allocations: 19.97 kB / 379.5 MB, free: 1.152 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002227/0.004077, allocations: 151.5 kB / 379.7 MB, free: 1.004 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.00408, allocations: 4 kB / 379.7 MB, free: 1 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.004081, allocations: 0 / 379.7 MB, free: 1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.004086, allocations: 0 / 379.7 MB, free: 1 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.0005173/0.004604, allocations: 434 kB / 380.1 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.004642, allocations: 19.97 kB / 380.1 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.943e-05/0.004701, allocations: 4.938 kB / 380.1 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.004847, allocations: 124.5 kB / 380.3 MB, free: 368 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.004859, allocations: 8.375 kB / 380.3 MB, free: 360 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/0.004876, allocations: 4.375 kB / 380.3 MB, free: 356 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001472/0.005024, allocations: 82.91 kB / 380.4 MB, free: 264 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.005032, allocations: 4.172 kB / 380.4 MB, free: 260 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.00505, allocations: 8.359 kB / 380.4 MB, free: 252 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.005058, allocations: 4.375 kB / 380.4 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.278e-05/0.005101, allocations: 19.86 kB / 380.4 MB, free: 228 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001362/0.005237, allocations: 120.6 kB / 380.5 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.635e-05/0.005303, allocations: 47.05 kB / 380.6 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.688e-05/0.00535, allocations: 19.62 kB / 380.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.005365, allocations: 8.062 kB / 380.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001736/0.005538, allocations: 117.1 kB / 380.7 MB, free: 15.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 2.184e-06/0.00554, allocations: 0 / 380.7 MB, free: 15.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002345/0.005775, allocations: 117.5 kB / 380.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.005817, allocations: 55.41 kB / 380.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.448e-05/0.005891, allocations: 169.9 kB / 381 MB, free: 15.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.00591, allocations: 25.7 kB / 381.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.006e-05/0.00595, allocations: 130.9 kB / 381.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.005984, allocations: 31.78 kB / 381.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/0.006021, allocations: 31.38 kB / 381.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002771/0.006298, allocations: 0.4923 MB / 381.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.455e-05/0.006343, allocations: 37.69 kB / 381.8 MB, free: 14.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.547e-05/0.006408, allocations: 111.2 kB / 381.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/0.006539, allocations: 155.1 kB / 382 MB, free: 14.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.006542, allocations: 0 / 382 MB, free: 14.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001686/0.006711, allocations: 184.8 kB / 382.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.006738, allocations: 29.7 kB / 382.2 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.006746, allocations: 8.219 kB / 382.2 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.006761, allocations: 0 / 382.2 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.006874, allocations: 27.92 kB / 382.3 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.006882, allocations: 7.938 kB / 382.3 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.355e-05/0.006916, allocations: 11.89 kB / 382.3 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.006928, allocations: 8.078 kB / 382.3 MB, free: 14.06 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.0001385/0.007066, allocations: 176.5 kB / 382.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.007086, allocations: 4 kB / 382.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.00712, allocations: 12.12 kB / 382.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.007123, allocations: 7.984 kB / 382.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.007129, allocations: 3.938 kB / 382.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.007132, allocations: 0 / 382.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.007234, allocations: 132.5 kB / 382.6 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.007236, allocations: 0 / 382.6 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.661e-05/0.007262, allocations: 4 kB / 382.6 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.007265, allocations: 0 / 382.6 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.007275, allocations: 8 kB / 382.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.007276, allocations: 0 / 382.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.007277, allocations: 0 / 382.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001538/0.007431, allocations: 140.3 kB / 382.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.648e-06/0.007441, allocations: 3.953 kB / 382.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.007461, allocations: 4 kB / 382.8 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.007564, allocations: 24.14 kB / 382.8 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.518e-05/0.007589, allocations: 0 / 382.8 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.007603, allocations: 11.92 kB / 382.8 MB, free: 13.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.335e-05/0.007636, allocations: 123.2 kB / 382.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.007636, allocations: 0 / 382.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000221/0.007857, allocations: 51.86 kB / 383 MB, free: 13.3 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.0003709/0.008228, allocations: 183.2 kB / 383.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001866/0.008415, allocations: 154.6 kB / 383.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.008417, allocations: 0 / 383.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.605e-05/0.008453, allocations: 32.05 kB / 383.4 MB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.008584, allocations: 19.98 kB / 383.4 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000309/0.008893, allocations: 146.2 kB / 383.5 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.509e-05/0.008928, allocations: 63.28 kB / 383.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.692e-05/0.008965, allocations: 12.72 kB / 383.6 MB, free: 12.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.106e-05/0.008986, allocations: 12.5 kB / 383.6 MB, free: 12.63 MB / 362.7 MB Notification: Performance of SimCode: time 6.01e-07/0.008987, allocations: 0 / 383.6 MB, free: 12.63 MB / 362.7 MB Notification: Performance of Templates: time 0.004833/0.01382, allocations: 2.345 MB / 386 MB, free: 10.31 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.215422151144594]