Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001898/0.001898, allocations: 116 kB / 18.45 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002399/0.002399, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.513/1.513, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2325/0.2325, allocations: 46.92 MB / 357.8 MB, free: 10.28 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 67.91 kB / 0.4921 GB, free: 7.418 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1416, allocations: 65.98 MB / 0.5565 GB, free: 5.309 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001989/0.1436, allocations: 0.5416 MB / 0.557 GB, free: 4.766 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.1446, allocations: 448.9 kB / 0.5575 GB, free: 4.328 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.795e-05/0.1447, allocations: 0 / 0.5575 GB, free: 4.328 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 9.033e-05/0.1448, allocations: 4 kB / 0.5575 GB, free: 4.324 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.1449, allocations: 7.922 kB / 0.5575 GB, free: 4.316 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0007649/0.1457, allocations: 166.9 kB / 0.5576 GB, free: 4.156 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000194/0.1459, allocations: 87.8 kB / 0.5577 GB, free: 4.07 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.1459, allocations: 4 kB / 0.5577 GB, free: 4.066 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.765e-05/0.146, allocations: 39.95 kB / 0.5578 GB, free: 4.027 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.104e-05/0.146, allocations: 27.89 kB / 0.5578 GB, free: 4 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.1461, allocations: 4 kB / 0.5578 GB, free: 3.996 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002429/0.1463, allocations: 95.89 kB / 0.5579 GB, free: 3.902 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.87e-05/0.1464, allocations: 23.91 kB / 0.5579 GB, free: 3.879 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.685e-05/0.1464, allocations: 31.83 kB / 0.5579 GB, free: 3.848 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002755/0.1467, allocations: 123.7 kB / 0.5581 GB, free: 3.727 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1467, allocations: 0 / 0.5581 GB, free: 3.727 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1467, allocations: 0 / 0.5581 GB, free: 3.727 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1467, allocations: 4 kB / 0.5581 GB, free: 3.723 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.0007061/0.1474, allocations: 412.8 kB / 0.5585 GB, free: 3.262 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.1475, allocations: 12.03 kB / 0.5585 GB, free: 3.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.194e-05/0.1476, allocations: 8.891 kB / 0.5585 GB, free: 3.242 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.1478, allocations: 180.4 kB / 0.5586 GB, free: 3.027 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.1478, allocations: 384 / 0.5586 GB, free: 3.027 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/0.1478, allocations: 4.375 kB / 0.5586 GB, free: 3.023 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.1481, allocations: 98.06 kB / 0.5587 GB, free: 2.922 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1481, allocations: 4.188 kB / 0.5587 GB, free: 2.918 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.1481, allocations: 3.938 kB / 0.5588 GB, free: 2.914 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1481, allocations: 0 / 0.5588 GB, free: 2.914 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.943e-05/0.1482, allocations: 23.98 kB / 0.5588 GB, free: 2.891 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002153/0.1484, allocations: 165.6 kB / 0.5589 GB, free: 2.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001158/0.1485, allocations: 42.56 kB / 0.559 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.665e-05/0.1486, allocations: 16.92 kB / 0.559 GB, free: 2.609 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.1486, allocations: 7.984 kB / 0.559 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002887/0.1489, allocations: 135.4 kB / 0.5591 GB, free: 2.457 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.1489, allocations: 0 / 0.5591 GB, free: 2.457 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003496/0.1492, allocations: 129.5 kB / 0.5592 GB, free: 2.324 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.1493, allocations: 63.33 kB / 0.5593 GB, free: 2.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.795e-05/0.1494, allocations: 101.9 kB / 0.5594 GB, free: 2.141 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.1494, allocations: 25.7 kB / 0.5594 GB, free: 2.109 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.617e-05/0.1495, allocations: 84.14 kB / 0.5595 GB, free: 2.023 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.93e-05/0.1495, allocations: 27.84 kB / 0.5595 GB, free: 1.996 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.516e-05/0.1496, allocations: 29.7 kB / 0.5596 GB, free: 1.961 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1497, allocations: 314.8 kB / 0.5599 GB, free: 1.645 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.381e-05/0.1497, allocations: 23.98 kB / 0.5599 GB, free: 1.621 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.213e-05/0.1498, allocations: 82.78 kB / 0.56 GB, free: 1.516 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.15, allocations: 148.3 kB / 0.5601 GB, free: 1.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.1501, allocations: 8 kB / 0.5601 GB, free: 1.332 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002421/0.1503, allocations: 151.2 kB / 0.5603 GB, free: 1.172 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.747e-05/0.1503, allocations: 37.64 kB / 0.5603 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1503, allocations: 4.219 kB / 0.5603 GB, free: 1.125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.1504, allocations: 4 kB / 0.5603 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.1505, allocations: 19.92 kB / 0.5603 GB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1505, allocations: 4 kB / 0.5603 GB, free: 1.098 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.633e-05/0.1505, allocations: 15.89 kB / 0.5603 GB, free: 1.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.1506, allocations: 4 kB / 0.5603 GB, free: 1.078 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.0001711/0.1507, allocations: 134.5 kB / 0.5605 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.288e-05/0.1508, allocations: 11.89 kB / 0.5605 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.268e-05/0.1508, allocations: 7.969 kB / 0.5605 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.1508, allocations: 7.938 kB / 0.5605 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1508, allocations: 0 / 0.5605 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.1508, allocations: 3.984 kB / 0.5605 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.151, allocations: 169.6 kB / 0.5607 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.151, allocations: 0 / 0.5607 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.951e-05/0.151, allocations: 7.984 kB / 0.5607 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.151, allocations: 7.938 kB / 0.5607 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.1511, allocations: 0 / 0.5607 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1511, allocations: 0 / 0.5607 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1511, allocations: 4 kB / 0.5607 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002431/0.1513, allocations: 133 kB / 0.5608 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.1513, allocations: 85 kB / 0.5609 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.1514, allocations: 4 kB / 0.5609 GB, free: 432 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.1516, allocations: 15.97 kB / 0.5609 GB, free: 416 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.54e-05/0.1516, allocations: 11.98 kB / 0.5609 GB, free: 404 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.1516, allocations: 4 kB / 0.5609 GB, free: 400 kB / 414.1 MB Notification: Performance of sorting global known variables: time 4.49e-05/0.1517, allocations: 79.28 kB / 0.561 GB, free: 320 kB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1517, allocations: 0 / 0.561 GB, free: 320 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.000306/0.152, allocations: 43.92 kB / 0.561 GB, free: 276 kB / 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.0004552/0.1525, allocations: 193.9 kB / 0.5612 GB, free: 92 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000242/0.1527, allocations: 123.2 kB / 0.5613 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1527, allocations: 4 kB / 0.5614 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 6.407e-05/0.1528, allocations: 27.92 kB / 0.5614 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/0.1529, allocations: 10.39 kB / 0.5614 GB, free: 15.92 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000396/0.1533, allocations: 170.4 kB / 0.5616 GB, free: 15.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.1536, allocations: 0.685 MB / 0.5622 GB, free: 15.01 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.797e-05/0.1537, allocations: 15.44 kB / 0.5622 GB, free: 14.99 MB / 430.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1537, allocations: 0 / 0.5622 GB, free: 14.99 MB / 430.1 MB Notification: Performance of Templates: time 0.00407/0.1577, allocations: 1.799 MB / 0.564 GB, free: 13.19 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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.482484221021878]