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.001058/0.001058, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 202 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.398/1.398, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 59.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2734, allocations: 50.54 MB / 409.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002196/0.2756, allocations: 1.242 MB / 410.5 MB, free: 340 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009063/0.2765, allocations: 457 kB / 410.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.722e-05/0.2766, allocations: 0 / 410.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.305e-05/0.2766, allocations: 3.938 kB / 410.9 MB, free: 15.88 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.0004313/0.2771, allocations: 75.67 kB / 411 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001351/0.2772, allocations: 63.8 kB / 411.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.2773, allocations: 51.84 kB / 411.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.547e-05/0.2774, allocations: 0 / 411.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.382e-05/0.2774, allocations: 23.97 kB / 411.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.138e-05/0.2775, allocations: 15.94 kB / 411.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.2775, allocations: 7.984 kB / 411.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002095/0.2777, allocations: 123.8 kB / 411.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.245e-05/0.2778, allocations: 31.92 kB / 411.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.06e-05/0.2778, allocations: 39.69 kB / 411.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000223/0.278, allocations: 183.4 kB / 411.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.2781, allocations: 4 kB / 411.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2781, allocations: 0 / 411.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.2781, allocations: 0 / 411.5 MB, free: 15.27 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.0005838/0.2787, allocations: 0.5607 MB / 412.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.2787, allocations: 12.03 kB / 412.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.2788, allocations: 20.75 kB / 412.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.279, allocations: 180 kB / 412.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.279, allocations: 4.375 kB / 412.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.279, allocations: 8.312 kB / 412.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.2793, allocations: 271.8 kB / 412.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.2793, allocations: 192 / 412.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.2793, allocations: 11.88 kB / 412.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.2794, allocations: 0 / 412.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.2795, allocations: 144 kB / 412.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001786/0.2797, allocations: 202.1 kB / 412.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003902/0.2801, allocations: 497.1 kB / 413.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003342/0.2805, allocations: 469.7 kB / 413.9 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/0.2805, allocations: 0 / 413.9 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004967/0.281, allocations: 480.9 kB / 414.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 9.22e-07/0.281, allocations: 0 / 414.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007939/0.2818, allocations: 0.7192 MB / 415.1 MB, free: 11.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.7e-05/0.2819, allocations: 160.4 kB / 415.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.115e-05/0.282, allocations: 106 kB / 415.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.282, allocations: 33.77 kB / 415.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.616e-05/0.2821, allocations: 85.14 kB / 415.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.718e-05/0.2821, allocations: 82.81 kB / 415.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.221e-05/0.2822, allocations: 41.69 kB / 415.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.2823, allocations: 326.8 kB / 415.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.195e-05/0.2824, allocations: 84.28 kB / 416 MB, free: 10.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.2825, allocations: 114.2 kB / 416.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.2828, allocations: 417.4 kB / 416.5 MB, free: 9.965 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2829, allocations: 0 / 416.5 MB, free: 9.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003471/0.2832, allocations: 352.7 kB / 416.8 MB, free: 9.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.103e-05/0.2833, allocations: 107.3 kB / 416.9 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.2833, allocations: 0 / 416.9 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.2833, allocations: 7.938 kB / 416.9 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.2833, allocations: 0 / 416.9 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.2833, allocations: 3.984 kB / 417 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.259e-05/0.2834, allocations: 23.75 kB / 417 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.2834, allocations: 8 kB / 417 MB, free: 9.441 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.0002362/0.2837, allocations: 297 kB / 417.3 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.064e-05/0.2837, allocations: 27.75 kB / 417.3 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.255e-05/0.2838, allocations: 21.48 kB / 417.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2838, allocations: 0 / 417.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2838, allocations: 0 / 417.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2838, allocations: 0 / 417.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001701/0.2839, allocations: 233.3 kB / 417.5 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.284, allocations: 0 / 417.5 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.004e-06/0.284, allocations: 4 kB / 417.6 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.284, allocations: 3.938 kB / 417.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/0.284, allocations: 19.98 kB / 417.6 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.284, allocations: 0 / 417.6 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.284, allocations: 4 kB / 417.6 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.2851, allocations: 1.22 MB / 418.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.919e-05/0.2852, allocations: 96.88 kB / 418.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.288e-05/0.2853, allocations: 67.89 kB / 419 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.428e-05/0.2854, allocations: 11.98 kB / 419 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.349e-05/0.2854, allocations: 11.94 kB / 419 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.797e-05/0.2854, allocations: 23.97 kB / 419 MB, free: 7.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.828e-05/0.2855, allocations: 87.31 kB / 419.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2855, allocations: 0 / 419.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003328/0.2858, allocations: 91.92 kB / 419.2 MB, free: 7.117 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.0004837/0.2863, allocations: 294.7 kB / 419.5 MB, free: 6.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.2879, allocations: 2.127 MB / 421.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2879, allocations: 0 / 421.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.2894, allocations: 2.19 MB / 423.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/0.2896, allocations: 20 kB / 423.8 MB, free: 2.461 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005309/0.2902, allocations: 380.2 kB / 424.2 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.2904, allocations: 0.7245 MB / 424.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.065e-06/0.2905, allocations: 0 / 424.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.122e-05/0.2905, allocations: 11.5 kB / 424.9 MB, free: 1.297 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2905, allocations: 4 kB / 424.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of Templates: time 0.005568/0.2961, allocations: 3.011 MB / 427.9 MB, free: 14.28 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