Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.000815/0.000815, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003986/0.003986, allocations: 160.5 kB / 24.7 MB, free: 9.43 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 0.8671/0.8671, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2489/0.2489, allocations: 32.79 MB / 294.2 MB, free: 1.199 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 440.8 MB, free: 3.758 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.497e-05/1.628e-05, allocations: 7.766 kB / 440.8 MB, free: 3.75 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0008831/0.0008994, allocations: 0.5362 MB / 441.4 MB, free: 3.215 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005854/0.001485, allocations: 430.3 kB / 441.8 MB, free: 2.793 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.295e-05/0.001508, allocations: 0 / 441.8 MB, free: 2.793 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.89e-05/0.001547, allocations: 0 / 441.8 MB, free: 2.793 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.027e-05/0.001617, allocations: 11.92 kB / 441.8 MB, free: 2.781 MB / 410.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.0003515/0.001968, allocations: 177.8 kB / 442 MB, free: 2.609 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000108/0.002076, allocations: 87.78 kB / 442.1 MB, free: 2.523 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.159e-05/0.002098, allocations: 4 kB / 442.1 MB, free: 2.52 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.293e-05/0.002161, allocations: 43.89 kB / 442.1 MB, free: 2.477 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.115e-05/0.002202, allocations: 19.97 kB / 442.1 MB, free: 2.457 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.002219, allocations: 4 kB / 442.1 MB, free: 2.453 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.002369, allocations: 127.7 kB / 442.3 MB, free: 2.328 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.774e-05/0.002416, allocations: 23.91 kB / 442.3 MB, free: 2.305 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.4e-05/0.00245, allocations: 19.98 kB / 442.3 MB, free: 2.285 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.002654, allocations: 155.6 kB / 442.5 MB, free: 2.133 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.002656, allocations: 0 / 442.5 MB, free: 2.133 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.002657, allocations: 0 / 442.5 MB, free: 2.133 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.002661, allocations: 0 / 442.5 MB, free: 2.133 MB / 410.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.0005733/0.003234, allocations: 339.6 kB / 442.8 MB, free: 1.762 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.003271, allocations: 12.03 kB / 442.8 MB, free: 1.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.941e-05/0.003321, allocations: 8.891 kB / 442.8 MB, free: 1.742 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.003461, allocations: 117.8 kB / 442.9 MB, free: 1.602 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.003471, allocations: 4.375 kB / 442.9 MB, free: 1.598 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.003483, allocations: 8.375 kB / 442.9 MB, free: 1.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.00364, allocations: 90.19 kB / 443 MB, free: 1.496 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.003649, allocations: 4.125 kB / 443 MB, free: 1.492 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.003663, allocations: 384 / 443 MB, free: 1.492 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.003667, allocations: 384 / 443 MB, free: 1.492 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.013e-05/0.003727, allocations: 35.84 kB / 443.1 MB, free: 1.457 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.003859, allocations: 105.3 kB / 443.2 MB, free: 1.324 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.052e-05/0.00393, allocations: 46.53 kB / 443.2 MB, free: 1.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.144e-05/0.003961, allocations: 20.92 kB / 443.2 MB, free: 1.246 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.003978, allocations: 0 / 443.2 MB, free: 1.246 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001855/0.004163, allocations: 135.2 kB / 443.4 MB, free: 1.102 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.004165, allocations: 4 kB / 443.4 MB, free: 1.098 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002393/0.004404, allocations: 125.5 kB / 443.5 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.00444, allocations: 55.41 kB / 443.6 MB, free: 0.9023 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.721e-05/0.004497, allocations: 101.8 kB / 443.7 MB, free: 0.793 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.004516, allocations: 29.7 kB / 443.7 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.051e-05/0.004546, allocations: 84.14 kB / 443.8 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.949e-05/0.004576, allocations: 35.86 kB / 443.8 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.629e-05/0.004612, allocations: 37.7 kB / 443.8 MB, free: 0.5938 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.425e-05/0.004696, allocations: 318.8 kB / 444.1 MB, free: 280 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.151e-05/0.004748, allocations: 49.69 kB / 444.2 MB, free: 224 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.929e-05/0.004807, allocations: 102.7 kB / 444.3 MB, free: 92 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1622/0.167, allocations: 150.2 kB / 444.4 MB, free: 46.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.359e-06/0.167, allocations: 0 / 444.4 MB, free: 46.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002059/0.1672, allocations: 183 kB / 444.6 MB, free: 45.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.1672, allocations: 33.36 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.1672, allocations: 2.656 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.1673, allocations: 2.5 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.473e-05/0.1674, allocations: 22.94 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.1674, allocations: 6.469 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.429e-05/0.1674, allocations: 9.125 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.1674, allocations: 9.609 kB / 444.7 MB, free: 45.96 MB / 410.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.0001233/0.1675, allocations: 129.1 kB / 444.8 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.175e-05/0.1676, allocations: 11.36 kB / 444.8 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.718e-05/0.1676, allocations: 11.39 kB / 444.9 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1676, allocations: 0 / 444.9 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1676, allocations: 9.203 kB / 444.9 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1676, allocations: 0 / 444.9 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.26e-05/0.1677, allocations: 112.9 kB / 445 MB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1677, allocations: 0 / 445 MB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.871e-05/0.1677, allocations: 8.484 kB / 445 MB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1677, allocations: 1.812 kB / 445 MB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.1677, allocations: 1.875 kB / 445 MB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1677, allocations: 2.719 kB / 445 MB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1677, allocations: 1.5 kB / 445 MB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.1678, allocations: 139.3 kB / 445.1 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.696e-06/0.1679, allocations: 13.22 kB / 445.1 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.1679, allocations: 3.031 kB / 445.1 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.168, allocations: 19.39 kB / 445.2 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.093e-05/0.168, allocations: 6.016 kB / 445.2 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.168, allocations: 10.19 kB / 445.2 MB, free: 45.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.769e-05/0.168, allocations: 82.42 kB / 445.3 MB, free: 45.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.168, allocations: 2.562 kB / 445.3 MB, free: 45.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002151/0.1682, allocations: 43.05 kB / 445.3 MB, free: 45.59 MB / 410.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.0003039/0.1685, allocations: 189.3 kB / 445.5 MB, free: 45.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001516/0.1687, allocations: 147.9 kB / 445.6 MB, free: 45.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1687, allocations: 0 / 445.6 MB, free: 45.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.461e-05/0.1687, allocations: 27.34 kB / 445.7 MB, free: 45.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.1689, allocations: 15.22 kB / 445.7 MB, free: 45.39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002853/0.1691, allocations: 171 kB / 445.8 MB, free: 45.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.404e-05/0.1692, allocations: 72.38 kB / 445.9 MB, free: 45.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.049e-05/0.1692, allocations: 14.28 kB / 445.9 MB, free: 45.18 MB / 410.7 MB Notification: Performance of SimCode: time 8.31e-07/0.1692, allocations: 0 / 445.9 MB, free: 45.18 MB / 410.7 MB Notification: Performance of Templates: time 0.002461/0.1717, allocations: 1.841 MB / 447.8 MB, free: 45.07 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 5.027108049951494]