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


Performing analysis on: 4FGL_J0638.6+7320_daily_bin451
RA = 99.6711, Dec = 73.3438
tmin = 356227201, tmax = 356486401
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='583898', job_status='RUN', time_executed='2021-08-25 13:32:16.488407', time_epoch_executed='1629923536.49' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583898

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583898/ft1_4FGL_J0638.6+7320_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/583898/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/583898/ft2_4FGL_J0638.6+7320_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583898/ft1_4FGL_J0638.6+7320_daily_bin451.fits outfile=/scratch/kocevski/583898/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin451.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=356227201.0 tmax=356486401.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 6.61
user 2.89
sys 3.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583898/ft1_filtered_4FGL_J0638.6+7320_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/583898/ft2_4FGL_J0638.6+7320_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/583898/ltcube_356227201_356486401_4FGL_J0638.6+7320_daily_bin451.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/583898/ft2_4FGL_J0638.6+7320_daily_bin451.fits
.....................!
real 7.15
user 2.90
sys 4.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583898/ft1_filtered_4FGL_J0638.6+7320_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/583898/ft2_4FGL_J0638.6+7320_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/583898/ltcube_356227201_356486401_4FGL_J0638.6+7320_daily_bin451.fits outfile=/scratch/kocevski/583898/expmap_356227201_356486401_4FGL_J0638.6+7320_daily_bin451.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/583898/ltcube_356227201_356486401_4FGL_J0638.6+7320_daily_bin451.fits
.....................!
real 193.78
user 184.80
sys 8.57

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/583898/ft1_filtered_4FGL_J0638.6+7320_daily_bin451.fits scfile=/scratch/kocevski/583898/ft2_4FGL_J0638.6+7320_daily_bin451.fits outfile=/scratch/kocevski/583898/cmap_356227201_356486401_4FGL_J0638.6+7320_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 3.96
user 0.37
sys 3.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583898/ft1_filtered_4FGL_J0638.6+7320_daily_bin451.fits scfile=/scratch/kocevski/583898/ft2_4FGL_J0638.6+7320_daily_bin451.fits outfile=/scratch/kocevski/583898/cmap_HighResolution_356227201_356486401_4FGL_J0638.6+7320_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 3.99
user 0.38
sys 3.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.144       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.781       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8824       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    256.51       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1816       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71955       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=   1881.363     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2157 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6766       -.29310E-06** at limit **
   2  Prefactor     49.571        28.855       -.75430E-06    .23994E-04
   3  Prefactor     .10000E-03    79.944       -.46003E-04** at limit **
   4  Prefactor     54.142        48.859       -.17303E-05    .47728E-05
   5  norm          .10000E-03    273.72       -.24056E-03** at limit **
   6  Prefactor     .10000E-03    190.56        .42338E-04** at limit **
   7  Prefactor     .10000E-03    153.17        .15108E-03** at limit **
   8  Prefactor     27.719        58.622       -.64399E-04   -.19934E-05
   9  Prefactor     .10000E-03    22.732       -.70575E-06** at limit **
  10  norm          .10000E-03    20.507        .39116E-05** at limit **
  11  norm          2.8823        1.5106        .27714E-06    .31450E-03
  12  Prefactor     .10000E-03    274.55       -.24366E-03** at limit **
  13  Prefactor     .10000E-03    30.004       -.10283E-04** at limit **
  14  norm          .10000E-03    22.353       -.71454E-05** at limit **
  15  Prefactor     .10000E-03    28.724        .16994E-04** at limit **
  16  Prefactor     256.49        115.90       -.78131E-05   -.22125E-04
  17  Prefactor     .10000E-03    4.3220       -.19244E-06** at limit **
  18  norm          10.292        5.8450       -.92043E-06   -.13239E-02
  19  Prefactor     .10000E-03    164.35        .12339E-03** at limit **
  20  Normalizat    1.1816        .38398        .87041E-05   -.23585E-03
  21  Prefactor     .71958        .18410        .30090E-05   -.88826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.5714
  Prefactor  = 0.0001
  Prefactor  = 54.1423
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 27.7187
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.88234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 256.493
  Prefactor  = 0.0001
  norm       = 10.2923
  Prefactor  = 0.000100002
  Normalizat = 1.18161
  Prefactor  = 0.719577
 **********
 **   18 **HESSE 
 **********

 FCN=   1881.363     FROM HESSE     STATUS=OK           299 CALLS     2456 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6855        .12480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.571        28.892        .56955E-04   -1.4299    
   3  Prefactor     .10000E-03    80.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     54.142        48.924        .54511E-04   -1.4235    
   5  norm          .10000E-03    273.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    192.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    153.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.719        58.703        .76009E-04   -1.4655    
   9  Prefactor     .10000E-03    22.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    20.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8823        1.5142        .37263E-04   -1.5368    
  12  Prefactor     .10000E-03    274.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    22.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     256.49        117.14        .12651E-03   -1.2491    
  17  Prefactor     .10000E-03    4.3240        .88069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.292        5.8636        .75786E-04   -1.5066    
  19  Prefactor     .10000E-03    165.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1816        .44028        .30343E-03   -.87173    
  21  Prefactor     .71958        .21099        .18773E-03   -1.0276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12005e-09
Minuit parameter uncertainties:
  1  2.10897e-05
  2  28.8999
  3  0.000146428
  4  48.9601
  5  5.51474e-06
  6  0.000568866
  7  0.00104801
  8  58.8254
  9  0.000255488
  10  2.01212e-06
  11  1.51424
  12  0.000145573
  13  5.29287e-05
  14  9.30318e-06
  15  1.78729e-05
  16  117.247
  17  5.92084e-06
  18  5.86389
  19  0.00128056
  20  0.441664
  21  0.211223
Done.

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

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.555e-04  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.196e-01  2.112e-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.182e+00  4.417e-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: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583898/likelihoodResults_356227201_356486401_4FGL_J0638.6+7320_daily_bin451.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) = 1881.36289972
delta logL = -0.000208159064186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1881.36269424
delta logL = -2.67817335953e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.1535       1.0000          .0000       10.000    
     3 'Normalizat'    1.1816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71957       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=   1881.363     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      294 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    484.38        .13800E-01** at limit **
   2  Index         2.3250        6.1381        .50000        .27916E-07
   3  Normalizat    1.1816        .43350E-01    .30342E-03    .34920E-04
   4  Prefactor     .71957        .21581E-01    .18773E-03    .60204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32498
  Normalizat = 1.18162
  Prefactor  = 0.719573
 **********
 **   18 **HESSE 
 **********

 FCN=   1881.363     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      323 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6174.2        .22677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3250        7.2320        .50000       -.56451    
   3  Normalizat    1.1816        .10877        .12137E-04   -.87173    
   4  Prefactor     .71957        .54154E-01    .37546E-04   -1.0276    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.76491e-10
Minuit parameter uncertainties:
  1  7.39808e-05
  2  2729.87
  3  0.108788
  4  0.0541577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583898': 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) = 1881.36269111
delta logL = 4.54504515801e-07

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  7.398e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.325e+00  2.730e+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.196e-01  5.416e-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.182e+00  1.088e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/583898/cmap_HighResolution_356227201_356486401_4FGL_J0638.6+7320_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-08-25 13:40:22.967768', job_id='583898', GAL2='0.72', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1629924022.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='4.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.03' WHERE bin_id='451' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:40:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 583898: <4FGL_J0638.6+7320_daily_bin451> in cluster <slac> Done

Job <4FGL_J0638.6+7320_daily_bin451> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Aug 25 13:30:41 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:30:42 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:30:42 2021
Terminated at Wed Aug 25 13:40:24 2021
Results reported at Wed Aug 25 13:40:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin451 99.6711 73.3438 356227201 356486401 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 :                                   533.30 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             292.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            583 sec.

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

