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: 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_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001349/0.001349, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001684/0.001684, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2295/0.2295, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 75.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4426/0.444, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001791/0.4459, allocations: 0.5362 MB / 0.5315 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009541/0.4469, allocations: 447.1 kB / 0.5319 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.948e-05/0.4469, allocations: 0 / 0.5319 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.689e-05/0.447, allocations: 0 / 0.5319 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.4472, allocations: 11.94 kB / 0.5319 GB, free: 12.87 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.0006388/0.4478, allocations: 172.5 kB / 0.5321 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.448, allocations: 70.33 kB / 0.5322 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.593e-05/0.4481, allocations: 10.38 kB / 0.5322 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.407e-05/0.4482, allocations: 44.3 kB / 0.5322 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.114e-05/0.4482, allocations: 18.31 kB / 0.5323 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.39e-05/0.4483, allocations: 2.344 kB / 0.5323 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000188/0.4485, allocations: 93.16 kB / 0.5323 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.628e-05/0.4485, allocations: 27.73 kB / 0.5324 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.686e-05/0.4486, allocations: 36.19 kB / 0.5324 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002555/0.4489, allocations: 127.6 kB / 0.5325 GB, free: 12.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4489, allocations: 0 / 0.5325 GB, free: 12.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4489, allocations: 0.9688 kB / 0.5325 GB, free: 12.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.4489, allocations: 0 / 0.5325 GB, free: 12.52 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.0006894/0.4496, allocations: 413.1 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.4496, allocations: 9.531 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.974e-05/0.4497, allocations: 4.719 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/0.4499, allocations: 179.5 kB / 0.5331 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.4499, allocations: 2.688 kB / 0.5331 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.45, allocations: 2.5 kB / 0.5331 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.4502, allocations: 90 kB / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.4502, allocations: 192 / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/0.4502, allocations: 9.281 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.4503, allocations: 5.25 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.239e-05/0.4503, allocations: 23.84 kB / 0.5332 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002034/0.4505, allocations: 169.9 kB / 0.5334 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.437e-05/0.4507, allocations: 48.03 kB / 0.5334 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.018e-05/0.4507, allocations: 24.19 kB / 0.5335 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.4507, allocations: 0 / 0.5335 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.451, allocations: 136.8 kB / 0.5336 GB, free: 11.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.451, allocations: 0 / 0.5336 GB, free: 11.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003306/0.4514, allocations: 132.2 kB / 0.5337 GB, free: 11.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.4514, allocations: 55.16 kB / 0.5338 GB, free: 11.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.541e-05/0.4515, allocations: 97.72 kB / 0.5339 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.974e-05/0.4515, allocations: 36.44 kB / 0.5339 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.4516, allocations: 81.52 kB / 0.534 GB, free: 11.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.969e-05/0.4516, allocations: 23.78 kB / 0.534 GB, free: 11.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.926e-05/0.4517, allocations: 31.33 kB / 0.534 GB, free: 11.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4518, allocations: 325.6 kB / 0.5343 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.132e-05/0.4519, allocations: 20.36 kB / 0.5344 GB, free: 10.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.257e-05/0.452, allocations: 73.02 kB / 0.5344 GB, free: 10.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.4522, allocations: 144.3 kB / 0.5346 GB, free: 10.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.4522, allocations: 1.375 kB / 0.5346 GB, free: 10.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002631/0.4524, allocations: 170.1 kB / 0.5347 GB, free: 10.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.25e-05/0.4525, allocations: 35.14 kB / 0.5348 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.4525, allocations: 2.75 kB / 0.5348 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.4525, allocations: 6.734 kB / 0.5348 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.4527, allocations: 16.31 kB / 0.5348 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.4527, allocations: 2.75 kB / 0.5348 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.904e-05/0.4527, allocations: 10.66 kB / 0.5348 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.4528, allocations: 9.703 kB / 0.5348 GB, free: 10.31 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.000166/0.4529, allocations: 130.7 kB / 0.5349 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.453, allocations: 8.062 kB / 0.5349 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.126e-05/0.453, allocations: 13.33 kB / 0.535 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.4531, allocations: 3.938 kB / 0.535 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.4531, allocations: 1.375 kB / 0.535 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.4531, allocations: 0 / 0.535 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.4532, allocations: 175.2 kB / 0.5351 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.4533, allocations: 7.984 kB / 0.5351 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.276e-05/0.4533, allocations: 4.125 kB / 0.5351 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.4533, allocations: 5.312 kB / 0.5351 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.4533, allocations: 1.375 kB / 0.5351 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.034e-05/0.4534, allocations: 4.062 kB / 0.5351 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4534, allocations: 0 / 0.5351 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002142/0.4536, allocations: 127.9 kB / 0.5353 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.429e-05/0.4537, allocations: 90.27 kB / 0.5354 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.4537, allocations: 14.73 kB / 0.5354 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.4539, allocations: 17.59 kB / 0.5354 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.326e-05/0.454, allocations: 2.75 kB / 0.5354 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-05/0.454, allocations: 8.125 kB / 0.5354 GB, free: 9.715 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.649e-05/0.454, allocations: 80.64 kB / 0.5355 GB, free: 9.637 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.454, allocations: 1.375 kB / 0.5355 GB, free: 9.637 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002991/0.4543, allocations: 38.91 kB / 0.5355 GB, free: 9.629 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.0004644/0.4548, allocations: 180.3 kB / 0.5357 GB, free: 9.504 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002799/0.4551, allocations: 128.8 kB / 0.5358 GB, free: 9.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4551, allocations: 5.344 kB / 0.5358 GB, free: 9.406 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.028e-05/0.4552, allocations: 26.77 kB / 0.5358 GB, free: 9.398 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001676/0.4554, allocations: 15.2 kB / 0.5359 GB, free: 9.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004152/0.4558, allocations: 143.3 kB / 0.536 GB, free: 9.258 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.4561, allocations: 0.6821 MB / 0.5367 GB, free: 8.559 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.945e-05/0.4562, allocations: 12.84 kB / 0.5367 GB, free: 8.551 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.866e-05/0.4562, allocations: 16.36 kB / 0.5367 GB, free: 8.539 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4562, allocations: 5.25 kB / 0.5367 GB, free: 8.535 MB / 398.1 MB Notification: Performance of Templates: time 0.005224/0.4614, allocations: 1.995 MB / 0.5386 GB, free: 7.52 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches