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


Performing analysis on: 4FGL_J0638.6+7320_daily_bin1391
RA = 99.6711, Dec = 73.3438
tmin = 599875201, tmax = 600134401
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='591824', job_status='RUN', time_executed='2021-08-25 13:59:47.321367', time_epoch_executed='1629925187.32' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591824/ft1_4FGL_J0638.6+7320_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591824/ft2_4FGL_J0638.6+7320_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591824/ft1_4FGL_J0638.6+7320_daily_bin1391.fits outfile=/scratch/kocevski/591824/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin1391.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=599875201.0 tmax=600134401.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.78
user 2.22
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591824/ft2_4FGL_J0638.6+7320_daily_bin1391.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/591824/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin1391.fits evtable="EVENTS" outfile="/scratch/kocevski/591824/ft1_filtered_4FGL_J0638.6+7320_daily_bin1391.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.11
user 0.32
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591824/ft1_filtered_4FGL_J0638.6+7320_daily_bin1391.fits" evtable="EVENTS" scfile=/scratch/kocevski/591824/ft2_4FGL_J0638.6+7320_daily_bin1391.fits sctable="SC_DATA" outfile=/scratch/kocevski/591824/ltcube_599875201_600134401_4FGL_J0638.6+7320_daily_bin1391.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/591824/ft2_4FGL_J0638.6+7320_daily_bin1391.fits
.....................!
real 13.33
user 12.45
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591824/ft1_filtered_4FGL_J0638.6+7320_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/591824/ft2_4FGL_J0638.6+7320_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/591824/ltcube_599875201_600134401_4FGL_J0638.6+7320_daily_bin1391.fits outfile=/scratch/kocevski/591824/expmap_599875201_600134401_4FGL_J0638.6+7320_daily_bin1391.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/591824/ltcube_599875201_600134401_4FGL_J0638.6+7320_daily_bin1391.fits
.....................!
real 193.86
user 187.77
sys 5.29

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/591824/ft1_filtered_4FGL_J0638.6+7320_daily_bin1391.fits scfile=/scratch/kocevski/591824/ft2_4FGL_J0638.6+7320_daily_bin1391.fits outfile=/scratch/kocevski/591824/cmap_599875201_600134401_4FGL_J0638.6+7320_daily_bin1391.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.19
user 0.38
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591824/ft1_filtered_4FGL_J0638.6+7320_daily_bin1391.fits scfile=/scratch/kocevski/591824/ft2_4FGL_J0638.6+7320_daily_bin1391.fits outfile=/scratch/kocevski/591824/cmap_HighResolution_599875201_600134401_4FGL_J0638.6+7320_daily_bin1391.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 0.89
user 0.39
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8636       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.879       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.475       1.0000         .10000E-03   10000.    
     5 'norm      '    1309.8       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.119       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18718E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    128.89       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.4035       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19614E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    44.749       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14867E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.524       1.0000         .10000E-03   10000.    
    18 'norm      '    6.5831       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3175       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78912       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=   4896.562     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     2801 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8637        6.1334        .20530E-03   -.22223E-03
   2  Prefactor     36.880        31.224        .65995E-04    .41723E-04
   3  Prefactor     .10000E-03    47.971        .18142E-02** at limit **
   4  Prefactor     50.406        65.471        .28224E-03    .12507E-03
   5  norm          1313.2        2228.5        .59280E-04   -.26811E-04
   6  Prefactor     26.116        148.23        .78384E-04    .88473E-05
   7  Prefactor     .10001E-03    158.43        .18142E-02** at limit **
   8  Prefactor     .10000E-03    32.406        .18142E-02** at limit **
   9  Prefactor     128.88        71.241        .35463E-04   -.39111E-04
  10  norm          .10000E-03    8.3130        .18142E-02** at limit **
  11  norm          7.4035        1.7166        .42195E-04   -.42840E-03
  12  Prefactor     .10000E-03    116.59        .18142E-02** at limit **
  13  Prefactor     .10000E-03    130.13        .18142E-02** at limit **
  14  norm          44.746        29.965        .59934E-04    .41086E-04
  15  Prefactor     .10000E-03    19.875        .18142E-02** at limit **
  16  Prefactor     .10001E-03    46.093        .12639    ** at limit **
  17  Prefactor     13.523        7.4465        .10892E-03    .10438E-04
  18  norm          6.5837        3.7423        .96400E-04   -.26841E-03
  19  Prefactor     .10000E-03    10.596        .18142E-02** at limit **
  20  Normalizat    1.3171        .30090        .32123E-03    .36207E-03
  21  Prefactor     .78927        .14558        .20469E-03   -.25426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86375
  Prefactor  = 36.8796
  Prefactor  = 0.0001
  Prefactor  = 50.4064
  norm       = 1313.21
  Prefactor  = 26.1157
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 128.882
  norm       = 0.0001
  norm       = 7.40347
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 44.7464
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 13.5231
  norm       = 6.58366
  Prefactor  = 0.0001
  Normalizat = 1.31706
  Prefactor  = 0.789266
 **********
 **   18 **HESSE 
 **********

 FCN=   4896.562     FROM HESSE     STATUS=OK           305 CALLS     3106 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8637        6.1334        .82119E-05   -1.5315    
   2  Prefactor     36.880        31.225        .13199E-04   -1.4493    
   3  Prefactor     .10000E-03    47.977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.406        65.475        .11289E-04   -1.4287    
   5  norm          1313.2        2234.5        .11856E-04   -.82915    
   6  Prefactor     26.116        148.28        .15677E-04   -1.4685    
   7  Prefactor     .10001E-03    158.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     128.88        71.242        .70926E-05   -1.3433    
  10  norm          .10000E-03    8.3133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4035        1.7166        .16878E-05   -1.5164    
  12  Prefactor     .10000E-03    116.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    130.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          44.746        29.965        .11987E-04   -1.4369    
  15  Prefactor     .10000E-03    19.875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    44.859        .12891       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.523        7.4464        .43567E-05   -1.4972    
  18  norm          6.5837        3.7424        .38560E-05   -1.5195    
  19  Prefactor     .10000E-03    10.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3171        .30112        .64247E-04   -.83058    
  21  Prefactor     .78927        .14568        .40938E-04   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66375e-09
Minuit parameter uncertainties:
  1  6.1344
  2  31.2384
  3  6.53015e-06
  4  65.569
  5  2441.66
  6  124.931
  7  0.00192036
  8  1.56234e-05
  9  71.2898
  10  1.27488e-05
  11  1.71666
  12  0.00142681
  13  2.07223e-05
  14  29.9747
  15  4.87046e-06
  16  0.000977448
  17  7.4469
  18  3.7425
  19  7.1172e-06
  20  0.301523
  21  0.145746
Done.

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

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.289e+02  7.129e+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:  7.893e-01  1.457e-01  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.317e+00  3.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.71
Ra Dec: 99.671 73.344
Photon Index (Fixed Index): 3.03 +/- 0.00
Photon Flux (Fixed Index): 2.25e-07 +/- 1.24e-07
Energy Flux (Fixed Index): 4.43e-05 +/- 2.45e-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) = 4896.54567392
delta logL = 0.0160140018106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4896.54152262
delta logL = 0.0201653025479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    123.34       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1700       1.0000          .0000       10.000    
     3 'Normalizat'    1.3051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79368       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=   4896.542     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      265 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     123.31        76.859        .36241E-04   -.17316E-04
   2  Index         3.1705        .75165        .79484E-02   -.17064E-04
   3  Normalizat    1.3054        .28611        .32236E-03   -.15667E-03
   4  Prefactor     .79359        .14156        .20421E-03    .43645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 123.314
  Index      = 3.17048
  Normalizat = 1.30542
  Prefactor  = 0.793593
 **********
 **   18 **HESSE 
 **********

 FCN=   4896.542     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     123.31        75.270        .72483E-05   -1.3482    
   2  Index         3.1705        .73558        .31793E-03   -.37460    
   3  Normalizat    1.3054        .28635        .64473E-04   -.83405    
   4  Prefactor     .79359        .14159        .81686E-05   -.99965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20767e-10
Minuit parameter uncertainties:
  1  75.328
  2  0.738679
  3  0.286703
  4  0.14165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591824': 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) = 4896.54152147
delta logL = 0.020166456402

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.233e+02  7.533e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.170e+00  7.387e-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:  7.936e-01  1.416e-01  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.305e+00  2.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 99.671 73.344
Photon Index (Free Index): 3.17 +/- 0.74
Photon Flux (Free Index): 2.38e-07 +/- 1.41e-07
Energy Flux (Free Index): 4.40e-05 +/- 2.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/591824/cmap_HighResolution_599875201_600134401_4FGL_J0638.6+7320_daily_bin1391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-07', energy_flux2='4.40e-05', photon_flux_error='1.24e-07', dlogl='2.02e-02', energy_flux='4.43e-05', photon_flux2='2.38e-07', job_status='DONE', time_completed='2021-08-25 14:10:17.547572', photon_index_error2='0.74', photon_index2='3.17', ts='4.71', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='2.39e-05', EG='1.32', time_epoch_completed='1629925817.55', return_code='0', job_id='591824', GAL2='0.79', EG2='1.31', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='1.41e-07', ts2='4.81', photon_index='3.03' WHERE bin_id='1391' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 14:10:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 591824: <4FGL_J0638.6+7320_daily_bin1391> in cluster <slac> Done

Job <4FGL_J0638.6+7320_daily_bin1391> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Aug 25 13:55:36 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:56:10 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:56:10 2021
Terminated at Wed Aug 25 14:10:18 2021
Results reported at Wed Aug 25 14:10:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin1391 99.6711 73.3438 599875201 600134401 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 :                                   627.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            882 sec.

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

