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.0009618/0.0009621, allocations: 99.09 kB / 18.01 MB, free: 5.734 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.0008918/0.0008918, allocations: 180 kB / 18.91 MB, free: 4.871 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.341/1.341, allocations: 223.3 MB / 243 MB, free: 196 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.1988/0.1988, allocations: 44.24 MB / 338.3 MB, free: 2.629 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004985/0.0004986, allocations: 10.03 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1308, allocations: 61.92 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007825/0.1317, allocations: 270.8 kB / 473.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000947/0.1326, allocations: 436.6 kB / 473.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.18e-05/0.1327, allocations: 3.938 kB / 473.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.652e-05/0.1328, allocations: 4 kB / 473.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.1329, allocations: 7.984 kB / 473.6 MB, free: 12.6 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.0005955/0.1335, allocations: 146.6 kB / 473.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.1337, allocations: 79.84 kB / 473.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.087e-05/0.1337, allocations: 0 / 473.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.695e-05/0.1338, allocations: 43.89 kB / 473.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.458e-05/0.1339, allocations: 15.98 kB / 473.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.745e-05/0.1339, allocations: 7.938 kB / 473.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002066/0.1341, allocations: 95.91 kB / 474 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.422e-05/0.1342, allocations: 27.89 kB / 474 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.571e-05/0.1343, allocations: 49.61 kB / 474.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001763/0.1345, allocations: 87.8 kB / 474.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1345, allocations: 0 / 474.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1345, allocations: 0 / 474.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1345, allocations: 0 / 474.2 MB, free: 12.05 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.000506/0.135, allocations: 377.2 kB / 474.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.135, allocations: 12.03 kB / 474.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.789e-05/0.1351, allocations: 4.938 kB / 474.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.1353, allocations: 180.3 kB / 474.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.1353, allocations: 8.375 kB / 474.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.1353, allocations: 4.375 kB / 474.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.1355, allocations: 90.12 kB / 474.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.543e-06/0.1356, allocations: 4.125 kB / 474.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.1356, allocations: 7.938 kB / 474.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.1356, allocations: 0 / 474.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.652e-05/0.1357, allocations: 23.97 kB / 474.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001985/0.1359, allocations: 177.8 kB / 475 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.848e-05/0.136, allocations: 46.64 kB / 475.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.641e-05/0.136, allocations: 24.98 kB / 475.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.1361, allocations: 3.984 kB / 475.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.1363, allocations: 131.3 kB / 475.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.1363, allocations: 0 / 475.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002995/0.1366, allocations: 129.5 kB / 475.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.1367, allocations: 51.41 kB / 475.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.631e-05/0.1368, allocations: 97.86 kB / 475.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.1368, allocations: 33.69 kB / 475.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.208e-05/0.1368, allocations: 84.14 kB / 475.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.1369, allocations: 19.72 kB / 475.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.059e-05/0.1369, allocations: 25.7 kB / 475.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.137, allocations: 318.8 kB / 476 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.828e-05/0.1371, allocations: 27.91 kB / 476 MB, free: 9.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.456e-05/0.1372, allocations: 77.47 kB / 476.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.1374, allocations: 144.5 kB / 476.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1374, allocations: 0 / 476.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002314/0.1376, allocations: 167.1 kB / 476.4 MB, free: 9.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.1377, allocations: 33.64 kB / 476.4 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1377, allocations: 4 kB / 476.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.1377, allocations: 0 / 476.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.1378, allocations: 23.92 kB / 476.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1378, allocations: 4 kB / 476.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.34e-05/0.1379, allocations: 7.906 kB / 476.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.1379, allocations: 8.219 kB / 476.5 MB, free: 9.453 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.0001502/0.1381, allocations: 134 kB / 476.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.1381, allocations: 7.938 kB / 476.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.343e-05/0.1381, allocations: 11.97 kB / 476.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.1382, allocations: 4.125 kB / 476.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.1382, allocations: 0 / 476.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1382, allocations: 7.969 kB / 476.6 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.1383, allocations: 169.5 kB / 476.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1383, allocations: 4 kB / 476.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.702e-05/0.1384, allocations: 11.98 kB / 476.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.1384, allocations: 3.938 kB / 476.8 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.1384, allocations: 7.938 kB / 476.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1384, allocations: 0 / 476.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1384, allocations: 0 / 476.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.1386, allocations: 129 kB / 476.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.618e-05/0.1387, allocations: 84.95 kB / 477 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.1387, allocations: 8 kB / 477 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.1389, allocations: 27.97 kB / 477.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.523e-05/0.139, allocations: 3.984 kB / 477.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.139, allocations: 4 kB / 477.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.923e-05/0.139, allocations: 83.27 kB / 477.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.139, allocations: 0 / 477.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002988/0.1393, allocations: 44 kB / 477.2 MB, free: 8.625 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.0003658/0.1397, allocations: 189.7 kB / 477.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001993/0.1399, allocations: 127.6 kB / 477.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1399, allocations: 4.125 kB / 477.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.859e-05/0.14, allocations: 23.98 kB / 477.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.1402, allocations: 19.86 kB / 477.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003554/0.1405, allocations: 176.6 kB / 477.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.1408, allocations: 0.6848 MB / 478.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.749e-05/0.1408, allocations: 11.44 kB / 478.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1408, allocations: 4 kB / 478.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of Templates: time 0.003982/0.1448, allocations: 1.795 MB / 480.2 MB, free: 5.539 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/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) "" 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