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: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 113.9 kB / 18.46 MB, free: 4.59 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.001298/0.001298, allocations: 190 kB / 19.39 MB, free: 3.664 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.355/1.355, allocations: 222.9 MB / 243.1 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.2138/0.2138, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 55.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.3704, allocations: 60.83 MB / 0.5196 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001552/0.372, allocations: 0.5266 MB / 0.5201 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008646/0.3729, allocations: 446.9 kB / 0.5205 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.718e-05/0.3729, allocations: 1.5 kB / 0.5205 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.875e-05/0.373, allocations: 3.938 kB / 0.5205 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.3732, allocations: 14.62 kB / 0.5205 GB, free: 2.992 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.0005447/0.3737, allocations: 164.3 kB / 0.5207 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001757/0.3739, allocations: 84.97 kB / 0.5208 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.857e-05/0.3739, allocations: 2.109 kB / 0.5208 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.565e-05/0.374, allocations: 43.64 kB / 0.5208 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.626e-05/0.3741, allocations: 21.75 kB / 0.5208 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.005e-05/0.3741, allocations: 4.281 kB / 0.5208 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002128/0.3743, allocations: 98.33 kB / 0.5209 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.021e-05/0.3744, allocations: 20.98 kB / 0.521 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.595e-05/0.3745, allocations: 21.12 kB / 0.521 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.3747, allocations: 135.4 kB / 0.5211 GB, free: 2.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3747, allocations: 1.344 kB / 0.5211 GB, free: 2.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3747, allocations: 4 kB / 0.5211 GB, free: 2.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.3748, allocations: 0 / 0.5211 GB, free: 2.777 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.000491/0.3753, allocations: 407.2 kB / 0.5215 GB, free: 2.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.3753, allocations: 8.672 kB / 0.5215 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.544e-05/0.3754, allocations: 4.938 kB / 0.5215 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.3755, allocations: 193.5 kB / 0.5217 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.3755, allocations: 6.281 kB / 0.5217 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.3756, allocations: 6.484 kB / 0.5217 GB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.3758, allocations: 88.39 kB / 0.5218 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3758, allocations: 5.406 kB / 0.5218 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.3758, allocations: 4.688 kB / 0.5218 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.3758, allocations: 5.969 kB / 0.5218 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.801e-05/0.3759, allocations: 21.88 kB / 0.5218 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001553/0.3761, allocations: 165.8 kB / 0.522 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.878e-05/0.3761, allocations: 49.11 kB / 0.522 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.364e-05/0.3762, allocations: 21.78 kB / 0.5221 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.3762, allocations: 5.062 kB / 0.5221 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.3765, allocations: 131.3 kB / 0.5222 GB, free: 1.777 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.3765, allocations: 0 / 0.5222 GB, free: 1.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002989/0.3768, allocations: 130.2 kB / 0.5223 GB, free: 1.715 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.295e-05/0.3768, allocations: 56.09 kB / 0.5224 GB, free: 1.652 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.882e-05/0.3769, allocations: 104.4 kB / 0.5225 GB, free: 1.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.3769, allocations: 31.89 kB / 0.5225 GB, free: 1.512 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.019e-05/0.377, allocations: 86.02 kB / 0.5226 GB, free: 1.426 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.962e-05/0.377, allocations: 26.02 kB / 0.5226 GB, free: 1.406 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.213e-05/0.377, allocations: 31.58 kB / 0.5226 GB, free: 1.383 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.896e-05/0.3771, allocations: 319.2 kB / 0.5229 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.3771, allocations: 20.67 kB / 0.523 GB, free: 1.062 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.069e-05/0.3772, allocations: 76.23 kB / 0.523 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/0.3774, allocations: 145.9 kB / 0.5232 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.3774, allocations: 1.719 kB / 0.5232 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002003/0.3776, allocations: 161.8 kB / 0.5233 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.3776, allocations: 40.69 kB / 0.5234 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3777, allocations: 3.578 kB / 0.5234 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.3777, allocations: 2.781 kB / 0.5234 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.3778, allocations: 15.23 kB / 0.5234 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.3778, allocations: 10.97 kB / 0.5234 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.889e-05/0.3779, allocations: 11.05 kB / 0.5234 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.3779, allocations: 11.69 kB / 0.5234 GB, free: 0.6992 MB / 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.0001104/0.378, allocations: 118.8 kB / 0.5235 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/0.378, allocations: 12.8 kB / 0.5235 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.478e-05/0.3781, allocations: 9.625 kB / 0.5236 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.3781, allocations: 1.984 kB / 0.5236 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.3781, allocations: 0 / 0.5236 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.122e-05/0.3781, allocations: 83.67 kB / 0.5236 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.3781, allocations: 3.875 kB / 0.5236 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.3783, allocations: 25 kB / 0.5237 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.869e-05/0.3784, allocations: 8.031 kB / 0.5237 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001971/0.3786, allocations: 185.7 kB / 0.5238 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000214/0.3788, allocations: 284.6 kB / 0.5241 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.763e-05/0.3789, allocations: 27.66 kB / 0.5241 GB, free: 80 kB / 382.1 MB Notification: Performance of sorting global known variables: time 2.333e-05/0.3789, allocations: 78.95 kB / 0.5242 GB, free: 4 kB / 382.1 MB Notification: Performance of Backend: time 3.41e-07/0.3789, allocations: 0 / 0.5242 GB, free: 4 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007649/0.3797, allocations: 247.3 kB / 0.5245 GB, free: 15.84 MB / 398.1 MB Notification: Performance of SimCode: time 0.0004846/0.3802, allocations: 0.5625 MB / 0.525 GB, free: 15.26 MB / 398.1 MB Notification: Performance of Templates: time 0.005768/0.3859, allocations: 2.097 MB / 0.5271 GB, free: 14.64 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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