Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008535/0.0008535, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008501/0.0008501, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8842/0.8842, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 318.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.09e-05/1.261e-05, allocations: 5.516 kB / 318.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001366/0.001379, allocations: 1.211 MB / 319.6 MB, free: 5.012 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006192/0.001998, allocations: 457 kB / 320.1 MB, free: 4.566 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.941e-05/0.002028, allocations: 0 / 320.1 MB, free: 4.566 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.402e-05/0.002062, allocations: 3.938 kB / 320.1 MB, free: 4.562 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0004165/0.002478, allocations: 75.66 kB / 320.2 MB, free: 4.488 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001045/0.002583, allocations: 75.61 kB / 320.2 MB, free: 4.414 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.623e-05/0.002669, allocations: 47.89 kB / 320.3 MB, free: 4.367 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.82e-05/0.002707, allocations: 4 kB / 320.3 MB, free: 4.363 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.144e-05/0.002748, allocations: 23.92 kB / 320.3 MB, free: 4.34 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.29e-05/0.002781, allocations: 19.95 kB / 320.3 MB, free: 4.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.157e-05/0.002793, allocations: 4 kB / 320.3 MB, free: 4.316 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.003004, allocations: 159.6 kB / 320.5 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.859e-05/0.003042, allocations: 27.94 kB / 320.5 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.534e-05/0.003078, allocations: 31.86 kB / 320.6 MB, free: 4.102 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002007/0.003278, allocations: 191.3 kB / 320.7 MB, free: 3.914 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.003281, allocations: 4 kB / 320.7 MB, free: 3.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.003282, allocations: 0 / 320.7 MB, free: 3.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.003286, allocations: 0 / 320.7 MB, free: 3.91 MB / 282.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.0004103/0.003696, allocations: 484.8 kB / 321.2 MB, free: 3.391 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.003733, allocations: 8.922 kB / 321.2 MB, free: 3.383 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.027e-05/0.003794, allocations: 54.62 kB / 321.3 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.334e-05/0.003877, allocations: 28.84 kB / 321.3 MB, free: 3.293 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.378e-05/0.003961, allocations: 125.6 kB / 321.4 MB, free: 3.145 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.003972, allocations: 4.375 kB / 321.4 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.264e-05/0.003984, allocations: 8.375 kB / 321.4 MB, free: 3.133 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.004264, allocations: 398.7 kB / 321.8 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.004272, allocations: 192 / 321.8 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.004283, allocations: 4.375 kB / 321.8 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.004288, allocations: 4.125 kB / 321.8 MB, free: 2.707 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.004447, allocations: 271.6 kB / 322.1 MB, free: 2.426 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002544/0.004701, allocations: 340.8 kB / 322.4 MB, free: 2.047 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.004899, allocations: 312.8 kB / 322.7 MB, free: 1.711 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.005062, allocations: 281.4 kB / 323 MB, free: 1.418 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.989e-06/0.005072, allocations: 0 / 323 MB, free: 1.418 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003828/0.005455, allocations: 0.5884 MB / 323.6 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 7.71e-07/0.005456, allocations: 0 / 323.6 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007419/0.006198, allocations: 0.9937 MB / 324.6 MB, free: 15.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.006267, allocations: 164.4 kB / 324.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.975e-05/0.006327, allocations: 110 kB / 324.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.045e-05/0.006337, allocations: 25.7 kB / 324.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.838e-05/0.006366, allocations: 81.14 kB / 325 MB, free: 15.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.523e-05/0.006421, allocations: 111.2 kB / 325.1 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.806e-05/0.006459, allocations: 37.7 kB / 325.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.078e-05/0.00655, allocations: 334.8 kB / 325.4 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.006662, allocations: 195.8 kB / 325.6 MB, free: 14.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.006788, allocations: 244 kB / 325.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.00704, allocations: 480.9 kB / 326.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.007042, allocations: 0 / 326.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003005/0.007343, allocations: 0.5037 MB / 326.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.653e-05/0.007399, allocations: 107.3 kB / 327 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.007404, allocations: 0 / 327 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.007416, allocations: 0 / 327 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.281e-05/0.007479, allocations: 19.95 kB / 327 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.007485, allocations: 4 kB / 327 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.525e-05/0.00752, allocations: 19.84 kB / 327 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.007534, allocations: 8 kB / 327 MB, free: 13.16 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.000164/0.007698, allocations: 283.7 kB / 327.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.00773, allocations: 27.84 kB / 327.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.627e-05/0.007746, allocations: 9.641 kB / 327.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.007748, allocations: 4 kB / 327.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.007753, allocations: 0 / 327.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.007757, allocations: 0 / 327.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007224/0.00848, allocations: 1.027 MB / 328.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.008481, allocations: 0 / 328.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.886e-05/0.0085, allocations: 12 kB / 328.4 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.008503, allocations: 4 kB / 328.4 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.008524, allocations: 23.97 kB / 328.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.008525, allocations: 0 / 328.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.008526, allocations: 0 / 328.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006242/0.00915, allocations: 0.9684 MB / 329.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.573e-05/0.009166, allocations: 27.84 kB / 329.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.613e-05/0.009232, allocations: 67.94 kB / 329.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.72e-05/0.00928, allocations: 8 kB / 329.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.106e-05/0.009311, allocations: 11.98 kB / 329.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.009327, allocations: 19.98 kB / 329.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.678e-05/0.009353, allocations: 83.22 kB / 329.6 MB, free: 10.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009353, allocations: 4 kB / 329.6 MB, free: 10.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002408/0.009594, allocations: 87.94 kB / 329.7 MB, free: 10.38 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.001351/0.01095, allocations: 2.137 MB / 331.8 MB, free: 8.215 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000578/0.01152, allocations: 0.8737 MB / 332.7 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01152, allocations: 0 / 332.7 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002992/0.01182, allocations: 0.5332 MB / 333.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001741/0.012, allocations: 19.98 kB / 333.2 MB, free: 6.703 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.0142, allocations: 3.576 MB / 336.8 MB, free: 2.949 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.039e-05/0.01427, allocations: 115.1 kB / 336.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.598e-06/0.01428, allocations: 0 / 336.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.021e-05/0.01432, allocations: 40.48 kB / 337 MB, free: 2.781 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01432, allocations: 0 / 337 MB, free: 2.781 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02023/0.03455, allocations: 5.585 MB / 342.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.928/6.962, allocations: 3.938 kB / 342.5 MB, free: 13.3 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000396747 Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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:time,r1024,r128,r64 [Calling sys.exit(0), Time elapsed: 8.731796451844275]