/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 57 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 = 7386
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2005.5+7752_daily_bin1205
RA = 301.393, Dec = 77.8829
tmin = 551664001, tmax = 551923201
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='590915', job_status='RUN', time_executed='2021-09-24 10:12:33.337159', time_epoch_executed='1632503553.34' WHERE source_name='4FGL J2005.5+7752' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590915/ft1_4FGL_J2005.5+7752_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590915/ft1_4FGL_J2005.5+7752_daily_bin1205.fits outfile=/scratch/kocevski/590915/ft1_filteredMKT_4FGL_J2005.5+7752_daily_bin1205.fits ra=301.393 dec=77.8829 rad=12.0 tmin=551664001.0 tmax=551923201.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.80
user 3.53
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.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/590915/ft1_filteredMKT_4FGL_J2005.5+7752_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/590915/ft1_filtered_4FGL_J2005.5+7752_daily_bin1205.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590915/ft1_filtered_4FGL_J2005.5+7752_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/590915/ltcube_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.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/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.fits
.....................!
real 11.69
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590915/ft1_filtered_4FGL_J2005.5+7752_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/590915/ltcube_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.fits outfile=/scratch/kocevski/590915/expmap_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.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/590915/ltcube_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.fits
.....................!
real 190.78
user 185.35
sys 4.79

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 J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 209 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 J2005.5+7752 @ 301.393 77.8829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/590915/ft1_filtered_4FGL_J2005.5+7752_daily_bin1205.fits scfile=/scratch/kocevski/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.fits outfile=/scratch/kocevski/590915/cmap_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.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.393 yref=77.8829 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.83
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590915/ft1_filtered_4FGL_J2005.5+7752_daily_bin1205.fits scfile=/scratch/kocevski/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.fits outfile=/scratch/kocevski/590915/cmap_HighResolution_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.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.393 yref=77.8829 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.78
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590915/ft1_filtered_4FGL_J2005.5+7752_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590915/Model_4FGL_J2005.5+7752_daily_bin1205.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/scratch/kocevski/590915/ft1_filtered_4FGL_J2005.5+7752_daily_bin1205.fits....!
real 15.54
user 12.81
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/590915/ft1_filtered_4FGL_J2005.5+7752_daily_bin1205.fits', '/scratch/kocevski/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.fits', expMap='/scratch/kocevski/590915/expmap_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.fits', expCube='/scratch/kocevski/590915/ltcube_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/590915/Model_4FGL_J2005.5+7752_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.5+7752'

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  3.878e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/590915/ft1_filtered_4FGL_J2005.5+7752_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/590915/ft2_4FGL_J2005.5+7752_daily_bin1205.fits
Exposure map: /scratch/kocevski/590915/expmap_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.fits
Exposure cube: /scratch/kocevski/590915/ltcube_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/590915/Model_4FGL_J2005.5+7752_daily_bin1205.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) = 39.2163492388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6014       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .85284E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49295E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2700       1.0000         .10000E-03   10000.    
     5 'norm      '    .74244       1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .44428       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71686E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51371       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34044       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .64480       1.0000         .10000E-03   10000.    
    13 'norm      '    .63139E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38217       1.0000         .10000E-03   10000.    
    15 'norm      '    .12520E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .71721       1.0000         .10000E-03   10000.    
    17 'Prefactor '    884.82       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50897       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4061       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .46206       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   38.02962     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1387 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    1305.7        .58675E-04** at limit **
   2  Prefactor     .10000E-03    112.40       -.28956E-05** at limit **
   3  Prefactor     .10024E-03    829.93        .18201E-04** at limit **
   4  Prefactor     2806.0        3380.1        .11233E-02   -.18897E-04
   5  norm          .10000E-03    166.33        .35774E-06** at limit **
   6  norm          .10000E-03    20.575        .27002E-05** at limit **
   7  norm          .10001E-03    172.32       -.14115E-05** at limit **
   8  Prefactor     .10001E-03    285.17        .13312E-04** at limit **
   9  Prefactor     .10002E-03    566.80       -.13905E-04** at limit **
  10  Prefactor     .10072E-03    6374.6        .44254E-04** at limit **
  11  Prefactor     .10000E-03    90.246       -.34713E-05** at limit **
  12  norm          .10002E-03    1610.0       -.60874E-05** at limit **
  13  norm          .10000E-03    109.13       -.20625E-05** at limit **
  14  Prefactor     .10000E-03    501.49       -.26873E-05** at limit **
  15  norm          .10000E-03    65.867       -.37715E-07** at limit **
  16  Prefactor     .10001E-03    302.50        .10717E-04** at limit **
  17  Prefactor     1003.9        1166.5        .27679E-03   -.61031E-04
  18  Prefactor     .10000E-03    256.72        .76369E-05** at limit **
  19  Normalizat    .10000E-01    6.4440        .12546E-02** at limit **
  20  Prefactor     .58122        .43699        .48806E-03    .44723E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100089
  Prefactor  = 0.0001
  Prefactor  = 0.000100242
  Prefactor  = 2805.98
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.000100009
  Prefactor  = 0.00010002
  Prefactor  = 0.000100716
  Prefactor  = 0.0001
  norm       = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 1003.94
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 0.581218
 **********
 **   18 **HESSE 
 **********

 FCN=   38.02962     FROM HESSE     STATUS=OK           317 CALLS     1704 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10009E-03    1298.4        .83748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    112.26        .10432E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10024E-03    828.59        .92666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2806.0        3371.8        .32908E-02   -.45427    
   5  norm          .10000E-03    165.54        .12224E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    20.552        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    170.65        .11041E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    284.12        .93754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    565.99        .11327E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10072E-03    6372.7        .10601E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    90.142        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10002E-03    1600.9        .11848E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    108.88        .93340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    500.83        .10780E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    65.398        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    300.92        .12128E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1003.9        1172.9        .35212E-03   -.92598    
  18  Prefactor     .10000E-03    252.60        .11307E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    6.4037        .15356       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .58122        .43884        .25104E-01   -1.0838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86063e-09
Minuit parameter uncertainties:
  1  0.0220105
  2  0.000377553
  3  0.0287116
  4  3813.41
  5  0.000175622
  6  8.39833e-05
  7  0.00205415
  8  0.00329728
  9  0.00672049
  10  0.0933402
  11  1.05732e-05
  12  0.0114758
  13  0.000189968
  14  0.0020391
  15  1.45171e-05
  16  0.00291257
  17  1204.94
  18  0.00180461
  19  0.000201736
  20  0.441458
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  1.000e-04  1.900e-04  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  5.812e-01  4.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.000e-02  2.017e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 301.393 77.883
Photon Flux Upper Limit: 5.21e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590915/likelihoodResults_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.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) = 38.0296643216
delta logL = -4.22485241245e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38.0296230309
delta logL = -9.57848854455e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9907       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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=   38.02962     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      293 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7273.7        .37822E-02** at limit **
   2  alpha         1.5618        4.1357        .50000        .52333E-08
   3  Normalizat    .10000E-01    .24645        .67022E-03** at limit **
   4  Prefactor     .58122        .12059        .11097E-03    .22132E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.56182
  Normalizat = 0.01
  Prefactor  = 0.581216
 **********
 **   18 **HESSE 
 **********

 FCN=   38.02962     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      322 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9945.8        .73960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5618        3.0807        .50000       -.38469    
   3  Normalizat    .10000E-01    1.2174        .13404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .58122        .27216        .22195E-04   -1.0838    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.567e-10
Minuit parameter uncertainties:
  1  1.04459e-05
  2  11302.6
  3  1.54036e-06
  4  0.272774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590915': 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) = 38.0296219509
delta logL = 1.22205037201e-07

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  1.000e-04  1.045e-05  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  1.562e+00  1.130e+04  0.000e+00  5.000e+00 ( 1.000e+00)
494         beta:  5.082e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  5.812e-01  2.728e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.000e-02  1.540e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 301.393 77.883

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/590915/cmap_HighResolution_551664001_551923201_4FGL_J2005.5+7752_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-03', job_status='DONE', photon_flux_upper_limit='5.21e-06', time_completed='2021-09-24 10:18:15.581298', job_id='590915', GAL2='0.58', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632503895.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1205' AND source_name='4FGL J2005.5+7752' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 10:18:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 590915: <4FGL_J2005.5+7752_daily_bin1205> in cluster <slac> Done

Job <4FGL_J2005.5+7752_daily_bin1205> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 10:11:17 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 10:11:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 10:11:21 2021
Terminated at Fri Sep 24 10:18:16 2021
Results reported at Fri Sep 24 10:18:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.5+7752_daily_bin1205 301.393 77.8829 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2005.5+7752 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   332.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   415 sec.
    Turnaround time :                            419 sec.

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

