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.001133/0.001133, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001104/0.001104, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2549/0.2549, allocations: 46.11 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 79.84 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1166, allocations: 62.44 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001727/0.1184, allocations: 0.5222 MB / 482 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00088/0.1193, allocations: 453.1 kB / 482.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.377e-05/0.1193, allocations: 0 / 482.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.749e-05/0.1194, allocations: 7.938 kB / 482.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001324/0.1196, allocations: 7.922 kB / 482.4 MB, free: 3.547 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.0005714/0.1202, allocations: 167.6 kB / 482.6 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001498/0.1203, allocations: 79.86 kB / 482.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.633e-05/0.1204, allocations: 0 / 482.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.628e-05/0.1204, allocations: 47.89 kB / 482.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.585e-05/0.1205, allocations: 19.91 kB / 482.7 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.253e-05/0.1205, allocations: 4 kB / 482.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.1207, allocations: 95.84 kB / 482.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.305e-05/0.1208, allocations: 27.95 kB / 482.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.716e-05/0.1208, allocations: 19.92 kB / 482.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.121, allocations: 123.7 kB / 483 MB, free: 2.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.121, allocations: 4 kB / 483 MB, free: 2.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.121, allocations: 0 / 483 MB, free: 2.969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.121, allocations: 0 / 483 MB, free: 2.969 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.0005676/0.1216, allocations: 409.1 kB / 483.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.1217, allocations: 12.03 kB / 483.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.783e-05/0.1217, allocations: 0.9375 kB / 483.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001905/0.1219, allocations: 192.2 kB / 483.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.1219, allocations: 384 / 483.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.122, allocations: 4.375 kB / 483.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.1222, allocations: 90.19 kB / 483.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.1222, allocations: 4.188 kB / 483.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.1222, allocations: 3.938 kB / 483.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1222, allocations: 0 / 483.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.418e-05/0.1223, allocations: 23.97 kB / 483.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001687/0.1224, allocations: 173.5 kB / 483.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.1226, allocations: 46.5 kB / 483.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.621e-05/0.1226, allocations: 32.89 kB / 484 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.1226, allocations: 0 / 484 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002545/0.1229, allocations: 135.2 kB / 484.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.192e-06/0.1229, allocations: 0 / 484.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000272/0.1232, allocations: 125.6 kB / 484.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.1232, allocations: 55.34 kB / 484.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.796e-05/0.1233, allocations: 97.86 kB / 484.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.1233, allocations: 33.69 kB / 484.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.934e-05/0.1234, allocations: 84.28 kB / 484.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.122e-05/0.1234, allocations: 23.72 kB / 484.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.694e-05/0.1235, allocations: 41.64 kB / 484.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.243e-05/0.1236, allocations: 314.8 kB / 484.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.056e-05/0.1236, allocations: 27.98 kB / 484.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.401e-05/0.1237, allocations: 69.95 kB / 485 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001775/0.1239, allocations: 148.4 kB / 485.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1239, allocations: 0 / 485.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002054/0.1241, allocations: 167.1 kB / 485.3 MB, free: 420 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.064e-05/0.1241, allocations: 41.62 kB / 485.3 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1242, allocations: 0 / 485.3 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.1242, allocations: 4 kB / 485.3 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.1243, allocations: 12 kB / 485.3 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.1243, allocations: 7.938 kB / 485.3 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.908e-05/0.1244, allocations: 11.89 kB / 485.3 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.1244, allocations: 8.219 kB / 485.4 MB, free: 328 kB / 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.0001284/0.1245, allocations: 129.8 kB / 485.5 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.1245, allocations: 7.938 kB / 485.5 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.28e-05/0.1246, allocations: 7.953 kB / 485.5 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.1246, allocations: 0 / 485.5 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1246, allocations: 0 / 485.5 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.1246, allocations: 4 kB / 485.5 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.1248, allocations: 173.5 kB / 485.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1248, allocations: 4 kB / 485.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.598e-05/0.1248, allocations: 11.88 kB / 485.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/0.1248, allocations: 3.938 kB / 485.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.1249, allocations: 4 kB / 485.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1249, allocations: 0 / 485.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1249, allocations: 288 / 485.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/0.1251, allocations: 133 kB / 485.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.75e-05/0.1251, allocations: 92.94 kB / 485.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.1251, allocations: 4 kB / 485.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.1253, allocations: 24.03 kB / 485.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.369e-05/0.1254, allocations: 7.938 kB / 486 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.1254, allocations: 7.984 kB / 486 MB, free: 15.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.163e-05/0.1254, allocations: 79.28 kB / 486 MB, free: 15.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1254, allocations: 0 / 486 MB, free: 15.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.1257, allocations: 40 kB / 486.1 MB, free: 15.5 MB / 366.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.0003598/0.1261, allocations: 184.4 kB / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001942/0.1263, allocations: 131.2 kB / 486.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1263, allocations: 0 / 486.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.579e-05/0.1264, allocations: 24.42 kB / 486.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001731/0.1265, allocations: 15.98 kB / 486.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003291/0.1269, allocations: 136.9 kB / 486.6 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.1271, allocations: 0.6807 MB / 487.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.311e-05/0.1272, allocations: 20.58 kB / 487.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.454e-05/0.1272, allocations: 15.44 kB / 487.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1272, allocations: 3.938 kB / 487.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of Templates: time 0.00437/0.1316, allocations: 1.99 MB / 489.3 MB, free: 12.26 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 -s cvode -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) Reference file matches