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


Performing analysis on: 4FGL_J0007.7+4008_daily_bin1674
RA = 1.9275, Dec = 40.134
tmin = 673228801, tmax = 673488001
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='668125', job_status='RUN', time_executed='2022-05-06 00:08:56.931600', time_epoch_executed='1651820936.93' WHERE source_name='4FGL J0007.7+4008' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668125/ft1_4FGL_J0007.7+4008_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668125/ft2_4FGL_J0007.7+4008_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668125/ft1_4FGL_J0007.7+4008_daily_bin1674.fits outfile=/scratch/kocevski/668125/ft1_filteredMKT_4FGL_J0007.7+4008_daily_bin1674.fits ra=1.9275 dec=40.134 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.84
user 2.61
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668125/ft2_4FGL_J0007.7+4008_daily_bin1674.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/668125/ft1_filteredMKT_4FGL_J0007.7+4008_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/668125/ft1_filtered_4FGL_J0007.7+4008_daily_bin1674.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.35
sys 0.14

Number of photons that the gtmktime cut: 611

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668125/ft1_filtered_4FGL_J0007.7+4008_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/668125/ft2_4FGL_J0007.7+4008_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/668125/ltcube_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.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/668125/ft2_4FGL_J0007.7+4008_daily_bin1674.fits
.....................!
real 16.86
user 16.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668125/ft1_filtered_4FGL_J0007.7+4008_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/668125/ft2_4FGL_J0007.7+4008_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/668125/ltcube_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.fits outfile=/scratch/kocevski/668125/expmap_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.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/668125/ltcube_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.fits
.....................!
real 192.65
user 187.57
sys 4.31

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/668125/ft1_filtered_4FGL_J0007.7+4008_daily_bin1674.fits scfile=/scratch/kocevski/668125/ft2_4FGL_J0007.7+4008_daily_bin1674.fits outfile=/scratch/kocevski/668125/cmap_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.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.56
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668125/ft1_filtered_4FGL_J0007.7+4008_daily_bin1674.fits scfile=/scratch/kocevski/668125/ft2_4FGL_J0007.7+4008_daily_bin1674.fits outfile=/scratch/kocevski/668125/cmap_HighResolution_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/668125/ft1_filtered_4FGL_J0007.7+4008_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/668125/ft2_4FGL_J0007.7+4008_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/668125/Model_4FGL_J0007.7+4008_daily_bin1674.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/668125/ft1_filtered_4FGL_J0007.7+4008_daily_bin1674.fits.....................!
real 74.64
user 71.82
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668125/ft1_filtered_4FGL_J0007.7+4008_daily_bin1674.fits', '/scratch/kocevski/668125/ft2_4FGL_J0007.7+4008_daily_bin1674.fits', expMap='/scratch/kocevski/668125/expmap_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.fits', expCube='/scratch/kocevski/668125/ltcube_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668125/Model_4FGL_J0007.7+4008_daily_bin1674.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  1.000e-04  1.000e+04 ( 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/668125/ft1_filtered_4FGL_J0007.7+4008_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/668125/ft2_4FGL_J0007.7+4008_daily_bin1674.fits
Exposure map: /scratch/kocevski/668125/expmap_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.fits
Exposure cube: /scratch/kocevski/668125/ltcube_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668125/Model_4FGL_J0007.7+4008_daily_bin1674.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) = 6559.21521865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12864E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.392       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17040E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.531       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14439E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51511E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.015       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3827       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1753       1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.634       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.5337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6475       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.073       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .42570       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1033       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6559.211     FROM MIGRAD    STATUS=CONVERGED    965 CALLS     3558 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.280        .18142E-02** at limit **
   2  Prefactor     .10000E-03    51.028        .18142E-02** at limit **
   3  norm          10.391        17.723        .12429E-03    .50491E-04
   4  Prefactor     .10010E-03    59.561        .32520E-02** at limit **
   5  norm          .10000E-03    1.2699        .13672E-02** at limit **
   6  Prefactor     10.526        10.266        .12347E-03    .94840E-05
   7  Prefactor     .10000E-03    1.5788        .98874E-03** at limit **
   8  Prefactor     .10000E-03    76.587        .36285E-02** at limit **
   9  Prefactor     .10012E-03    37.026        .13108    ** at limit **
  10  Prefactor     42.010        37.192        .61844E-04    .14522E-04
  11  norm          3.3822        3.0973        .13265E-03    .20997E-04
  12  Prefactor     .10000E-03    5.5774        .18142E-02** at limit **
  13  Prefactor     2.1500        44.188        .13958E-02    .74199E-05
  14  Prefactor     59.629        53.722        .51955E-04    .80962E-05
  15  Prefactor     .10000E-03    4.2792        .16304E-02** at limit **
  16  norm          .10000E-03    5.8756        .18142E-02** at limit **
  17  norm          5.5344        2.8467        .94148E-04   -.97569E-04
  18  Prefactor     .10000E-03    39.068        .18142E-02** at limit **
  19  Prefactor     8.6833        60.491        .13631E-03    .79232E-05
  20  Prefactor     .10000E-03    12.946        .18142E-02** at limit **
  21  Prefactor     .10000E-03    25.491        .18142E-02** at limit **
  22  Prefactor     17.068        10.209        .96932E-04    .11013E-03
  23  Normalizat    .42591        .26549        .49743E-03    .10769E-03
  24  Prefactor     1.1032        .11321        .14530E-03    .32084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.391
  Prefactor  = 0.000100103
  norm       = 0.0001
  Prefactor  = 10.5255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100122
  Prefactor  = 42.0105
  norm       = 3.38217
  Prefactor  = 0.0001
  Prefactor  = 2.14997
  Prefactor  = 59.6292
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.53437
  Prefactor  = 0.0001
  Prefactor  = 8.68325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0676
  Normalizat = 0.425906
  Prefactor  = 1.10321
 **********
 **   18 **HESSE 
 **********

 FCN=   6559.211     FROM HESSE     STATUS=OK           385 CALLS     3943 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.391        17.713        .49716E-05   -1.5063    
   4  Prefactor     .10010E-03    61.154        .13008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2719        .27343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.526        10.264        .49387E-05   -1.5059    
   7  Prefactor     .10000E-03    1.5790        .19775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    77.162        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10012E-03    35.997        .13369       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.010        37.191        .12369E-04   -1.4411    
  11  norm          3.3822        3.0973        .53061E-05   -1.5340    
  12  Prefactor     .10000E-03    5.5789        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1500        44.005        .55833E-04   -1.5415    
  14  Prefactor     59.629        53.638        .10391E-04   -1.4162    
  15  Prefactor     .10000E-03    4.2801        .32607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.8765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.5344        2.8466        .37659E-05   -1.5237    
  18  Prefactor     .10000E-03    39.097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.6833        60.524        .54525E-05   -1.5119    
  20  Prefactor     .10000E-03    12.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.068        10.203        .38773E-05   -1.4881    
  23  Normalizat    .42591        .26529        .19897E-04   -1.1598    
  24  Prefactor     1.1032        .11318        .29059E-04   -.89364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75034e-09
Minuit parameter uncertainties:
  1  7.26604e-06
  2  0.00014391
  3  17.722
  4  0.00502266
  5  5.62912e-06
  6  10.2653
  7  2.4846e-06
  8  0.000154289
  9  0.00418932
  10  37.2116
  11  3.09741
  12  1.32893e-06
  13  19.4694
  14  53.6818
  15  5.30145e-06
  16  2.28855e-09
  17  2.84667
  18  8.41362e-05
  19  45.9158
  20  1.20278e-05
  21  4.61848e-05
  22  10.2037
  23  0.266079
  24  0.113202
Done.

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

Extracting fit parameters...

4FGL J0007.7+4008
   Spectrum: PowerLaw
30     Prefactor:  1.001e-04  5.023e-03  1.000e-04  1.000e+04 ( 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.103e+00  1.132e-01  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:  4.259e-01  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/668125/likelihoodResults_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.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) = 6559.21105305
delta logL = -7.86333039287e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6559.21105235
delta logL = -7.79368547228e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95078E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1582       1.0000          .0000       10.000    
     3 'Normalizat'    .42563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1033       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=   6559.211     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      228 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .89603E-01    .90838E-01** at limit **
   2  Index         2.0560        5.8110        .50000        .33587E-05
   3  Normalizat    .42590        .73252E-03    .11223       -.30142E-03
   4  Prefactor     1.1032        .33592E-03    .37462E-01   -.54337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05596
  Normalizat = 0.425899
  Prefactor  = 1.10321
 **********
 **   18 **HESSE 
 **********

 FCN=   6559.211     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      263 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.302        .36253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0560        6.3518        .50000       -.62958    
   3  Normalizat    .42590        .48928E-02    .49743E-03   -1.1598    
   4  Prefactor     1.1032        .22511E-02    .14530E-03   -.89364    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.6539e-09
Minuit parameter uncertainties:
  1  0.000171475
  2  60.7428
  3  0.00489276
  4  0.00225109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668125': 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) = 6559.2109742
delta logL = 2.17544766201e-07

Extracting fit parameters...

4FGL J0007.7+4008
   Spectrum: PowerLaw
30     Prefactor:  1.000e-04  1.715e-04  1.000e-04  1.000e+04 ( 1.000e-13)
31         Index:  2.056e+00  6.074e+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.103e+00  2.251e-03  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:  4.259e-01  4.893e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 1.927 40.134

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/668125/cmap_HighResolution_673228801_673488001_4FGL_J0007.7+4008_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-03', job_status='DONE', photon_flux_upper_limit='9.36e-08', time_completed='2022-05-06 00:21:42.817087', job_id='668125', GAL2='1.10', fit_tolerance='1e-08', EG2='0.43', EG='0.43', time_epoch_completed='1651821702.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1674' AND source_name='4FGL J0007.7+4008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 00:21:42 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 668124: <4FGL_J0007.7+4008_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0007.7+4008_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:05:22 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 00:05:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 00:05:52 2022
Terminated at Fri May  6 00:20:01 2022
Results reported at Fri May  6 00:20:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0007.7+4008_daily_bin1674 1.9275 40.134 673228801 673488001 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 :                                   762.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            879 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 668125: <4FGL_J0007.7+4008_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0007.7+4008_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:05:22 2022
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 00:05:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 00:05:52 2022
Terminated at Fri May  6 00:21:43 2022
Results reported at Fri May  6 00:21:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0007.7+4008_daily_bin1674 1.9275 40.134 673228801 673488001 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 :                                   763.45 sec.
    Max Memory :                                 1145 MB
    Average Memory :                             284.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            981 sec.

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

