aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 46 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0007.7+4008_daily_bin1747
RA = 1.9275, Dec = 40.134
tmin = 692150401, tmax = 692409601
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='787670', job_status='RUN', time_executed='2022-12-11 00:06:03.608252', time_epoch_executed='1670745963.61' WHERE source_name='4FGL J0007.7+4008' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787670

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787670/ft1_4FGL_J0007.7+4008_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787670/ft1_4FGL_J0007.7+4008_daily_bin1747.fits outfile=/scratch/kocevski/787670/ft1_filteredMKT_4FGL_J0007.7+4008_daily_bin1747.fits ra=1.9275 dec=40.134 rad=12.0 tmin=692150401.0 tmax=692409601.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.77
user 3.80
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.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/787670/ft1_filteredMKT_4FGL_J0007.7+4008_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/787670/ft1_filtered_4FGL_J0007.7+4008_daily_bin1747.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.79
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 911

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787670/ft1_filtered_4FGL_J0007.7+4008_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/787670/ltcube_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.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/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.fits
.....................!
real 12.48
user 11.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787670/ft1_filtered_4FGL_J0007.7+4008_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/787670/ltcube_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.fits outfile=/scratch/kocevski/787670/expmap_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.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/787670/ltcube_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.fits
.....................!
real 191.88
user 185.33
sys 4.68

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 160 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0007.7+4008 @ 1.9275 40.134

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/787670/ft1_filtered_4FGL_J0007.7+4008_daily_bin1747.fits scfile=/scratch/kocevski/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.fits outfile=/scratch/kocevski/787670/cmap_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.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=1.9275 yref=40.134 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.23
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787670/ft1_filtered_4FGL_J0007.7+4008_daily_bin1747.fits scfile=/scratch/kocevski/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.fits outfile=/scratch/kocevski/787670/cmap_HighResolution_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.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=1.9275 yref=40.134 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.11
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/787670/ft1_filtered_4FGL_J0007.7+4008_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/787670/Model_4FGL_J0007.7+4008_daily_bin1747.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/787670/ft1_filtered_4FGL_J0007.7+4008_daily_bin1747.fits.....................!
real 111.08
user 100.27
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/787670/ft1_filtered_4FGL_J0007.7+4008_daily_bin1747.fits', '/scratch/kocevski/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.fits', expMap='/scratch/kocevski/787670/expmap_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.fits', expCube='/scratch/kocevski/787670/ltcube_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/787670/Model_4FGL_J0007.7+4008_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0007.7+4008'

4FGL J0007.7+4008
   Spectrum: PowerLaw
30     Prefactor:  1.216e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
31         Index:  2.159e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
32         Scale:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/787670/ft1_filtered_4FGL_J0007.7+4008_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/787670/ft2_4FGL_J0007.7+4008_daily_bin1747.fits
Exposure map: /scratch/kocevski/787670/expmap_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.fits
Exposure cube: /scratch/kocevski/787670/ltcube_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/787670/Model_4FGL_J0007.7+4008_daily_bin1747.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) = 9511.33130336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.008       1.0000          .0000       .10000E+07
     2 'norm      '    11.734       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.4777       1.0000          .0000       .10000E+07
     4 'norm      '    1.3975       1.0000          .0000       .10000E+07
     5 'Prefactor '    .20668E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.7338       1.0000          .0000       .10000E+07
     7 'Prefactor '    .53966E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .55152E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .45972       1.0000          .0000       .10000E+07
    10 'norm      '    8.5146       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.0100       1.0000          .0000       .10000E+07
    12 'Prefactor '    11.655       1.0000          .0000       .10000E+07
    13 'Prefactor '    22.250       1.0000          .0000       .10000E+07
    14 'Prefactor '    10.811       1.0000          .0000       .10000E+07
    15 'norm      '    .22856E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .74735E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    11.468       1.0000          .0000       .10000E+07
    18 'Prefactor '    23.554       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10826E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .98684E-05   1.0000          .0000       .10000E+07
    21 'Normalizat'    .65862       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9511.200     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1769 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.130        7.4652        .27653E-06   -.19367E-01
   2  norm          11.727        1.3639       -.80703E-07   -.83691E-02
   3  Prefactor     4.4633        4.6304       -.38982E-06    .41272E-02
   4  norm          1.3992        1.4280        .13819E-06   -.40523E-02
   5  Prefactor     .33029E-06    6.1376        .71983E-06** at limit **
   6  Prefactor     5.7386        2.9203       -.14572E-06    .57300E-02
   7  Prefactor     .70499E-08    22.523       -.44968E-05** at limit **
   8  Prefactor     .28494E-06    5.3380        .32214E-06** at limit **
   9  Prefactor     .16259E-06    112.83        .93408E-05** at limit **
  10  norm          8.5147        2.8881        .82516E-07   -.18931E-03
  11  Prefactor     6.1246        6.7836        .54493E-06   -.32766E-02
  12  Prefactor     11.749        8.7617        .98449E-07   -.28967E-02
  13  Prefactor     22.169        1.6827        .70983E-08    .31044E-01
  14  Prefactor     10.763        10.718       -.23978E-06    .89059E-03
  15  norm          .13878E-08    6.5546        .92840E-06** at limit **
  16  norm          .16653E-09    1.4601       -.54037E-06** at limit **
  17  Prefactor     12.795        52.049       -.71482E-05   -.15196E-02
  18  Prefactor     23.795        1.5753       -.25398E-07   -.47475E-03
  19  Prefactor     .46296E-07    11.657       -.77534E-06** at limit **
  20  Prefactor     .55511E-10    2.2160        .83080E-06** at limit **
  21  Normalizat    .65768        .20166       -.11044E-04    .19172E-03
  22  Prefactor     1.0053        .94770E-01    .20022E-05    .31254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.1305
  norm       = 11.7268
  Prefactor  = 4.46334
  norm       = 1.39918
  Prefactor  = 3.30291e-07
  Prefactor  = 5.7386
  Prefactor  = 7.04992e-09
  Prefactor  = 2.84939e-07
  Prefactor  = 1.62592e-07
  norm       = 8.51465
  Prefactor  = 6.12463
  Prefactor  = 11.7488
  Prefactor  = 22.1686
  Prefactor  = 10.7629
  norm       = 1.38778e-09
  norm       = 1.66533e-10
  Prefactor  = 12.7953
  Prefactor  = 23.7947
  Prefactor  = 4.62963e-08
  Prefactor  = 5.55112e-11
  Normalizat = 0.657676
  Prefactor  = 1.00532
 **********
 **   18 **HESSE 
 **********

 FCN=   9511.200     FROM HESSE     STATUS=OK           390 CALLS     2159 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.130        25.018        .14907E-03   -1.5574    
   2  norm          11.727        13.799        .29219E-03   -1.5639    
   3  Prefactor     4.4633        4.7704        .47559E-03   -1.5666    
   4  norm          1.3992        1.4467        .91793E-03   -1.5684    
   5  Prefactor     .33029E-06    11.025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7386        2.9424        .41923E-03   -1.5660    
   7  Prefactor     .70499E-08    22.417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .28494E-06    10.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16259E-06    112.80        .82870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.5147        2.8918        .34330E-03   -1.5650    
  11  Prefactor     6.1246        6.8293        .40934E-03   -1.5658    
  12  Prefactor     11.749        8.9402        .29319E-03   -1.5639    
  13  Prefactor     22.169        16.002        .21205E-03   -1.5614    
  14  Prefactor     10.763        10.772        .30447E-03   -1.5642    
  15  norm          .13878E-08    6.6084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .16653E-09    1.4510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.795        52.181        .29558E-03   -1.5636    
  18  Prefactor     23.795        23.094        .20610E-03   -1.5610    
  19  Prefactor     .46296E-07    12.359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    2.2140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .65768        .18782        .89147E-01   -1.0559    
  22  Prefactor     1.0053        .84218E-01    .44129E-01   -.92552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02993e-07
Minuit parameter uncertainties:
  1  25.018
  2  13.7993
  3  4.77037
  4  1.44666
  5  0.00381651
  6  2.94243
  7  0.000795464
  8  0.00339812
  9  0.00856481
  10  2.89176
  11  6.8293
  12  8.94019
  13  16.0018
  14  10.7725
  15  0.000189964
  16  2.96113e-05
  17  51.6794
  18  23.0943
  19  0.00151279
  20  2.60849e-05
  21  0.187999
  22  0.0842294
Done.

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

Extracting fit parameters...

4FGL J0007.7+4008
   Spectrum: PowerLaw
30     Prefactor:  4.463e+00  4.770e+00  0.000e+00  1.000e+06 ( 1.000e-13)
31         Index:  2.159e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
32         Scale:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.005e+00  8.423e-02  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  6.577e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 1.927 40.134
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.14e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 1.11e-05

TS (Fixed Index): 1.61
Ra Dec: 1.927 40.134
Photon Flux Upper Limit: 7.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/787670/likelihoodResults_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.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) = 9511.16025205
delta logL = 0.0393516552431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9511.15842925
delta logL = 0.0411744530284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3781       1.0000          .0000       .10000E+07
     2 'Index     '    1.9715       1.0000          .0000       10.000    
     3 'Normalizat'    .66161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9511.158     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3781        206.47        .43310E-03    .61641E-02
   2  Index         1.9725        5.7921        .17346        .10560E-03
   3  Normalizat    .66164        .85799E-01    .88899E-01    .52428E-04
   4  Prefactor     1.0044        .33059E-01    .44305E-01    .54938E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.3781
  Index      = 1.97252
  Normalizat = 0.661638
  Prefactor  = 1.00444
 **********
 **   18 **HESSE 
 **********

 FCN=   9511.158     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3781        6.3747        .17324E-04   -1.5662    
   2  Index         1.9725        .66020        .10585E-01   -.65039    
   3  Normalizat    .66164        .19408        .39380E-03   -1.0543    
   4  Prefactor     1.0044        .93526E-01    .15562E-03   -.92582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30012e-09
Minuit parameter uncertainties:
  1  6.37475
  2  0.663272
  3  0.194281
  4  0.0935414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787670': 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) = 9511.15842772
delta logL = 0.0411759866711

Extracting fit parameters...

4FGL J0007.7+4008
   Spectrum: PowerLaw
30     Prefactor:  5.378e+00  6.375e+00  0.000e+00  1.000e+06 ( 1.000e-13)
31         Index:  1.973e+00  6.633e-01  0.000e+00  1.000e+01 (-1.000e+00)
32         Scale:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.004e+00  9.354e-02  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  6.616e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 1.927 40.134
Photon Index (Free Index): 1.97 +/- 0.66
Photon Flux (Free Index): 1.78e-08 +/- 2.28e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.88e-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/787670/cmap_HighResolution_692150401_692409601_4FGL_J0007.7+4008_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-03', comment='SUCCESS', photon_flux='2.14e-08', energy_flux2='1.32e-05', photon_flux_error='2.29e-08', dlogl='4.12e-02', energy_flux='1.04e-05', photon_flux2='1.78e-08', job_status='DONE', time_completed='2022-12-11 00:18:35.760432', photon_index_error2='0.66', photon_index2='1.97', ts='1.61', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.74e-08', energy_flux_error2='1.88e-05', EG='0.66', time_epoch_completed='1670746715.76', return_code='0', job_id='787670', GAL2='1.00', EG2='0.66', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='2.28e-08', ts2='1.70', photon_index='2.16' WHERE bin_id='1747' AND source_name='4FGL J0007.7+4008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 00:18:35 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 787670: <4FGL_J0007.7+4008_daily_bin1747> in cluster <slac> Done

Job <4FGL_J0007.7+4008_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 00:05:00 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:05:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:05:00 2022
Terminated at Sun Dec 11 00:18:36 2022
Results reported at Sun Dec 11 00:18:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0007.7+4008_daily_bin1747 1.9275 40.134 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0007.7+4008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            816 sec.

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

