Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001595/0.001595, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001824/0.001824, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2769, allocations: 50.56 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002359/0.2793, allocations: 1.231 MB / 410.5 MB, free: 368 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009205/0.2802, allocations: 461 kB / 410.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.836e-05/0.2803, allocations: 4 kB / 410.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.668e-05/0.2803, allocations: 3.938 kB / 410.9 MB, free: 15.9 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.000476/0.2808, allocations: 75.73 kB / 411 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001316/0.2809, allocations: 63.75 kB / 411.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.2811, allocations: 51.73 kB / 411.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.092e-05/0.2811, allocations: 0 / 411.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.418e-05/0.2812, allocations: 23.97 kB / 411.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.546e-05/0.2812, allocations: 19.91 kB / 411.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.17e-05/0.2812, allocations: 7.938 kB / 411.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.2814, allocations: 115.8 kB / 411.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.499e-05/0.2815, allocations: 35.91 kB / 411.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.625e-05/0.2816, allocations: 43.69 kB / 411.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002535/0.2818, allocations: 183.4 kB / 411.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2818, allocations: 0 / 411.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2818, allocations: 4 kB / 411.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.2818, allocations: 0 / 411.5 MB, free: 15.29 MB / 334.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.0006656/0.2825, allocations: 0.5568 MB / 412.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.2826, allocations: 8.031 kB / 412.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001716/0.2827, allocations: 20.75 kB / 412.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.2829, allocations: 176.1 kB / 412.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.2829, allocations: 12.25 kB / 412.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/0.283, allocations: 8.375 kB / 412.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003176/0.2833, allocations: 275.8 kB / 412.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.2833, allocations: 192 / 412.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/0.2833, allocations: 7.938 kB / 412.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.2833, allocations: 0 / 412.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.2835, allocations: 143.9 kB / 412.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002016/0.2837, allocations: 206.1 kB / 412.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003833/0.2841, allocations: 497.1 kB / 413.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.2844, allocations: 465.7 kB / 413.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.347e-06/0.2845, allocations: 0 / 413.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004545/0.2849, allocations: 488.8 kB / 414.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.233e-06/0.2849, allocations: 0 / 414.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008137/0.2857, allocations: 0.7192 MB / 415.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.489e-05/0.2859, allocations: 160.5 kB / 415.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.591e-05/0.2859, allocations: 106 kB / 415.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.286, allocations: 29.7 kB / 415.4 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.233e-05/0.286, allocations: 81.14 kB / 415.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.205e-05/0.2861, allocations: 82.81 kB / 415.5 MB, free: 11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.702e-05/0.2861, allocations: 41.77 kB / 415.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.2863, allocations: 330.8 kB / 415.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.053e-05/0.2863, allocations: 80.34 kB / 416 MB, free: 10.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.186e-05/0.2864, allocations: 114.2 kB / 416.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/0.2868, allocations: 417.3 kB / 416.5 MB, free: 9.984 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2868, allocations: 0 / 416.5 MB, free: 9.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003463/0.2871, allocations: 344.8 kB / 416.8 MB, free: 9.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.143e-05/0.2872, allocations: 111.3 kB / 416.9 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2872, allocations: 11.97 kB / 416.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.2873, allocations: 4 kB / 417 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.2873, allocations: 0 / 417 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.2873, allocations: 0 / 417 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.532e-05/0.2874, allocations: 23.75 kB / 417 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.2874, allocations: 8 kB / 417 MB, free: 9.461 MB / 334.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.0002588/0.2876, allocations: 300.9 kB / 417.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.206e-05/0.2877, allocations: 27.75 kB / 417.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.839e-05/0.2877, allocations: 13.56 kB / 417.3 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2877, allocations: 0 / 417.3 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.2877, allocations: 0 / 417.3 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.2877, allocations: 0 / 417.3 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.2879, allocations: 233.3 kB / 417.5 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.288, allocations: 4 kB / 417.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-07/0.288, allocations: 0 / 417.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.288, allocations: 7.875 kB / 417.6 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.525e-05/0.288, allocations: 19.98 kB / 417.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.288, allocations: 4 kB / 417.6 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.288, allocations: 4 kB / 417.6 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.2892, allocations: 1.22 MB / 418.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.821e-05/0.2893, allocations: 96.92 kB / 418.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.711e-05/0.2894, allocations: 75.88 kB / 419 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.353e-05/0.2894, allocations: 8 kB / 419 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/0.2895, allocations: 7.984 kB / 419 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.2895, allocations: 23.97 kB / 419 MB, free: 7.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.344e-05/0.2896, allocations: 83.28 kB / 419.1 MB, free: 7.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.994e-06/0.2896, allocations: 0 / 419.1 MB, free: 7.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003565/0.2899, allocations: 91.92 kB / 419.2 MB, free: 7.137 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.0005484/0.2905, allocations: 298.5 kB / 419.5 MB, free: 6.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.2921, allocations: 2.131 MB / 421.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2922, allocations: 0 / 421.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.2937, allocations: 2.182 MB / 423.8 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.2939, allocations: 27.94 kB / 423.8 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006221/0.2945, allocations: 384.5 kB / 424.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.2948, allocations: 0.7167 MB / 424.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.309e-05/0.2948, allocations: 11.92 kB / 424.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.359e-05/0.2948, allocations: 7.438 kB / 424.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2948, allocations: 0 / 424.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of Templates: time 0.006682/0.3015, allocations: 3.003 MB / 427.9 MB, free: 14.3 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches