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.0009722/0.0009722, allocations: 93.33 kB / 17 MB, free: 6.09 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.0008179/0.0008179, allocations: 179.8 kB / 17.89 MB, free: 5.672 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.422/1.422, allocations: 223.3 MB / 241.9 MB, free: 324 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2186/0.2186, allocations: 44.25 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003817/0.0003817, allocations: 8 kB / 409.7 MB, free: 27.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1246, allocations: 61.94 MB / 471.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0006448/0.1253, allocations: 250.8 kB / 471.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000762/0.1261, allocations: 416.8 kB / 472.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.074e-05/0.1261, allocations: 0 / 472.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.665e-05/0.1262, allocations: 3.938 kB / 472.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.1263, allocations: 4 kB / 472.3 MB, free: 13.01 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.0005044/0.1268, allocations: 151.6 kB / 472.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.127, allocations: 63.84 kB / 472.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.272e-05/0.127, allocations: 0 / 472.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.755e-05/0.1271, allocations: 35.97 kB / 472.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.452e-05/0.1271, allocations: 27.89 kB / 472.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.1272, allocations: 3.938 kB / 472.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001769/0.1273, allocations: 91.84 kB / 472.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.893e-05/0.1274, allocations: 19.97 kB / 472.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.949e-05/0.1275, allocations: 29.7 kB / 472.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.1276, allocations: 83.86 kB / 472.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1276, allocations: 8 kB / 472.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1276, allocations: 0 / 472.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.788e-06/0.1276, allocations: 0 / 472.8 MB, free: 12.5 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.000652/0.1283, allocations: 377 kB / 473.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1283, allocations: 8.031 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.023e-05/0.1284, allocations: 4 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.1286, allocations: 179 kB / 473.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.1287, allocations: 4 kB / 473.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.1287, allocations: 3.984 kB / 473.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.1289, allocations: 97.59 kB / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1289, allocations: 0 / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.129, allocations: 0 / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.129, allocations: 4 kB / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.413e-05/0.1291, allocations: 27.95 kB / 473.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002292/0.1293, allocations: 169.9 kB / 473.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.521e-05/0.1294, allocations: 46.5 kB / 473.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.041e-05/0.1295, allocations: 28.91 kB / 473.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.1295, allocations: 4 kB / 473.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002438/0.1297, allocations: 135.1 kB / 473.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.575e-05/0.1298, allocations: 0 / 473.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002938/0.1301, allocations: 130 kB / 474 MB, free: 11.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.1301, allocations: 59.41 kB / 474 MB, free: 11.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.867e-05/0.1302, allocations: 105.8 kB / 474.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.1302, allocations: 29.64 kB / 474.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.195e-05/0.1303, allocations: 80.33 kB / 474.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.138e-05/0.1303, allocations: 27.72 kB / 474.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-06/0.1303, allocations: 0 / 474.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1304, allocations: 318.8 kB / 474.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.126e-05/0.1305, allocations: 19.98 kB / 474.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.677e-05/0.1306, allocations: 81.66 kB / 474.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.53e-05/0.1307, allocations: 61.69 kB / 474.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1307, allocations: 4 kB / 474.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002089/0.1309, allocations: 159.1 kB / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/0.1309, allocations: 37.66 kB / 474.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.131, allocations: 0 / 474.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.131, allocations: 4 kB / 474.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.1311, allocations: 19.92 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.1311, allocations: 4 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.935e-05/0.1312, allocations: 16.06 kB / 475 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.1312, allocations: 8 kB / 475 MB, free: 10.02 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,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001392/0.1313, allocations: 130.2 kB / 475.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.902e-05/0.1313, allocations: 4 kB / 475.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.35e-05/0.1314, allocations: 11.92 kB / 475.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1314, allocations: 4 kB / 475.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1314, allocations: 0 / 475.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1314, allocations: 4 kB / 475.1 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.1316, allocations: 173.5 kB / 475.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1316, allocations: 0 / 475.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.478e-05/0.1316, allocations: 8 kB / 475.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1316, allocations: 3.984 kB / 475.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.1316, allocations: 4 kB / 475.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1316, allocations: 3.953 kB / 475.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1316, allocations: 0 / 475.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001895/0.1318, allocations: 125 kB / 475.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.084e-05/0.1319, allocations: 89.02 kB / 475.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.1319, allocations: 4 kB / 475.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.1321, allocations: 23.97 kB / 475.5 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.935e-05/0.1322, allocations: 12 kB / 475.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.1322, allocations: 12.12 kB / 475.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.858e-05/0.1322, allocations: 87.27 kB / 475.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1322, allocations: 4 kB / 475.7 MB, free: 9.238 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002682/0.1325, allocations: 39.98 kB / 475.7 MB, free: 9.199 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003579/0.1329, allocations: 175 kB / 475.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001964/0.1331, allocations: 131.3 kB / 476 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1331, allocations: 0 / 476 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.944e-05/0.1332, allocations: 39.86 kB / 476 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000146/0.1333, allocations: 4 kB / 476 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003253/0.1337, allocations: 142.8 kB / 476.2 MB, free: 8.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.1339, allocations: 0.6891 MB / 476.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.46e-05/0.134, allocations: 16.66 kB / 476.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.134, allocations: 11.44 kB / 476.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.134, allocations: 0 / 476.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of Templates: time 0.004505/0.1385, allocations: 1.845 MB / 478.7 MB, free: 6.102 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