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.001434/0.001434, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001707/0.001707, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3018/0.3018, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 78.75 kB / 417 MB, free: 20.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1365, allocations: 62.43 MB / 479.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001768/0.1383, allocations: 0.5981 MB / 480.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008175/0.1391, allocations: 438.6 kB / 480.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.05e-05/0.1392, allocations: 0 / 480.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.102e-05/0.1393, allocations: 0 / 480.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.1394, allocations: 3.938 kB / 480.5 MB, free: 4.574 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.0005348/0.1399, allocations: 154.9 kB / 480.7 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001492/0.1401, allocations: 83.91 kB / 480.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.778e-05/0.1402, allocations: 7.984 kB / 480.8 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.911e-05/0.1402, allocations: 35.92 kB / 480.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.537e-05/0.1403, allocations: 35.77 kB / 480.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.1403, allocations: 4 kB / 480.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.1405, allocations: 91.91 kB / 480.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.891e-05/0.1405, allocations: 19.97 kB / 480.9 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.271e-05/0.1406, allocations: 27.89 kB / 481 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.1408, allocations: 127.7 kB / 481.1 MB, free: 4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1408, allocations: 3.938 kB / 481.1 MB, free: 3.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1408, allocations: 0 / 481.1 MB, free: 3.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1408, allocations: 4 kB / 481.1 MB, free: 3.992 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.0005251/0.1414, allocations: 401.1 kB / 481.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1414, allocations: 16.02 kB / 481.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.092e-05/0.1415, allocations: 0.9375 kB / 481.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001683/0.1416, allocations: 184.3 kB / 481.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.1417, allocations: 384 / 481.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.1417, allocations: 8.375 kB / 481.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.1419, allocations: 86.19 kB / 481.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.1419, allocations: 4.188 kB / 481.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.1419, allocations: 7.938 kB / 481.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1419, allocations: 0 / 481.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.743e-05/0.142, allocations: 23.92 kB / 481.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000176/0.1422, allocations: 173.8 kB / 482 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.385e-05/0.1423, allocations: 46.55 kB / 482 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.561e-05/0.1423, allocations: 24.92 kB / 482 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/0.1424, allocations: 0 / 482 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.1426, allocations: 135.2 kB / 482.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.1426, allocations: 0 / 482.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002898/0.1429, allocations: 129.7 kB / 482.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.143, allocations: 55.39 kB / 482.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.649e-05/0.143, allocations: 105.8 kB / 482.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.1431, allocations: 29.7 kB / 482.5 MB, free: 2.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.394e-05/0.1431, allocations: 88.14 kB / 482.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.1432, allocations: 27.92 kB / 482.6 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.605e-05/0.1432, allocations: 33.7 kB / 482.6 MB, free: 2.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.811e-05/0.1433, allocations: 310.8 kB / 482.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.786e-05/0.1434, allocations: 31.92 kB / 483 MB, free: 1.883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.538e-05/0.1435, allocations: 74.84 kB / 483 MB, free: 1.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.1437, allocations: 148.4 kB / 483.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1437, allocations: 0 / 483.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002057/0.1439, allocations: 163.1 kB / 483.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.1439, allocations: 40.3 kB / 483.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1439, allocations: 224 / 483.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.144, allocations: 8 kB / 483.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.1441, allocations: 23.92 kB / 483.4 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.1441, allocations: 4 kB / 483.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.716e-05/0.1442, allocations: 3.906 kB / 483.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.1442, allocations: 8 kB / 483.4 MB, free: 1.348 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.0001462/0.1443, allocations: 132.4 kB / 483.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.72e-05/0.1444, allocations: 7.938 kB / 483.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.229e-05/0.1444, allocations: 11.97 kB / 483.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1444, allocations: 0 / 483.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1444, allocations: 0 / 483.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1444, allocations: 11.92 kB / 483.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.1446, allocations: 169.5 kB / 483.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1446, allocations: 3.938 kB / 483.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.485e-05/0.1446, allocations: 7.984 kB / 483.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1446, allocations: 3.938 kB / 483.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.1447, allocations: 4 kB / 483.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1447, allocations: 0 / 483.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1447, allocations: 4 kB / 483.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001894/0.1449, allocations: 129 kB / 483.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.333e-05/0.1449, allocations: 88.95 kB / 484 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.1449, allocations: 0 / 484 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.1451, allocations: 19.97 kB / 484 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.1452, allocations: 7.984 kB / 484 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.1452, allocations: 4 kB / 484 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.119e-05/0.1452, allocations: 83.28 kB / 484.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1452, allocations: 0 / 484.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002733/0.1455, allocations: 47.98 kB / 484.2 MB, free: 0.5312 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.0003624/0.1459, allocations: 178.1 kB / 484.3 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002134/0.1461, allocations: 131.2 kB / 484.5 MB, free: 228 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1461, allocations: 0 / 484.5 MB, free: 228 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.782e-05/0.1462, allocations: 31.98 kB / 484.5 MB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001565/0.1464, allocations: 4 kB / 484.5 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003269/0.1467, allocations: 153.3 kB / 484.6 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.1469, allocations: 0.6851 MB / 485.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.633e-05/0.147, allocations: 12.66 kB / 485.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.439e-05/0.147, allocations: 23.38 kB / 485.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.147, allocations: 0 / 485.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of Templates: time 0.004244/0.1513, allocations: 1.987 MB / 487.4 MB, free: 13.28 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