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.001637/0.001637, allocations: 116.4 kB / 18.45 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 215.8 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2386/0.2386, allocations: 46.13 MB / 345 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002242/0.002242, allocations: 76.14 kB / 482 MB, free: 4.004 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3319, allocations: 62.44 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001844/0.3337, allocations: 0.5438 MB / 0.5323 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009981/0.3347, allocations: 436.9 kB / 0.5327 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3e-05/0.3348, allocations: 0 / 0.5327 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.347e-05/0.3348, allocations: 3.938 kB / 0.5327 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.335, allocations: 14.45 kB / 0.5327 GB, free: 12.84 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.0005967/0.3356, allocations: 169.3 kB / 0.5328 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001589/0.3357, allocations: 79.52 kB / 0.5329 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.947e-05/0.3358, allocations: 5.359 kB / 0.5329 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.248e-05/0.3358, allocations: 40.66 kB / 0.533 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.615e-05/0.3359, allocations: 13.42 kB / 0.533 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.467e-05/0.3359, allocations: 2.75 kB / 0.533 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002164/0.3361, allocations: 109.1 kB / 0.5331 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.16e-05/0.3362, allocations: 20.22 kB / 0.5331 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.825e-05/0.3362, allocations: 30.77 kB / 0.5331 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.3364, allocations: 128.8 kB / 0.5333 GB, free: 12.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.3364, allocations: 0 / 0.5333 GB, free: 12.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3364, allocations: 0 / 0.5333 GB, free: 12.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.3364, allocations: 0 / 0.5333 GB, free: 12.5 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.0006361/0.3371, allocations: 410.7 kB / 0.5337 GB, free: 12.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.3371, allocations: 8.25 kB / 0.5337 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.557e-05/0.3372, allocations: 12.84 kB / 0.5337 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.3374, allocations: 184.4 kB / 0.5338 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.3374, allocations: 1.969 kB / 0.5338 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.3374, allocations: 7.875 kB / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.3376, allocations: 88.84 kB / 0.5339 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.3376, allocations: 192 / 0.5339 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.555e-05/0.3377, allocations: 9.062 kB / 0.5339 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3377, allocations: 1.375 kB / 0.534 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.371e-05/0.3377, allocations: 20.58 kB / 0.534 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002078/0.3379, allocations: 164.8 kB / 0.5341 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.338, allocations: 46.72 kB / 0.5342 GB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.816e-05/0.3381, allocations: 25.75 kB / 0.5342 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.3381, allocations: 4.984 kB / 0.5342 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002794/0.3384, allocations: 132.3 kB / 0.5343 GB, free: 11.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.3384, allocations: 0 / 0.5343 GB, free: 11.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003146/0.3387, allocations: 125.1 kB / 0.5344 GB, free: 11.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.3387, allocations: 54.78 kB / 0.5345 GB, free: 11.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.3388, allocations: 102 kB / 0.5346 GB, free: 11.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.3389, allocations: 28.52 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.651e-05/0.3389, allocations: 85.55 kB / 0.5347 GB, free: 11.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.638e-05/0.339, allocations: 32.11 kB / 0.5347 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-05/0.339, allocations: 30.98 kB / 0.5348 GB, free: 11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3391, allocations: 321.9 kB / 0.5351 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.004e-05/0.3392, allocations: 24.27 kB / 0.5351 GB, free: 10.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.895e-05/0.3393, allocations: 73 kB / 0.5352 GB, free: 10.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.3395, allocations: 160.6 kB / 0.5353 GB, free: 10.44 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3395, allocations: 0 / 0.5353 GB, free: 10.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002409/0.3398, allocations: 154 kB / 0.5355 GB, free: 10.33 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/0.3398, allocations: 43.02 kB / 0.5355 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3398, allocations: 1.156 kB / 0.5355 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.3398, allocations: 2.875 kB / 0.5355 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.3399, allocations: 20.77 kB / 0.5355 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.34, allocations: 3.094 kB / 0.5355 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.194e-05/0.34, allocations: 12.05 kB / 0.5355 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.34, allocations: 9.438 kB / 0.5356 GB, free: 10.27 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.0001479/0.3402, allocations: 131.9 kB / 0.5357 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.133e-05/0.3402, allocations: 11.92 kB / 0.5357 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.339e-05/0.3402, allocations: 9.094 kB / 0.5357 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3402, allocations: 1.125 kB / 0.5357 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3402, allocations: 3.938 kB / 0.5357 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3402, allocations: 0 / 0.5357 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.3404, allocations: 167.5 kB / 0.5359 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3404, allocations: 4 kB / 0.5359 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.411e-05/0.3404, allocations: 5.5 kB / 0.5359 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3405, allocations: 3.938 kB / 0.5359 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.3405, allocations: 9.359 kB / 0.5359 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3405, allocations: 0 / 0.5359 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3405, allocations: 1.375 kB / 0.5359 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002189/0.3407, allocations: 126.5 kB / 0.536 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.923e-05/0.3407, allocations: 86.38 kB / 0.5361 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.887e-05/0.3408, allocations: 6.75 kB / 0.5361 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.341, allocations: 25.66 kB / 0.5361 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.52e-05/0.341, allocations: 6.734 kB / 0.5361 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.341, allocations: 4.125 kB / 0.5361 GB, free: 9.688 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.192e-05/0.3411, allocations: 78.03 kB / 0.5362 GB, free: 9.613 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3411, allocations: 0 / 0.5362 GB, free: 9.613 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002903/0.3413, allocations: 47.55 kB / 0.5363 GB, free: 9.598 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.0004354/0.3418, allocations: 184.6 kB / 0.5364 GB, free: 9.465 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002284/0.342, allocations: 135.5 kB / 0.5366 GB, free: 9.363 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.342, allocations: 0 / 0.5366 GB, free: 9.363 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.255e-05/0.3421, allocations: 29.3 kB / 0.5366 GB, free: 9.352 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001801/0.3423, allocations: 14.31 kB / 0.5366 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003755/0.3426, allocations: 142.2 kB / 0.5367 GB, free: 9.215 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003508/0.343, allocations: 0.6825 MB / 0.5374 GB, free: 8.516 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.039e-05/0.343, allocations: 13.31 kB / 0.5374 GB, free: 8.508 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.654e-05/0.3431, allocations: 12.12 kB / 0.5374 GB, free: 8.5 MB / 398.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3431, allocations: 0 / 0.5374 GB, free: 8.5 MB / 398.1 MB Notification: Performance of Templates: time 0.005461/0.3485, allocations: 1.997 MB / 0.5394 GB, free: 7.484 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 -s gbode -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/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