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


Performing analysis on: 4FGL_J0638.6+7320_daily_bin1202
RA = 99.6711, Dec = 73.3438
tmin = 550886401, tmax = 551145601
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='590386', job_status='RUN', time_executed='2021-08-25 13:54:20.565856', time_epoch_executed='1629924860.57' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590386/ft1_4FGL_J0638.6+7320_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590386/ft2_4FGL_J0638.6+7320_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590386/ft1_4FGL_J0638.6+7320_daily_bin1202.fits outfile=/scratch/kocevski/590386/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin1202.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=550886401.0 tmax=551145601.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 4.26
user 3.54
sys 0.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590386/ft2_4FGL_J0638.6+7320_daily_bin1202.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/590386/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/590386/ft1_filtered_4FGL_J0638.6+7320_daily_bin1202.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.94
user 0.33
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590386/ft1_filtered_4FGL_J0638.6+7320_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/590386/ft2_4FGL_J0638.6+7320_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/590386/ltcube_550886401_551145601_4FGL_J0638.6+7320_daily_bin1202.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/590386/ft2_4FGL_J0638.6+7320_daily_bin1202.fits
.....................!
real 12.49
user 11.59
sys 0.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590386/ft1_filtered_4FGL_J0638.6+7320_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/590386/ft2_4FGL_J0638.6+7320_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/590386/ltcube_550886401_551145601_4FGL_J0638.6+7320_daily_bin1202.fits outfile=/scratch/kocevski/590386/expmap_550886401_551145601_4FGL_J0638.6+7320_daily_bin1202.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/590386/ltcube_550886401_551145601_4FGL_J0638.6+7320_daily_bin1202.fits
.....................!
real 193.41
user 187.09
sys 5.79

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/590386/ft1_filtered_4FGL_J0638.6+7320_daily_bin1202.fits scfile=/scratch/kocevski/590386/ft2_4FGL_J0638.6+7320_daily_bin1202.fits outfile=/scratch/kocevski/590386/cmap_550886401_551145601_4FGL_J0638.6+7320_daily_bin1202.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.76
user 0.36
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590386/ft1_filtered_4FGL_J0638.6+7320_daily_bin1202.fits scfile=/scratch/kocevski/590386/ft2_4FGL_J0638.6+7320_daily_bin1202.fits outfile=/scratch/kocevski/590386/cmap_HighResolution_550886401_551145601_4FGL_J0638.6+7320_daily_bin1202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=99.6711 yref=73.3438 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.77
user 0.37
sys 0.60

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    87.087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .22032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7407       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.019       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.771       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9242       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.851       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    33.833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0426       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75171       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0284       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=   3129.976     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2472 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4356        .29990E-07** at limit **
   2  Prefactor     .10000E-03    25.244        .24984E-04** at limit **
   3  Prefactor     87.136        70.124        .31316E-04   -.34285E-04
   4  Prefactor     .10000E-03    12.641       -.16100E-06** at limit **
   5  norm          .10000E-03    205.33        .40870E-04** at limit **
   6  Prefactor     .10000E-03    20.078        .19078E-05** at limit **
   7  Prefactor     3.7320        223.57       -.16309E-04   -.48733E-05
   8  Prefactor     56.020        50.176        .57222E-05    .18040E-04
   9  Prefactor     35.752        63.878       -.13238E-04    .13774E-04
  10  norm          .10000E-03    12.020        .94673E-07** at limit **
  11  norm          5.9236        1.8110        .28033E-08    .50677E-03
  12  Prefactor     35.109        221.53        .40463E-03    .17479E-04
  13  Prefactor     .10001E-03    243.94       -.43871E-04** at limit **
  14  norm          33.834        33.949        .77065E-06   -.39541E-05
  15  Prefactor     .10000E-03    24.779       -.26168E-04** at limit **
  16  Prefactor     .10000E-03    119.71        .72848E-05** at limit **
  17  Prefactor     .10000E-03    5.2260        .11497E-06** at limit **
  18  norm          5.0430        4.4104        .42187E-06    .75323E-04
  19  Prefactor     .10000E-03    54.195       -.39720E-05** at limit **
  20  Normalizat    .75133        .29532       -.74587E-05   -.31517E-04
  21  Prefactor     1.0285        .14466       -.29317E-05   -.10492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.1356
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.73198
  Prefactor  = 56.02
  Prefactor  = 35.752
  norm       = 0.0001
  norm       = 5.92361
  Prefactor  = 35.1088
  Prefactor  = 0.00010001
  norm       = 33.8344
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 5.04298
  Prefactor  = 0.0001
  Normalizat = 0.751334
  Prefactor  = 1.02849
 **********
 **   18 **HESSE 
 **********

 FCN=   3129.976     FROM HESSE     STATUS=OK           309 CALLS     2781 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4488        .13862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     87.136        70.210        .21526E-03   -1.3838    
   4  Prefactor     .10000E-03    12.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    205.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7320        224.31        .20876E-03   -1.5322    
   8  Prefactor     56.020        50.128        .53596E-04   -1.4210    
   9  Prefactor     35.752        63.945        .67006E-04   -1.4511    
  10  norm          .10000E-03    12.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9236        1.8128        .39634E-04   -1.5221    
  12  Prefactor     35.109        220.81        .33941E-03   -1.4522    
  13  Prefactor     .10001E-03    246.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          33.834        33.965        .68893E-04   -1.4544    
  15  Prefactor     .10000E-03    24.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    120.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2479        .12489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0430        4.4253        .10352E-03   -1.5259    
  19  Prefactor     .10000E-03    54.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .75133        .32347        .37019E-03   -1.0190    
  21  Prefactor     1.0285        .15939        .16519E-03   -.91786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76697e-10
Minuit parameter uncertainties:
  1  1.63731e-05
  2  6.78449e-05
  3  70.2774
  4  1.9953e-05
  5  4.74478e-05
  6  3.49476e-05
  7  58.0954
  8  50.1657
  9  64.0676
  10  1.97589e-05
  11  1.8128
  12  177.065
  13  0.00321046
  14  33.9839
  15  0.000291588
  16  0.000957788
  17  3.34717e-05
  18  4.42559
  19  0.000170086
  20  0.324302
  21  0.159466
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.028e+00  1.595e-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:  7.513e-01  3.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 99.671 73.344
Photon Flux Upper Limit: 2.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590386/likelihoodResults_550886401_551145601_4FGL_J0638.6+7320_daily_bin1202.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): 0
logL (Free Index) = 3129.71917615
delta logL = 0.256424278556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3129.7154569
delta logL = 0.260143526678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.530       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5545       1.0000          .0000       10.000    
     3 'Normalizat'    .70502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0426       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=   3129.715     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      303 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.551        239.64        .95660E-04    .31601E-03
   2  Index         4.5534        7.2734        .10212E-01    .63240E-04
   3  Normalizat    .70518        .31289        .38077E-03   -.11223E-03
   4  Prefactor     1.0425        .15871        .16416E-03   -.42354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5505
  Index      = 4.55335
  Normalizat = 0.70518
  Prefactor  = 1.04248
 **********
 **   18 **HESSE 
 **********

 FCN=   3129.715     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.551        50.758        .38264E-05   -1.4870    
   2  Index         4.5534        2.8018        .40847E-03   -.89449E-01
   3  Normalizat    .70518        .31323        .15231E-04   -1.0369    
   4  Prefactor     1.0425        .15736        .32832E-04   -.91326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50371e-10
Minuit parameter uncertainties:
  1  50.8833
  2  2.9757
  3  0.314032
  4  0.157432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590386': 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) = 3129.71545665
delta logL = 0.260143772651

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.755e+01  5.088e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.553e+00  2.976e+00  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.042e+00  1.574e-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:  7.052e-01  3.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 99.671 73.344
Photon Index (Free Index): 4.55 +/- 2.98
Photon Flux (Free Index): 1.06e-07 +/- 1.19e-07
Energy Flux (Free Index): 1.47e-05 +/- 1.72e-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/590386/cmap_HighResolution_550886401_551145601_4FGL_J0638.6+7320_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.25e-02', comment='SUCCESS', energy_flux2='1.47e-05', dlogl='2.60e-01', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-08-25 14:03:43.098627', photon_index_error2='2.98', photon_index2='4.55', ts='0.44', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.81e-07', energy_flux_error2='1.72e-05', EG='0.75', time_epoch_completed='1629925423.1', return_code='0', job_id='590386', GAL2='1.04', EG2='0.71', return_code2='0', photon_flux_error2='1.19e-07', ts2='1.03', photon_index='3.03' WHERE bin_id='1202' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 14:03:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 590386: <4FGL_J0638.6+7320_daily_bin1202> in cluster <slac> Done

Job <4FGL_J0638.6+7320_daily_bin1202> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Aug 25 13:50:42 2021
Job was executed on host(s) <bullet0045>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:53:02 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:53:02 2021
Terminated at Wed Aug 25 14:03:43 2021
Results reported at Wed Aug 25 14:03:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin1202 99.6711 73.3438 550886401 551145601 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 :                                   558.30 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             289.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            781 sec.

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

