Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.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.0008316/0.0008316, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0009056/0.0009056, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.898/0.898, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.218e-05/2.457e-05, allocations: 2.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002203/0.002228, allocations: 1.248 MB / 325.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009045/0.003132, allocations: 453.2 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.026e-05/0.003162, allocations: 0 / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.135e-05/0.003194, allocations: 3.938 kB / 326.2 MB, free: 14.2 MB / 298.7 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.typeBindings: time 0.0004644/0.003658, allocations: 71.72 kB / 326.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001391/0.003797, allocations: 79.61 kB / 326.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.606e-05/0.003883, allocations: 43.91 kB / 326.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.847e-05/0.003922, allocations: 4 kB / 326.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.181e-05/0.003974, allocations: 19.97 kB / 326.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.491e-05/0.004008, allocations: 23.91 kB / 326.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.004021, allocations: 4 kB / 326.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.004246, allocations: 155.6 kB / 326.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.299e-05/0.004289, allocations: 31.92 kB / 326.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.617e-05/0.004325, allocations: 27.88 kB / 326.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002169/0.004542, allocations: 195.3 kB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.004546, allocations: 4 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.004548, allocations: 0 / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.004552, allocations: 0 / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004391/0.004991, allocations: 476.8 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.00503, allocations: 15.98 kB / 327.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.894e-05/0.005099, allocations: 62.61 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.617e-05/0.005195, allocations: 24.83 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.533e-05/0.00529, allocations: 125.5 kB / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.005304, allocations: 8.312 kB / 327.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.005314, allocations: 4.375 kB / 327.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.005599, allocations: 406.7 kB / 327.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.005606, allocations: 192 / 327.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.005616, allocations: 384 / 327.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.005623, allocations: 16.05 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001571/0.00578, allocations: 263.6 kB / 328.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002654/0.006046, allocations: 344.8 kB / 328.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002049/0.00625, allocations: 308.8 kB / 328.9 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.006409, allocations: 281.4 kB / 329.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.006419, allocations: 0 / 329.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004269/0.006846, allocations: 0.5845 MB / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.202e-06/0.006847, allocations: 4 kB / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007493/0.007597, allocations: 0.9898 MB / 330.7 MB, free: 9.379 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.533e-05/0.007672, allocations: 168.4 kB / 330.9 MB, free: 9.184 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.822e-05/0.00773, allocations: 97.86 kB / 331 MB, free: 9.078 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.007742, allocations: 29.7 kB / 331 MB, free: 9.043 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.237e-05/0.007774, allocations: 85.12 kB / 331.1 MB, free: 8.957 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.874e-05/0.007833, allocations: 103.1 kB / 331.2 MB, free: 8.855 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.215e-05/0.007875, allocations: 41.7 kB / 331.2 MB, free: 8.809 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.196e-05/0.007967, allocations: 330.8 kB / 331.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.008083, allocations: 203.8 kB / 331.7 MB, free: 8.266 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.008205, allocations: 240.1 kB / 332 MB, free: 8.016 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002625/0.008467, allocations: 484.9 kB / 332.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.00847, allocations: 3.938 kB / 332.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003154/0.008785, allocations: 0.4959 MB / 333 MB, free: 6.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.574e-05/0.008851, allocations: 111.3 kB / 333.1 MB, free: 6.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.008857, allocations: 4 kB / 333.1 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.00887, allocations: 0 / 333.1 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.384e-05/0.008934, allocations: 4 kB / 333.1 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.00894, allocations: 0 / 333.1 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.009232, allocations: 31.72 kB / 333.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.009247, allocations: 11.98 kB / 333.1 MB, free: 6.809 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],r1024,r128,r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.0001633/0.00941, allocations: 275.8 kB / 333.4 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.009445, allocations: 31.84 kB / 333.4 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.966e-05/0.009465, allocations: 5.656 kB / 333.4 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.009468, allocations: 7.984 kB / 333.4 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.009473, allocations: 4 kB / 333.4 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.009476, allocations: 0 / 333.4 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006795/0.01016, allocations: 1.031 MB / 334.5 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.01016, allocations: 0 / 334.5 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.155e-05/0.01018, allocations: 4 kB / 334.5 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.01018, allocations: 7.938 kB / 334.5 MB, free: 5.355 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/0.0102, allocations: 19.98 kB / 334.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.01021, allocations: 0 / 334.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.01021, allocations: 0 / 334.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007179/0.01093, allocations: 0.9762 MB / 335.5 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.242e-05/0.01095, allocations: 27.84 kB / 335.5 MB, free: 4.285 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.755e-05/0.01102, allocations: 63.94 kB / 335.6 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.494e-05/0.01107, allocations: 12 kB / 335.6 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.73e-05/0.01111, allocations: 15.92 kB / 335.6 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.01113, allocations: 16 kB / 335.6 MB, free: 4.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.308e-05/0.01116, allocations: 83.27 kB / 335.7 MB, free: 4.098 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01116, allocations: 0 / 335.7 MB, free: 4.098 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002808/0.01144, allocations: 87.94 kB / 335.8 MB, free: 4.012 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,rImpure,iImpure,$whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33]) * Number of discrete states: 43 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.00152/0.01296, allocations: 2.129 MB / 337.9 MB, free: 1.848 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006165/0.01358, allocations: 0.8737 MB / 338.8 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.01358, allocations: 0 / 338.8 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000295/0.01387, allocations: 0.5371 MB / 339.3 MB, free: 360 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001936/0.01407, allocations: 31.88 kB / 339.3 MB, free: 328 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002414/0.01648, allocations: 3.557 MB / 342.9 MB, free: 12.58 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.562e-05/0.01657, allocations: 118.8 kB / 343 MB, free: 12.45 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.621e-05/0.01658, allocations: 7.984 kB / 343 MB, free: 12.44 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.22e-05/0.01663, allocations: 36.48 kB / 343.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01663, allocations: 0 / 343.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.03797, allocations: 5.575 MB / 348.6 MB, free: 6.922 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.822/6.86, allocations: 10.81 kB / 348.6 MB, free: 6.914 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,r1024,r128,r64 Variables in the result:globalSeed,iImpure,id,localSeed,r1024,r128,r64,rImpure,samplePeriod,time [Calling sys.exit(0), Time elapsed: 8.529406695626676]