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


Performing analysis on: 4FGL_J2005.5+7752_weekly_bin726
RA = 301.393, Dec = 77.8829
tmin = 678067201, tmax = 678672001
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='710913', job_status='RUN', time_executed='2022-07-05 04:48:09.040446', time_epoch_executed='1657021689.04' WHERE source_name='4FGL J2005.5+7752' and cadence='weekly' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710913

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710913/ft1_4FGL_J2005.5+7752_weekly_bin726.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710913/ft2_4FGL_J2005.5+7752_weekly_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710913/ft1_4FGL_J2005.5+7752_weekly_bin726.fits outfile=/scratch/kocevski/710913/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin726.fits ra=301.393 dec=77.8829 rad=12.0 tmin=678067201.0 tmax=678672001.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 8.90
user 8.52
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/710913/ft2_4FGL_J2005.5+7752_weekly_bin726.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/710913/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin726.fits evtable="EVENTS" outfile="/scratch/kocevski/710913/ft1_filtered_4FGL_J2005.5+7752_weekly_bin726.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.58
user 0.39
sys 0.17

Number of photons that the gtmktime cut: 3866

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710913/ft1_filtered_4FGL_J2005.5+7752_weekly_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/710913/ft2_4FGL_J2005.5+7752_weekly_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/710913/ltcube_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.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/710913/ft2_4FGL_J2005.5+7752_weekly_bin726.fits
.....................!
real 31.75
user 31.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710913/ft1_filtered_4FGL_J2005.5+7752_weekly_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/710913/ft2_4FGL_J2005.5+7752_weekly_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/710913/ltcube_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.fits outfile=/scratch/kocevski/710913/expmap_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.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/710913/ltcube_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.fits
.....................!
real 193.83
user 188.01
sys 5.30

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/710913/ft1_filtered_4FGL_J2005.5+7752_weekly_bin726.fits scfile=/scratch/kocevski/710913/ft2_4FGL_J2005.5+7752_weekly_bin726.fits outfile=/scratch/kocevski/710913/cmap_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.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.60
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710913/ft1_filtered_4FGL_J2005.5+7752_weekly_bin726.fits scfile=/scratch/kocevski/710913/ft2_4FGL_J2005.5+7752_weekly_bin726.fits outfile=/scratch/kocevski/710913/cmap_HighResolution_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.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.62
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710913/ft1_filtered_4FGL_J2005.5+7752_weekly_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/710913/ft2_4FGL_J2005.5+7752_weekly_bin726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710913/Model_4FGL_J2005.5+7752_weekly_bin726.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/710913/ft1_filtered_4FGL_J2005.5+7752_weekly_bin726.fits.....................!
real 497.31
user 494.07
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/710913/ft1_filtered_4FGL_J2005.5+7752_weekly_bin726.fits', '/scratch/kocevski/710913/ft2_4FGL_J2005.5+7752_weekly_bin726.fits', expMap='/scratch/kocevski/710913/expmap_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.fits', expCube='/scratch/kocevski/710913/ltcube_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/710913/Model_4FGL_J2005.5+7752_weekly_bin726.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/710913/ft1_filtered_4FGL_J2005.5+7752_weekly_bin726.fits
Spacecraft file(s): /scratch/kocevski/710913/ft2_4FGL_J2005.5+7752_weekly_bin726.fits
Exposure map: /scratch/kocevski/710913/expmap_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.fits
Exposure cube: /scratch/kocevski/710913/ltcube_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/710913/Model_4FGL_J2005.5+7752_weekly_bin726.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) = 38910.4838401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.373       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.727       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6665       1.0000         .10000E-03   10000.    
     6 'norm      '    2.8650       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7769       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9417       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22277E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6443       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.209       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5199       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0613       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.087       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0639       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97517       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   38910.45     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2121 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.371        11.617         .0000       -.17813E-02
   2  Prefactor     2.5406        1.6799         .0000        .24206E-02
   3  Prefactor     10.719        12.585         .0000       -.40112E-02
   4  Prefactor     .10000E-03    5.4384         .0000    ** at limit **
   5  norm          4.6664        2.1400         .0000        .21372E-03
   6  norm          2.8649        .50879         .0000        .73761E-03
   7  norm          2.7774        2.5738         .0000        .27142E-02
   8  Prefactor     1.9377        5.1334         .0000        .26934E-01
   9  Prefactor     .10000E-03    7.2144         .0000    ** at limit **
  10  Prefactor     .10000E-03    17.949         .0000    ** at limit **
  11  Prefactor     .20136E-01    .99648         .0000        .54624E-03
  12  norm          .10000E-03    6.0394         .0000    ** at limit **
  13  norm          1.6453        1.4957         .0000        .26302E-02
  14  Prefactor     27.210        17.751         .0000        .78798E-03
  15  norm          1.5201        1.5686         .0000        .41777E-02
  16  Prefactor     7.0614        6.7729         .0000        .50048E-03
  17  Prefactor     11.044        22.371         .0000        .84445E-03
  18  Prefactor     .10000E-03    3.6785         .0000    ** at limit **
  19  Normalizat    1.0641        .10932         .0000        .13608E-03
  20  Prefactor     .97515        .31671E-01     .0000       -.20644E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.3707
  Prefactor  = 2.54063
  Prefactor  = 10.7193
  Prefactor  = 0.0001
  norm       = 4.66635
  norm       = 2.86495
  norm       = 2.77741
  Prefactor  = 1.93772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0201365
  norm       = 0.0001
  norm       = 1.64534
  Prefactor  = 27.2095
  norm       = 1.52015
  Prefactor  = 7.06135
  Prefactor  = 11.0443
  Prefactor  = 0.0001
  Normalizat = 1.06405
  Prefactor  = 0.975147
 **********
 **   18 **HESSE 
 **********

 FCN=   38910.45     FROM HESSE     STATUS=OK           301 CALLS     2422 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.371        11.611        .90996E-04   -1.4827    
   2  Prefactor     2.5406        1.6645        .18232E-03   -1.5389    
   3  Prefactor     10.719        12.511        .12233E-03   -1.5053    
   4  Prefactor     .10000E-03    5.4436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6664        2.1349        .18384E-03   -1.5276    
   6  norm          2.8649        .50959        .56009E-04   -1.5369    
   7  norm          2.7774        2.5380        .24421E-03   -1.5375    
   8  Prefactor     1.9377        5.0918        .14897E-02   -1.5430    
   9  Prefactor     .10000E-03    7.2813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .20136E-01    1.3837        .54304E-01   -1.5680    
  12  norm          .10000E-03    6.0428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6453        1.4814        .22040E-03   -1.5451    
  14  Prefactor     27.210        17.752        .76801E-04   -1.4664    
  15  norm          1.5201        1.5484        .23873E-03   -1.5461    
  16  Prefactor     7.0614        6.7536        .15096E-03   -1.5176    
  17  Prefactor     11.044        22.447        .12032E-03   -1.5043    
  18  Prefactor     .10000E-03    3.7391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0641        .11631        .44073E-03   -.90914    
  20  Prefactor     .97515        .33848E-01    .14063E-03   -.93563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72456e-08
Minuit parameter uncertainties:
  1  11.612
  2  1.66455
  3  12.5138
  4  7.80476e-05
  5  2.13495
  6  0.509594
  7  2.53812
  8  5.09298
  9  1.66744e-05
  10  4.89744e-05
  11  0.333024
  12  9.37564e-05
  13  1.48139
  14  17.7558
  15  1.54848
  16  6.75436
  17  22.4639
  18  1.64094e-06
  19  0.116341
  20  0.0338492
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  1.645e+00  1.481e+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

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.751e-01  3.385e-02  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.064e+00  1.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.11
Ra Dec: 301.393 77.883
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.43e-08 +/- 1.29e-08
Energy Flux (Fixed Index): 6.78e-06 +/- 6.11e-06

TS (Fixed Index): 2.11
Ra Dec: 301.393 77.883
Photon Flux Upper Limit: 4.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/710913/likelihoodResults_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.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) = 38910.4485159
delta logL = 0.000674976501614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 38910.448498
delta logL = 0.000692852401698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6482       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1678       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97519       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   38910.45     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      266 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6496        1.4680        .21912E-03    .17433E-04
   2  alpha         2.1687        .71507        .39275E-01    .90661E-05
   3  Normalizat    1.0635        .10602        .44082E-03   -.61896E-06
   4  Prefactor     .97518        .32448E-01    .14063E-03   -.32337E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.64958
  alpha      = 2.16875
  Normalizat = 1.06355
  Prefactor  = 0.975185
 **********
 **   18 **HESSE 
 **********

 FCN=   38910.45     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .62E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6496        1.4656        .87648E-05   -1.5451    
   2  alpha         2.1687        .71511        .15710E-02   -.13289    
   3  Normalizat    1.0635        .10602        .17633E-04   -.90931    
   4  Prefactor     .97518        .32453E-01    .56251E-05   -.93561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15752e-13
Minuit parameter uncertainties:
  1  1.46568
  2  0.72543
  3  0.106046
  4  0.0324532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710913': 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) = 38910.4484968
delta logL = 0.00069402835652

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  1.650e+00  1.466e+00  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  2.169e+00  7.254e-01  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:  9.752e-01  3.245e-02  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.064e+00  1.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 301.393 77.883
Photon Index (Free Index): 2.17 +/- 0.73
Photon Flux (Free Index): 1.49e-08 +/- 1.98e-08
Energy Flux (Free Index): 6.74e-06 +/- 6.10e-06

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/710913/cmap_HighResolution_678067201_678672001_4FGL_J2005.5+7752_weekly_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-05', comment='SUCCESS', photon_flux='1.43e-08', energy_flux2='6.74e-06', photon_flux_error='1.29e-08', dlogl='6.94e-04', energy_flux='6.78e-06', photon_flux2='1.49e-08', job_status='DONE', time_completed='2022-07-05 05:38:07.982887', photon_index_error2='0.73', photon_index2='2.17', ts='2.11', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='4.38e-08', energy_flux_error2='6.10e-06', EG='1.06', time_epoch_completed='1657024687.98', return_code='0', job_id='710913', GAL2='0.98', EG2='1.06', return_code2='0', energy_flux_error='6.11e-06', photon_flux_error2='1.98e-08', ts2='2.12', photon_index='2.14' WHERE bin_id='726' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  5 05:38:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 710913: <4FGL_J2005.5+7752_weekly_bin726> in cluster <slac> Done

Job <4FGL_J2005.5+7752_weekly_bin726> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 04:45:40 2022
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 04:46:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 04:46:42 2022
Terminated at Tue Jul  5 05:38:08 2022
Results reported at Tue Jul  5 05:38:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.5+7752_weekly_bin726 301.393 77.8829 678067201 678672001 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 :                                   2990.61 sec.
    Max Memory :                                 640 MB
    Average Memory :                             406.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2938 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3086 sec.
    Turnaround time :                            3148 sec.

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

