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


Performing analysis on: 4FGL_J2007.2+6607_daily_bin689
RA = 301.815, Dec = 66.1178
tmin = 417916801, tmax = 418176001
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='622001', job_status='RUN', time_executed='2021-09-24 11:58:44.355286', time_epoch_executed='1632509924.36' WHERE source_name='4FGL J2007.2+6607' and cadence='daily' and bin_id='689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622001/ft1_4FGL_J2007.2+6607_daily_bin689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622001/ft2_4FGL_J2007.2+6607_daily_bin689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622001/ft1_4FGL_J2007.2+6607_daily_bin689.fits outfile=/scratch/kocevski/622001/ft1_filteredMKT_4FGL_J2007.2+6607_daily_bin689.fits ra=301.815 dec=66.1178 rad=12.0 tmin=417916801.0 tmax=418176001.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 7.38
user 7.03
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/622001/ft2_4FGL_J2007.2+6607_daily_bin689.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/622001/ft2_4FGL_J2007.2+6607_daily_bin689.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/622001/ft1_filteredMKT_4FGL_J2007.2+6607_daily_bin689.fits evtable="EVENTS" outfile="/scratch/kocevski/622001/ft1_filtered_4FGL_J2007.2+6607_daily_bin689.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622001/ft1_filtered_4FGL_J2007.2+6607_daily_bin689.fits" evtable="EVENTS" scfile=/scratch/kocevski/622001/ft2_4FGL_J2007.2+6607_daily_bin689.fits sctable="SC_DATA" outfile=/scratch/kocevski/622001/ltcube_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.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/622001/ft2_4FGL_J2007.2+6607_daily_bin689.fits
.....................!
real 15.54
user 15.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622001/ft1_filtered_4FGL_J2007.2+6607_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/622001/ft2_4FGL_J2007.2+6607_daily_bin689.fits sctable="SC_DATA" expcube=/scratch/kocevski/622001/ltcube_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.fits outfile=/scratch/kocevski/622001/expmap_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.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/622001/ltcube_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.fits
.....................!
real 194.16
user 188.12
sys 5.44

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 J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 193 point sources and 4 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 J2007.2+6607 @ 301.815 66.1178

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/622001/ft1_filtered_4FGL_J2007.2+6607_daily_bin689.fits scfile=/scratch/kocevski/622001/ft2_4FGL_J2007.2+6607_daily_bin689.fits outfile=/scratch/kocevski/622001/cmap_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.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=301.815 yref=66.1178 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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622001/ft1_filtered_4FGL_J2007.2+6607_daily_bin689.fits scfile=/scratch/kocevski/622001/ft2_4FGL_J2007.2+6607_daily_bin689.fits outfile=/scratch/kocevski/622001/cmap_HighResolution_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.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=301.815 yref=66.1178 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622001/ft1_filtered_4FGL_J2007.2+6607_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/622001/ft2_4FGL_J2007.2+6607_daily_bin689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622001/Model_4FGL_J2007.2+6607_daily_bin689.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 J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/622001/ft1_filtered_4FGL_J2007.2+6607_daily_bin689.fits.....................!
real 91.14
user 89.65
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/622001/ft1_filtered_4FGL_J2007.2+6607_daily_bin689.fits', '/scratch/kocevski/622001/ft2_4FGL_J2007.2+6607_daily_bin689.fits', expMap='/scratch/kocevski/622001/expmap_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.fits', expCube='/scratch/kocevski/622001/ltcube_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/622001/Model_4FGL_J2007.2+6607_daily_bin689.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2007.2+6607'

4FGL J2007.2+6607
   Spectrum: PowerLaw
332    Prefactor:  5.915e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.581e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  1.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/622001/ft1_filtered_4FGL_J2007.2+6607_daily_bin689.fits
Spacecraft file(s): /scratch/kocevski/622001/ft2_4FGL_J2007.2+6607_daily_bin689.fits
Exposure map: /scratch/kocevski/622001/expmap_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.fits
Exposure cube: /scratch/kocevski/622001/ltcube_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/622001/Model_4FGL_J2007.2+6607_daily_bin689.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) = 6078.96975395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92815       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24770E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.950       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10393E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.905       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10607E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    121.30       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.910       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    65.058       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82717       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6078.948     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2760 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93688        12.082       -.79521E-05    .84208E-03
   2  Prefactor     .10000E-03    100.22        .51581E-04** at limit **
   3  Prefactor     .10054E-03    7.7347        .80025E-06** at limit **
   4  Prefactor     16.927        35.511       -.15754E-04   -.39773E-05
   5  Prefactor     .10000E-03    40.365       -.42157E-04** at limit **
   6  Prefactor     .10000E-03    122.00        .82572E-05** at limit **
   7  Prefactor     .10000E-03    99.118        .52497E-04** at limit **
   8  norm          .10000E-03    7.0498       -.59499E-07** at limit **
   9  norm          .10000E-03    5.9242       -.18941E-07** at limit **
  10  norm          .10000E-03    32.140        .29210E-04** at limit **
  11  Prefactor     21.901        42.860        .85562E-06    .28670E-04
  12  Prefactor     .10000E-03    4.0029       -.17426E-07** at limit **
  13  norm          .10000E-03    3.7032        .10073E-05** at limit **
  14  norm          .10000E-03    156.24       -.11257E-03** at limit **
  15  norm          .10000E-03    2.2496       -.69478E-07** at limit **
  16  norm          .10000E-03    23.769       -.42831E-05** at limit **
  17  Prefactor     121.27        68.553       -.21918E-04   -.24917E-04
  18  norm          .10000E-03    2.3627       -.67573E-08** at limit **
  19  Prefactor     13.909        15.074       -.44338E-06    .40224E-05
  20  norm          .10000E-03    13.534        .39470E-06** at limit **
  21  Prefactor     65.057        38.788       -.61419E-06   -.30662E-04
  22  Prefactor     .10000E-03    2.6003       -.35064E-07** at limit **
  23  Normalizat    .82752        .39732        .17440E-04    .20628E-03
  24  Prefactor     1.0649        .78367E-01   -.10472E-05    .48331E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.936883
  Prefactor  = 0.0001
  Prefactor  = 0.000100544
  Prefactor  = 16.9269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.9011
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 121.27
  norm       = 0.0001
  Prefactor  = 13.9088
  norm       = 0.0001
  Prefactor  = 65.0572
  Prefactor  = 0.0001
  Normalizat = 0.827521
  Prefactor  = 1.0649
 **********
 **   18 **HESSE 
 **********

 FCN=   6078.948     FROM HESSE     STATUS=OK           397 CALLS     3157 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93688        45.437        .47881E-02   -1.5514    
   2  Prefactor     .10000E-03    100.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10054E-03    10.383        .71532E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.927        35.542        .97283E-04   -1.4885    
   5  Prefactor     .10000E-03    40.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    122.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    99.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.3411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.9259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    32.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.901        42.945        .85582E-04   -1.4772    
  12  Prefactor     .10000E-03    4.0296        .15230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.7867        .29243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    156.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2532        .11419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    23.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     121.27        68.459        .18270E-03   -1.3501    
  18  norm          .10000E-03    2.3730        .11702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.909        15.069        .10739E-03   -1.4962    
  20  norm          .10000E-03    13.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     65.057        38.847        .49755E-04   -1.4093    
  22  Prefactor     .10000E-03    2.6151        .12275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82752        .40213        .68102E-03   -.99056    
  24  Prefactor     1.0649        .79756E-01    .12990E-03   -.90597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34989e-08
Minuit parameter uncertainties:
  1  13.0588
  2  1.76373e-05
  3  0.0047557
  4  35.5868
  5  0.000122768
  6  6.6092e-05
  7  5.41825e-06
  8  9.68948e-06
  9  5.71685e-06
  10  9.97775e-05
  11  43.0057
  12  7.09855e-06
  13  0.00020167
  14  0.00038169
  15  5.9513e-06
  16  0.000143161
  17  68.5042
  18  3.79929e-06
  19  15.0734
  20  3.63281e-05
  21  38.8621
  22  6.80456e-06
  23  0.403591
  24  0.0797646
Done.

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

Extracting fit parameters...

4FGL J2007.2+6607
   Spectrum: PowerLaw
332    Prefactor:  1.213e+02  6.850e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.581e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  1.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.065e+00  7.976e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  8.275e-01  4.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.43
Ra Dec: 301.815 66.118
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 2.93e-07 +/- 1.65e-07
Energy Flux (Fixed Index): 7.82e-05 +/- 4.42e-05

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) = 6078.33606062
delta logL = 0.611639786198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6078.32595939
delta logL = 0.621741015584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.605       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4322       1.0000          .0000       10.000    
     3 'Normalizat'    .74993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0735       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6730E+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=   6078.326     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      318 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.620        127.31        .66241E-04    .28953E-03
   2  Index         3.4320        1.8981        .38079E-02    .26176E-03
   3  Normalizat    .74948        .37458        .71135E-03   -.32987E-04
   4  Prefactor     1.0736        .78289E-01    .12939E-03   -.20912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6197
  Index      = 3.43199
  Normalizat = 0.749481
  Prefactor  = 1.07364
 **********
 **   18 **HESSE 
 **********

 FCN=   6078.326     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.620        59.952        .13248E-04   -1.4497    
   2  Index         3.4320        .90781        .15232E-03   -.31898    
   3  Normalizat    .74948        .36620        .28454E-04   -1.0197    
   4  Prefactor     1.0736        .77144E-01    .51755E-05   -.90314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62887e-10
Minuit parameter uncertainties:
  1  60.0513
  2  0.913439
  3  0.367407
  4  0.0771524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622001': 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) = 6078.32595837
delta logL = 0.621742028922

Extracting fit parameters...

4FGL J2007.2+6607
   Spectrum: PowerLaw
332    Prefactor:  3.662e+01  6.005e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  3.432e+00  9.134e-01  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  1.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.074e+00  7.715e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  7.495e-01  3.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.91
Ra Dec: 301.815 66.118
Photon Index (Free Index): 3.43 +/- 0.91
Photon Flux (Free Index): 4.09e-07 +/- 2.13e-07
Energy Flux (Free Index): 6.93e-05 +/- 3.49e-05

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/622001/cmap_HighResolution_417916801_418176001_4FGL_J2007.2+6607_daily_bin689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.93e-07', energy_flux2='6.93e-05', photon_flux_error='1.65e-07', dlogl='6.22e-01', energy_flux='7.82e-05', photon_flux2='4.09e-07', job_status='DONE', time_completed='2021-09-24 12:11:23.909277', photon_index_error2='0.91', photon_index2='3.43', ts='5.43', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.49e-05', EG='0.83', time_epoch_completed='1632510683.91', return_code='0', job_id='622001', GAL2='1.07', EG2='0.75', return_code2='0', energy_flux_error='4.42e-05', photon_flux_error2='2.13e-07', ts2='6.91', photon_index='2.58' WHERE bin_id='689' AND source_name='4FGL J2007.2+6607' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 12:11:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 622001: <4FGL_J2007.2+6607_daily_bin689> in cluster <slac> Done

Job <4FGL_J2007.2+6607_daily_bin689> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep 24 11:56:48 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 11:58:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 11:58:29 2021
Terminated at Fri Sep 24 12:11:24 2021
Results reported at Fri Sep 24 12:11:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2007.2+6607_daily_bin689 301.815 66.1178 417916801 418176001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2007.2+6607 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   753.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            876 sec.

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

