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.001165/0.001165, allocations: 109.3 kB / 18.39 MB, free: 4.629 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.001087/0.001086, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.395/1.395, allocations: 222.9 MB / 243 MB, free: 15.07 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.2047/0.2047, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 76.94 kB / 409.9 MB, free: 26.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.115, allocations: 60.82 MB / 470.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001784/0.1169, allocations: 0.5222 MB / 471.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008856/0.1178, allocations: 453 kB / 471.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.815e-05/0.1178, allocations: 0 / 471.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.5e-05/0.1179, allocations: 3.938 kB / 471.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.118, allocations: 11.92 kB / 471.7 MB, free: 12.64 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.0005417/0.1186, allocations: 170.4 kB / 471.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001529/0.1187, allocations: 87.83 kB / 471.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.644e-05/0.1188, allocations: 0 / 471.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.67e-05/0.1188, allocations: 39.91 kB / 472 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.744e-05/0.1189, allocations: 19.97 kB / 472 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.1189, allocations: 7.938 kB / 472 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.1191, allocations: 95.91 kB / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.762e-05/0.1192, allocations: 23.95 kB / 472.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.437e-05/0.1193, allocations: 23.91 kB / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002363/0.1195, allocations: 127.7 kB / 472.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1195, allocations: 0 / 472.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1195, allocations: 3.938 kB / 472.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1195, allocations: 0 / 472.3 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.0006204/0.1202, allocations: 405.1 kB / 472.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.1202, allocations: 12.03 kB / 472.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.039e-05/0.1203, allocations: 4.938 kB / 472.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.1205, allocations: 176.4 kB / 472.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.918e-06/0.1205, allocations: 4.375 kB / 472.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.1205, allocations: 4.375 kB / 472.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.1208, allocations: 94.12 kB / 473 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.1208, allocations: 8.125 kB / 473 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.1208, allocations: 3.938 kB / 473 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1208, allocations: 4 kB / 473 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.803e-05/0.1209, allocations: 23.97 kB / 473 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002086/0.1211, allocations: 181.5 kB / 473.2 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.987e-05/0.1212, allocations: 42.56 kB / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.752e-05/0.1213, allocations: 20.92 kB / 473.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.1213, allocations: 3.984 kB / 473.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002857/0.1216, allocations: 131.4 kB / 473.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.1216, allocations: 0 / 473.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003152/0.1219, allocations: 129.5 kB / 473.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.122, allocations: 59.39 kB / 473.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.822e-05/0.122, allocations: 97.86 kB / 473.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.1221, allocations: 29.7 kB / 473.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.824e-05/0.1221, allocations: 84.14 kB / 473.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.1222, allocations: 27.7 kB / 473.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/0.1222, allocations: 29.7 kB / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1224, allocations: 314.8 kB / 474.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.285e-05/0.1224, allocations: 27.97 kB / 474.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.314e-05/0.1225, allocations: 74.8 kB / 474.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.1227, allocations: 148.5 kB / 474.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.1227, allocations: 3.938 kB / 474.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002252/0.123, allocations: 159.1 kB / 474.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.782e-05/0.123, allocations: 37.08 kB / 474.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.123, allocations: 4 kB / 474.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.1231, allocations: 0 / 474.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.1232, allocations: 27.92 kB / 474.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.1232, allocations: 224 / 474.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.899e-05/0.1233, allocations: 11.91 kB / 474.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.1233, allocations: 4 kB / 474.6 MB, free: 9.418 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.000147/0.1234, allocations: 133.7 kB / 474.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.726e-05/0.1235, allocations: 7.938 kB / 474.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.691e-05/0.1235, allocations: 11.97 kB / 474.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1235, allocations: 0 / 474.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1235, allocations: 0 / 474.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1235, allocations: 7.984 kB / 474.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.1237, allocations: 169.6 kB / 474.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.1237, allocations: 4 kB / 474.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.703e-05/0.1238, allocations: 11.98 kB / 474.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1238, allocations: 3.938 kB / 474.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.1238, allocations: 0 / 474.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1238, allocations: 0 / 474.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.286e-05/0.1238, allocations: 0 / 474.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002026/0.124, allocations: 141.2 kB / 475.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.258e-05/0.1241, allocations: 88.89 kB / 475.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.1241, allocations: 4 kB / 475.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.1243, allocations: 15.97 kB / 475.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.1243, allocations: 11.98 kB / 475.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.1244, allocations: 4.188 kB / 475.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.54e-05/0.1244, allocations: 87.25 kB / 475.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1244, allocations: 0 / 475.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002753/0.1247, allocations: 40 kB / 475.3 MB, free: 8.594 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.0003842/0.1251, allocations: 180.3 kB / 475.5 MB, free: 8.426 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002261/0.1253, allocations: 123.6 kB / 475.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.1253, allocations: 8.125 kB / 475.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.903e-05/0.1254, allocations: 23.98 kB / 475.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001532/0.1256, allocations: 11.94 kB / 475.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000354/0.1259, allocations: 140.9 kB / 475.8 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.1262, allocations: 0.6807 MB / 476.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.815e-05/0.1263, allocations: 16.66 kB / 476.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.836e-05/0.1263, allocations: 11.44 kB / 476.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1263, allocations: 0 / 476.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of Templates: time 0.004674/0.131, allocations: 1.989 MB / 478.5 MB, free: 5.359 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 gbode -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