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.001505/0.001505, allocations: 111.8 kB / 17.7 MB, free: 5.242 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.001667/0.001668, allocations: 187.7 kB / 18.64 MB, free: 4.316 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.485/1.485, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 51.92 kB / 351.9 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2987, allocations: 49.44 MB / 401.4 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.003265/0.302, allocations: 1.226 MB / 402.6 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.3034, allocations: 464.6 kB / 403 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.24e-05/0.3034, allocations: 4 kB / 403 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.85e-05/0.3035, allocations: 3.938 kB / 403.1 MB, free: 7.332 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.0005881/0.3041, allocations: 79.7 kB / 403.1 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002278/0.3043, allocations: 63.81 kB / 403.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001309/0.3045, allocations: 47.84 kB / 403.2 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.763e-05/0.3045, allocations: 3.984 kB / 403.2 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.226e-05/0.3046, allocations: 19.94 kB / 403.3 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.411e-05/0.3047, allocations: 15.91 kB / 403.3 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.3047, allocations: 4 kB / 403.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003467/0.305, allocations: 123.8 kB / 403.4 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.935e-05/0.3051, allocations: 35.91 kB / 403.4 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.525e-05/0.3052, allocations: 43.67 kB / 403.5 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003556/0.3056, allocations: 183.4 kB / 403.7 MB, free: 6.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3056, allocations: 0 / 403.7 MB, free: 6.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.3056, allocations: 4 kB / 403.7 MB, free: 6.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.3056, allocations: 0 / 403.7 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.0007572/0.3064, allocations: 0.5569 MB / 404.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.3064, allocations: 8.031 kB / 404.2 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.3067, allocations: 20.75 kB / 404.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.3069, allocations: 189.3 kB / 404.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.3069, allocations: 4.375 kB / 404.4 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.3069, allocations: 8.375 kB / 404.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.3074, allocations: 267.9 kB / 404.7 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.3074, allocations: 4.125 kB / 404.7 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.3074, allocations: 7.938 kB / 404.7 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.3075, allocations: 0 / 404.7 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.3077, allocations: 140 kB / 404.9 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002515/0.3079, allocations: 198.3 kB / 405 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000602/0.3085, allocations: 0.4893 MB / 405.5 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004927/0.309, allocations: 469.7 kB / 406 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.064e-05/0.3091, allocations: 0 / 406 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006239/0.3097, allocations: 484.7 kB / 406.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 1.784e-06/0.3097, allocations: 0 / 406.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of matching and sorting (n=46): time 0.001214/0.3109, allocations: 0.7232 MB / 407.2 MB, free: 2.934 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.3111, allocations: 164.4 kB / 407.4 MB, free: 2.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.3112, allocations: 101.8 kB / 407.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.3112, allocations: 29.7 kB / 407.5 MB, free: 2.598 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.254e-05/0.3113, allocations: 85.14 kB / 407.6 MB, free: 2.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.491e-05/0.3114, allocations: 82.81 kB / 407.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.069e-05/0.3115, allocations: 45.75 kB / 407.7 MB, free: 2.375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3117, allocations: 322.8 kB / 408 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.3118, allocations: 84.34 kB / 408.1 MB, free: 1.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.312, allocations: 110.2 kB / 408.2 MB, free: 1.855 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004969/0.3125, allocations: 413.4 kB / 408.6 MB, free: 1.422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3125, allocations: 3.938 kB / 408.6 MB, free: 1.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005259/0.313, allocations: 352.7 kB / 408.9 MB, free: 1.055 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001439/0.3132, allocations: 111.4 kB / 409.1 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3132, allocations: 4 kB / 409.1 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.3133, allocations: 4 kB / 409.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.144e-06/0.3133, allocations: 0 / 409.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.3133, allocations: 0 / 409.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.3134, allocations: 23.75 kB / 409.1 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.3135, allocations: 11.98 kB / 409.1 MB, free: 0.8906 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.0003519/0.3138, allocations: 295.7 kB / 409.4 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.179e-05/0.3139, allocations: 27.75 kB / 409.4 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.796e-05/0.3139, allocations: 13.56 kB / 409.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.314, allocations: 0 / 409.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.314, allocations: 0 / 409.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.314, allocations: 3.984 kB / 409.4 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/0.3143, allocations: 233.4 kB / 409.7 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3143, allocations: 0 / 409.7 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.103e-06/0.3143, allocations: 0 / 409.7 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.3143, allocations: 3.938 kB / 409.7 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.295e-05/0.3144, allocations: 19.98 kB / 409.7 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.3144, allocations: 0 / 409.7 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3144, allocations: 4 kB / 409.7 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.316, allocations: 1.224 MB / 410.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.534e-05/0.316, allocations: 96.8 kB / 411 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/0.3162, allocations: 71.88 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.872e-05/0.3163, allocations: 11.94 kB / 411.1 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.3164, allocations: 11.98 kB / 411.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.124e-05/0.3164, allocations: 23.92 kB / 411.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.779e-05/0.3165, allocations: 79.28 kB / 411.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3165, allocations: 0 / 411.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004948/0.317, allocations: 91.98 kB / 411.3 MB, free: 14.57 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.0007846/0.3178, allocations: 305.9 kB / 411.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002432/0.3203, allocations: 2.131 MB / 413.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3203, allocations: 0 / 413.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002352/0.3227, allocations: 2.182 MB / 415.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.323, allocations: 23.23 kB / 415.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008295/0.3238, allocations: 422.2 kB / 416.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.3242, allocations: 0.7243 MB / 417.1 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.229e-05/0.3242, allocations: 7.438 kB / 417.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3243, allocations: 0 / 417.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of Templates: time 0.00683/0.3311, allocations: 2.871 MB / 419.9 MB, free: 5.836 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/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