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.00153/0.00153, allocations: 103.5 kB / 17.06 MB, free: 6.098 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.001669/0.001669, allocations: 192.1 kB / 18 MB, free: 5.172 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.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 43.94 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2884, allocations: 49.44 MB / 400.7 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002089/0.2905, allocations: 1.242 MB / 402 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009116/0.2914, allocations: 460.6 kB / 402.4 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.926e-05/0.2914, allocations: 0 / 402.4 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.008e-05/0.2915, allocations: 7.938 kB / 402.4 MB, free: 7.328 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.0004141/0.2919, allocations: 71.73 kB / 402.5 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001342/0.2921, allocations: 63.81 kB / 402.5 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.2922, allocations: 55.83 kB / 402.6 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.427e-05/0.2922, allocations: 3.797 kB / 402.6 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.494e-05/0.2923, allocations: 23.97 kB / 402.6 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.121e-05/0.2923, allocations: 15.92 kB / 402.6 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.2923, allocations: 4 kB / 402.6 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.2925, allocations: 119.8 kB / 402.8 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.061e-05/0.2926, allocations: 31.86 kB / 402.8 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.675e-05/0.2926, allocations: 51.67 kB / 402.8 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002301/0.2929, allocations: 179.2 kB / 403 MB, free: 6.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2929, allocations: 0 / 403 MB, free: 6.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2929, allocations: 4 kB / 403 MB, free: 6.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.2929, allocations: 0 / 403 MB, free: 6.719 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.0006022/0.2935, allocations: 0.5721 MB / 403.6 MB, free: 6.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.2936, allocations: 11.89 kB / 403.6 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.2937, allocations: 20.84 kB / 403.6 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.2938, allocations: 176.2 kB / 403.8 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.2938, allocations: 384 / 403.8 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.2938, allocations: 8.375 kB / 403.8 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.2941, allocations: 275.8 kB / 404.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.39e-06/0.2941, allocations: 4.125 kB / 404.1 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.2942, allocations: 7.938 kB / 404.1 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.2942, allocations: 3.938 kB / 404.1 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.2943, allocations: 143.9 kB / 404.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001649/0.2945, allocations: 198.4 kB / 404.4 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003757/0.2949, allocations: 497.1 kB / 404.9 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003087/0.2952, allocations: 465.7 kB / 405.4 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-06/0.2952, allocations: 4 kB / 405.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003948/0.2956, allocations: 480.8 kB / 405.8 MB, free: 3.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 9.72e-07/0.2956, allocations: 0 / 405.8 MB, free: 3.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007594/0.2964, allocations: 0.7232 MB / 406.6 MB, free: 2.922 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.044e-05/0.2965, allocations: 168.4 kB / 406.7 MB, free: 2.727 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.147e-05/0.2965, allocations: 101.8 kB / 406.8 MB, free: 2.617 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.2966, allocations: 25.7 kB / 406.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.696e-05/0.2966, allocations: 85.14 kB / 406.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.542e-05/0.2967, allocations: 91.22 kB / 407 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.117e-05/0.2967, allocations: 41.69 kB / 407.1 MB, free: 2.359 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.2969, allocations: 330.9 kB / 407.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.84e-05/0.2969, allocations: 80.34 kB / 407.5 MB, free: 1.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.864e-05/0.297, allocations: 114.2 kB / 407.6 MB, free: 1.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.2974, allocations: 409.4 kB / 408 MB, free: 1.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2974, allocations: 0 / 408 MB, free: 1.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003276/0.2977, allocations: 352.8 kB / 408.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.427e-05/0.2978, allocations: 111.3 kB / 408.4 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.2978, allocations: 0 / 408.4 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.2978, allocations: 12.08 kB / 408.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.282e-06/0.2978, allocations: 336 / 408.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.2978, allocations: 0 / 408.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.102e-05/0.2979, allocations: 27.78 kB / 408.5 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.2979, allocations: 8 kB / 408.5 MB, free: 0.8711 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.0002325/0.2982, allocations: 295.7 kB / 408.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.593e-05/0.2982, allocations: 27.84 kB / 408.8 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.559e-05/0.2982, allocations: 21.53 kB / 408.8 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2982, allocations: 0 / 408.8 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2982, allocations: 0 / 408.8 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.2983, allocations: 0 / 408.8 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.2984, allocations: 229.4 kB / 409 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2984, allocations: 0 / 409 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.2984, allocations: 4 kB / 409 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.2984, allocations: 3.938 kB / 409.1 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.2985, allocations: 19.98 kB / 409.1 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.2985, allocations: 4 kB / 409.1 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2985, allocations: 3.938 kB / 409.1 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.2996, allocations: 1.221 MB / 410.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.2997, allocations: 96.95 kB / 410.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.622e-05/0.2998, allocations: 79.84 kB / 410.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.647e-05/0.2998, allocations: 12 kB / 410.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.2999, allocations: 4 kB / 410.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.2999, allocations: 19.98 kB / 410.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.781e-05/0.3, allocations: 83.28 kB / 410.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3, allocations: 0 / 410.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.3003, allocations: 87.86 kB / 410.7 MB, free: 14.55 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.0004652/0.3008, allocations: 322.6 kB / 411 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.3023, allocations: 2.123 MB / 413.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3023, allocations: 0 / 413.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.3038, allocations: 2.182 MB / 415.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/0.304, allocations: 24 kB / 415.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005569/0.3046, allocations: 388.3 kB / 415.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.3049, allocations: 0.7282 MB / 416.4 MB, free: 8.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.747e-06/0.3049, allocations: 0 / 416.4 MB, free: 8.723 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.12e-05/0.3049, allocations: 7.438 kB / 416.4 MB, free: 8.715 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3049, allocations: 4 kB / 416.4 MB, free: 8.711 MB / 334.1 MB Notification: Performance of Templates: time 0.005801/0.3107, allocations: 2.999 MB / 419.4 MB, free: 5.715 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