/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 9 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0638.6+7320_daily_bin8
RA = 99.6711, Dec = 73.3438
tmin = 241401601, tmax = 241660801
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='579836', job_status='RUN', time_executed='2021-08-25 13:16:41.133208', time_epoch_executed='1629922601.13' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579836/ft1_4FGL_J0638.6+7320_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579836/ft2_4FGL_J0638.6+7320_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579836/ft1_4FGL_J0638.6+7320_daily_bin8.fits outfile=/scratch/kocevski/579836/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin8.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=241401601.0 tmax=241660801.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.00
user 1.26
sys 1.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579836/ft1_filtered_4FGL_J0638.6+7320_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/579836/ft2_4FGL_J0638.6+7320_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/579836/ltcube_241401601_241660801_4FGL_J0638.6+7320_daily_bin8.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/579836/ft2_4FGL_J0638.6+7320_daily_bin8.fits
.....................!
real 14.35
user 12.18
sys 2.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579836/ft1_filtered_4FGL_J0638.6+7320_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/579836/ft2_4FGL_J0638.6+7320_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/579836/ltcube_241401601_241660801_4FGL_J0638.6+7320_daily_bin8.fits outfile=/scratch/kocevski/579836/expmap_241401601_241660801_4FGL_J0638.6+7320_daily_bin8.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/579836/ltcube_241401601_241660801_4FGL_J0638.6+7320_daily_bin8.fits
.....................!
real 195.47
user 187.30
sys 7.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/579836/ft1_filtered_4FGL_J0638.6+7320_daily_bin8.fits scfile=/scratch/kocevski/579836/ft2_4FGL_J0638.6+7320_daily_bin8.fits outfile=/scratch/kocevski/579836/cmap_241401601_241660801_4FGL_J0638.6+7320_daily_bin8.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 2.06
user 0.37
sys 1.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579836/ft1_filtered_4FGL_J0638.6+7320_daily_bin8.fits scfile=/scratch/kocevski/579836/ft2_4FGL_J0638.6+7320_daily_bin8.fits outfile=/scratch/kocevski/579836/cmap_HighResolution_241401601_241660801_4FGL_J0638.6+7320_daily_bin8.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 2.08
user 0.38
sys 1.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1866       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.058       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    159.83       1.0000         .10000E-03   10000.    
    10 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0943       1.0000         .10000E-03   10000.    
    12 'Prefactor '    138.21       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.018       1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13555       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.303       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0219       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1622       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89505       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=   8146.321     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2752 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1857        8.6685        .26363E-06    .30010E-04
   2  Prefactor     .10000E-03    3.0081       -.85843E-07** at limit **
   3  Prefactor     .10000E-03    26.817       -.33112E-06** at limit **
   4  Prefactor     .10000E-03    4.5228       -.37205E-07** at limit **
   5  norm          .10000E-03    89.569       -.22945E-07** at limit **
   6  Prefactor     46.068        48.624        .10729E-05   -.36027E-05
   7  Prefactor     44.667        47.091        .41264E-06   -.28078E-05
   8  Prefactor     .10000E-03    11.418       -.87038E-07** at limit **
   9  Prefactor     159.83        46.837        .69349E-06   -.32884E-04
  10  norm          .10000E-03    28.092       -.82178E-06** at limit **
  11  norm          2.0942        .83717        .62556E-07   -.32797E-04
  12  Prefactor     138.67        193.91       -.69403E-05   -.80348E-04
  13  Prefactor     19.018        40.746        .22503E-05   -.30838E-04
  14  norm          .10000E-03    11.983       -.22784E-06** at limit **
  15  Prefactor     .10288E-03    31.086        .44928E-05** at limit **
  16  Prefactor     12.331        42.362        .38750E-05   -.48323E-05
  17  Prefactor     .10000E-03    3.2322       -.36506E-06** at limit **
  18  norm          4.0220        2.5956        .34300E-06   -.12270E-03
  19  Prefactor     .10000E-03    15.525       -.22940E-06** at limit **
  20  Normalizat    1.1621        .23388       -.68822E-05   -.29285E-03
  21  Prefactor     .89512        .10287        .22178E-05   -.75353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.18568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.0676
  Prefactor  = 44.6671
  Prefactor  = 0.0001
  Prefactor  = 159.827
  norm       = 0.0001
  norm       = 2.09424
  Prefactor  = 138.668
  Prefactor  = 19.018
  norm       = 0.0001
  Prefactor  = 0.000102883
  Prefactor  = 12.3305
  Prefactor  = 0.0001
  norm       = 4.02197
  Prefactor  = 0.0001
  Normalizat = 1.16207
  Prefactor  = 0.895116
 **********
 **   18 **HESSE 
 **********

 FCN=   8146.321     FROM HESSE     STATUS=OK           319 CALLS     3071 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1857        8.6809        .14012E-03   -1.5136    
   2  Prefactor     .10000E-03    3.0147        .15287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    89.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.068        48.718        .59079E-04   -1.4349    
   7  Prefactor     44.667        47.128        .59982E-04   -1.4370    
   8  Prefactor     .10000E-03    11.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     159.83        46.839        .31896E-04   -1.3173    
  10  norm          .10000E-03    28.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0942        .83474        .49105E-04   -1.5419    
  12  Prefactor     138.67        198.35        .17131E-03   -1.3347    
  13  Prefactor     19.018        40.716        .91843E-04   -1.4835    
  14  norm          .10000E-03    11.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10288E-03    28.559        .13697       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.331        42.422        .11421E-03   -1.5006    
  17  Prefactor     .10000E-03    3.2680        .15828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0220        2.5925        .10876E-03   -1.5307    
  19  Prefactor     .10000E-03    15.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1621        .23927        .32949E-03   -.87783    
  21  Prefactor     .89512        .10688        .18374E-03   -.96312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60996e-10
Minuit parameter uncertainties:
  1  8.68226
  2  2.89178e-06
  3  2.29207e-05
  4  1.44359e-06
  5  1.21184e-05
  6  48.7603
  7  47.1672
  8  6.7612e-07
  9  46.8494
  10  1.66187e-05
  11  0.83474
  12  199.309
  13  40.7754
  14  1.30045e-05
  15  0.0181552
  16  42.5255
  17  5.10056e-06
  18  2.59255
  19  4.10233e-08
  20  0.239495
  21  0.106907
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.951e-01  1.069e-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.162e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.11
Ra Dec: 99.671 73.344
Photon Index (Fixed Index): 3.03 +/- 0.00
Photon Flux (Fixed Index): 2.79e-07 +/- 8.16e-08
Energy Flux (Fixed Index): 5.49e-05 +/- 1.61e-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) = 8145.77223723
delta logL = 0.548441359198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8145.66266798
delta logL = 0.658010610446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    180.88       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6153       1.0000          .0000       10.000    
     3 'Normalizat'    1.2048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87809       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=   8145.663     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      213 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     180.89        51.695        .58157E-05   -.91286E-03
   2  Index         2.6156        .28264       -.59447E-05   -.90471E-03
   3  Normalizat    1.2048        .18710       -.38340E-06    .71037E-04
   4  Prefactor     .87810        .91487E-01   -.32953E-06    .95464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 180.889
  Index      = 2.61562
  Normalizat = 1.20478
  Prefactor  = 0.878097
 **********
 **   18 **HESSE 
 **********

 FCN=   8145.663     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     180.89        53.449        .15007E-03   -1.3010    
   2  Index         2.6156        .32763        .59382E-02   -.49710    
   3  Normalizat    1.2048        .21110        .32469E-03   -.86455    
   4  Prefactor     .87810        .10274        .18516E-03   -.96911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51894e-09
Minuit parameter uncertainties:
  1  53.4637
  2  0.327935
  3  0.211245
  4  0.102762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579836': 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) = 8145.66266719
delta logL = 0.65801139917

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.781e-01  1.028e-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.205e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.27
Ra Dec: 99.671 73.344
Photon Index (Free Index): 2.62 +/- 0.33
Photon Flux (Free Index): 2.44e-07 +/- 8.06e-08
Energy Flux (Free Index): 6.30e-05 +/- 2.06e-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/579836/cmap_HighResolution_241401601_241660801_4FGL_J0638.6+7320_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.79e-07', energy_flux2='6.30e-05', photon_flux_error='8.16e-08', dlogl='6.58e-01', energy_flux='5.49e-05', photon_flux2='2.44e-07', job_status='DONE', time_completed='2021-08-25 13:30:22.911816', photon_index_error2='0.33', photon_index2='2.62', ts='22.11', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.06e-05', EG='1.16', time_epoch_completed='1629923422.91', return_code='0', job_id='579836', GAL2='0.88', EG2='1.20', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='8.06e-08', ts2='23.27', photon_index='3.03' WHERE bin_id='8' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:30:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 579836: <4FGL_J0638.6+7320_daily_bin8> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin8 99.6711 73.3438 241401601 241660801 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 :                                   843.09 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

