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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001488/0.001488, allocations: 109 kB / 21.23 MB, free: 0.6719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001576/0.001576, allocations: 209.2 kB / 24.53 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 230.3 MB / 258 MB, free: 8.246 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.234/0.234, allocations: 46.89 MB / 361.3 MB, free: 4.473 MB / 286.1 MB " [Timeout remaining time 180] 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=6001,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=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 79.86 kB / 0.4971 GB, free: 7.613 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3476, allocations: 66.02 MB / 0.5615 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001725/0.3493, allocations: 0.5405 MB / 0.5621 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009482/0.3503, allocations: 446.6 kB / 0.5625 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.144e-05/0.3503, allocations: 8 kB / 0.5625 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.578e-05/0.3504, allocations: 0 / 0.5625 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.3505, allocations: 11.92 kB / 0.5625 GB, free: 3.668 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.0005905/0.3511, allocations: 174.8 kB / 0.5627 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001698/0.3513, allocations: 87.78 kB / 0.5627 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.733e-05/0.3513, allocations: 4 kB / 0.5628 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.383e-05/0.3514, allocations: 35.97 kB / 0.5628 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.682e-05/0.3514, allocations: 23.89 kB / 0.5628 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.072e-05/0.3515, allocations: 4 kB / 0.5628 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002666/0.3517, allocations: 135.8 kB / 0.5629 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.204e-05/0.3518, allocations: 19.97 kB / 0.563 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.457e-05/0.3519, allocations: 39.7 kB / 0.563 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002289/0.3521, allocations: 130.2 kB / 0.5631 GB, free: 3.035 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3521, allocations: 0 / 0.5631 GB, free: 3.035 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3521, allocations: 0 / 0.5631 GB, free: 3.035 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.3521, allocations: 0 / 0.5631 GB, free: 3.035 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.0005486/0.3527, allocations: 327.8 kB / 0.5634 GB, free: 2.676 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.3527, allocations: 12.03 kB / 0.5634 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.871e-05/0.3528, allocations: 12.89 kB / 0.5635 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.3529, allocations: 126.5 kB / 0.5636 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.353, allocations: 384 / 0.5636 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.353, allocations: 8.359 kB / 0.5636 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.3532, allocations: 90.14 kB / 0.5637 GB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3532, allocations: 192 / 0.5637 GB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.3532, allocations: 11.92 kB / 0.5637 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3532, allocations: 0 / 0.5637 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.724e-05/0.3533, allocations: 27.97 kB / 0.5637 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001853/0.3535, allocations: 136.7 kB / 0.5638 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001003/0.3536, allocations: 42.56 kB / 0.5639 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.979e-05/0.3536, allocations: 20.91 kB / 0.5639 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.3536, allocations: 0 / 0.5639 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002615/0.3539, allocations: 127.3 kB / 0.564 GB, free: 1.977 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.3539, allocations: 0 / 0.564 GB, free: 1.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003042/0.3542, allocations: 137.6 kB / 0.5642 GB, free: 1.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.3542, allocations: 55.41 kB / 0.5642 GB, free: 1.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.493e-05/0.3543, allocations: 105.8 kB / 0.5643 GB, free: 1.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.3544, allocations: 29.7 kB / 0.5643 GB, free: 1.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.063e-05/0.3544, allocations: 84.14 kB / 0.5644 GB, free: 1.535 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.281e-05/0.3544, allocations: 19.86 kB / 0.5644 GB, free: 1.516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.414e-05/0.3545, allocations: 37.7 kB / 0.5645 GB, free: 1.473 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3546, allocations: 318.8 kB / 0.5648 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.102e-05/0.3547, allocations: 23.98 kB / 0.5648 GB, free: 1.129 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.773e-05/0.3548, allocations: 75.08 kB / 0.5649 GB, free: 1.031 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.355, allocations: 148.4 kB / 0.565 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.355, allocations: 4 kB / 0.565 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002282/0.3552, allocations: 159.1 kB / 0.5652 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.772e-05/0.3552, allocations: 37.62 kB / 0.5652 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.3552, allocations: 4 kB / 0.5652 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.3553, allocations: 4 kB / 0.5652 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.3554, allocations: 19.94 kB / 0.5652 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.3554, allocations: 3.984 kB / 0.5652 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.23e-05/0.3554, allocations: 12.11 kB / 0.5652 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.3554, allocations: 15.94 kB / 0.5653 GB, free: 0.582 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.0001785/0.3556, allocations: 127.1 kB / 0.5654 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.164e-05/0.3557, allocations: 11.88 kB / 0.5654 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.232e-05/0.3557, allocations: 12.06 kB / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3557, allocations: 0 / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.3557, allocations: 0 / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3557, allocations: 0 / 0.5654 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.3558, allocations: 148.7 kB / 0.5655 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.3558, allocations: 0 / 0.5655 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.602e-05/0.3559, allocations: 4 kB / 0.5656 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.3559, allocations: 3.938 kB / 0.5656 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.3559, allocations: 4 kB / 0.5656 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.3559, allocations: 4 kB / 0.5656 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3559, allocations: 64 / 0.5656 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002085/0.3561, allocations: 129 kB / 0.5657 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.36e-05/0.3561, allocations: 19.88 kB / 0.5657 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.3561, allocations: 0 / 0.5657 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.3564, allocations: 24.16 kB / 0.5657 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.137e-05/0.3564, allocations: 3.984 kB / 0.5657 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.3564, allocations: 7.984 kB / 0.5657 GB, free: 20 kB / 398.1 MB Notification: Performance of sorting global known variables: time 6.269e-05/0.3565, allocations: 83.28 kB / 0.5658 GB, free: 15.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3565, allocations: 0 / 0.5658 GB, free: 15.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000274/0.3567, allocations: 43.92 kB / 0.5659 GB, free: 15.89 MB / 414.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.0004253/0.3572, allocations: 183.9 kB / 0.566 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002195/0.3574, allocations: 127.2 kB / 0.5662 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3574, allocations: 4.375 kB / 0.5662 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.964e-05/0.3574, allocations: 31.92 kB / 0.5662 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/0.3576, allocations: 8 kB / 0.5662 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003561/0.358, allocations: 140.7 kB / 0.5663 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.3582, allocations: 0.6812 MB / 0.567 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.824e-05/0.3583, allocations: 20.64 kB / 0.567 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.581e-05/0.3583, allocations: 11.44 kB / 0.567 GB, free: 14.64 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3583, allocations: 4 kB / 0.567 GB, free: 14.64 MB / 414.1 MB Notification: Performance of Templates: time 0.005106/0.3634, allocations: 2.041 MB / 0.569 GB, free: 12.6 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.103143367916346]