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.00123/0.00123, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001708/0.001708, allocations: 191 kB / 18 MB, free: 5.207 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.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 43.94 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2908, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002506/0.2933, allocations: 1.226 MB / 402 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.2944, allocations: 464.7 kB / 402.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.501e-05/0.2945, allocations: 0 / 402.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.813e-05/0.2945, allocations: 7.938 kB / 402.4 MB, free: 7.172 MB / 318.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.0005797/0.2951, allocations: 67.73 kB / 402.5 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002037/0.2953, allocations: 75.73 kB / 402.6 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001098/0.2955, allocations: 51.84 kB / 402.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.271e-05/0.2955, allocations: 0 / 402.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.981e-05/0.2956, allocations: 19.97 kB / 402.6 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.274e-05/0.2956, allocations: 11.94 kB / 402.6 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/0.2956, allocations: 4 kB / 402.6 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002599/0.2959, allocations: 127.8 kB / 402.8 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.587e-05/0.2959, allocations: 31.86 kB / 402.8 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.086e-05/0.296, allocations: 43.69 kB / 402.8 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000267/0.2963, allocations: 183.4 kB / 403 MB, free: 6.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2963, allocations: 4 kB / 403 MB, free: 6.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2963, allocations: 0 / 403 MB, free: 6.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.2963, allocations: 4 kB / 403 MB, free: 6.559 MB / 318.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.0005447/0.2969, allocations: 0.553 MB / 403.6 MB, free: 5.941 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2969, allocations: 8.031 kB / 403.6 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.2971, allocations: 20.75 kB / 403.6 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.2972, allocations: 191.9 kB / 403.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.2972, allocations: 4.375 kB / 403.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.2973, allocations: 4.375 kB / 403.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.2975, allocations: 267.9 kB / 404.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.2976, allocations: 4.125 kB / 404.1 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.2976, allocations: 7.938 kB / 404.1 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.2976, allocations: 0 / 404.1 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001353/0.2977, allocations: 147.9 kB / 404.2 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.2979, allocations: 194.4 kB / 404.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003565/0.2983, allocations: 0.4893 MB / 404.9 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003325/0.2986, allocations: 465.7 kB / 405.4 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.2986, allocations: 4 kB / 405.4 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004901/0.2991, allocations: 480.8 kB / 405.8 MB, free: 3.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 1.112e-06/0.2991, allocations: 4 kB / 405.8 MB, free: 3.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008588/0.3, allocations: 0.7192 MB / 406.6 MB, free: 2.781 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.861e-05/0.3001, allocations: 160.5 kB / 406.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.989e-05/0.3002, allocations: 105.8 kB / 406.8 MB, free: 2.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.3002, allocations: 25.7 kB / 406.8 MB, free: 2.449 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.366e-05/0.3003, allocations: 85.14 kB / 406.9 MB, free: 2.359 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.129e-05/0.3003, allocations: 86.81 kB / 407 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.172e-05/0.3004, allocations: 41.69 kB / 407 MB, free: 2.227 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.3005, allocations: 326.9 kB / 407.4 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.814e-05/0.3006, allocations: 88.28 kB / 407.5 MB, free: 1.812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.609e-05/0.3007, allocations: 110.2 kB / 407.6 MB, free: 1.699 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/0.301, allocations: 413.4 kB / 408 MB, free: 1.266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.301, allocations: 0 / 408 MB, free: 1.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003359/0.3014, allocations: 348.7 kB / 408.3 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.237e-05/0.3015, allocations: 115.3 kB / 408.4 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.3015, allocations: 4.094 kB / 408.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.3015, allocations: 4 kB / 408.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.467e-06/0.3015, allocations: 3.984 kB / 408.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.3015, allocations: 3.938 kB / 408.4 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.692e-05/0.3016, allocations: 23.75 kB / 408.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.3016, allocations: 8 kB / 408.5 MB, free: 0.7344 MB / 318.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.0002522/0.3019, allocations: 293 kB / 408.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.036e-05/0.3019, allocations: 27.75 kB / 408.8 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.615e-05/0.3019, allocations: 13.55 kB / 408.8 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.302, allocations: 336 / 408.8 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.302, allocations: 3.938 kB / 408.8 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.302, allocations: 0 / 408.8 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001832/0.3022, allocations: 229.4 kB / 409 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3022, allocations: 7.984 kB / 409 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.915e-06/0.3022, allocations: 4 kB / 409 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.3022, allocations: 3.938 kB / 409 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.3022, allocations: 19.98 kB / 409.1 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3022, allocations: 0 / 409.1 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3022, allocations: 4 kB / 409.1 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.3034, allocations: 1.213 MB / 410.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-05/0.3035, allocations: 108.8 kB / 410.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.897e-05/0.3036, allocations: 71.88 kB / 410.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.246e-05/0.3037, allocations: 8 kB / 410.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.3037, allocations: 11.94 kB / 410.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.3037, allocations: 19.98 kB / 410.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.148e-05/0.3038, allocations: 79.28 kB / 410.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3038, allocations: 0 / 410.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003297/0.3041, allocations: 91.98 kB / 410.7 MB, free: 14.42 MB / 334.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.0005277/0.3047, allocations: 316.7 kB / 411 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.3063, allocations: 2.127 MB / 413.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3064, allocations: 0 / 413.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001501/0.3079, allocations: 2.186 MB / 415.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000187/0.3081, allocations: 20 kB / 415.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005856/0.3087, allocations: 388.5 kB / 415.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.309, allocations: 0.7282 MB / 416.4 MB, free: 8.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.696e-06/0.309, allocations: 0 / 416.4 MB, free: 8.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.152e-05/0.309, allocations: 7.438 kB / 416.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.309, allocations: 0 / 416.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of Templates: time 0.006094/0.3151, allocations: 3.013 MB / 419.4 MB, free: 5.57 MB / 334.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/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) Reference file matches