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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008832/0.0008833, allocations: 92.05 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008839/0.0008841, allocations: 174.8 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 223.3 MB / 242.3 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000399/0.0003991, allocations: 7.938 kB / 302.1 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1035, allocations: 50.4 MB / 352.5 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001242/0.1048, allocations: 0.9546 MB / 353.4 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000906/0.1057, allocations: 459.3 kB / 353.9 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.17e-05/0.1058, allocations: 0 / 353.9 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.925e-05/0.1058, allocations: 3.938 kB / 353.9 MB, free: 2.027 MB / 286.1 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.0003883/0.1062, allocations: 59.88 kB / 353.9 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001559/0.1064, allocations: 55.88 kB / 354 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.398e-05/0.1064, allocations: 39.84 kB / 354 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.858e-05/0.1065, allocations: 0 / 354 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.327e-05/0.1065, allocations: 27.91 kB / 354.1 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.59e-05/0.1066, allocations: 15.92 kB / 354.1 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.187e-05/0.1066, allocations: 4 kB / 354.1 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002263/0.1068, allocations: 111.8 kB / 354.2 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.63e-05/0.1069, allocations: 39.84 kB / 354.2 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.883e-05/0.1069, allocations: 77.38 kB / 354.3 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000189/0.1071, allocations: 123.7 kB / 354.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1072, allocations: 4 kB / 354.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1072, allocations: 0 / 354.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.1072, allocations: 0 / 354.4 MB, free: 1.473 MB / 286.1 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.0005221/0.1077, allocations: 0.5452 MB / 355 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1077, allocations: 12.03 kB / 355 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.1079, allocations: 16.75 kB / 355 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.108, allocations: 180.4 kB / 355.2 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.108, allocations: 8.359 kB / 355.2 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.1081, allocations: 8.375 kB / 355.2 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.1084, allocations: 271.8 kB / 355.5 MB, free: 336 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.1084, allocations: 4.172 kB / 355.5 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.1084, allocations: 11.86 kB / 355.5 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.1084, allocations: 4 kB / 355.5 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001338/0.1085, allocations: 139.9 kB / 355.6 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001851/0.1087, allocations: 198.3 kB / 355.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003709/0.1091, allocations: 0.4933 MB / 356.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003281/0.1094, allocations: 469.7 kB / 356.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.777e-06/0.1095, allocations: 3.938 kB / 356.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004289/0.1099, allocations: 480.9 kB / 357.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.302e-06/0.1099, allocations: 0 / 357.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007806/0.1107, allocations: 0.7192 MB / 358 MB, free: 13.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.601e-05/0.1108, allocations: 156.5 kB / 358.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.432e-05/0.1109, allocations: 105.8 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.1109, allocations: 25.7 kB / 358.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.853e-05/0.111, allocations: 85.14 kB / 358.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.598e-05/0.111, allocations: 82.81 kB / 358.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.472e-05/0.1111, allocations: 29.77 kB / 358.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1112, allocations: 334.8 kB / 358.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.842e-05/0.1113, allocations: 80.34 kB / 358.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.1115, allocations: 118.1 kB / 359 MB, free: 12.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003419/0.1118, allocations: 417.4 kB / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1118, allocations: 0 / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003844/0.1122, allocations: 344.7 kB / 359.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.1123, allocations: 111.3 kB / 359.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.1123, allocations: 12.09 kB / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1124, allocations: 3.938 kB / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.322e-06/0.1124, allocations: 0 / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.1124, allocations: 0 / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.113e-05/0.1125, allocations: 27.69 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.1125, allocations: 12 kB / 359.9 MB, free: 11.66 MB / 302.1 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 (2): * Single equations (assignments): 0 * 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.0002812/0.1128, allocations: 299.7 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.1128, allocations: 31.75 kB / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.101e-05/0.1128, allocations: 5.562 kB / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1129, allocations: 0 / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1129, allocations: 0 / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1129, allocations: 0 / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.1131, allocations: 237.3 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1131, allocations: 4 kB / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.1131, allocations: 0 / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.671e-05/0.1131, allocations: 8.266 kB / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.1131, allocations: 12 kB / 360.5 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.1131, allocations: 7.984 kB / 360.5 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1132, allocations: 3.938 kB / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.1143, allocations: 1.22 MB / 361.7 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/0.1144, allocations: 96.89 kB / 361.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.414e-05/0.1145, allocations: 71.88 kB / 361.8 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.874e-05/0.1146, allocations: 8 kB / 361.9 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.411e-05/0.1146, allocations: 11.98 kB / 361.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.1146, allocations: 19.98 kB / 361.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.605e-05/0.1147, allocations: 79.28 kB / 362 MB, free: 9.438 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1147, allocations: 0 / 362 MB, free: 9.438 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003237/0.115, allocations: 95.98 kB / 362.1 MB, free: 9.344 MB / 302.1 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 ($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],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * 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.0005064/0.1155, allocations: 309.7 kB / 362.4 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.1171, allocations: 2.131 MB / 364.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1171, allocations: 0 / 364.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.1186, allocations: 2.178 MB / 366.7 MB, free: 4.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.1188, allocations: 19.98 kB / 366.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005673/0.1194, allocations: 461.2 kB / 367.1 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.1197, allocations: 0.7208 MB / 367.9 MB, free: 3.441 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.773e-05/0.1197, allocations: 7.438 kB / 367.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1197, allocations: 0 / 367.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of Templates: time 0.004778/0.1245, allocations: 2.839 MB / 370.7 MB, free: 0.6016 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (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 & ./Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches