/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 4 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 = 7428
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0638.6+7320_daily_bin111
RA = 99.6711, Dec = 73.3438
tmin = 268099201, tmax = 268358401
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='581122', job_status='RUN', time_executed='2021-08-25 13:20:34.640522', time_epoch_executed='1629922834.64' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581122/ft1_4FGL_J0638.6+7320_daily_bin111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581122/ft2_4FGL_J0638.6+7320_daily_bin111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581122/ft1_4FGL_J0638.6+7320_daily_bin111.fits outfile=/scratch/kocevski/581122/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin111.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=268099201.0 tmax=268358401.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 1.43
user 1.26
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581122/ft1_filtered_4FGL_J0638.6+7320_daily_bin111.fits" evtable="EVENTS" scfile=/scratch/kocevski/581122/ft2_4FGL_J0638.6+7320_daily_bin111.fits sctable="SC_DATA" outfile=/scratch/kocevski/581122/ltcube_268099201_268358401_4FGL_J0638.6+7320_daily_bin111.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/581122/ft2_4FGL_J0638.6+7320_daily_bin111.fits
.....................!
real 12.58
user 12.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581122/ft1_filtered_4FGL_J0638.6+7320_daily_bin111.fits evtable="EVENTS" scfile=/scratch/kocevski/581122/ft2_4FGL_J0638.6+7320_daily_bin111.fits sctable="SC_DATA" expcube=/scratch/kocevski/581122/ltcube_268099201_268358401_4FGL_J0638.6+7320_daily_bin111.fits outfile=/scratch/kocevski/581122/expmap_268099201_268358401_4FGL_J0638.6+7320_daily_bin111.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/581122/ltcube_268099201_268358401_4FGL_J0638.6+7320_daily_bin111.fits
.....................!
real 190.79
user 186.76
sys 3.62

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/581122/ft1_filtered_4FGL_J0638.6+7320_daily_bin111.fits scfile=/scratch/kocevski/581122/ft2_4FGL_J0638.6+7320_daily_bin111.fits outfile=/scratch/kocevski/581122/cmap_268099201_268358401_4FGL_J0638.6+7320_daily_bin111.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581122/ft1_filtered_4FGL_J0638.6+7320_daily_bin111.fits scfile=/scratch/kocevski/581122/ft2_4FGL_J0638.6+7320_daily_bin111.fits outfile=/scratch/kocevski/581122/cmap_HighResolution_268099201_268358401_4FGL_J0638.6+7320_daily_bin111.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1439       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.706       1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.786       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 '    22.036       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.3916       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4789       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.551       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.875       1.0000         .10000E-03   10000.    
    14 'norm      '    12.422       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .65501E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5167       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79081       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=   9147.486     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     1882 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1435        3.5525        .21725E-05    .48234E-03
   2  Prefactor     13.703        9.8862        .14472E-05    .38599E-03
   3  Prefactor     56.783        36.159        .16938E-07   -.23444E-04
   4  Prefactor     .10000E-03    5.0947        .43965E-07** at limit **
   5  norm          .10000E-03    86.138        .39514E-07** at limit **
   6  Prefactor     22.034        29.918        .21365E-07   -.68178E-05
   7  Prefactor     .10000E-03    15.835        .21928E-07** at limit **
   8  Prefactor     .10000E-03    9.1533        .81864E-07** at limit **
   9  Prefactor     .10000E-03    12.855       -.82959E-07** at limit **
  10  norm          7.3935        18.420        .18927E-06   -.70944E-05
  11  norm          3.4792        .94198        .24811E-08   -.65440E-04
  12  Prefactor     14.473        296.44       -.40825E-05   -.23817E-04
  13  Prefactor     13.839        36.967       -.14367E-05   -.88832E-04
  14  norm          12.426        22.180       -.62701E-07   -.72107E-05
  15  Prefactor     .10000E-03    9.3505       -.27581E-06** at limit **
  16  Prefactor     .10000E-03    15.377       -.15062E-06** at limit **
  17  Prefactor     .10021E-03    3.4628        .14662E-05** at limit **
  18  norm          2.6402        2.5772       -.14714E-07    .29276E-04
  19  Prefactor     .10000E-03    18.328       -.18223E-06** at limit **
  20  Normalizat    1.5165        .20438        .26558E-05   -.15491E-03
  21  Prefactor     .79092        .94893E-01   -.18671E-05   -.27420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14346
  Prefactor  = 13.7028
  Prefactor  = 56.7827
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.0344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.39351
  norm       = 3.47921
  Prefactor  = 14.4728
  Prefactor  = 13.839
  norm       = 12.426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100207
  norm       = 2.64017
  Prefactor  = 0.0001
  Normalizat = 1.5165
  Prefactor  = 0.790922
 **********
 **   18 **HESSE 
 **********

 FCN=   9147.486     FROM HESSE     STATUS=OK           323 CALLS     2205 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1435        3.6047        .32034E-03   -1.5494    
   2  Prefactor     13.703        9.9245        .54097E-03   -1.4967    
   3  Prefactor     56.783        36.192        .53235E-04   -1.4199    
   4  Prefactor     .10000E-03    5.0979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    86.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.034        29.940        .85327E-04   -1.4769    
   7  Prefactor     .10000E-03    15.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.3935        18.414        .14752E-03   -1.5164    
  11  norm          3.4792        .94279        .44850E-04   -1.5335    
  12  Prefactor     14.473        300.51        .10500E-03   -1.4947    
  13  Prefactor     13.839        37.286        .10753E-03   -1.4964    
  14  norm          12.426        22.180        .11365E-03   -1.5003    
  15  Prefactor     .10000E-03    9.3664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10021E-03    2.3932        .54069E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6402        2.5776        .14449E-03   -1.5383    
  19  Prefactor     .10000E-03    18.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5165        .21957        .29821E-03   -.77316    
  21  Prefactor     .79092        .10129        .18795E-03   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46731e-09
Minuit parameter uncertainties:
  1  3.60537
  2  9.92566
  3  36.2059
  4  2.67061e-06
  5  2.74413e-05
  6  29.9608
  7  1.67682e-05
  8  3.14768e-05
  9  1.51362e-05
  10  18.4282
  11  0.94279
  12  132.665
  13  37.3488
  14  22.1949
  15  5.3031e-05
  16  3.4847e-05
  17  0.00140804
  18  2.5777
  19  6.21433e-05
  20  0.21971
  21  0.101311
Done.

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

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.514e-05  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.909e-01  1.013e-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.517e+00  2.197e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/581122/likelihoodResults_268099201_268358401_4FGL_J0638.6+7320_daily_bin111.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) = 9147.4862432
delta logL = -0.000370171199393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9147.48587303
delta logL = -7.24503479432e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0293       1.0000          .0000       10.000    
     3 'Normalizat'    1.5165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79093       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=   9147.486     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    722.98        .18142E-02** at limit **
   2  Index         3.0550        8.4717        .50000       -.12725E-05
   3  Normalizat    1.5165        .41257E-01    .29821E-03    .47349E-04
   4  Prefactor     .79092        .19639E-01    .18795E-03    .69681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010008
  Index      = 3.05497
  Normalizat = 1.51651
  Prefactor  = 0.790921
 **********
 **   18 **HESSE 
 **********

 FCN=   9147.486     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    6183.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0550        7.3867        .50000       -.39955    
   3  Normalizat    1.5165        .11099        .11928E-04   -.77316    
   4  Prefactor     .79092        .52837E-01    .75181E-05   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.36668e-09
Minuit parameter uncertainties:
  1  0.0286784
  2  4249.78
  3  0.111005
  4  0.0528402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581122': 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) = 9147.48587302
delta logL = 6.06087269261e-09

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.001e-04  2.868e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.055e+00  4.250e+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:  7.909e-01  5.284e-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.517e+00  1.110e-01  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/581122/cmap_HighResolution_268099201_268358401_4FGL_J0638.6+7320_daily_bin111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', job_status='DONE', photon_flux_upper_limit='8.91e-08', time_completed='2021-08-25 13:34:48.413427', job_id='581122', GAL2='0.79', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1629923688.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='6.06e-09', ts2='-0.00', photon_index_error='0.00', photon_index='3.03' WHERE bin_id='111' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:34:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 581122: <4FGL_J0638.6+7320_daily_bin111> in cluster <slac> Done

Job <4FGL_J0638.6+7320_daily_bin111> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Aug 25 13:20:18 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:20:20 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:20:20 2021
Terminated at Wed Aug 25 13:34:49 2021
Results reported at Wed Aug 25 13:34:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin111 99.6711 73.3438 268099201 268358401 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 :                                   853.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             360.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

