Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009701/0.00097, allocations: 195.6 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 226.5 MB / 244.7 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007346/0.0007347, allocations: 96.48 kB / 296.7 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002119/0.0002124, allocations: 4 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1902, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.0009224/0.1912, allocations: 0.9606 MB / 409.1 MB, free: 26.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005993/0.1918, allocations: 423.9 kB / 409.5 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.261e-05/0.1918, allocations: 0 / 409.5 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.51e-05/0.1919, allocations: 3.938 kB / 409.5 MB, free: 26.29 MB / 298.7 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.0003343/0.1922, allocations: 55.88 kB / 409.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.623e-05/0.1923, allocations: 51.89 kB / 409.6 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.055e-05/0.1924, allocations: 40.52 kB / 409.7 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.326e-05/0.1924, allocations: 6.719 kB / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.586e-05/0.1924, allocations: 19.98 kB / 409.7 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.217e-05/0.1925, allocations: 19.91 kB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.1925, allocations: 4 kB / 409.7 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.1927, allocations: 103.8 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.125e-05/0.1927, allocations: 31.91 kB / 409.8 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.066e-05/0.1928, allocations: 81.36 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.1929, allocations: 115.8 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1929, allocations: 0.875 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1929, allocations: 0 / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.1929, allocations: 1.219 kB / 410 MB, free: 25.77 MB / 298.7 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.0003543/0.1933, allocations: 0.549 MB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.1933, allocations: 9.062 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.497e-05/0.1934, allocations: 55.98 kB / 410.6 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.56e-05/0.1935, allocations: 20.75 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.819e-05/0.1936, allocations: 192.8 kB / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1936, allocations: 5.719 kB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.1936, allocations: 4.375 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.1938, allocations: 288.5 kB / 411.1 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.1938, allocations: 3.938 kB / 411.1 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.1939, allocations: 4 kB / 411.1 MB, free: 24.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-06/0.1939, allocations: 0 / 411.1 MB, free: 24.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.194, allocations: 144.3 kB / 411.3 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002167/0.1942, allocations: 375.9 kB / 411.7 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/0.1945, allocations: 0.5103 MB / 412.2 MB, free: 23.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002164/0.1947, allocations: 482.1 kB / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.808e-06/0.1947, allocations: 4 kB / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.195, allocations: 486.8 kB / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.093e-06/0.195, allocations: 0 / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005676/0.1956, allocations: 0.7331 MB / 413.8 MB, free: 21.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.1956, allocations: 164.5 kB / 414 MB, free: 21.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.347e-05/0.1957, allocations: 97.86 kB / 414.1 MB, free: 21.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.1957, allocations: 33.64 kB / 414.1 MB, free: 21.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.473e-05/0.1957, allocations: 81.14 kB / 414.2 MB, free: 21.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.127e-05/0.1957, allocations: 98.64 kB / 414.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-06/0.1958, allocations: 4 kB / 414.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.1958, allocations: 330.8 kB / 414.6 MB, free: 20.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.738e-05/0.1959, allocations: 84.41 kB / 414.7 MB, free: 20.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.239e-05/0.1959, allocations: 116.3 kB / 414.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.1961, allocations: 432.9 kB / 415.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1961, allocations: 3.938 kB / 415.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0002419/0.1964, allocations: 364.4 kB / 415.6 MB, free: 19.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.241e-05/0.1965, allocations: 107.3 kB / 415.7 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1965, allocations: 0 / 415.7 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.1965, allocations: 0 / 415.7 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.273e-05/0.1965, allocations: 8 kB / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.1965, allocations: 0 / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.622e-05/0.1966, allocations: 32.19 kB / 415.8 MB, free: 19.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.1966, allocations: 12 kB / 415.8 MB, free: 19.64 MB / 298.7 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 ($whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_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: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001593/0.1968, allocations: 299.6 kB / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.971e-05/0.1968, allocations: 23.81 kB / 416.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.462e-05/0.1968, allocations: 13.56 kB / 416.1 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.1968, allocations: 3.984 kB / 416.1 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1969, allocations: 3.938 kB / 416.1 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1969, allocations: 3.984 kB / 416.1 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008065/0.1977, allocations: 1.428 MB / 417.5 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1977, allocations: 7.938 kB / 417.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.706e-05/0.1977, allocations: 7.938 kB / 417.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1977, allocations: 4 kB / 417.6 MB, free: 17.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.1977, allocations: 19.98 kB / 417.6 MB, free: 17.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1978, allocations: 3.938 kB / 417.6 MB, free: 17.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1978, allocations: 0 / 417.6 MB, free: 17.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007798/0.1985, allocations: 1.307 MB / 418.9 MB, free: 16.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.464e-05/0.1986, allocations: 104.7 kB / 419 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.66e-05/0.1987, allocations: 71.94 kB / 419.1 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.653e-05/0.1987, allocations: 12 kB / 419.1 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.586e-05/0.1988, allocations: 11.98 kB / 419.1 MB, free: 16.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.1988, allocations: 19.98 kB / 419.1 MB, free: 16.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.962e-05/0.1988, allocations: 83.22 kB / 419.2 MB, free: 16.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1988, allocations: 0 / 419.2 MB, free: 16.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003262/0.1992, allocations: 91.98 kB / 419.3 MB, free: 16 MB / 298.7 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 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_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]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_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,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001484/0.2007, allocations: 2.311 MB / 421.6 MB, free: 13.67 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.2017, allocations: 2.136 MB / 423.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2017, allocations: 4 kB / 423.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009/0.2026, allocations: 2.186 MB / 425.9 MB, free: 9.297 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002377/0.2028, allocations: 26.34 kB / 425.9 MB, free: 9.273 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.2041, allocations: 1.392 MB / 427.3 MB, free: 7.809 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.2043, allocations: 0.7244 MB / 428.1 MB, free: 7.059 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.2043, allocations: 35.42 kB / 428.1 MB, free: 7.023 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2043, allocations: 4 kB / 428.1 MB, free: 7.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.217/3.421, allocations: 3.225 MB / 431.3 MB, free: 3.789 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,r1024,r128,r64 Variables in the result:globalSeed,iImpure,id,localSeed,r1024,r128,r64,rImpure,samplePeriod,state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[1],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[2],state1024[30],state1024[31],state1024[32],state1024[33],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state128[1],state128[2],state128[3],state128[4],state64[1],state64[2],time