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.001171/0.001171, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.233/0.233, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 77.22 kB / 417.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1335, allocations: 62.45 MB / 480.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002149/0.1357, allocations: 0.5229 MB / 480.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009874/0.1368, allocations: 449.3 kB / 481 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.551e-05/0.1368, allocations: 0 / 481 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.101e-05/0.1369, allocations: 3.938 kB / 481 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.1371, allocations: 7.984 kB / 481.1 MB, free: 4.258 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.0006558/0.1377, allocations: 167 kB / 481.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.1379, allocations: 79.84 kB / 481.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.747e-05/0.138, allocations: 4 kB / 481.3 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.679e-05/0.138, allocations: 43.89 kB / 481.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.726e-05/0.1381, allocations: 19.92 kB / 481.4 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.301e-05/0.1382, allocations: 4 kB / 481.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001986/0.1384, allocations: 103.8 kB / 481.5 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.174e-05/0.1384, allocations: 15.97 kB / 481.5 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.424e-05/0.1385, allocations: 23.91 kB / 481.5 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002199/0.1387, allocations: 135.7 kB / 481.6 MB, free: 3.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1387, allocations: 0 / 481.6 MB, free: 3.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1388, allocations: 4 kB / 481.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1388, allocations: 3.938 kB / 481.6 MB, free: 3.668 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.0005592/0.1393, allocations: 401.1 kB / 482 MB, free: 3.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.1394, allocations: 8.031 kB / 482 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.094e-05/0.1394, allocations: 4.938 kB / 482.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001983/0.1396, allocations: 184.2 kB / 482.2 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.1397, allocations: 4.359 kB / 482.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.389e-05/0.1397, allocations: 8.375 kB / 482.2 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/0.1399, allocations: 90.19 kB / 482.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.1399, allocations: 192 / 482.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.1399, allocations: 7.922 kB / 482.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.1399, allocations: 0 / 482.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.822e-05/0.14, allocations: 27.98 kB / 482.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001871/0.1402, allocations: 169.8 kB / 482.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000109/0.1403, allocations: 50.5 kB / 482.6 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.519e-05/0.1404, allocations: 20.91 kB / 482.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.1404, allocations: 4 kB / 482.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002491/0.1407, allocations: 131.5 kB / 482.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.1407, allocations: 0 / 482.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003349/0.141, allocations: 125.5 kB / 482.9 MB, free: 2.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.1411, allocations: 55.41 kB / 482.9 MB, free: 2.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.03e-05/0.1412, allocations: 101.8 kB / 483 MB, free: 2.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.1412, allocations: 25.7 kB / 483 MB, free: 2.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.523e-05/0.1413, allocations: 92.14 kB / 483.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.1413, allocations: 31.58 kB / 483.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.236e-05/0.1414, allocations: 25.72 kB / 483.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.1415, allocations: 318.8 kB / 483.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.121e-05/0.1416, allocations: 23.98 kB / 483.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.1417, allocations: 81.38 kB / 483.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002342/0.1419, allocations: 144.4 kB / 483.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.1419, allocations: 4 kB / 483.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002469/0.1422, allocations: 155.1 kB / 483.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.38e-05/0.1422, allocations: 37.92 kB / 483.9 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1423, allocations: 3.938 kB / 483.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1423, allocations: 4 kB / 483.9 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.1424, allocations: 24.14 kB / 484 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1424, allocations: 8 kB / 484 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.977e-05/0.1425, allocations: 7.906 kB / 484 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.1425, allocations: 4 kB / 484 MB, free: 1.035 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.0001693/0.1427, allocations: 129.7 kB / 484.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/0.1427, allocations: 11.92 kB / 484.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.749e-05/0.1428, allocations: 7.969 kB / 484.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1428, allocations: 4.188 kB / 484.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1428, allocations: 4 kB / 484.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.1428, allocations: 3.984 kB / 484.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001718/0.143, allocations: 173.5 kB / 484.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.143, allocations: 3.938 kB / 484.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.565e-05/0.143, allocations: 4 kB / 484.3 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.143, allocations: 7.938 kB / 484.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.143, allocations: 7.984 kB / 484.3 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1431, allocations: 0 / 484.3 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1431, allocations: 0 / 484.3 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002085/0.1433, allocations: 133 kB / 484.5 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.1e-05/0.1433, allocations: 84.95 kB / 484.5 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.1434, allocations: 4 kB / 484.5 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.1436, allocations: 19.97 kB / 484.6 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.399e-05/0.1436, allocations: 4 kB / 484.6 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.1436, allocations: 7.984 kB / 484.6 MB, free: 348 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.554e-05/0.1437, allocations: 75.28 kB / 484.7 MB, free: 272 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1437, allocations: 0 / 484.7 MB, free: 272 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002693/0.144, allocations: 51.98 kB / 484.7 MB, free: 220 kB / 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.0003902/0.1444, allocations: 179.4 kB / 484.9 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000232/0.1446, allocations: 139.5 kB / 485 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1446, allocations: 0 / 485 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.719e-05/0.1447, allocations: 31.98 kB / 485 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.1448, allocations: 8 kB / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003514/0.1452, allocations: 140.8 kB / 485.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.1455, allocations: 0.6846 MB / 485.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.247e-05/0.1455, allocations: 16.84 kB / 485.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.538e-05/0.1456, allocations: 23.31 kB / 485.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1456, allocations: 0 / 485.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of Templates: time 0.004817/0.1504, allocations: 1.982 MB / 487.9 MB, free: 12.97 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/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_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches