/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 6 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 = 7449
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0638.6+7320_daily_bin1005
RA = 99.6711, Dec = 73.3438
tmin = 499824001, tmax = 500083201
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='588845', job_status='RUN', time_executed='2021-08-25 13:46:40.404332', time_epoch_executed='1629924400.4' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588845/ft1_4FGL_J0638.6+7320_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588845/ft2_4FGL_J0638.6+7320_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588845/ft1_4FGL_J0638.6+7320_daily_bin1005.fits outfile=/scratch/kocevski/588845/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin1005.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.43
user 4.94
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588845/ft2_4FGL_J0638.6+7320_daily_bin1005.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/588845/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/588845/ft1_filtered_4FGL_J0638.6+7320_daily_bin1005.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 0.75
user 0.34
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588845/ft1_filtered_4FGL_J0638.6+7320_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/588845/ft2_4FGL_J0638.6+7320_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/588845/ltcube_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.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/588845/ft2_4FGL_J0638.6+7320_daily_bin1005.fits
.....................!
real 12.10
user 11.44
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588845/ft1_filtered_4FGL_J0638.6+7320_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/588845/ft2_4FGL_J0638.6+7320_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/588845/ltcube_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.fits outfile=/scratch/kocevski/588845/expmap_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.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/588845/ltcube_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.fits
.....................!
real 191.03
user 185.43
sys 5.23

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/588845/ft1_filtered_4FGL_J0638.6+7320_daily_bin1005.fits scfile=/scratch/kocevski/588845/ft2_4FGL_J0638.6+7320_daily_bin1005.fits outfile=/scratch/kocevski/588845/cmap_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.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.05
user 0.39
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588845/ft1_filtered_4FGL_J0638.6+7320_daily_bin1005.fits scfile=/scratch/kocevski/588845/ft2_4FGL_J0638.6+7320_daily_bin1005.fits outfile=/scratch/kocevski/588845/cmap_HighResolution_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.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.39
user 0.41
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/588845/ft1_filtered_4FGL_J0638.6+7320_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/588845/ft2_4FGL_J0638.6+7320_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/588845/Model_4FGL_J0638.6+7320_daily_bin1005.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/588845/ft1_filtered_4FGL_J0638.6+7320_daily_bin1005.fits....................!
real 118.95
user 107.39
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/588845/ft1_filtered_4FGL_J0638.6+7320_daily_bin1005.fits', '/scratch/kocevski/588845/ft2_4FGL_J0638.6+7320_daily_bin1005.fits', expMap='/scratch/kocevski/588845/expmap_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.fits', expCube='/scratch/kocevski/588845/ltcube_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/588845/Model_4FGL_J0638.6+7320_daily_bin1005.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/588845/ft1_filtered_4FGL_J0638.6+7320_daily_bin1005.fits
Spacecraft file(s): /scratch/kocevski/588845/ft2_4FGL_J0638.6+7320_daily_bin1005.fits
Exposure map: /scratch/kocevski/588845/expmap_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.fits
Exposure cube: /scratch/kocevski/588845/ltcube_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/588845/Model_4FGL_J0638.6+7320_daily_bin1005.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) = 9216.10541658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3000       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16508E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4152       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.528       1.0000         .10000E-03   10000.    
    10 'norm      '    20.410       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5034       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    36.134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5147       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.738       1.0000         .10000E-03   10000.    
    18 'norm      '    .37937E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .61728       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1113       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.

 FCN=   9216.088     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2230 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9456        .90712E-02** at limit **
   2  Prefactor     4.3001        6.5618        .48569E-02    .26609E-03
   3  Prefactor     .10000E-03    10.641        .90712E-02** at limit **
   4  Prefactor     .10000E-03    7.8597        .90712E-02** at limit **
   5  norm          .10052E-03    87.327        .90712E-02** at limit **
   6  Prefactor     .10066E-03    94.167        .91053E-02** at limit **
   7  Prefactor     5.4192        37.045        .43171E-02    .49536E-03
   8  Prefactor     .10000E-03    12.082        .90712E-02** at limit **
   9  Prefactor     65.520        30.906        .12394E-02    .87659E-03
  10  norm          20.408        19.232        .22164E-02    .39803E-04
  11  norm          2.5033        .68670        .64570E-02   -.40319E-04
  12  Prefactor     .10015E-03    136.38        .90712E-02** at limit **
  13  Prefactor     .10001E-03    29.101        .90712E-02** at limit **
  14  norm          36.132        24.143        .16667E-02    .26656E-04
  15  Prefactor     9.4979        24.328        .32480E-02   -.48912E-04
  16  Prefactor     .10000E-03    22.365        .90712E-02** at limit **
  17  Prefactor     10.738        5.3545        .30566E-02    .76486E-04
  18  norm          .10000E-03    .75425        .54317E-01** at limit **
  19  Prefactor     .10001E-03    28.588        .90712E-02** at limit **
  20  Normalizat    .61749        .16918        .87024E-01    .55490E-04
  21  Prefactor     1.1113        .85287E-01    .37172E-01   -.51985E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.30005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100523
  Prefactor  = 0.000100658
  Prefactor  = 5.41921
  Prefactor  = 0.0001
  Prefactor  = 65.5198
  norm       = 20.4082
  norm       = 2.50328
  Prefactor  = 0.000100146
  Prefactor  = 0.000100006
  norm       = 36.1325
  Prefactor  = 9.49787
  Prefactor  = 0.0001
  Prefactor  = 10.738
  norm       = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 0.617486
  Prefactor  = 1.11127
 **********
 **   18 **HESSE 
 **********

 FCN=   9216.088     FROM HESSE     STATUS=OK           313 CALLS     2543 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9475        .13077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3001        6.5737        .19428E-03   -1.5293    
   3  Prefactor     .10000E-03    10.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10052E-03    87.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10066E-03    97.441        .36421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4192        37.013        .86342E-03   -1.5242    
   8  Prefactor     .10000E-03    12.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     65.520        30.859        .49578E-04   -1.4087    
  10  norm          20.408        19.226        .88657E-04   -1.4804    
  11  norm          2.5033        .68645        .40130E-04   -1.5392    
  12  Prefactor     .10015E-03    136.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    29.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          36.132        24.142        .66670E-04   -1.4505    
  15  Prefactor     9.4979        24.328        .12992E-03   -1.5091    
  16  Prefactor     .10000E-03    22.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.738        5.3580        .12226E-03   -1.5052    
  18  norm          .10000E-03    7.8427        .15859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    29.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .61749        .17890        .38551E-03   -1.0725    
  21  Prefactor     1.1113        .92379E-01    .15571E-03   -.89107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53427e-08
Minuit parameter uncertainties:
  1  1.47651e-09
  2  6.57485
  3  1.62974e-06
  4  8.15315e-07
  5  0.0135394
  6  0.0160462
  7  28.3502
  8  7.50901e-06
  9  30.8663
  10  19.2319
  11  0.686451
  12  0.00893873
  13  0.000837269
  14  24.148
  15  24.3532
  16  3.84751e-05
  17  5.35828
  18  9.67889e-08
  19  0.000907578
  20  0.17907
  21  0.0923925
Done.

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

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  6.552e+01  3.087e+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:  1.111e+00  9.239e-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:  6.175e-01  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.57
Ra Dec: 99.671 73.344
Photon Index (Fixed Index): 3.03 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 5.38e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.06e-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) = 9215.97184102
delta logL = 0.116143409199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9215.96799746
delta logL = 0.119986968286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.512       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4304       1.0000          .0000       10.000    
     3 'Normalizat'    .60596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1176       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=   9215.968     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      301 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.547        49.748        .56426E-04    .72532E-05
   2  Index         3.4308        1.0799        .85876E-02    .40256E-03
   3  Normalizat    .60579        .17511        .38898E-03    .13561E-04
   4  Prefactor     1.1174        .91765E-01    .15536E-03   -.28978E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.5471
  Index      = 3.43078
  Normalizat = 0.605794
  Prefactor  = 1.11743
 **********
 **   18 **HESSE 
 **********

 FCN=   9215.968     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.547        44.376        .22571E-05   -1.4285    
   2  Index         3.4308        .96416        .17175E-02   -.31924    
   3  Normalizat    .60579        .17515        .15559E-04   -1.0774    
   4  Prefactor     1.1174        .91623E-01    .62143E-05   -.88911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39301e-12
Minuit parameter uncertainties:
  1  44.4055
  2  0.97091
  3  0.175312
  4  0.0916354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588845': 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) = 9215.96798953
delta logL = 0.119994896546

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  5.055e+01  4.441e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.431e+00  9.709e-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:  1.117e+00  9.164e-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:  6.058e-01  1.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.91
Ra Dec: 99.671 73.344
Photon Index (Free Index): 3.43 +/- 0.97
Photon Flux (Free Index): 1.18e-07 +/- 5.53e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.09e-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/588845/cmap_HighResolution_499824001_500083201_4FGL_J0638.6+7320_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='2.01e-05', photon_flux_error='5.38e-08', dlogl='1.20e-01', energy_flux='2.25e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-08-25 14:00:55.342441', photon_index_error2='0.97', photon_index2='3.43', ts='6.57', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='0.62', time_epoch_completed='1629925255.34', return_code='0', job_id='588845', GAL2='1.12', EG2='0.61', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='5.53e-08', ts2='6.91', photon_index='3.03' WHERE bin_id='1005' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 14:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 588845: <4FGL_J0638.6+7320_daily_bin1005> in cluster <slac> Done

Job <4FGL_J0638.6+7320_daily_bin1005> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Aug 25 13:45:45 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:46:22 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:46:22 2021
Terminated at Wed Aug 25 14:00:55 2021
Results reported at Wed Aug 25 14:00:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin1005 99.6711 73.3438 499824001 500083201 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 :                                   839.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             348.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            910 sec.

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

