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.001117/0.001117, allocations: 113.2 kB / 17.78 MB, free: 5.262 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.001233/0.001234, allocations: 184.2 kB / 18.71 MB, free: 4.34 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.351/1.351, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2272/0.2272, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.4022, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001836/0.4041, allocations: 0.535 MB / 0.5189 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009146/0.4051, allocations: 448.3 kB / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.435e-05/0.4051, allocations: 0 / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.429e-05/0.4052, allocations: 5.156 kB / 0.5194 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.4053, allocations: 7.297 kB / 0.5194 GB, free: 2.656 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.0005724/0.4059, allocations: 167.5 kB / 0.5195 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.4061, allocations: 92.31 kB / 0.5196 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.098e-05/0.4062, allocations: 3.641 kB / 0.5196 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.065e-05/0.4062, allocations: 42.27 kB / 0.5197 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.032e-05/0.4063, allocations: 19.7 kB / 0.5197 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.4063, allocations: 2.25 kB / 0.5197 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.4065, allocations: 99.34 kB / 0.5198 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.795e-05/0.4066, allocations: 20.39 kB / 0.5198 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.08e-05/0.4066, allocations: 25.69 kB / 0.5198 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.4069, allocations: 128.8 kB / 0.52 GB, free: 2.438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.4069, allocations: 0 / 0.52 GB, free: 2.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4069, allocations: 4 kB / 0.52 GB, free: 2.434 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.4069, allocations: 1.062 kB / 0.52 GB, free: 2.434 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.0004952/0.4074, allocations: 403.1 kB / 0.5203 GB, free: 2.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.4074, allocations: 10.3 kB / 0.5204 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.563e-05/0.4075, allocations: 40.42 kB / 0.5204 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.454e-05/0.4075, allocations: 5.594 kB / 0.5204 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.4077, allocations: 183.9 kB / 0.5206 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.4077, allocations: 2.328 kB / 0.5206 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.4077, allocations: 3.234 kB / 0.5206 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002039/0.4079, allocations: 96.55 kB / 0.5207 GB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.4079, allocations: 3.938 kB / 0.5207 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.408, allocations: 1.531 kB / 0.5207 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.408, allocations: 1.094 kB / 0.5207 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7e-05/0.4081, allocations: 26.72 kB / 0.5207 GB, free: 1.719 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001546/0.4082, allocations: 170.5 kB / 0.5209 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.707e-05/0.4083, allocations: 43.55 kB / 0.5209 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.565e-05/0.4084, allocations: 26.58 kB / 0.5209 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.4084, allocations: 5.125 kB / 0.5209 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000272/0.4087, allocations: 134.4 kB / 0.5211 GB, free: 1.395 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.4087, allocations: 0 / 0.5211 GB, free: 1.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003137/0.409, allocations: 122.1 kB / 0.5212 GB, free: 1.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.409, allocations: 59.89 kB / 0.5212 GB, free: 1.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.852e-05/0.4091, allocations: 100.5 kB / 0.5213 GB, free: 1.172 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.4091, allocations: 29.27 kB / 0.5214 GB, free: 1.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.316e-05/0.4092, allocations: 81.39 kB / 0.5214 GB, free: 1.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.137e-05/0.4092, allocations: 34.02 kB / 0.5215 GB, free: 1.031 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/0.4092, allocations: 30.62 kB / 0.5215 GB, free: 1.008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.4093, allocations: 314.8 kB / 0.5218 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.571e-05/0.4094, allocations: 26.3 kB / 0.5218 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.385e-05/0.4094, allocations: 78.08 kB / 0.5219 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.4096, allocations: 146.2 kB / 0.522 GB, free: 496 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.4096, allocations: 1.219 kB / 0.522 GB, free: 496 kB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002173/0.4099, allocations: 166.3 kB / 0.5222 GB, free: 388 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.4099, allocations: 36.45 kB / 0.5222 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.4099, allocations: 2.703 kB / 0.5222 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.41, allocations: 3.5 kB / 0.5222 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.4101, allocations: 15 kB / 0.5223 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.4101, allocations: 8.109 kB / 0.5223 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.058e-05/0.4101, allocations: 11.47 kB / 0.5223 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.4102, allocations: 5.047 kB / 0.5223 GB, free: 340 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.0001231/0.4103, allocations: 128.6 kB / 0.5224 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.929e-05/0.4103, allocations: 8.266 kB / 0.5224 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.511e-05/0.4104, allocations: 10.64 kB / 0.5224 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4104, allocations: 1.219 kB / 0.5224 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4104, allocations: 0.5156 kB / 0.5224 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.706e-06/0.4104, allocations: 0.5625 kB / 0.5224 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001526/0.4106, allocations: 182.2 kB / 0.5226 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4106, allocations: 0 / 0.5226 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.891e-05/0.4106, allocations: 13.48 kB / 0.5226 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4106, allocations: 5.984 kB / 0.5226 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.4106, allocations: 5.672 kB / 0.5226 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.4106, allocations: 0.6562 kB / 0.5226 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4107, allocations: 1.219 kB / 0.5226 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/0.4109, allocations: 130.8 kB / 0.5228 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.638e-05/0.4109, allocations: 91.23 kB / 0.5228 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.411, allocations: 3.469 kB / 0.5228 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.4112, allocations: 20.7 kB / 0.5229 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.544e-05/0.4112, allocations: 12.67 kB / 0.5229 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.4112, allocations: 5.547 kB / 0.5229 GB, free: 15.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.094e-05/0.4113, allocations: 79.06 kB / 0.523 GB, free: 15.69 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4113, allocations: 0 / 0.523 GB, free: 15.69 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003122/0.4116, allocations: 41.77 kB / 0.523 GB, free: 15.68 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.0008309/0.4125, allocations: 0.7404 MB / 0.5237 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002572/0.4127, allocations: 121.9 kB / 0.5238 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4127, allocations: 1.406 kB / 0.5238 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.632e-05/0.4128, allocations: 42.59 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.0001643/0.413, allocations: 10.7 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.00153/0.4145, allocations: 1.426 MB / 0.5253 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.4148, allocations: 0.6872 MB / 0.5259 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.365e-05/0.4149, allocations: 17.72 kB / 0.526 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.249e-05/0.4149, allocations: 18.39 kB / 0.526 GB, free: 12.9 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.415, allocations: 0 / 0.526 GB, free: 12.9 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02157/0.4365, allocations: 3.009 MB / 0.5289 GB, free: 11.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.676/8.113, allocations: 6.734 kB / 0.5289 GB, free: 11.79 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.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