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.001138/0.001138, allocations: 109.4 kB / 18.4 MB, free: 4.695 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.001205/0.001205, allocations: 192 kB / 19.34 MB, free: 3.766 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.38/1.38, allocations: 222.9 MB / 243 MB, free: 15.05 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.2608/0.2608, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 63.67 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1273, allocations: 60.83 MB / 470.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002256/0.1296, allocations: 0.5317 MB / 471.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009903/0.1306, allocations: 445.1 kB / 471.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.529e-05/0.1306, allocations: 0 / 471.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.901e-05/0.1307, allocations: 7.875 kB / 471.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.1309, allocations: 4 kB / 471.7 MB, free: 12.66 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.0005909/0.1315, allocations: 170.8 kB / 471.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000184/0.1317, allocations: 83.84 kB / 471.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.403e-05/0.1317, allocations: 4 kB / 471.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.016e-05/0.1318, allocations: 47.89 kB / 472 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.311e-05/0.1319, allocations: 15.92 kB / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.1319, allocations: 4 kB / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001815/0.1321, allocations: 99.83 kB / 472.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.891e-05/0.1322, allocations: 19.97 kB / 472.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.532e-05/0.1322, allocations: 23.91 kB / 472.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002182/0.1325, allocations: 127.7 kB / 472.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1325, allocations: 0 / 472.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1325, allocations: 0 / 472.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1325, allocations: 4 kB / 472.3 MB, free: 12.07 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.0006072/0.1331, allocations: 416 kB / 472.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.1332, allocations: 8.031 kB / 472.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.604e-05/0.1332, allocations: 4.938 kB / 472.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.1334, allocations: 176.4 kB / 472.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.1335, allocations: 8.344 kB / 472.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.791e-05/0.1335, allocations: 4.375 kB / 472.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.1337, allocations: 94.14 kB / 473 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.1337, allocations: 192 / 473 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.1337, allocations: 3.938 kB / 473 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.1337, allocations: 8 kB / 473 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.272e-05/0.1338, allocations: 27.97 kB / 473 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001718/0.134, allocations: 169.5 kB / 473.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.813e-05/0.1341, allocations: 42.56 kB / 473.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.733e-05/0.1341, allocations: 24.84 kB / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.1342, allocations: 8 kB / 473.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002731/0.1344, allocations: 131.5 kB / 473.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.1345, allocations: 0 / 473.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003179/0.1348, allocations: 129.5 kB / 473.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.1348, allocations: 55.41 kB / 473.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.642e-05/0.1349, allocations: 97.84 kB / 473.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.1349, allocations: 33.7 kB / 473.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.557e-05/0.135, allocations: 84.14 kB / 473.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.135, allocations: 27.64 kB / 473.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.013e-05/0.1351, allocations: 29.72 kB / 473.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.1352, allocations: 318.8 kB / 474.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.797e-05/0.1352, allocations: 23.98 kB / 474.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.457e-05/0.1353, allocations: 82.78 kB / 474.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.1355, allocations: 136.4 kB / 474.4 MB, free: 9.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.1355, allocations: 4 kB / 474.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002213/0.1357, allocations: 155.1 kB / 474.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.1358, allocations: 41.62 kB / 474.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1358, allocations: 0 / 474.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.1358, allocations: 4.219 kB / 474.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.1359, allocations: 19.94 kB / 474.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.1359, allocations: 7.984 kB / 474.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.197e-05/0.136, allocations: 11.91 kB / 474.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.136, allocations: 4 kB / 474.6 MB, free: 9.43 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.0001586/0.1362, allocations: 130.7 kB / 474.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.964e-05/0.1362, allocations: 11.92 kB / 474.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.552e-05/0.1363, allocations: 7.969 kB / 474.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1363, allocations: 4 kB / 474.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1363, allocations: 3.938 kB / 474.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1363, allocations: 0 / 474.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.1365, allocations: 177.5 kB / 474.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1365, allocations: 4.062 kB / 474.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.337e-05/0.1365, allocations: 4 kB / 474.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1365, allocations: 3.938 kB / 475 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.1365, allocations: 4 kB / 475 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1365, allocations: 3.984 kB / 475 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1366, allocations: 0 / 475 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002015/0.1368, allocations: 133.3 kB / 475.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.114e-05/0.1368, allocations: 93.06 kB / 475.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.1368, allocations: 4 kB / 475.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.137, allocations: 19.95 kB / 475.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.109e-05/0.1371, allocations: 4 kB / 475.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.801e-05/0.1371, allocations: 11.98 kB / 475.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.638e-05/0.1371, allocations: 79.28 kB / 475.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1372, allocations: 0 / 475.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00028/0.1374, allocations: 43.98 kB / 475.3 MB, free: 8.605 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.0004236/0.1379, allocations: 174.6 kB / 475.5 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000218/0.1381, allocations: 135.2 kB / 475.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1381, allocations: 0 / 475.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.15e-05/0.1382, allocations: 31.92 kB / 475.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001532/0.1383, allocations: 8 kB / 475.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000372/0.1387, allocations: 133.2 kB / 475.8 MB, free: 8.105 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.139, allocations: 0.6846 MB / 476.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.751e-05/0.139, allocations: 21.08 kB / 476.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.246e-05/0.1391, allocations: 11.44 kB / 476.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1391, allocations: 0 / 476.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of Templates: time 0.004621/0.1437, allocations: 2.001 MB / 478.5 MB, free: 5.367 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/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