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.001049/0.001049, allocations: 118.3 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 206.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 63.89 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2049, allocations: 50.55 MB / 409.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002048/0.2069, allocations: 1.231 MB / 411.2 MB, free: 344 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008926/0.2079, allocations: 460.9 kB / 411.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.988e-05/0.2079, allocations: 0 / 411.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.971e-05/0.208, allocations: 7.938 kB / 411.6 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.0004268/0.2084, allocations: 71.73 kB / 411.7 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001564/0.2086, allocations: 67.75 kB / 411.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.695e-05/0.2087, allocations: 55.83 kB / 411.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.641e-05/0.2087, allocations: 0 / 411.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.265e-05/0.2087, allocations: 23.97 kB / 411.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.987e-05/0.2088, allocations: 15.86 kB / 411.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.2088, allocations: 4 kB / 411.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002308/0.209, allocations: 127.8 kB / 412 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.274e-05/0.2091, allocations: 31.92 kB / 412 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.305e-05/0.2092, allocations: 43.67 kB / 412.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002409/0.2094, allocations: 183.4 kB / 412.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2094, allocations: 0 / 412.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2094, allocations: 0 / 412.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.2094, allocations: 4 kB / 412.2 MB, free: 15.26 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.0005323/0.21, allocations: 0.5529 MB / 412.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.21, allocations: 8.031 kB / 412.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.2101, allocations: 28.73 kB / 412.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.2103, allocations: 176.1 kB / 413 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.2103, allocations: 384 / 413 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.2103, allocations: 16.31 kB / 413 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002897/0.2106, allocations: 275.8 kB / 413.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.2106, allocations: 192 / 413.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.2107, allocations: 7.938 kB / 413.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.2107, allocations: 0 / 413.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001555/0.2108, allocations: 143.9 kB / 413.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000171/0.211, allocations: 198.1 kB / 413.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.2114, allocations: 0.4894 MB / 414.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003199/0.2117, allocations: 465.7 kB / 414.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.645e-06/0.2117, allocations: 0 / 414.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004237/0.2121, allocations: 488.8 kB / 415.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.162e-06/0.2121, allocations: 0 / 415.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007792/0.2129, allocations: 0.7153 MB / 415.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.947e-05/0.213, allocations: 160.5 kB / 415.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.096e-05/0.2131, allocations: 106 kB / 416 MB, free: 11.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.2131, allocations: 25.7 kB / 416.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.514e-05/0.2132, allocations: 89.12 kB / 416.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.311e-05/0.2132, allocations: 82.81 kB / 416.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-05/0.2133, allocations: 45.77 kB / 416.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.2134, allocations: 322.8 kB / 416.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.604e-05/0.2135, allocations: 84.34 kB / 416.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.038e-05/0.2136, allocations: 110.2 kB / 416.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.2139, allocations: 425.3 kB / 417.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2139, allocations: 0 / 417.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003355/0.2143, allocations: 340.8 kB / 417.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.023e-05/0.2144, allocations: 115.3 kB / 417.6 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2144, allocations: 8.031 kB / 417.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.2144, allocations: 3.938 kB / 417.6 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.284e-06/0.2144, allocations: 11.88 kB / 417.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2144, allocations: 0 / 417.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.555e-05/0.2145, allocations: 19.75 kB / 417.7 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.2145, allocations: 8 kB / 417.7 MB, free: 9.43 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.0002477/0.2148, allocations: 304.9 kB / 418 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.866e-05/0.2148, allocations: 23.81 kB / 418 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.338e-05/0.2148, allocations: 9.5 kB / 418 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2148, allocations: 4 kB / 418 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2149, allocations: 0 / 418 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.101e-05/0.2149, allocations: 92.86 kB / 418.1 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.215, allocations: 71.94 kB / 418.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.561e-05/0.2151, allocations: 8 kB / 418.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.2151, allocations: 11.98 kB / 418.2 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001623/0.2167, allocations: 2.005 MB / 420.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001211/0.218, allocations: 1.424 MB / 421.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009877/0.219, allocations: 1.504 MB / 423.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.422e-05/0.219, allocations: 79.28 kB / 423.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of Backend: time 3e-07/0.219, allocations: 0 / 423.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.221, allocations: 2.124 MB / 425.3 MB, free: 1.66 MB / 334.1 MB Notification: Performance of SimCode: time 0.001011/0.2221, allocations: 1.369 MB / 426.7 MB, free: 224 kB / 334.1 MB Notification: Performance of Templates: time 0.005861/0.2279, allocations: 3.169 MB / 429.9 MB, free: 13.05 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/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_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches