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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001266/0.001266, allocations: 192 kB / 18.55 MB, free: 4.566 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.411/1.411, allocations: 222.9 MB / 242.3 MB, free: 15.19 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.2484/0.2484, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 61.19 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1075, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001812/0.1093, allocations: 0.5308 MB / 469.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009121/0.1103, allocations: 449 kB / 470.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.279e-05/0.1103, allocations: 4 kB / 470.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.981e-05/0.1104, allocations: 0 / 470.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.1105, allocations: 11.92 kB / 470.3 MB, free: 13.28 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.0005292/0.111, allocations: 162.4 kB / 470.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.1112, allocations: 83.84 kB / 470.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.323e-05/0.1112, allocations: 15.98 kB / 470.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.194e-05/0.1113, allocations: 39.91 kB / 470.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.782e-05/0.1114, allocations: 15.92 kB / 470.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.823e-05/0.1114, allocations: 4 kB / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.1116, allocations: 95.89 kB / 470.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.895e-05/0.1117, allocations: 23.91 kB / 470.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.937e-05/0.1117, allocations: 27.91 kB / 470.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002113/0.1119, allocations: 123.7 kB / 470.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1119, allocations: 3.938 kB / 470.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1119, allocations: 0 / 470.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.112, allocations: 0 / 470.9 MB, free: 12.7 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.0005244/0.1125, allocations: 409.1 kB / 471.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.1125, allocations: 8.031 kB / 471.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.647e-05/0.1126, allocations: 38.73 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.352e-05/0.1126, allocations: 4.938 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001675/0.1128, allocations: 176.6 kB / 471.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.1128, allocations: 8.312 kB / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.1128, allocations: 4.375 kB / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.113, allocations: 94.12 kB / 471.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.113, allocations: 7.938 kB / 471.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.1131, allocations: 0 / 471.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.1131, allocations: 0 / 471.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.394e-05/0.1132, allocations: 27.92 kB / 471.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001699/0.1133, allocations: 173.5 kB / 471.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.537e-05/0.1134, allocations: 46.56 kB / 471.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.331e-05/0.1135, allocations: 17.08 kB / 471.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.1135, allocations: 15.91 kB / 471.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.1137, allocations: 131.3 kB / 472.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.1138, allocations: 0 / 472.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002777/0.114, allocations: 117.6 kB / 472.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.1141, allocations: 59.39 kB / 472.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.423e-05/0.1142, allocations: 101.9 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.1142, allocations: 29.7 kB / 472.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.92e-05/0.1142, allocations: 84.14 kB / 472.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.73e-05/0.1143, allocations: 23.7 kB / 472.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.1143, allocations: 29.7 kB / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1144, allocations: 318.8 kB / 472.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.842e-05/0.1145, allocations: 23.97 kB / 472.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.11e-05/0.1146, allocations: 81.97 kB / 472.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.1147, allocations: 152.3 kB / 473.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.1147, allocations: 4 kB / 473.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002095/0.115, allocations: 155.2 kB / 473.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.115, allocations: 33.7 kB / 473.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.115, allocations: 4.219 kB / 473.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.115, allocations: 4 kB / 473.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.1151, allocations: 19.92 kB / 473.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.1152, allocations: 4 kB / 473.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.879e-05/0.1152, allocations: 7.969 kB / 473.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.1152, allocations: 12 kB / 473.3 MB, free: 10.01 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.0001282/0.1154, allocations: 129.7 kB / 473.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-05/0.1154, allocations: 7.938 kB / 473.4 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.096e-05/0.1154, allocations: 11.97 kB / 473.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.1154, allocations: 4 kB / 473.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.1155, allocations: 288 / 473.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1155, allocations: 4.172 kB / 473.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.1156, allocations: 169.5 kB / 473.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1156, allocations: 3.938 kB / 473.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.836e-05/0.1156, allocations: 15.91 kB / 473.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1157, allocations: 0 / 473.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.1157, allocations: 8 kB / 473.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1157, allocations: 3.938 kB / 473.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1157, allocations: 4 kB / 473.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001901/0.1159, allocations: 125 kB / 473.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.24e-05/0.1159, allocations: 88.95 kB / 473.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.1159, allocations: 4 kB / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.1162, allocations: 19.97 kB / 473.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.105e-05/0.1162, allocations: 7.984 kB / 473.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.1162, allocations: 4 kB / 473.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.513e-05/0.1163, allocations: 87.27 kB / 474 MB, free: 9.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1163, allocations: 0 / 474 MB, free: 9.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002734/0.1165, allocations: 40 kB / 474 MB, free: 9.191 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.0006625/0.1172, allocations: 0.7443 MB / 474.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002015/0.1174, allocations: 135.2 kB / 474.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1174, allocations: 0 / 474.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.875e-05/0.1175, allocations: 31.92 kB / 474.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001562/0.1177, allocations: 13.98 kB / 474.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.1189, allocations: 1.434 MB / 476.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.1191, allocations: 0.6845 MB / 477.1 MB, free: 5.973 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.02e-05/0.1192, allocations: 24.59 kB / 477.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.28e-05/0.1192, allocations: 15.44 kB / 477.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1192, allocations: 0 / 477.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.1368, allocations: 2.96 MB / 480.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.682/7.819, allocations: 2.906 kB / 480.1 MB, free: 3.039 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv","/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