Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 108.3 kB / 17.21 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001929/0.001929, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 222.9 MB / 241.8 MB, free: 15.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2127/0.2127, allocations: 44.19 MB / 336.1 MB, free: 2.883 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 62.47 kB / 407.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1403, allocations: 60.82 MB / 468.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001772/0.1421, allocations: 0.5877 MB / 469.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009062/0.143, allocations: 457.1 kB / 469.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.068e-05/0.143, allocations: 0 / 469.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.167e-05/0.1431, allocations: 7.922 kB / 469.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.1433, allocations: 8 kB / 469.6 MB, free: 13.77 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0004989/0.1438, allocations: 142.8 kB / 469.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.1439, allocations: 83.84 kB / 469.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.318e-05/0.144, allocations: 4 kB / 469.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.172e-05/0.144, allocations: 43.89 kB / 469.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.09e-05/0.1441, allocations: 19.92 kB / 469.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.1441, allocations: 4 kB / 469.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001805/0.1443, allocations: 87.91 kB / 469.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.988e-05/0.1444, allocations: 27.89 kB / 470 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.876e-05/0.1445, allocations: 27.91 kB / 470 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.1447, allocations: 119.8 kB / 470.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1447, allocations: 3.938 kB / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1447, allocations: 3.984 kB / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.339e-06/0.1447, allocations: 4 kB / 470.1 MB, free: 13.21 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.0006148/0.1453, allocations: 409.2 kB / 470.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1454, allocations: 8.031 kB / 470.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.848e-05/0.1454, allocations: 4.938 kB / 470.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.1456, allocations: 176.4 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.1457, allocations: 384 / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.479e-05/0.1457, allocations: 12.3 kB / 470.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.1459, allocations: 94.14 kB / 470.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.1459, allocations: 192 / 470.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.1459, allocations: 11.92 kB / 470.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.1459, allocations: 4 kB / 470.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.755e-05/0.146, allocations: 27.97 kB / 470.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001992/0.1462, allocations: 173.8 kB / 471 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.293e-05/0.1463, allocations: 38.56 kB / 471.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.724e-05/0.1464, allocations: 24.91 kB / 471.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.1464, allocations: 4 kB / 471.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002475/0.1466, allocations: 139.3 kB / 471.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.1467, allocations: 0 / 471.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002822/0.1469, allocations: 125.5 kB / 471.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.147, allocations: 55.41 kB / 471.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.691e-05/0.1471, allocations: 105.8 kB / 471.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.1471, allocations: 29.7 kB / 471.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.92e-05/0.1471, allocations: 80.14 kB / 471.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.082e-05/0.1472, allocations: 23.72 kB / 471.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.1472, allocations: 29.7 kB / 471.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.1473, allocations: 318.8 kB / 472 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.625e-05/0.1474, allocations: 23.98 kB / 472 MB, free: 11.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.1475, allocations: 82.78 kB / 472.1 MB, free: 11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.1477, allocations: 144.4 kB / 472.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1478, allocations: 0 / 472.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002013/0.148, allocations: 159.1 kB / 472.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.148, allocations: 37.62 kB / 472.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.148, allocations: 4.219 kB / 472.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.148, allocations: 4 kB / 472.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.1481, allocations: 15.94 kB / 472.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.1482, allocations: 12.05 kB / 472.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.802e-05/0.1482, allocations: 11.91 kB / 472.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.1482, allocations: 4 kB / 472.5 MB, free: 10.57 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.0001285/0.1484, allocations: 129.7 kB / 472.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.904e-05/0.1484, allocations: 11.92 kB / 472.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.237e-05/0.1484, allocations: 11.97 kB / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.1484, allocations: 0 / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.1485, allocations: 0 / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1485, allocations: 0 / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.1486, allocations: 177.5 kB / 472.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1486, allocations: 0 / 472.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.541e-05/0.1487, allocations: 12.06 kB / 472.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1487, allocations: 3.938 kB / 472.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.1487, allocations: 0 / 472.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1487, allocations: 0 / 472.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1487, allocations: 12.2 kB / 472.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002001/0.1489, allocations: 133 kB / 473 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.857e-05/0.149, allocations: 88.94 kB / 473 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.999e-05/0.149, allocations: 4 kB / 473 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.1492, allocations: 16.16 kB / 473.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.598e-05/0.1492, allocations: 7.984 kB / 473.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.1493, allocations: 11.98 kB / 473.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.432e-05/0.1493, allocations: 83.28 kB / 473.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1493, allocations: 0 / 473.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002657/0.1496, allocations: 39.98 kB / 473.2 MB, free: 9.746 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.0003728/0.15, allocations: 176.9 kB / 473.4 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001979/0.1502, allocations: 131.2 kB / 473.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1502, allocations: 0 / 473.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.842e-05/0.1502, allocations: 31.92 kB / 473.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001593/0.1504, allocations: 11.98 kB / 473.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003436/0.1508, allocations: 147 kB / 473.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.151, allocations: 0.6848 MB / 474.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.724e-05/0.1511, allocations: 20.64 kB / 474.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.235e-05/0.1511, allocations: 11.44 kB / 474.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1511, allocations: 0 / 474.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of Templates: time 0.004456/0.1556, allocations: 1.923 MB / 476.3 MB, free: 6.566 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches