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


Performing analysis on: 4FGL_J0007.7+4008_daily_bin1719
RA = 1.9275, Dec = 40.134
tmin = 684892801, tmax = 685152001
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='643945', job_status='RUN', time_executed='2022-09-18 00:06:01.392249', time_epoch_executed='1663484761.39' WHERE source_name='4FGL J0007.7+4008' and cadence='daily' and bin_id='1719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643945

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643945/ft1_4FGL_J0007.7+4008_daily_bin1719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643945/ft2_4FGL_J0007.7+4008_daily_bin1719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643945/ft1_4FGL_J0007.7+4008_daily_bin1719.fits outfile=/scratch/kocevski/643945/ft1_filteredMKT_4FGL_J0007.7+4008_daily_bin1719.fits ra=1.9275 dec=40.134 rad=12.0 tmin=684892801.0 tmax=685152001.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.18
user 2.96
sys 0.20

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

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

Number of photons that the gtmktime cut: 1319

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643945/ft1_filtered_4FGL_J0007.7+4008_daily_bin1719.fits" evtable="EVENTS" scfile=/scratch/kocevski/643945/ft2_4FGL_J0007.7+4008_daily_bin1719.fits sctable="SC_DATA" outfile=/scratch/kocevski/643945/ltcube_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.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/643945/ft2_4FGL_J0007.7+4008_daily_bin1719.fits
.....................!
real 19.31
user 18.88
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643945/ft1_filtered_4FGL_J0007.7+4008_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/643945/ft2_4FGL_J0007.7+4008_daily_bin1719.fits sctable="SC_DATA" expcube=/scratch/kocevski/643945/ltcube_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.fits outfile=/scratch/kocevski/643945/expmap_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.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/643945/ltcube_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.fits
.....................!
real 191.60
user 186.58
sys 4.58

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/643945/ft1_filtered_4FGL_J0007.7+4008_daily_bin1719.fits scfile=/scratch/kocevski/643945/ft2_4FGL_J0007.7+4008_daily_bin1719.fits outfile=/scratch/kocevski/643945/cmap_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.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 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643945/ft1_filtered_4FGL_J0007.7+4008_daily_bin1719.fits scfile=/scratch/kocevski/643945/ft2_4FGL_J0007.7+4008_daily_bin1719.fits outfile=/scratch/kocevski/643945/cmap_HighResolution_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.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 0.85
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/643945/ft1_filtered_4FGL_J0007.7+4008_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/643945/ft2_4FGL_J0007.7+4008_daily_bin1719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/643945/Model_4FGL_J0007.7+4008_daily_bin1719.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/643945/ft1_filtered_4FGL_J0007.7+4008_daily_bin1719.fits.....................!
real 147.45
user 145.07
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/643945/ft1_filtered_4FGL_J0007.7+4008_daily_bin1719.fits', '/scratch/kocevski/643945/ft2_4FGL_J0007.7+4008_daily_bin1719.fits', expMap='/scratch/kocevski/643945/expmap_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.fits', expCube='/scratch/kocevski/643945/ltcube_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/643945/Model_4FGL_J0007.7+4008_daily_bin1719.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/643945/ft1_filtered_4FGL_J0007.7+4008_daily_bin1719.fits
Spacecraft file(s): /scratch/kocevski/643945/ft2_4FGL_J0007.7+4008_daily_bin1719.fits
Exposure map: /scratch/kocevski/643945/expmap_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.fits
Exposure cube: /scratch/kocevski/643945/ltcube_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/643945/Model_4FGL_J0007.7+4008_daily_bin1719.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 14205.8319188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12434E-07   1.0000          .0000       .10000E+07
     2 'norm      '    1.7470       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.1511       1.0000          .0000       .10000E+07
     4 'norm      '    1.1285       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24882       1.0000          .0000       .10000E+07
     6 'Prefactor '    .19921E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .40593E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    17.714       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20488E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .25057       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19762E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.5442       1.0000          .0000       .10000E+07
    13 'Prefactor '    40.077       1.0000          .0000       .10000E+07
    14 'Prefactor '    10.842       1.0000          .0000       .10000E+07
    15 'norm      '    7.2723       1.0000          .0000       .10000E+07
    16 'norm      '    .31857       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44709E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .16131E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .37745E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .87780E-06   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1680       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87187       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=   14204.91     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1479 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    5.2830       -.93011E-07** at limit **
   2  norm          1.7589        6.8805        .41553E-06    .14764E-02
   3  Prefactor     6.1490        4.7381       -.57462E-07   -.10898E-02
   4  norm          1.1297        1.3004       -.67974E-07   -.14437E-02
   5  Prefactor     .32166        24.583       -.11317E-05   -.22588E-02
   6  Prefactor     .33751E-07    10.205        .30056E-08** at limit **
   7  Prefactor     .25180E-06    14.915        .12522E-05** at limit **
   8  Prefactor     17.899        1.4666        .42748E-07   -.30891E-03
   9  Prefactor     .24425E-08    31.168       -.12257E-06** at limit **
  10  norm          .25175        1.3254        .57352E-07   -.45868E-03
  11  Prefactor     .55511E-10    1.5143       -.21169E-06** at limit **
  12  Prefactor     3.4945        7.0218        .74253E-06    .20810E-02
  13  Prefactor     39.928        2.0071        .63343E-07   -.60369E-03
  14  Prefactor     10.980        8.8976        .35484E-06    .45422E-02
  15  norm          7.2603        6.3209        .69070E-07   -.84197E-03
  16  norm          .31454        1.1990        .16251E-06    .74426E-03
  17  Prefactor     .59880E-06    6.3158       -.15622E-06** at limit **
  18  Prefactor     .57176E-08    36.202        .14291E-05** at limit **
  19  Prefactor     .15787E-06    10.815       -.80728E-06** at limit **
  20  Prefactor     .11102E-09    2.3766       -.84189E-07** at limit **
  21  Normalizat    1.1672        .18118       -.63956E-05    .38315E-04
  22  Prefactor     .87201        .79347E-01   -.67984E-06    .94720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-10
  norm       = 1.75889
  Prefactor  = 6.149
  norm       = 1.12971
  Prefactor  = 0.321663
  Prefactor  = 3.37508e-08
  Prefactor  = 2.51799e-07
  Prefactor  = 17.8987
  Prefactor  = 2.44249e-09
  norm       = 0.251751
  Prefactor  = 5.55112e-11
  Prefactor  = 3.49446
  Prefactor  = 39.9275
  Prefactor  = 10.9797
  norm       = 7.26033
  norm       = 0.314543
  Prefactor  = 5.98799e-07
  Prefactor  = 5.71765e-09
  Prefactor  = 1.57874e-07
  Prefactor  = 1.11022e-10
  Normalizat = 1.16722
  Prefactor  = 0.872012
 **********
 **   18 **HESSE 
 **********

 FCN=   14204.91     FROM HESSE     STATUS=OK           402 CALLS     1881 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-09    5.3013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7589        20.312        .79311E-03   -1.5681    
   3  Prefactor     6.1490        4.8973        .40455E-03   -1.5658    
   4  norm          1.1297        1.3268        .11004E-02   -1.5687    
   5  Prefactor     .32166        3.8614        .80100E-02   -1.5697    
   6  Prefactor     .33751E-07    1.3391        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .25180E-06    18.448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.899        18.478        .23769E-03   -1.5623    
   9  Prefactor     .24425E-08    31.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .25175        .84746        .36952E-02   -1.5698    
  11  Prefactor     .55511E-10    1.5160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4945        7.1820        .53666E-03   -1.5671    
  13  Prefactor     39.928        19.232        .15798E-03   -1.5582    
  14  Prefactor     10.980        9.0080        .30402E-03   -1.5642    
  15  norm          7.2603        6.3190        .37171E-03   -1.5654    
  16  norm          .31454        1.2208        .99601E-03   -1.5697    
  17  Prefactor     .59880E-06    14.846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .57176E-08    35.447        .17306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .15787E-06    13.031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11102E-09    2.3787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1672        .16377        .74560E-01   -.87622    
  22  Prefactor     .87201        .67126E-01    .44646E-01   -.97126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14448e-08
Minuit parameter uncertainties:
  1  0.000111125
  2  11.9544
  3  4.89728
  4  1.32677
  5  2.22897
  6  0.000425128
  7  0.00431039
  8  18.4785
  9  0.00055511
  10  0.847461
  11  2.17879e-05
  12  7.18204
  13  19.232
  14  9.00802
  15  6.31905
  16  1.22078
  17  0.00596336
  18  0.000898363
  19  0.00286875
  20  2.93746e-05
  21  0.163844
  22  0.0671318
Done.

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

Extracting fit parameters...

4FGL J0007.7+4008
   Spectrum: PowerLaw
30     Prefactor:  6.149e+00  4.897e+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:  8.720e-01  6.713e-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:  1.167e+00  1.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.51
Ra Dec: 1.927 40.134
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.95e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/643945/likelihoodResults_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.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) = 14204.9017662
delta logL = 0.00684268051191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14204.8979304
delta logL = 0.0106785007156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7029       1.0000          .0000       .10000E+07
     2 'Index     '    2.2596       1.0000          .0000       10.000    
     3 'Normalizat'    1.1616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87330       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14204.90     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      278 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7023        6.2093        .84076E-04   -.65689E-03
   2  Index         2.2598        .78753        .10137E-01    .36298E-04
   3  Normalizat    1.1616        .18356        .33067E-03    .17466E-04
   4  Prefactor     .87330        .78635E-01    .16438E-03   -.49795E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.70235
  Index      = 2.25979
  Normalizat = 1.1616
  Prefactor  = 0.873304
 **********
 **   18 **HESSE 
 **********

 FCN=   14204.90     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7023        5.4536        .33630E-05   -1.5660    
   2  Index         2.2598        .69072        .40546E-03   -.58002    
   3  Normalizat    1.1616        .18236        .13227E-04   -.87798    
   4  Prefactor     .87330        .78470E-01    .65754E-05   -.97080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28053e-12
Minuit parameter uncertainties:
  1  5.45361
  2  0.693898
  3  0.182458
  4  0.0784803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643945': 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) = 14204.8979304
delta logL = 0.0106785215685

Extracting fit parameters...

4FGL J0007.7+4008
   Spectrum: PowerLaw
30     Prefactor:  5.702e+00  5.454e+00  0.000e+00  1.000e+06 ( 1.000e-13)
31         Index:  2.260e+00  6.939e-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:  8.733e-01  7.848e-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:  1.162e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.53
Ra Dec: 1.927 40.134
Photon Index (Free Index): 2.26 +/- 0.69
Photon Flux (Free Index): 3.39e-08 +/- 3.91e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.09e-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/643945/cmap_HighResolution_684892801_685152001_4FGL_J0007.7+4008_daily_bin1719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', comment='SUCCESS', photon_flux='2.95e-08', energy_flux2='1.37e-05', photon_flux_error='2.35e-08', dlogl='1.07e-02', energy_flux='1.44e-05', photon_flux2='3.39e-08', job_status='DONE', time_completed='2022-09-18 00:21:01.381610', photon_index_error2='0.69', photon_index2='2.26', ts='3.51', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.11e-08', energy_flux_error2='1.09e-05', EG='1.17', time_epoch_completed='1663485661.38', return_code='0', job_id='643945', GAL2='0.87', EG2='1.16', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.91e-08', ts2='3.53', photon_index='2.16' WHERE bin_id='1719' AND source_name='4FGL J0007.7+4008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 18 00:21:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 643945: <4FGL_J0007.7+4008_daily_bin1719> in cluster <slac> Done

Job <4FGL_J0007.7+4008_daily_bin1719> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 18 00:04:35 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 18 00:04:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 18 00:04:36 2022
Terminated at Sun Sep 18 00:21:02 2022
Results reported at Sun Sep 18 00:21:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0007.7+4008_daily_bin1719 1.9275 40.134 684892801 685152001 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 :                                   897.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

