/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0638.6+7320_daily_bin5
RA = 99.6711, Dec = 73.3438
tmin = 240624001, tmax = 240883201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='579831', job_status='RUN', time_executed='2021-08-25 13:16:48.521489', time_epoch_executed='1629922608.52' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579831

Creating custom pfile directory:
/scratch/kocevski/579831/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=240624001.0 && nMetStart<240883201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=240624001.0 && nMetStart<240883201.0' /Data/Flight/Level1/LPA

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579831/ft1_4FGL_J0638.6+7320_daily_bin5.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=240624001.0 && nMetStart<240883201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579831/ft1_4FGL_J0638.6+7320_daily_bin5.fits outfile=/scratch/kocevski/579831/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin5.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=240624001.0 tmax=240883201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.65
user 1.22
sys 1.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/579831/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/579831/ft1_filtered_4FGL_J0638.6+7320_daily_bin5.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.77
user 0.34
sys 1.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579831/ft1_filtered_4FGL_J0638.6+7320_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/579831/ltcube_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits
.....................!
real 14.40
user 12.59
sys 1.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579831/ft1_filtered_4FGL_J0638.6+7320_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/579831/ltcube_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.fits outfile=/scratch/kocevski/579831/expmap_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/579831/ltcube_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.fits
.....................!
real 192.18
user 185.26
sys 6.32

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J0638.6+7320 @ 99.6711 73.3438

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/579831/ft1_filtered_4FGL_J0638.6+7320_daily_bin5.fits scfile=/scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits outfile=/scratch/kocevski/579831/cmap_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=99.6711 yref=73.3438 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.75
user 0.37
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579831/ft1_filtered_4FGL_J0638.6+7320_daily_bin5.fits scfile=/scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits outfile=/scratch/kocevski/579831/cmap_HighResolution_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=99.6711 yref=73.3438 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.71
user 0.37
sys 1.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/579831/ft1_filtered_4FGL_J0638.6+7320_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579831/Model_4FGL_J0638.6+7320_daily_bin5.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/579831/ft1_filtered_4FGL_J0638.6+7320_daily_bin5.fits.....................!
real 110.50
user 107.45
sys 2.79

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/579831/ft1_filtered_4FGL_J0638.6+7320_daily_bin5.fits', '/scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits', expMap='/scratch/kocevski/579831/expmap_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.fits', expCube='/scratch/kocevski/579831/ltcube_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/579831/Model_4FGL_J0638.6+7320_daily_bin5.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0638.6+7320'

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  9.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  3.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/579831/ft1_filtered_4FGL_J0638.6+7320_daily_bin5.fits
Spacecraft file(s): /scratch/kocevski/579831/ft2_4FGL_J0638.6+7320_daily_bin5.fits
Exposure map: /scratch/kocevski/579831/expmap_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.fits
Exposure cube: /scratch/kocevski/579831/ltcube_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/579831/Model_4FGL_J0638.6+7320_daily_bin5.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8489.97598839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8489.90925639

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10501E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.259       1.0000         .10000E-03   10000.    
     9 'Prefactor '    95.040       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .74589       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11846E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.421       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.607       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .38908E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0446       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2575       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8489.909     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2280 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9746        8.9189        .52051E-07   -.54321E-04
   2  Prefactor     .10000E-03    4.1921       -.41789E-07** at limit **
   3  Prefactor     27.950        24.224        .36253E-07    .13954E-04
   4  Prefactor     .10000E-03    5.9542       -.16096E-07** at limit **
   5  norm          .10000E-03    51.213       -.17534E-07** at limit **
   6  Prefactor     28.186        37.539        .54201E-06    .22459E-04
   7  Prefactor     .10000E-03    98.999        .12245E-05** at limit **
   8  Prefactor     14.274        28.356        .19062E-06    .27688E-04
   9  Prefactor     95.009        40.407        .10237E-06   -.67356E-04
  10  norm          .10000E-03    4.2263       -.27806E-08** at limit **
  11  norm          .74553        .52432        .11180E-06   -.99358E-03
  12  Prefactor     .10000E-03    81.289       -.95209E-06** at limit **
  13  Prefactor     47.455        41.773       -.21431E-06   -.56873E-04
  14  norm          .10000E-03    7.1474       -.12676E-07** at limit **
  15  Prefactor     11.607        20.704        .29396E-07   -.49742E-05
  16  Prefactor     .10000E-03    11.557        .24337E-07** at limit **
  17  Prefactor     .10000E-03    2.2093        .29423E-06** at limit **
  18  norm          .10470E-03    1.5645        .10103E-05** at limit **
  19  Prefactor     5.2597        41.069       -.68179E-05   -.12372E-03
  20  Normalizat    1.2581        .20166       -.19721E-05   -.14453E-03
  21  Prefactor     .81645        .88193E-01    .81641E-06   -.48113E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.97463
  Prefactor  = 0.0001
  Prefactor  = 27.9502
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.1862
  Prefactor  = 0.000100001
  Prefactor  = 14.2741
  Prefactor  = 95.0086
  norm       = 0.0001
  norm       = 0.745535
  Prefactor  = 0.000100002
  Prefactor  = 47.4552
  norm       = 0.0001
  Prefactor  = 11.6067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001047
  Prefactor  = 5.25969
  Normalizat = 1.25808
  Prefactor  = 0.816449
 **********
 **   18 **HESSE 
 **********

 FCN=   8489.909     FROM HESSE     STATUS=OK           323 CALLS     2603 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9746        8.9215        .12687E-03   -1.5076    
   2  Prefactor     .10000E-03    4.2236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.950        24.244        .75776E-04   -1.4650    
   4  Prefactor     .10000E-03    5.9633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    51.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.186        37.532        .75471E-04   -1.4646    
   7  Prefactor     .10000E-03    100.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.274        28.282        .10607E-03   -1.4952    
   9  Prefactor     95.009        40.424        .41228E-04   -1.3755    
  10  norm          .10000E-03    4.2272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .74553        .53320        .26299E-02   -1.5535    
  12  Prefactor     .10000E-03    81.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.455        42.229        .58228E-04   -1.4329    
  14  norm          .10000E-03    7.1536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.607        20.701        .11759E-03   -1.5026    
  16  Prefactor     .10000E-03    11.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.3852        .26490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10470E-03    5.8737        .31297E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2597        65.688        .17903E-03   -1.5249    
  20  Normalizat    1.2581        .22531        .30465E-03   -.84827    
  21  Prefactor     .81645        .98798E-01    .17462E-03   -.99125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18481e-10
Minuit parameter uncertainties:
  1  8.92268
  2  6.97545e-07
  3  24.2523
  4  1.71561e-08
  5  1.1768e-05
  6  37.5635
  7  0.000694004
  8  28.3087
  9  40.4361
  10  1.01643e-06
  11  0.533204
  12  0.000794306
  13  42.2559
  14  3.26091e-06
  15  20.7141
  16  3.19869e-06
  17  3.55814e-05
  18  0.0105093
  19  37.2256
  20  0.225483
  21  0.0988193
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8489.90908414

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  9.501e+01  4.044e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  3.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.164e-01  9.882e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.258e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.94
Ra Dec: 99.671 73.344
Photon Index (Fixed Index): 3.03 +/- 0.00
Photon Flux (Fixed Index): 1.66e-07 +/- 7.04e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.39e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8489.90375728
delta logL = 0.00532685877079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8489.90244041
delta logL = 0.00664373305517

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.898       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9753       1.0000          .0000       10.000    
     3 'Normalizat'    1.2609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81544       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8489.902     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      269 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.897        41.379        .40834E-04    .30247E-03
   2  Index         2.9754        .44837        .72960E-02    .11601E-03
   3  Normalizat    1.2609        .20227        .30438E-03   -.24950E-04
   4  Prefactor     .81544        .94138E-01    .17471E-03   -.36049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.8974
  Index      = 2.97536
  Normalizat = 1.26086
  Prefactor  = 0.815439
 **********
 **   18 **HESSE 
 **********

 FCN=   8489.902     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.897        40.911        .81668E-05   -1.3736    
   2  Index         2.9754        .44318        .29184E-03   -.41690    
   3  Normalizat    1.2609        .20246        .12175E-04   -.84742    
   4  Prefactor     .81544        .94201E-01    .69886E-05   -.99162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79594e-10
Minuit parameter uncertainties:
  1  40.9232
  2  0.443873
  3  0.202586
  4  0.0942192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579831': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8489.9024404
delta logL = 0.00664373798463

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  9.690e+01  4.092e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.975e+00  4.439e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  3.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.154e-01  9.422e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.261e+00  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.02
Ra Dec: 99.671 73.344
Photon Index (Free Index): 2.98 +/- 0.44
Photon Flux (Free Index): 1.63e-07 +/- 6.78e-08
Energy Flux (Free Index): 3.30e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/579831/cmap_HighResolution_240624001_240883201_4FGL_J0638.6+7320_daily_bin5.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/579831

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.66e-07', energy_flux2='3.30e-05', photon_flux_error='7.04e-08', dlogl='6.64e-03', energy_flux='3.26e-05', photon_flux2='1.63e-07', job_status='DONE', time_completed='2021-08-25 13:30:04.641092', photon_index_error2='0.44', photon_index2='2.98', ts='10.94', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='1.26', time_epoch_completed='1629923404.64', return_code='0', job_id='579831', GAL2='0.82', EG2='1.26', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='6.78e-08', ts2='11.02', photon_index='3.03' WHERE bin_id='5' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:30:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 579831: <4FGL_J0638.6+7320_daily_bin5> in cluster <slac> Done

Job <4FGL_J0638.6+7320_daily_bin5> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Aug 25 13:15:54 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:15:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 25 13:15:56 2021
Terminated at Wed Aug 25 13:30:05 2021
Results reported at Wed Aug 25 13:30:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin5 99.6711 73.3438 240624001 240883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0638.6+7320 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   814.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

The output (if any) is above this job summary.

