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.0009538/0.0009539, allocations: 94.8 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009385/0.0009384, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2399/0.2399, allocations: 45.9 MB / 344 MB, free: 12.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002665, allocations: 8 kB / 417.9 MB, free: 20.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1389, allocations: 63.46 MB / 481.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007415/0.1397, allocations: 254.8 kB / 481.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008229/0.1405, allocations: 401.5 kB / 482 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.098e-05/0.1406, allocations: 0 / 482 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.933e-05/0.1407, allocations: 4 kB / 482 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.1408, allocations: 11.97 kB / 482 MB, free: 4.809 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.0004852/0.1413, allocations: 139.6 kB / 482.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.1414, allocations: 51.91 kB / 482.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.349e-05/0.1415, allocations: 4 kB / 482.2 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.583e-05/0.1415, allocations: 35.97 kB / 482.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.152e-05/0.1416, allocations: 23.89 kB / 482.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.169e-05/0.1416, allocations: 4 kB / 482.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001353/0.1417, allocations: 71.88 kB / 482.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.63e-05/0.1418, allocations: 19.97 kB / 482.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.179e-05/0.1419, allocations: 29.7 kB / 482.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001374/0.142, allocations: 87.8 kB / 482.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.142, allocations: 0 / 482.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.142, allocations: 0 / 482.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.142, allocations: 0 / 482.5 MB, free: 4.344 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.0004676/0.1425, allocations: 381 kB / 482.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.1425, allocations: 8.031 kB / 482.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.138e-05/0.1426, allocations: 8 kB / 482.9 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.1428, allocations: 186.9 kB / 483.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.1428, allocations: 4 kB / 483.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.1428, allocations: 0 / 483.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.143, allocations: 89.62 kB / 483.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.143, allocations: 0 / 483.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.1431, allocations: 0 / 483.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.1431, allocations: 0 / 483.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.044e-05/0.1431, allocations: 27.97 kB / 483.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001643/0.1433, allocations: 173.8 kB / 483.4 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.354e-05/0.1434, allocations: 54.5 kB / 483.4 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.458e-05/0.1434, allocations: 0 / 483.4 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000214/0.1436, allocations: 131.2 kB / 483.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.1437, allocations: 4 kB / 483.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003257/0.144, allocations: 198.7 kB / 483.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.144, allocations: 55.41 kB / 483.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.556e-05/0.1441, allocations: 101.8 kB / 483.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.1441, allocations: 29.7 kB / 483.9 MB, free: 2.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.447e-05/0.1442, allocations: 84.33 kB / 484 MB, free: 2.609 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.358e-05/0.1442, allocations: 31.78 kB / 484 MB, free: 2.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-06/0.1443, allocations: 3.938 kB / 484 MB, free: 2.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1444, allocations: 318.8 kB / 484.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.409e-05/0.1444, allocations: 23.97 kB / 484.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.296e-05/0.1445, allocations: 74.86 kB / 484.4 MB, free: 2.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.065e-05/0.1446, allocations: 65.64 kB / 484.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.1446, allocations: 0 / 484.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002036/0.1448, allocations: 159.1 kB / 484.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.1449, allocations: 33.7 kB / 484.7 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1449, allocations: 4 kB / 484.7 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1449, allocations: 4.219 kB / 484.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.145, allocations: 23.92 kB / 484.7 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.145, allocations: 4 kB / 484.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.899e-05/0.1451, allocations: 11.91 kB / 484.7 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.1451, allocations: 8.172 kB / 484.8 MB, free: 1.801 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,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001442/0.1452, allocations: 133 kB / 484.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.1453, allocations: 7.984 kB / 484.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.435e-05/0.1453, allocations: 11.95 kB / 484.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1453, allocations: 8 kB / 484.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1453, allocations: 0 / 484.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1453, allocations: 3.938 kB / 484.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000192/0.1455, allocations: 169.6 kB / 485.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.1456, allocations: 3.953 kB / 485.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.791e-05/0.1456, allocations: 7.984 kB / 485.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.1456, allocations: 4 kB / 485.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.1456, allocations: 0 / 485.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1456, allocations: 288 / 485.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1456, allocations: 0 / 485.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002054/0.1459, allocations: 133 kB / 485.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.1459, allocations: 88.97 kB / 485.3 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.1459, allocations: 11.98 kB / 485.3 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/0.1462, allocations: 15.98 kB / 485.3 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.604e-05/0.1462, allocations: 7.984 kB / 485.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.1462, allocations: 12 kB / 485.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.708e-05/0.1463, allocations: 83.27 kB / 485.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1463, allocations: 0 / 485.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002713/0.1465, allocations: 36 kB / 485.5 MB, free: 0.9844 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003821/0.1469, allocations: 188.9 kB / 485.7 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001896/0.1471, allocations: 127.2 kB / 485.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1471, allocations: 3.938 kB / 485.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.373e-05/0.1472, allocations: 31.98 kB / 485.8 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001034/0.1473, allocations: 0 / 485.8 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003311/0.1476, allocations: 151.1 kB / 486 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.1479, allocations: 0.6848 MB / 486.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.377e-05/0.148, allocations: 16.66 kB / 486.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.862e-05/0.148, allocations: 11.44 kB / 486.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.148, allocations: 0 / 486.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of Templates: time 0.004382/0.1524, allocations: 1.841 MB / 488.5 MB, free: 13.88 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","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches