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.001046/0.001046, allocations: 114.4 kB / 17.69 MB, free: 5.312 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.001074/0.001075, allocations: 191 kB / 18.63 MB, free: 4.379 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.308/1.308, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 54.91 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09312/0.09426, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002632/0.09692, allocations: 1.205 MB / 352.7 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009442/0.09789, allocations: 475.7 kB / 353.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.181e-05/0.09794, allocations: 0 / 353.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.198e-05/0.09798, allocations: 7.938 kB / 353.2 MB, free: 2.008 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.0004961/0.0985, allocations: 71.73 kB / 353.3 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001615/0.09867, allocations: 67.75 kB / 353.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.24e-05/0.09877, allocations: 43.91 kB / 353.4 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.887e-05/0.09882, allocations: 4 kB / 353.4 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.74e-05/0.09886, allocations: 23.91 kB / 353.4 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.078e-05/0.0989, allocations: 15.92 kB / 353.4 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.186e-05/0.09891, allocations: 0 / 353.4 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002216/0.09914, allocations: 123.8 kB / 353.5 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.095e-05/0.09919, allocations: 31.91 kB / 353.6 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.652e-05/0.09925, allocations: 55.62 kB / 353.6 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002348/0.09949, allocations: 175.5 kB / 353.8 MB, free: 1.406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.09951, allocations: 0 / 353.8 MB, free: 1.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09951, allocations: 0 / 353.8 MB, free: 1.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.09952, allocations: 0 / 353.8 MB, free: 1.406 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.0005209/0.1, allocations: 0.5646 MB / 354.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1001, allocations: 12.03 kB / 354.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.1002, allocations: 20.75 kB / 354.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.1004, allocations: 180.2 kB / 354.6 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.1004, allocations: 4.375 kB / 354.6 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.1004, allocations: 8.375 kB / 354.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.1007, allocations: 279.8 kB / 354.8 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.1007, allocations: 192 / 354.8 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.1007, allocations: 3.938 kB / 354.8 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.1008, allocations: 0 / 354.8 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.1009, allocations: 143.9 kB / 355 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002049/0.1011, allocations: 202.3 kB / 355.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003504/0.1015, allocations: 497.1 kB / 355.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003134/0.1018, allocations: 465.7 kB / 356.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.1018, allocations: 0 / 356.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004378/0.1022, allocations: 488.8 kB / 356.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.412e-06/0.1023, allocations: 0 / 356.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007186/0.103, allocations: 0.7192 MB / 357.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/0.1031, allocations: 156.5 kB / 357.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.375e-05/0.1032, allocations: 106 kB / 357.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.1032, allocations: 25.7 kB / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.277e-05/0.1032, allocations: 81.14 kB / 357.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.264e-05/0.1033, allocations: 94.69 kB / 357.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.516e-05/0.1033, allocations: 41.77 kB / 357.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.1034, allocations: 330.8 kB / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.792e-05/0.1035, allocations: 84.34 kB / 358.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.772e-05/0.1036, allocations: 106.2 kB / 358.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000302/0.1039, allocations: 429.5 kB / 358.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1039, allocations: 0 / 358.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003246/0.1043, allocations: 340.8 kB / 359.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.306e-05/0.1044, allocations: 123.3 kB / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.1044, allocations: 0 / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.1044, allocations: 0 / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.1044, allocations: 0 / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.1044, allocations: 0 / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.15e-05/0.1045, allocations: 23.75 kB / 359.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.1045, allocations: 8 kB / 359.2 MB, free: 11.57 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.0002317/0.1047, allocations: 303.6 kB / 359.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.915e-05/0.1048, allocations: 31.75 kB / 359.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.107e-05/0.1048, allocations: 5.562 kB / 359.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1048, allocations: 0 / 359.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.1048, allocations: 0 / 359.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.1048, allocations: 4 kB / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.105, allocations: 237.3 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.105, allocations: 0 / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.515e-06/0.105, allocations: 4 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.105, allocations: 3.938 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.693e-05/0.1051, allocations: 19.98 kB / 359.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1051, allocations: 0 / 359.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1051, allocations: 0 / 359.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.1062, allocations: 1.228 MB / 361.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.367e-05/0.1062, allocations: 96.86 kB / 361.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.847e-05/0.1063, allocations: 71.88 kB / 361.2 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.202e-05/0.1064, allocations: 8 kB / 361.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.1064, allocations: 11.98 kB / 361.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.1064, allocations: 23.97 kB / 361.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.289e-05/0.1065, allocations: 79.28 kB / 361.3 MB, free: 9.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1065, allocations: 0 / 361.3 MB, free: 9.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.1068, allocations: 91.98 kB / 361.4 MB, free: 9.25 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.0005364/0.1074, allocations: 296.4 kB / 361.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.1089, allocations: 2.135 MB / 363.9 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1089, allocations: 0 / 363.9 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.1102, allocations: 2.178 MB / 366 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001841/0.1104, allocations: 19.98 kB / 366.1 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005793/0.111, allocations: 392.4 kB / 366.4 MB, free: 4.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.1113, allocations: 0.7206 MB / 367.2 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.197e-06/0.1113, allocations: 3.938 kB / 367.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.378e-05/0.1114, allocations: 11.42 kB / 367.2 MB, free: 3.418 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1114, allocations: 0 / 367.2 MB, free: 3.418 MB / 302.1 MB Notification: Performance of Templates: time 0.005936/0.1173, allocations: 3.01 MB / 370.2 MB, free: 420 kB / 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 -s cvode -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