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.001038/0.001038, allocations: 115.7 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 206.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2157/0.2157, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 71.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3316, allocations: 62.44 MB / 0.5317 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001569/0.3333, allocations: 0.535 MB / 0.5322 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008305/0.3341, allocations: 436.2 kB / 0.5326 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.3341, allocations: 0 / 0.5326 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.138e-05/0.3342, allocations: 5.281 kB / 0.5326 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001182/0.3344, allocations: 17.31 kB / 0.5326 GB, free: 13.08 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.0005207/0.3349, allocations: 165.8 kB / 0.5328 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00015/0.335, allocations: 83.03 kB / 0.5329 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.585e-05/0.3351, allocations: 5.875 kB / 0.5329 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.848e-05/0.3352, allocations: 40.5 kB / 0.5329 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.94e-05/0.3352, allocations: 18.31 kB / 0.5329 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.92e-05/0.3353, allocations: 6.922 kB / 0.5329 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.3354, allocations: 96.5 kB / 0.533 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.486e-05/0.3355, allocations: 15.27 kB / 0.533 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.17e-05/0.3355, allocations: 33.02 kB / 0.5331 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001955/0.3357, allocations: 127.3 kB / 0.5332 GB, free: 12.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3358, allocations: 4 kB / 0.5332 GB, free: 12.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3358, allocations: 0 / 0.5332 GB, free: 12.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.3358, allocations: 1.375 kB / 0.5332 GB, free: 12.74 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.0005283/0.3363, allocations: 404.6 kB / 0.5336 GB, free: 12.31 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.3363, allocations: 12.19 kB / 0.5336 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.779e-05/0.3364, allocations: 9 kB / 0.5336 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.3366, allocations: 188.5 kB / 0.5338 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-06/0.3366, allocations: 1.75 kB / 0.5338 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.3366, allocations: 3.125 kB / 0.5338 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.3368, allocations: 93.81 kB / 0.5339 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.3368, allocations: 192 / 0.5339 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/0.3368, allocations: 9.312 kB / 0.5339 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3368, allocations: 0 / 0.5339 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.881e-05/0.3369, allocations: 21.73 kB / 0.5339 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001707/0.3371, allocations: 170.2 kB / 0.5341 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.042e-05/0.3372, allocations: 48.38 kB / 0.5341 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.228e-05/0.3372, allocations: 19.92 kB / 0.5341 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.3372, allocations: 4 kB / 0.5341 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002261/0.3375, allocations: 132.6 kB / 0.5343 GB, free: 11.65 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.3375, allocations: 0 / 0.5343 GB, free: 11.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002835/0.3378, allocations: 122.1 kB / 0.5344 GB, free: 11.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.3378, allocations: 66.08 kB / 0.5344 GB, free: 11.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.988e-05/0.3379, allocations: 93.98 kB / 0.5345 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/0.3379, allocations: 32.45 kB / 0.5346 GB, free: 11.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.835e-05/0.338, allocations: 80.3 kB / 0.5346 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.271e-05/0.338, allocations: 33.12 kB / 0.5347 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.412e-05/0.338, allocations: 35.27 kB / 0.5347 GB, free: 11.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.3382, allocations: 316.2 kB / 0.535 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.441e-05/0.3382, allocations: 21.73 kB / 0.535 GB, free: 10.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.195e-05/0.3383, allocations: 80.72 kB / 0.5351 GB, free: 10.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.3385, allocations: 148.2 kB / 0.5352 GB, free: 10.69 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3385, allocations: 0 / 0.5352 GB, free: 10.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002083/0.3387, allocations: 162.1 kB / 0.5354 GB, free: 10.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.3387, allocations: 39.95 kB / 0.5354 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3387, allocations: 3 kB / 0.5354 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.3388, allocations: 3.125 kB / 0.5354 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.3389, allocations: 16.73 kB / 0.5355 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3389, allocations: 1.625 kB / 0.5355 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.016e-05/0.3389, allocations: 15.47 kB / 0.5355 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.339, allocations: 10.09 kB / 0.5355 GB, free: 10.52 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.0001325/0.3391, allocations: 125.9 kB / 0.5356 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.3391, allocations: 8 kB / 0.5356 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.863e-05/0.3392, allocations: 7.969 kB / 0.5356 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3392, allocations: 1.25 kB / 0.5356 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3392, allocations: 0 / 0.5356 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.3392, allocations: 90.31 kB / 0.5357 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.3392, allocations: 3.188 kB / 0.5357 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.3394, allocations: 22.12 kB / 0.5357 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.985e-05/0.3395, allocations: 10.33 kB / 0.5357 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001987/0.3397, allocations: 177.5 kB / 0.5359 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002235/0.3399, allocations: 279.2 kB / 0.5362 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.288e-05/0.34, allocations: 30.66 kB / 0.5362 GB, free: 9.859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.211e-05/0.34, allocations: 81.62 kB / 0.5363 GB, free: 9.781 MB / 398.1 MB Notification: Performance of Backend: time 3e-07/0.34, allocations: 1.156 kB / 0.5363 GB, free: 9.781 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000678/0.3407, allocations: 262.1 kB / 0.5365 GB, free: 9.594 MB / 398.1 MB Notification: Performance of SimCode: time 0.000384/0.3411, allocations: 0.5688 MB / 0.5371 GB, free: 9 MB / 398.1 MB Notification: Performance of Templates: time 0.00471/0.3458, allocations: 2.128 MB / 0.5392 GB, free: 7.91 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/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