Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001691/0.001691, allocations: 111.8 kB / 19.17 MB, free: 3.891 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002158/0.002158, allocations: 208.9 kB / 22.13 MB, free: 0.9375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 230.2 MB / 255.1 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2326/0.2326, allocations: 46.89 MB / 358.1 MB, free: 10.53 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002239/0.002239, allocations: 83.86 kB / 0.4924 GB, free: 8.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1352, allocations: 65.98 MB / 0.5568 GB, free: 5.973 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001898/0.1371, allocations: 0.5416 MB / 0.5573 GB, free: 5.426 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009845/0.1381, allocations: 448.8 kB / 0.5577 GB, free: 4.988 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.985e-05/0.1381, allocations: 0 / 0.5577 GB, free: 4.988 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 9.137e-05/0.1382, allocations: 3.938 kB / 0.5578 GB, free: 4.984 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001274/0.1384, allocations: 3.984 kB / 0.5578 GB, free: 4.98 MB / 414.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.0006289/0.139, allocations: 167.2 kB / 0.5579 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000189/0.1392, allocations: 91.8 kB / 0.558 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.704e-05/0.1392, allocations: 11.91 kB / 0.558 GB, free: 4.719 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.925e-05/0.1393, allocations: 35.98 kB / 0.558 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.287e-05/0.1394, allocations: 23.89 kB / 0.5581 GB, free: 4.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.176e-05/0.1394, allocations: 7.938 kB / 0.5581 GB, free: 4.652 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002223/0.1396, allocations: 103.8 kB / 0.5582 GB, free: 4.551 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.905e-05/0.1397, allocations: 19.95 kB / 0.5582 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.443e-05/0.1397, allocations: 27.84 kB / 0.5582 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.14, allocations: 123.7 kB / 0.5583 GB, free: 4.383 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.14, allocations: 4 kB / 0.5583 GB, free: 4.379 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.14, allocations: 4 kB / 0.5583 GB, free: 4.375 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.14, allocations: 0 / 0.5583 GB, free: 4.375 MB / 414.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.0006735/0.1407, allocations: 408.9 kB / 0.5587 GB, free: 3.918 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1407, allocations: 8.031 kB / 0.5587 GB, free: 3.91 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.632e-05/0.1408, allocations: 8.891 kB / 0.5588 GB, free: 3.902 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.141, allocations: 188.2 kB / 0.5589 GB, free: 3.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-06/0.141, allocations: 384 / 0.5589 GB, free: 3.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.026e-05/0.141, allocations: 4.375 kB / 0.5589 GB, free: 3.676 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002224/0.1412, allocations: 90.19 kB / 0.559 GB, free: 3.582 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.1413, allocations: 4.188 kB / 0.559 GB, free: 3.578 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.17e-05/0.1413, allocations: 3.938 kB / 0.559 GB, free: 3.574 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1413, allocations: 0 / 0.559 GB, free: 3.574 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.347e-05/0.1413, allocations: 27.97 kB / 0.5591 GB, free: 3.547 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002225/0.1416, allocations: 161.7 kB / 0.5592 GB, free: 3.34 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.829e-05/0.1417, allocations: 46.5 kB / 0.5593 GB, free: 3.285 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.366e-05/0.1417, allocations: 20.84 kB / 0.5593 GB, free: 3.262 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.1417, allocations: 4.062 kB / 0.5593 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000303/0.142, allocations: 131.5 kB / 0.5594 GB, free: 3.117 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.142, allocations: 0 / 0.5594 GB, free: 3.117 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003676/0.1424, allocations: 129.5 kB / 0.5595 GB, free: 2.984 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.1425, allocations: 63.33 kB / 0.5596 GB, free: 2.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.1426, allocations: 101.9 kB / 0.5597 GB, free: 2.801 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.1426, allocations: 37.62 kB / 0.5597 GB, free: 2.758 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.857e-05/0.1427, allocations: 80.14 kB / 0.5598 GB, free: 2.676 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.408e-05/0.1427, allocations: 19.86 kB / 0.5598 GB, free: 2.656 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.633e-05/0.1428, allocations: 33.98 kB / 0.5599 GB, free: 2.617 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1429, allocations: 318.8 kB / 0.5602 GB, free: 2.297 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.415e-05/0.143, allocations: 23.98 kB / 0.5602 GB, free: 2.273 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.1431, allocations: 78.8 kB / 0.5603 GB, free: 2.172 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.1433, allocations: 152.4 kB / 0.5604 GB, free: 1.992 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1433, allocations: 0 / 0.5604 GB, free: 1.992 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002466/0.1435, allocations: 159.2 kB / 0.5606 GB, free: 1.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.1436, allocations: 33.86 kB / 0.5606 GB, free: 1.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1436, allocations: 8 kB / 0.5606 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.1436, allocations: 0 / 0.5606 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.1437, allocations: 19.98 kB / 0.5606 GB, free: 1.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.1437, allocations: 0 / 0.5606 GB, free: 1.758 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.091e-05/0.1438, allocations: 19.83 kB / 0.5606 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.1438, allocations: 4 kB / 0.5606 GB, free: 1.734 MB / 414.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.0001719/0.144, allocations: 131 kB / 0.5608 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.09e-05/0.144, allocations: 15.89 kB / 0.5608 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.942e-05/0.144, allocations: 11.95 kB / 0.5608 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.144, allocations: 0 / 0.5608 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.144, allocations: 0 / 0.5608 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.144, allocations: 0 / 0.5608 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.1442, allocations: 169.6 kB / 0.5609 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1442, allocations: 0 / 0.5609 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.673e-05/0.1443, allocations: 11.98 kB / 0.561 GB, free: 1.344 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.1443, allocations: 3.938 kB / 0.561 GB, free: 1.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.1443, allocations: 0 / 0.561 GB, free: 1.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1443, allocations: 0 / 0.561 GB, free: 1.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1443, allocations: 7.938 kB / 0.561 GB, free: 1.332 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000229/0.1445, allocations: 129.1 kB / 0.5611 GB, free: 1.188 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.527e-05/0.1446, allocations: 85 kB / 0.5612 GB, free: 1.086 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.17e-05/0.1446, allocations: 7.984 kB / 0.5612 GB, free: 1.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.1448, allocations: 11.98 kB / 0.5612 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.398e-05/0.1448, allocations: 7.984 kB / 0.5612 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.1448, allocations: 12 kB / 0.5612 GB, free: 1.047 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.907e-05/0.1449, allocations: 83.27 kB / 0.5613 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1449, allocations: 3.938 kB / 0.5613 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003024/0.1452, allocations: 39.94 kB / 0.5613 GB, free: 0.9219 MB / 414.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.0004556/0.1457, allocations: 195.1 kB / 0.5615 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002475/0.1459, allocations: 127.2 kB / 0.5616 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1459, allocations: 0 / 0.5616 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.584e-05/0.146, allocations: 27.92 kB / 0.5617 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/0.1462, allocations: 11.98 kB / 0.5617 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000416/0.1466, allocations: 166.5 kB / 0.5618 GB, free: 380 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.1469, allocations: 0.6811 MB / 0.5625 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.103e-05/0.147, allocations: 23.42 kB / 0.5625 GB, free: 15.64 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.147, allocations: 0 / 0.5625 GB, free: 15.64 MB / 430.1 MB Notification: Performance of Templates: time 0.004229/0.1512, allocations: 1.799 MB / 0.5643 GB, free: 13.84 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y [Calling sys.exit(0), Time elapsed: 8.382405649870634]