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.001398/0.001398, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 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.001533/0.001533, allocations: 215.5 kB / 24.48 MB, free: 3.836 MB / 14.72 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 1.555/1.555, allocations: 230.5 MB / 258.1 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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.2283/0.2283, allocations: 46.94 MB / 361.5 MB, free: 3.977 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002426/0.002426, allocations: 75.88 kB / 0.4974 GB, free: 7.094 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3257, allocations: 66.09 MB / 0.5619 GB, free: 4.023 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001742/0.3274, allocations: 0.5149 MB / 0.5624 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009698/0.3284, allocations: 434.6 kB / 0.5628 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.567e-05/0.3284, allocations: 0 / 0.5628 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.386e-05/0.3285, allocations: 3.938 kB / 0.5628 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001244/0.3286, allocations: 11.94 kB / 0.5629 GB, free: 3.07 MB / 398.1 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.0006243/0.3292, allocations: 178.9 kB / 0.563 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001553/0.3294, allocations: 75.92 kB / 0.5631 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.934e-05/0.3294, allocations: 0 / 0.5631 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.717e-05/0.3295, allocations: 43.89 kB / 0.5631 GB, free: 2.781 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.436e-05/0.3296, allocations: 27.86 kB / 0.5632 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.225e-05/0.3296, allocations: 7.984 kB / 0.5632 GB, free: 2.746 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002702/0.3299, allocations: 123.8 kB / 0.5633 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.402e-05/0.3299, allocations: 23.95 kB / 0.5633 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.823e-05/0.33, allocations: 23.91 kB / 0.5633 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002417/0.3302, allocations: 130.1 kB / 0.5635 GB, free: 2.457 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3302, allocations: 0 / 0.5635 GB, free: 2.457 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3302, allocations: 3.938 kB / 0.5635 GB, free: 2.453 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.3302, allocations: 0 / 0.5635 GB, free: 2.453 MB / 398.1 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.000615/0.3309, allocations: 331.8 kB / 0.5638 GB, free: 2.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.3309, allocations: 16.03 kB / 0.5638 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.722e-05/0.3309, allocations: 8.891 kB / 0.5638 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.3311, allocations: 122.5 kB / 0.5639 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.3312, allocations: 4.375 kB / 0.5639 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.3312, allocations: 4.375 kB / 0.5639 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.3314, allocations: 90.19 kB / 0.564 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3314, allocations: 192 / 0.564 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.3314, allocations: 3.938 kB / 0.564 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3314, allocations: 0 / 0.564 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.78e-05/0.3315, allocations: 31.86 kB / 0.5641 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001685/0.3317, allocations: 109.3 kB / 0.5642 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.3318, allocations: 42.56 kB / 0.5642 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.413e-05/0.3318, allocations: 28.91 kB / 0.5642 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.3318, allocations: 0 / 0.5642 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002654/0.3321, allocations: 135.2 kB / 0.5644 GB, free: 1.422 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.3321, allocations: 0 / 0.5644 GB, free: 1.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003243/0.3324, allocations: 137.6 kB / 0.5645 GB, free: 1.281 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.3325, allocations: 59.41 kB / 0.5645 GB, free: 1.211 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.3326, allocations: 97.84 kB / 0.5646 GB, free: 1.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.3326, allocations: 29.7 kB / 0.5647 GB, free: 1.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.477e-05/0.3326, allocations: 80.14 kB / 0.5647 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.693e-05/0.3327, allocations: 27.84 kB / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/0.3327, allocations: 29.72 kB / 0.5648 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3329, allocations: 318.8 kB / 0.5651 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.875e-05/0.333, allocations: 49.69 kB / 0.5651 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.3331, allocations: 100.5 kB / 0.5652 GB, free: 432 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.3333, allocations: 148.4 kB / 0.5654 GB, free: 252 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.3333, allocations: 4 kB / 0.5654 GB, free: 248 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002539/0.3335, allocations: 180.9 kB / 0.5656 GB, free: 48 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/0.3336, allocations: 40.11 kB / 0.5656 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.3336, allocations: 3.938 kB / 0.5656 GB, free: 0 / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/0.3336, allocations: 4.125 kB / 0.5656 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.3337, allocations: 23.92 kB / 0.5656 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.3337, allocations: 7.938 kB / 0.5656 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.256e-05/0.3338, allocations: 11.89 kB / 0.5656 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.3338, allocations: 4 kB / 0.5657 GB, free: 15.95 MB / 414.1 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.0001514/0.3339, allocations: 132.7 kB / 0.5658 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.334, allocations: 7.953 kB / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.256e-05/0.334, allocations: 20 kB / 0.5658 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.334, allocations: 192 / 0.5658 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.334, allocations: 0 / 0.5658 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.334, allocations: 3.984 kB / 0.5658 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001378/0.3342, allocations: 117.2 kB / 0.5659 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3342, allocations: 0 / 0.5659 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.614e-05/0.3342, allocations: 7.984 kB / 0.5659 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3342, allocations: 288 / 0.5659 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.3342, allocations: 8.062 kB / 0.5659 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.3342, allocations: 3.938 kB / 0.5659 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3342, allocations: 7.938 kB / 0.5659 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002228/0.3344, allocations: 133 kB / 0.5661 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.364e-05/0.3345, allocations: 11.89 kB / 0.5661 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.3345, allocations: 0 / 0.5661 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.3347, allocations: 23.91 kB / 0.5661 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.479e-05/0.3347, allocations: 7.984 kB / 0.5661 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3347, allocations: 4 kB / 0.5661 GB, free: 15.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.619e-05/0.3348, allocations: 83.27 kB / 0.5662 GB, free: 15.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3348, allocations: 0 / 0.5662 GB, free: 15.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002872/0.335, allocations: 43.94 kB / 0.5662 GB, free: 15.28 MB / 414.1 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.0004313/0.3355, allocations: 179.1 kB / 0.5664 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002338/0.3357, allocations: 149 kB / 0.5666 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3357, allocations: 448 / 0.5666 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.882e-05/0.3358, allocations: 27.98 kB / 0.5666 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001589/0.3359, allocations: 17.11 kB / 0.5666 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003834/0.3363, allocations: 170.4 kB / 0.5668 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.507e-05/0.3364, allocations: 67.28 kB / 0.5668 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.091e-05/0.3364, allocations: 19.42 kB / 0.5668 GB, free: 14.61 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3364, allocations: 0 / 0.5668 GB, free: 14.61 MB / 414.1 MB Notification: Performance of Templates: time 0.003909/0.3403, allocations: 1.818 MB / 0.5686 GB, free: 12.79 MB / 414.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/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: 8.583977886009961]