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


Performing analysis on: 4FGL_J0638.6+7320_daily_bin526
RA = 99.6711, Dec = 73.3438
tmin = 375667201, tmax = 375926401
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='585313', job_status='RUN', time_executed='2021-08-25 13:35:48.149161', time_epoch_executed='1629923748.15' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585313/ft1_4FGL_J0638.6+7320_daily_bin526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585313/ft2_4FGL_J0638.6+7320_daily_bin526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585313/ft1_4FGL_J0638.6+7320_daily_bin526.fits outfile=/scratch/kocevski/585313/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin526.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=375667201.0 tmax=375926401.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 3.73
user 3.49
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/585313/ft2_4FGL_J0638.6+7320_daily_bin526.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/585313/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin526.fits evtable="EVENTS" outfile="/scratch/kocevski/585313/ft1_filtered_4FGL_J0638.6+7320_daily_bin526.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.44
user 0.26
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585313/ft1_filtered_4FGL_J0638.6+7320_daily_bin526.fits" evtable="EVENTS" scfile=/scratch/kocevski/585313/ft2_4FGL_J0638.6+7320_daily_bin526.fits sctable="SC_DATA" outfile=/scratch/kocevski/585313/ltcube_375667201_375926401_4FGL_J0638.6+7320_daily_bin526.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/585313/ft2_4FGL_J0638.6+7320_daily_bin526.fits
.....................!
real 8.91
user 8.62
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585313/ft1_filtered_4FGL_J0638.6+7320_daily_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/585313/ft2_4FGL_J0638.6+7320_daily_bin526.fits sctable="SC_DATA" expcube=/scratch/kocevski/585313/ltcube_375667201_375926401_4FGL_J0638.6+7320_daily_bin526.fits outfile=/scratch/kocevski/585313/expmap_375667201_375926401_4FGL_J0638.6+7320_daily_bin526.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/585313/ltcube_375667201_375926401_4FGL_J0638.6+7320_daily_bin526.fits
.....................!
real 145.10
user 141.54
sys 3.21

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/585313/ft1_filtered_4FGL_J0638.6+7320_daily_bin526.fits scfile=/scratch/kocevski/585313/ft2_4FGL_J0638.6+7320_daily_bin526.fits outfile=/scratch/kocevski/585313/cmap_375667201_375926401_4FGL_J0638.6+7320_daily_bin526.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 0.45
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585313/ft1_filtered_4FGL_J0638.6+7320_daily_bin526.fits scfile=/scratch/kocevski/585313/ft2_4FGL_J0638.6+7320_daily_bin526.fits outfile=/scratch/kocevski/585313/cmap_HighResolution_375667201_375926401_4FGL_J0638.6+7320_daily_bin526.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38672E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    80.601       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.671       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.3471       1.0000         .10000E-03   10000.    
    11 'norm      '    .48444       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.825       1.0000         .10000E-03   10000.    
    14 'norm      '    39.865       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.866       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6984       1.0000         .10000E-03   10000.    
    18 'norm      '    3.3765       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85705       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0601       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=   10012.66     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2250 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2512        .12422E-06** at limit **
   2  Prefactor     .10000E-03    3.7170        .26227E-07** at limit **
   3  Prefactor     .10000E-03    7.5991       -.29718E-07** at limit **
   4  Prefactor     .10000E-03    5.3887       -.18951E-07** at limit **
   5  norm          .10001E-03    90.218       -.63749E-05** at limit **
   6  Prefactor     .10000E-03    31.320       -.22439E-06** at limit **
   7  Prefactor     80.602        43.350        .11085E-06    .45413E-05
   8  Prefactor     16.668        25.892       -.18542E-06   -.25739E-04
   9  Prefactor     .10000E-03    15.374       -.56864E-07** at limit **
  10  norm          6.3470        11.980        .29569E-05   -.22357E-03
  11  norm          .48503        .62238        .16457E-06    .10562E-03
  12  Prefactor     .10001E-03    79.204        .59524E-05** at limit **
  13  Prefactor     28.822        28.746       -.58194E-06   -.53261E-04
  14  norm          39.865        24.966       -.22208E-06   -.83566E-05
  15  Prefactor     11.023        24.712        .23245E-06   -.49972E-05
  16  Prefactor     38.872        38.091        .64019E-06    .46651E-04
  17  Prefactor     2.6985        2.6006       -.73917E-07    .36201E-04
  18  norm          3.3775        2.0148        .60351E-07   -.12527E-03
  19  Prefactor     .10000E-03    18.153        .13408E-06** at limit **
  20  Normalizat    .85695        .17528       -.10308E-06   -.42764E-04
  21  Prefactor     1.0601        .84371E-01   -.10858E-06   -.45577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 80.6018
  Prefactor  = 16.6681
  Prefactor  = 0.0001
  norm       = 6.34699
  norm       = 0.485034
  Prefactor  = 0.000100007
  Prefactor  = 28.8218
  norm       = 39.865
  Prefactor  = 11.023
  Prefactor  = 38.8723
  Prefactor  = 2.69849
  norm       = 3.37751
  Prefactor  = 0.0001
  Normalizat = 0.856948
  Prefactor  = 1.06013
 **********
 **   18 **HESSE 
 **********

 FCN=   10012.66     FROM HESSE     STATUS=OK           327 CALLS     2577 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2953        .64113E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.6036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    95.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     80.602        43.372        .44736E-04   -1.3910    
   8  Prefactor     16.668        25.794        .98093E-04   -1.4891    
   9  Prefactor     .10000E-03    15.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.3470        12.370        .79660E-03   -1.5204    
  11  norm          .48503        .56730        .81220E-03   -1.5569    
  12  Prefactor     .10001E-03    84.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.822        28.529        .74622E-04   -1.4634    
  14  norm          39.865        24.962        .63485E-04   -1.4444    
  15  Prefactor     11.023        24.749        .12067E-03   -1.5044    
  16  Prefactor     38.872        38.487        .64292E-04   -1.4460    
  17  Prefactor     2.6985        2.6094        .15364E-03   -1.5379    
  18  norm          3.3775        2.0182        .10375E-03   -1.5340    
  19  Prefactor     .10000E-03    18.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .85695        .19804        .34637E-03   -.97990    
  21  Prefactor     1.0601        .95337E-01    .16533E-03   -.90751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32399e-10
Minuit parameter uncertainties:
  1  0.000246995
  2  1.96521e-06
  3  1.95342e-06
  4  8.02913e-07
  5  0.00173543
  6  2.65242e-05
  7  43.3889
  8  25.8109
  9  8.49665e-07
  10  12.3745
  11  0.567309
  12  0.00151281
  13  28.5421
  14  24.969
  15  24.7716
  16  38.5113
  17  2.60947
  18  2.01823
  19  1.29629e-05
  20  0.198212
  21  0.0953524
Done.

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

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  8.497e-07  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.060e+00  9.535e-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:  8.569e-01  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 99.671 73.344
Photon Flux Upper Limit: 8.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/585313/likelihoodResults_375667201_375926401_4FGL_J0638.6+7320_daily_bin526.txt

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): 102
logL (Free Index) = 10012.6607925
delta logL = -0.000309433324219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10012.6604836
delta logL = -5.01142494613e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0158       1.0000          .0000       10.000    
     3 'Normalizat'    .85693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0601       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=   10012.66     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      259 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    264.72        .18142E-01** at limit **
   2  Index         2.5305        5.7368        .50000        .16139E-06
   3  Normalizat    .85695        .17439E-01    .34637E-03   -.46411E-04
   4  Prefactor     1.0601        .92278E-02    .16533E-03   -.90765E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.53053
  Normalizat = 0.856948
  Prefactor  = 1.06013
 **********
 **   18 **HESSE 
 **********

 FCN=   10012.66     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1250.3        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5305        8.1101        .50000       -.51656    
   3  Normalizat    .85695        .41293E-01    .13855E-04   -.97990    
   4  Prefactor     1.0601        .21851E-01    .66134E-05   -.90751    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.83118e-11
Minuit parameter uncertainties:
  1  0.0018523
  2  1578.44
  3  0.0412945
  4  0.0218516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585313': 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): 102
logL (Free Index) = 10012.6604826
delta logL = 4.25441612606e-07

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.852e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.531e+00  1.578e+03  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.060e+00  2.185e-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:  8.569e-01  4.129e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 99.671 73.344

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/585313/cmap_HighResolution_375667201_375926401_4FGL_J0638.6+7320_daily_bin526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.30e-08', time_completed='2021-08-25 13:48:08.557819', job_id='585313', GAL2='1.06', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1629924488.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.03' WHERE bin_id='526' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:48:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 585313: <4FGL_J0638.6+7320_daily_bin526> in cluster <slac> Done

Job <4FGL_J0638.6+7320_daily_bin526> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Aug 25 13:35:36 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:35:38 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:35:38 2021
Terminated at Wed Aug 25 13:48:09 2021
Results reported at Wed Aug 25 13:48:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin526 99.6711 73.3438 375667201 375926401 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 :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            753 sec.

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

