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.001749/0.001749, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001888/0.001888, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.471/1.471, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2213/0.2213, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 68.08 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4282/0.4296, allocations: 60.83 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.00162/0.4313, allocations: 0.5236 MB / 0.5189 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008391/0.4321, allocations: 452.3 kB / 0.5194 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.492e-05/0.4322, allocations: 0 / 0.5194 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.666e-05/0.4323, allocations: 5.797 kB / 0.5194 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.4324, allocations: 7.031 kB / 0.5194 GB, free: 2.676 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.0005687/0.433, allocations: 171.4 kB / 0.5195 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.4332, allocations: 88.41 kB / 0.5196 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.946e-05/0.4332, allocations: 2.969 kB / 0.5196 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.4e-05/0.4333, allocations: 43.27 kB / 0.5197 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.917e-05/0.4333, allocations: 22.58 kB / 0.5197 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.4334, allocations: 3.531 kB / 0.5197 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002034/0.4336, allocations: 94.03 kB / 0.5198 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.791e-05/0.4336, allocations: 21.38 kB / 0.5198 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.183e-05/0.4337, allocations: 24.39 kB / 0.5198 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000242/0.4339, allocations: 129.5 kB / 0.52 GB, free: 2.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.434, allocations: 0 / 0.52 GB, free: 2.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.434, allocations: 5.062 kB / 0.52 GB, free: 2.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.434, allocations: 3.938 kB / 0.52 GB, free: 2.449 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.0005227/0.4345, allocations: 403.1 kB / 0.5203 GB, free: 2.043 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.4346, allocations: 10.42 kB / 0.5204 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.457e-05/0.4346, allocations: 37.17 kB / 0.5204 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.469e-05/0.4346, allocations: 5.094 kB / 0.5204 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.4348, allocations: 188 kB / 0.5206 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.4348, allocations: 1.594 kB / 0.5206 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.4349, allocations: 3.359 kB / 0.5206 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.4351, allocations: 97.14 kB / 0.5207 GB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.4351, allocations: 3.938 kB / 0.5207 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.4351, allocations: 5.953 kB / 0.5207 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.4351, allocations: 0 / 0.5207 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.532e-05/0.4352, allocations: 26.75 kB / 0.5207 GB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.4353, allocations: 170 kB / 0.5209 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.363e-05/0.4354, allocations: 44.16 kB / 0.5209 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.267e-05/0.4355, allocations: 22.33 kB / 0.5209 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.4355, allocations: 5.156 kB / 0.5209 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.4358, allocations: 143.8 kB / 0.5211 GB, free: 1.402 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.4358, allocations: 0 / 0.5211 GB, free: 1.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002873/0.4361, allocations: 117.9 kB / 0.5212 GB, free: 1.352 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.4361, allocations: 63.73 kB / 0.5212 GB, free: 1.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.06e-05/0.4362, allocations: 95.33 kB / 0.5213 GB, free: 1.184 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.4362, allocations: 34.19 kB / 0.5214 GB, free: 1.148 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.652e-05/0.4362, allocations: 80.94 kB / 0.5214 GB, free: 1.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.994e-05/0.4363, allocations: 29.88 kB / 0.5215 GB, free: 1.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.364e-05/0.4363, allocations: 31.08 kB / 0.5215 GB, free: 1.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.88e-05/0.4364, allocations: 319.3 kB / 0.5218 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.389e-05/0.4364, allocations: 21.2 kB / 0.5218 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.769e-05/0.4365, allocations: 80.33 kB / 0.5219 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.4367, allocations: 142.2 kB / 0.522 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.4368, allocations: 0.75 kB / 0.522 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002855/0.4371, allocations: 171.1 kB / 0.5222 GB, free: 396 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.4371, allocations: 33.05 kB / 0.5222 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.4371, allocations: 2.156 kB / 0.5222 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.4371, allocations: 2.062 kB / 0.5222 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.4373, allocations: 20 kB / 0.5223 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.4373, allocations: 2.672 kB / 0.5223 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.683e-05/0.4374, allocations: 11.06 kB / 0.5223 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.4374, allocations: 7.234 kB / 0.5223 GB, free: 352 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.0001306/0.4375, allocations: 123.5 kB / 0.5224 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.682e-05/0.4375, allocations: 8.188 kB / 0.5224 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.496e-05/0.4376, allocations: 11.38 kB / 0.5224 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.696e-06/0.4376, allocations: 5.469 kB / 0.5224 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4376, allocations: 0 / 0.5224 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4376, allocations: 0.5156 kB / 0.5224 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000134/0.4378, allocations: 181 kB / 0.5226 GB, free: 16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.4378, allocations: 0 / 0.5226 GB, free: 16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.951e-05/0.4378, allocations: 15.2 kB / 0.5226 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.4378, allocations: 1.125 kB / 0.5226 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.4378, allocations: 6.047 kB / 0.5226 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.4378, allocations: 1.078 kB / 0.5226 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4378, allocations: 1.188 kB / 0.5226 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002113/0.4381, allocations: 133.2 kB / 0.5227 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.048e-05/0.4381, allocations: 92.02 kB / 0.5228 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.4382, allocations: 7.547 kB / 0.5228 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.4384, allocations: 17.94 kB / 0.5229 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.939e-05/0.4384, allocations: 8.297 kB / 0.5229 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.4384, allocations: 9.75 kB / 0.5229 GB, free: 15.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.742e-05/0.4385, allocations: 78.42 kB / 0.523 GB, free: 15.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4385, allocations: 0 / 0.523 GB, free: 15.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003008/0.4388, allocations: 42.39 kB / 0.523 GB, free: 15.7 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.0007742/0.4396, allocations: 0.7342 MB / 0.5237 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002265/0.4398, allocations: 128.3 kB / 0.5238 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4398, allocations: 448 / 0.5238 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.482e-05/0.4399, allocations: 33.89 kB / 0.5239 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.44, allocations: 9.406 kB / 0.5239 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.4415, allocations: 1.434 MB / 0.5253 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.4417, allocations: 0.6912 MB / 0.5259 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.16e-05/0.4418, allocations: 18.06 kB / 0.526 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.2e-05/0.4418, allocations: 17.38 kB / 0.526 GB, free: 12.91 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4418, allocations: 0 / 0.526 GB, free: 12.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.4655, allocations: 3.045 MB / 0.529 GB, free: 11.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.584/8.05, allocations: 4.844 kB / 0.529 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 & /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