Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008717/0.0008717, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009761/0.0009761, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8799/0.8799, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.143e-06/1.143e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.765e-05/1.88e-05, allocations: 4.953 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001698/0.001717, allocations: 1.235 MB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006781/0.002395, allocations: 461.2 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.83e-05/0.002424, allocations: 7.938 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.03e-05/0.002454, allocations: 0 / 326.3 MB, free: 14.23 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.0003923/0.002846, allocations: 75.66 kB / 326.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.887e-05/0.002945, allocations: 67.73 kB / 326.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.784e-05/0.003023, allocations: 47.83 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.377e-05/0.003057, allocations: 4 kB / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.878e-05/0.003105, allocations: 19.98 kB / 326.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.067e-05/0.003136, allocations: 19.91 kB / 326.5 MB, free: 14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.003148, allocations: 4 kB / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000196/0.003344, allocations: 151.6 kB / 326.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.941e-05/0.003383, allocations: 39.92 kB / 326.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.396e-05/0.003417, allocations: 31.88 kB / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001936/0.003611, allocations: 199.3 kB / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.003613, allocations: 0 / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.003614, allocations: 0 / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.117e-06/0.003618, allocations: 0 / 326.9 MB, free: 13.58 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.0003893/0.004007, allocations: 479.9 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.004047, allocations: 8.031 kB / 327.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.311e-05/0.00411, allocations: 70.61 kB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.962e-05/0.00419, allocations: 20.84 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.29e-05/0.004273, allocations: 121.6 kB / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.004285, allocations: 12.38 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.004295, allocations: 4.375 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.004564, allocations: 402.7 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.004571, allocations: 192 / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.004581, allocations: 4.359 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.004587, allocations: 4.125 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001487/0.004736, allocations: 263.7 kB / 328.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002653/0.005001, allocations: 348.7 kB / 328.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.005204, allocations: 304.9 kB / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.005357, allocations: 285.4 kB / 329.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.407e-06/0.005366, allocations: 11.88 kB / 329.2 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003386/0.005705, allocations: 0.5806 MB / 329.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.102e-06/0.005706, allocations: 0 / 329.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0006659/0.006372, allocations: 0.9975 MB / 330.8 MB, free: 9.402 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.006429, allocations: 164.5 kB / 330.9 MB, free: 9.211 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.646e-05/0.006476, allocations: 93.86 kB / 331 MB, free: 9.109 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.006487, allocations: 33.7 kB / 331.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.441e-05/0.006512, allocations: 85.12 kB / 331.1 MB, free: 8.984 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.095e-05/0.006563, allocations: 99.12 kB / 331.2 MB, free: 8.887 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.006602, allocations: 45.7 kB / 331.3 MB, free: 8.836 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.333e-05/0.006675, allocations: 334.8 kB / 331.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.00678, allocations: 199.8 kB / 331.8 MB, free: 8.293 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.006893, allocations: 236 kB / 332 MB, free: 8.047 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/0.007141, allocations: 488.9 kB / 332.5 MB, free: 7.539 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.007142, allocations: 0 / 332.5 MB, free: 7.539 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0002855/0.007428, allocations: 0.4959 MB / 333 MB, free: 7.012 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.633e-05/0.007484, allocations: 111.3 kB / 333.1 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.007488, allocations: 0 / 333.1 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.007498, allocations: 4 kB / 333.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.704e-05/0.007545, allocations: 4 kB / 333.1 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.00755, allocations: 4.016 kB / 333.1 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.315e-05/0.007583, allocations: 27.84 kB / 333.2 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.007597, allocations: 15.98 kB / 333.2 MB, free: 6.836 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.0001403/0.007738, allocations: 271.8 kB / 333.4 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.007766, allocations: 31.84 kB / 333.5 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.482e-05/0.007781, allocations: 9.656 kB / 333.5 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.007783, allocations: 3.984 kB / 333.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.007787, allocations: 3.938 kB / 333.5 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.00779, allocations: 4.422 kB / 333.5 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006324/0.008423, allocations: 1.027 MB / 334.5 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.008425, allocations: 4.062 kB / 334.5 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.206e-05/0.008437, allocations: 4 kB / 334.5 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.008439, allocations: 4 kB / 334.5 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.008457, allocations: 19.97 kB / 334.5 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.008459, allocations: 8 kB / 334.6 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.00846, allocations: 0 / 334.6 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006063/0.009066, allocations: 0.9762 MB / 335.5 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.421e-05/0.00908, allocations: 19.84 kB / 335.6 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.325e-05/0.009143, allocations: 67.94 kB / 335.6 MB, free: 4.254 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.045e-05/0.009194, allocations: 12 kB / 335.6 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.009225, allocations: 15.98 kB / 335.6 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.009239, allocations: 12 kB / 335.7 MB, free: 4.215 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.592e-05/0.009265, allocations: 87.27 kB / 335.7 MB, free: 4.129 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009265, allocations: 0 / 335.7 MB, free: 4.129 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002356/0.0095, allocations: 87.94 kB / 335.8 MB, free: 4.043 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.001323/0.01082, allocations: 2.13 MB / 338 MB, free: 1.887 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005411/0.01136, allocations: 0.8738 MB / 338.8 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.01137, allocations: 3.938 kB / 338.8 MB, free: 0.957 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002717/0.01164, allocations: 0.5332 MB / 339.4 MB, free: 396 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001732/0.01181, allocations: 20 kB / 339.4 MB, free: 376 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.01401, allocations: 3.573 MB / 343 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.288e-05/0.01408, allocations: 118.6 kB / 343.1 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.305e-05/0.01409, allocations: 7.984 kB / 343.1 MB, free: 12.47 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.607e-05/0.01413, allocations: 36.48 kB / 343.1 MB, free: 12.44 MB / 314.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01413, allocations: 0 / 343.1 MB, free: 12.44 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01626/0.03039, allocations: 5.579 MB / 348.7 MB, free: 6.973 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.484/6.515, allocations: 4.062 kB / 348.7 MB, free: 6.969 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.135123458690941]