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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001997/0.001997, allocations: 111.7 kB / 17.98 MB, free: 5.215 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002612/0.002612, allocations: 205.8 kB / 18.92 MB, free: 4.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.419/2.419, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.5596/0.5596, allocations: 46.1 MB / 344.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002603/0.002603, allocations: 75.94 kB / 417.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2362, allocations: 62.44 MB / 480.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.003615/0.2399, allocations: 0.5905 MB / 480.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.2414, allocations: 438.6 kB / 481.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.095e-05/0.2415, allocations: 0 / 481.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.2417, allocations: 0 / 481.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002235/0.2419, allocations: 11.92 kB / 481.2 MB, free: 4.578 MB / 350.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.001097/0.243, allocations: 147.2 kB / 481.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002732/0.2433, allocations: 83.86 kB / 481.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.088e-05/0.2434, allocations: 3.984 kB / 481.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.2435, allocations: 47.91 kB / 481.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.2436, allocations: 19.91 kB / 481.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.011e-05/0.2437, allocations: 4 kB / 481.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003361/0.244, allocations: 99.83 kB / 481.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.613e-05/0.2441, allocations: 19.92 kB / 481.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.427e-05/0.2442, allocations: 27.89 kB / 481.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003806/0.2446, allocations: 91.8 kB / 481.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.2447, allocations: 0 / 481.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.408e-06/0.2447, allocations: 0 / 481.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.2447, allocations: 0 / 481.7 MB, free: 4.047 MB / 350.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.00106/0.2458, allocations: 405.1 kB / 482.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.769e-05/0.2458, allocations: 8.031 kB / 482.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.246, allocations: 8.922 kB / 482.1 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.2463, allocations: 184.3 kB / 482.3 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.2463, allocations: 8.375 kB / 482.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.2463, allocations: 4.312 kB / 482.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003204/0.2467, allocations: 94.17 kB / 482.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2467, allocations: 192 / 482.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.2e-05/0.2467, allocations: 3.938 kB / 482.4 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.2468, allocations: 8 kB / 482.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.2469, allocations: 19.98 kB / 482.4 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002883/0.2472, allocations: 173.8 kB / 482.6 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.2473, allocations: 42.56 kB / 482.6 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.311e-05/0.2474, allocations: 32.84 kB / 482.7 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.2475, allocations: 0 / 482.7 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004585/0.2479, allocations: 131.3 kB / 482.8 MB, free: 2.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.435e-06/0.2479, allocations: 0 / 482.8 MB, free: 2.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004303/0.2484, allocations: 121.5 kB / 482.9 MB, free: 2.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.914e-05/0.2485, allocations: 55.41 kB / 483 MB, free: 2.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.867e-05/0.2486, allocations: 101.8 kB / 483.1 MB, free: 2.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.847e-05/0.2486, allocations: 29.7 kB / 483.1 MB, free: 2.438 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.283e-05/0.2487, allocations: 92.14 kB / 483.2 MB, free: 2.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.754e-05/0.2487, allocations: 31.78 kB / 483.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.134e-05/0.2488, allocations: 33.7 kB / 483.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.249, allocations: 314.8 kB / 483.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.823e-05/0.2491, allocations: 24.2 kB / 483.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.2492, allocations: 81.66 kB / 483.7 MB, free: 1.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.2495, allocations: 152.4 kB / 483.8 MB, free: 1.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.2495, allocations: 3.938 kB / 483.8 MB, free: 1.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003385/0.2499, allocations: 155.1 kB / 484 MB, free: 1.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.03e-05/0.2499, allocations: 37.64 kB / 484 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.25, allocations: 4 kB / 484 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.25, allocations: 0 / 484 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.2502, allocations: 28.14 kB / 484 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.2502, allocations: 0 / 484 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.538e-05/0.2503, allocations: 7.906 kB / 484.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.2503, allocations: 8 kB / 484.1 MB, free: 1.395 MB / 350.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.0002085/0.2506, allocations: 129.7 kB / 484.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.896e-05/0.2506, allocations: 7.938 kB / 484.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.988e-05/0.2507, allocations: 11.97 kB / 484.2 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.2507, allocations: 4 kB / 484.2 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.2507, allocations: 0 / 484.2 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2507, allocations: 0 / 484.2 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.2509, allocations: 173.5 kB / 484.4 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.2509, allocations: 4 kB / 484.4 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.102e-05/0.251, allocations: 4 kB / 484.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.251, allocations: 3.938 kB / 484.4 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.251, allocations: 7.984 kB / 484.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2511, allocations: 0 / 484.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2511, allocations: 0 / 484.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003043/0.2514, allocations: 133 kB / 484.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.464e-05/0.2514, allocations: 84.95 kB / 484.6 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.278e-05/0.2515, allocations: 8.062 kB / 484.6 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.2518, allocations: 24.14 kB / 484.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.463e-05/0.2518, allocations: 11.97 kB / 484.7 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.2519, allocations: 4 kB / 484.7 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.809e-05/0.2519, allocations: 79.28 kB / 484.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2519, allocations: 4 kB / 484.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004924/0.2524, allocations: 47.98 kB / 484.8 MB, free: 0.5703 MB / 350.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.0005745/0.253, allocations: 172.1 kB / 485 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000307/0.2534, allocations: 135.2 kB / 485.1 MB, free: 272 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.2534, allocations: 0 / 485.1 MB, free: 272 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.446e-05/0.2535, allocations: 35.92 kB / 485.1 MB, free: 236 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/0.2537, allocations: 7.375 kB / 485.1 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005438/0.2543, allocations: 178.5 kB / 485.3 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.2547, allocations: 0.6816 MB / 486 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.958e-05/0.2547, allocations: 15.44 kB / 486 MB, free: 15.3 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2547, allocations: 0 / 486 MB, free: 15.3 MB / 366.1 MB Notification: Performance of Templates: time 0.00657/0.2613, allocations: 1.804 MB / 487.8 MB, free: 13.49 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) "" 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