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.001334/0.001334, allocations: 113.4 kB / 17.78 MB, free: 5.281 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.001542/0.001542, allocations: 179.1 kB / 18.71 MB, free: 4.363 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.408/1.408, allocations: 222.9 MB / 242.4 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.2862/0.2862, allocations: 44.18 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001442, allocations: 63.91 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3974, allocations: 60.82 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001714/0.3991, allocations: 0.5273 MB / 0.5189 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008702/0.4, allocations: 450.2 kB / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.518e-05/0.4001, allocations: 0 / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.766e-05/0.4002, allocations: 3.938 kB / 0.5194 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001302/0.4003, allocations: 11.39 kB / 0.5194 GB, free: 2.652 MB / 382.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.0005756/0.4009, allocations: 168.3 kB / 0.5195 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.4011, allocations: 75.97 kB / 0.5196 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.19e-05/0.4011, allocations: 11.7 kB / 0.5196 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.576e-05/0.4012, allocations: 38.92 kB / 0.5197 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.795e-05/0.4013, allocations: 20.42 kB / 0.5197 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.192e-05/0.4013, allocations: 3 kB / 0.5197 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.4015, allocations: 96.28 kB / 0.5198 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.942e-05/0.4015, allocations: 22.14 kB / 0.5198 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.183e-05/0.4016, allocations: 32.61 kB / 0.5198 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.4018, allocations: 127.7 kB / 0.52 GB, free: 2.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.4019, allocations: 1.094 kB / 0.52 GB, free: 2.441 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4019, allocations: 0 / 0.52 GB, free: 2.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.678e-06/0.4019, allocations: 0 / 0.52 GB, free: 2.441 MB / 382.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.0005065/0.4024, allocations: 411.9 kB / 0.5203 GB, free: 2.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.4024, allocations: 9.094 kB / 0.5204 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.004e-05/0.4025, allocations: 34.39 kB / 0.5204 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.128e-05/0.4025, allocations: 5.75 kB / 0.5204 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/0.4027, allocations: 196.4 kB / 0.5206 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.4027, allocations: 6.141 kB / 0.5206 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.4028, allocations: 3.969 kB / 0.5206 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.403, allocations: 88.72 kB / 0.5207 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.403, allocations: 3.938 kB / 0.5207 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.128e-05/0.403, allocations: 1.828 kB / 0.5207 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.403, allocations: 0 / 0.5207 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.91e-05/0.4031, allocations: 22.72 kB / 0.5207 GB, free: 1.719 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001512/0.4033, allocations: 166.3 kB / 0.5209 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.648e-05/0.4033, allocations: 52.03 kB / 0.5209 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.802e-05/0.4034, allocations: 23.28 kB / 0.5209 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.4034, allocations: 0 / 0.5209 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/0.4037, allocations: 146.5 kB / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.4037, allocations: 1.094 kB / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002983/0.404, allocations: 125.8 kB / 0.5212 GB, free: 1.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.404, allocations: 55.66 kB / 0.5212 GB, free: 1.266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.432e-05/0.4041, allocations: 100.3 kB / 0.5213 GB, free: 1.164 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.4041, allocations: 33.05 kB / 0.5214 GB, free: 1.129 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.256e-05/0.4042, allocations: 82.05 kB / 0.5215 GB, free: 1.047 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.258e-05/0.4042, allocations: 26.19 kB / 0.5215 GB, free: 1.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.842e-05/0.4043, allocations: 29.97 kB / 0.5215 GB, free: 1.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.506e-05/0.4043, allocations: 323.5 kB / 0.5218 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.32e-05/0.4044, allocations: 21.42 kB / 0.5218 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.453e-05/0.4045, allocations: 83.73 kB / 0.5219 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.4046, allocations: 145.5 kB / 0.5221 GB, free: 484 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4047, allocations: 1.062 kB / 0.5221 GB, free: 484 kB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002121/0.4049, allocations: 170.7 kB / 0.5222 GB, free: 372 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.4049, allocations: 32.69 kB / 0.5222 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.4049, allocations: 1.625 kB / 0.5223 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.4049, allocations: 3.469 kB / 0.5223 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.4051, allocations: 15.97 kB / 0.5223 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.4051, allocations: 7.672 kB / 0.5223 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.957e-05/0.4051, allocations: 7.484 kB / 0.5223 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.4051, allocations: 9.281 kB / 0.5223 GB, free: 328 kB / 382.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.0001144/0.4053, allocations: 125 kB / 0.5224 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.4053, allocations: 6.906 kB / 0.5224 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.344e-05/0.4053, allocations: 11.48 kB / 0.5224 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.4053, allocations: 1.125 kB / 0.5224 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4054, allocations: 0.6562 kB / 0.5224 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.4054, allocations: 0.7969 kB / 0.5224 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.4055, allocations: 176.9 kB / 0.5226 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.4055, allocations: 4.797 kB / 0.5226 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.525e-05/0.4056, allocations: 17.7 kB / 0.5226 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.4056, allocations: 1.094 kB / 0.5226 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.4056, allocations: 2.391 kB / 0.5226 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4056, allocations: 1.438 kB / 0.5226 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4056, allocations: 0.75 kB / 0.5226 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002157/0.4058, allocations: 126.3 kB / 0.5227 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.4059, allocations: 87.8 kB / 0.5228 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.4059, allocations: 20.02 kB / 0.5229 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.4061, allocations: 19.75 kB / 0.5229 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.473e-05/0.4062, allocations: 5.734 kB / 0.5229 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.4062, allocations: 5.25 kB / 0.5229 GB, free: 15.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.155e-05/0.4063, allocations: 82.41 kB / 0.523 GB, free: 15.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4063, allocations: 0 / 0.523 GB, free: 15.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.4066, allocations: 46.39 kB / 0.523 GB, free: 15.67 MB / 398.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.0007374/0.4073, allocations: 0.7301 MB / 0.5237 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000228/0.4076, allocations: 132 kB / 0.5238 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4076, allocations: 0 / 0.5238 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.558e-05/0.4076, allocations: 30.25 kB / 0.5239 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001593/0.4078, allocations: 12.22 kB / 0.5239 GB, free: 14.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.4095, allocations: 1.435 MB / 0.5253 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.4098, allocations: 0.691 MB / 0.526 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.916e-05/0.4099, allocations: 12.67 kB / 0.526 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.153e-05/0.4099, allocations: 19.14 kB / 0.526 GB, free: 12.89 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4099, allocations: 0 / 0.526 GB, free: 12.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.4304, allocations: 3.016 MB / 0.5289 GB, free: 11.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.837/8.268, allocations: 9.281 kB / 0.5289 GB, free: 11.78 MB / 398.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