Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00153/0.00153, allocations: 121.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2381/0.2381, allocations: 46.12 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0022/0.0022, allocations: 75.88 kB / 480.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.4013, allocations: 62.45 MB / 0.5306 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001594/0.4029, allocations: 0.5292 MB / 0.5311 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009124/0.4039, allocations: 444.8 kB / 0.5316 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.097e-05/0.4039, allocations: 1.156 kB / 0.5316 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.579e-05/0.404, allocations: 3.938 kB / 0.5316 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.4041, allocations: 9.047 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0005812/0.4047, allocations: 167.2 kB / 0.5317 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.4049, allocations: 82.28 kB / 0.5318 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.937e-05/0.4049, allocations: 6.953 kB / 0.5318 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.11e-05/0.405, allocations: 39.03 kB / 0.5319 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.416e-05/0.4051, allocations: 23.53 kB / 0.5319 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.903e-05/0.4051, allocations: 2.031 kB / 0.5319 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.4053, allocations: 96.53 kB / 0.532 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.708e-05/0.4054, allocations: 24.62 kB / 0.532 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.952e-05/0.4054, allocations: 26.55 kB / 0.532 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002368/0.4057, allocations: 131.6 kB / 0.5321 GB, free: 12.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.4057, allocations: 1.438 kB / 0.5321 GB, free: 12.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.4057, allocations: 0 / 0.5321 GB, free: 12.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.4057, allocations: 0 / 0.5321 GB, free: 12.25 MB / 398.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.0005779/0.4063, allocations: 408.4 kB / 0.5325 GB, free: 11.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.4063, allocations: 14.89 kB / 0.5326 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.562e-05/0.4064, allocations: 40.64 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.252e-05/0.4064, allocations: 8.453 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.4066, allocations: 183.5 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.4067, allocations: 2.156 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.4067, allocations: 2.188 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.4069, allocations: 95.47 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.4069, allocations: 3.938 kB / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.4069, allocations: 0 / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.4069, allocations: 1.969 kB / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.871e-05/0.407, allocations: 24.06 kB / 0.5329 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000198/0.4072, allocations: 169.2 kB / 0.5331 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.971e-05/0.4073, allocations: 52.09 kB / 0.5331 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.917e-05/0.4074, allocations: 27.34 kB / 0.5331 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.4074, allocations: 2.875 kB / 0.5331 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.4077, allocations: 130 kB / 0.5333 GB, free: 11.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.412e-06/0.4077, allocations: 0 / 0.5333 GB, free: 11.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002984/0.408, allocations: 126.1 kB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.408, allocations: 54.16 kB / 0.5334 GB, free: 10.97 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.399e-05/0.4081, allocations: 101.9 kB / 0.5335 GB, free: 10.87 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.4082, allocations: 32.44 kB / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.493e-05/0.4082, allocations: 80.14 kB / 0.5336 GB, free: 10.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.845e-05/0.4083, allocations: 29.45 kB / 0.5337 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.181e-05/0.4083, allocations: 35.33 kB / 0.5337 GB, free: 10.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.4085, allocations: 316.2 kB / 0.534 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.214e-05/0.4085, allocations: 25.73 kB / 0.534 GB, free: 10.37 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.35e-05/0.4086, allocations: 76.66 kB / 0.5341 GB, free: 10.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.4089, allocations: 148.2 kB / 0.5342 GB, free: 10.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4089, allocations: 1.375 kB / 0.5342 GB, free: 10.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002299/0.4091, allocations: 164.9 kB / 0.5344 GB, free: 10.03 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/0.4091, allocations: 32.58 kB / 0.5344 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.4092, allocations: 1.375 kB / 0.5344 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.4092, allocations: 6.734 kB / 0.5344 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.985e-05/0.4093, allocations: 13.81 kB / 0.5345 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.4093, allocations: 6.75 kB / 0.5345 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.829e-05/0.4094, allocations: 10.7 kB / 0.5345 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.4094, allocations: 13.7 kB / 0.5345 GB, free: 9.977 MB / 398.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.000152/0.4096, allocations: 131.8 kB / 0.5346 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.4096, allocations: 10.64 kB / 0.5346 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.517e-05/0.4096, allocations: 9.328 kB / 0.5346 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.4096, allocations: 1.375 kB / 0.5346 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.4096, allocations: 3.938 kB / 0.5346 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4097, allocations: 1.375 kB / 0.5346 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.4098, allocations: 170.2 kB / 0.5348 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.4098, allocations: 5.359 kB / 0.5348 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.45e-05/0.4099, allocations: 8.062 kB / 0.5348 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.4099, allocations: 4.125 kB / 0.5348 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.4099, allocations: 1.375 kB / 0.5348 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.4099, allocations: 5.312 kB / 0.5348 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4099, allocations: 0 / 0.5348 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.4102, allocations: 130.9 kB / 0.5349 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.188e-05/0.4102, allocations: 91.28 kB / 0.535 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.4102, allocations: 6.422 kB / 0.535 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.4104, allocations: 17.69 kB / 0.5351 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.664e-05/0.4105, allocations: 2.625 kB / 0.5351 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.4105, allocations: 11.64 kB / 0.5351 GB, free: 9.383 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.227e-05/0.4106, allocations: 82.19 kB / 0.5351 GB, free: 9.305 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4106, allocations: 0 / 0.5351 GB, free: 9.305 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002853/0.4109, allocations: 42.59 kB / 0.5352 GB, free: 9.293 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.0008691/0.4117, allocations: 0.7535 MB / 0.5359 GB, free: 8.621 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002294/0.412, allocations: 132.9 kB / 0.536 GB, free: 8.523 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.412, allocations: 1.156 kB / 0.536 GB, free: 8.523 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.565e-05/0.4121, allocations: 35.23 kB / 0.5361 GB, free: 8.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000153/0.4122, allocations: 15.31 kB / 0.5361 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.4137, allocations: 1.431 MB / 0.5375 GB, free: 7.117 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.414, allocations: 0.69 MB / 0.5382 GB, free: 6.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.943e-05/0.4141, allocations: 14.28 kB / 0.5382 GB, free: 6.402 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.12e-05/0.4142, allocations: 15.56 kB / 0.5382 GB, free: 6.391 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4142, allocations: 0 / 0.5382 GB, free: 6.391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02285/0.437, allocations: 2.986 MB / 0.5411 GB, free: 4.797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.104/8.541, allocations: 10.33 kB / 0.5411 GB, free: 4.793 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches