Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009059/0.0009059, allocations: 88.28 kB / 21.44 MB, free: 3.121 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004321/0.004321, allocations: 151.5 kB / 24.69 MB, free: 9.438 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8952/0.8952, allocations: 177 MB / 204.9 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2631/0.2631, allocations: 34.24 MB / 295.6 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 443.4 MB, free: 1.098 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.42e-05/3.591e-05, allocations: 6.219 kB / 443.4 MB, free: 1.09 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001173/0.001209, allocations: 0.5361 MB / 444 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006746/0.001883, allocations: 434.3 kB / 444.4 MB, free: 132 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.788e-05/0.001921, allocations: 0 / 444.4 MB, free: 132 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 8.104e-05/0.002002, allocations: 0 / 444.4 MB, free: 132 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.00213, allocations: 15.86 kB / 444.4 MB, free: 116 kB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.1981/0.2003, allocations: 171.5 kB / 444.6 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001703/0.2004, allocations: 83.61 kB / 444.6 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.052e-05/0.2005, allocations: 2.938 kB / 444.6 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.814e-05/0.2006, allocations: 52.25 kB / 444.7 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.047e-05/0.2006, allocations: 11.19 kB / 444.7 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.2006, allocations: 7.469 kB / 444.7 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.2008, allocations: 129.5 kB / 444.8 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.658e-05/0.2009, allocations: 21.08 kB / 444.9 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.523e-05/0.2009, allocations: 22.19 kB / 444.9 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002008/0.2011, allocations: 156.5 kB / 445 MB, free: 43.67 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2011, allocations: 0.5625 kB / 445 MB, free: 43.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2011, allocations: 0.9062 kB / 445 MB, free: 43.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.2011, allocations: 0 / 445 MB, free: 43.67 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.0004435/0.2016, allocations: 333.3 kB / 445.4 MB, free: 43.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.2016, allocations: 8.688 kB / 445.4 MB, free: 43.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.653e-05/0.2016, allocations: 10.31 kB / 445.4 MB, free: 43.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.2018, allocations: 126.3 kB / 445.5 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.2018, allocations: 4 kB / 445.5 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.2018, allocations: 6.969 kB / 445.5 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001386/0.2019, allocations: 87.88 kB / 445.6 MB, free: 43.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.557e-06/0.2019, allocations: 4.75 kB / 445.6 MB, free: 43.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.2019, allocations: 1.438 kB / 445.6 MB, free: 43.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.2019, allocations: 4.938 kB / 445.6 MB, free: 43.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.888e-05/0.202, allocations: 31.66 kB / 445.6 MB, free: 43.22 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001047/0.2021, allocations: 108.1 kB / 445.8 MB, free: 43.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.378e-05/0.2022, allocations: 43.3 kB / 445.8 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.915e-05/0.2022, allocations: 23.27 kB / 445.8 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.2022, allocations: 0 / 445.8 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002157/0.2024, allocations: 133 kB / 445.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.2024, allocations: 0 / 445.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002207/0.2026, allocations: 134.3 kB / 446.1 MB, free: 42.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.584e-05/0.2027, allocations: 54 kB / 446.1 MB, free: 42.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.899e-05/0.2027, allocations: 109.4 kB / 446.2 MB, free: 42.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.2027, allocations: 29.2 kB / 446.3 MB, free: 42.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.464e-05/0.2027, allocations: 81.2 kB / 446.3 MB, free: 42.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.278e-05/0.2028, allocations: 25.95 kB / 446.4 MB, free: 42.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.508e-05/0.2028, allocations: 36.59 kB / 446.4 MB, free: 42.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.043e-05/0.2028, allocations: 320.7 kB / 446.7 MB, free: 42.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.835e-05/0.2029, allocations: 47.86 kB / 446.8 MB, free: 42.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.696e-05/0.2029, allocations: 102.9 kB / 446.9 MB, free: 42.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.203, allocations: 153.3 kB / 447 MB, free: 42.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.203, allocations: 3.031 kB / 447 MB, free: 42.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001322/0.2032, allocations: 186.8 kB / 447.2 MB, free: 42.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.2032, allocations: 31.23 kB / 447.2 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2032, allocations: 6 kB / 447.2 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.2032, allocations: 3.062 kB / 447.2 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.697e-05/0.2033, allocations: 18.06 kB / 447.3 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.2033, allocations: 9.891 kB / 447.3 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.797e-05/0.2034, allocations: 6.797 kB / 447.3 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.358e-06/0.2034, allocations: 7.75 kB / 447.3 MB, free: 42 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 9.667e-05/0.2035, allocations: 130.5 kB / 447.4 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.2035, allocations: 5.875 kB / 447.4 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.419e-05/0.2035, allocations: 11.12 kB / 447.4 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2035, allocations: 0 / 447.4 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.2035, allocations: 6.875 kB / 447.4 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2035, allocations: 0 / 447.4 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.826e-05/0.2036, allocations: 121 kB / 447.6 MB, free: 41.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2036, allocations: 2.562 kB / 447.6 MB, free: 41.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.342e-05/0.2036, allocations: 2.844 kB / 447.6 MB, free: 41.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2036, allocations: 2.906 kB / 447.6 MB, free: 41.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.2036, allocations: 7.094 kB / 447.6 MB, free: 41.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.2036, allocations: 3.656 kB / 447.6 MB, free: 41.74 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2036, allocations: 3.938 kB / 447.6 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001291/0.2038, allocations: 128.7 kB / 447.7 MB, free: 41.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.082e-06/0.2038, allocations: 10.67 kB / 447.7 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.53e-05/0.2038, allocations: 6.109 kB / 447.7 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.2039, allocations: 20.12 kB / 447.7 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.516e-05/0.2039, allocations: 11.33 kB / 447.7 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.2039, allocations: 6.938 kB / 447.8 MB, free: 41.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.65e-05/0.2039, allocations: 89.59 kB / 447.8 MB, free: 41.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2039, allocations: 0 / 447.8 MB, free: 41.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001977/0.2041, allocations: 39.88 kB / 447.9 MB, free: 41.57 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.0003257/0.2045, allocations: 175.6 kB / 448.1 MB, free: 41.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.2046, allocations: 160.1 kB / 448.2 MB, free: 41.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2046, allocations: 0 / 448.2 MB, free: 41.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.501e-05/0.2047, allocations: 26.31 kB / 448.2 MB, free: 41.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.2048, allocations: 9.859 kB / 448.2 MB, free: 41.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002949/0.2051, allocations: 164.5 kB / 448.4 MB, free: 41.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.131e-05/0.2051, allocations: 72.62 kB / 448.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.244e-05/0.2051, allocations: 17.59 kB / 448.5 MB, free: 41.17 MB / 410.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2051, allocations: 0 / 448.5 MB, free: 41.17 MB / 410.7 MB Notification: Performance of Templates: time 0.002651/0.2078, allocations: 1.834 MB / 450.3 MB, free: 41.05 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.184896387159824]