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


Performing analysis on: 4FGL_J2005.5+7752_monthly_bin56
RA = 301.393, Dec = 77.8829
tmin = 382147201, tmax = 384739201
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='572016', job_status='RUN', time_executed='2021-11-05 13:07:52.138679', time_epoch_executed='1636142872.14' WHERE source_name='4FGL J2005.5+7752' and cadence='monthly' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572016

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572016/ft1_4FGL_J2005.5+7752_monthly_bin56.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572016/ft2_4FGL_J2005.5+7752_monthly_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572016/ft1_4FGL_J2005.5+7752_monthly_bin56.fits outfile=/scratch/kocevski/572016/ft1_filteredMKT_4FGL_J2005.5+7752_monthly_bin56.fits ra=301.393 dec=77.8829 rad=12.0 tmin=382147201.0 tmax=384739201.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 49.20
user 47.58
sys 1.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572016/ft2_4FGL_J2005.5+7752_monthly_bin56.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/572016/ft1_filteredMKT_4FGL_J2005.5+7752_monthly_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/572016/ft1_filtered_4FGL_J2005.5+7752_monthly_bin56.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.86
user 0.64
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572016/ft1_filtered_4FGL_J2005.5+7752_monthly_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/572016/ft2_4FGL_J2005.5+7752_monthly_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/572016/ltcube_382147201_384739201_4FGL_J2005.5+7752_monthly_bin56.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/572016/ft2_4FGL_J2005.5+7752_monthly_bin56.fits
.....................!
real 111.62
user 111.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572016/ft1_filtered_4FGL_J2005.5+7752_monthly_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/572016/ft2_4FGL_J2005.5+7752_monthly_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/572016/ltcube_382147201_384739201_4FGL_J2005.5+7752_monthly_bin56.fits outfile=/scratch/kocevski/572016/expmap_382147201_384739201_4FGL_J2005.5+7752_monthly_bin56.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/572016/ltcube_382147201_384739201_4FGL_J2005.5+7752_monthly_bin56.fits
.....................!
real 191.71
user 186.13
sys 5.21

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/572016/ft1_filtered_4FGL_J2005.5+7752_monthly_bin56.fits scfile=/scratch/kocevski/572016/ft2_4FGL_J2005.5+7752_monthly_bin56.fits outfile=/scratch/kocevski/572016/cmap_382147201_384739201_4FGL_J2005.5+7752_monthly_bin56.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.82
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572016/ft1_filtered_4FGL_J2005.5+7752_monthly_bin56.fits scfile=/scratch/kocevski/572016/ft2_4FGL_J2005.5+7752_monthly_bin56.fits outfile=/scratch/kocevski/572016/cmap_HighResolution_382147201_384739201_4FGL_J2005.5+7752_monthly_bin56.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.79
user 0.64
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.232       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1008       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12032E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0487       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8360       1.0000         .10000E-03   10000.    
     7 'norm      '    4.5338       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.643       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .66099       1.0000         .10000E-03   10000.    
    12 'norm      '    6.0233       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0080       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10974E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9096       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5306       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15157E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27987E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0237       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0209       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.

 FCN=   167274.8     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1812 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.261        4.9810        .18242E-06    .10246E-03
   2  Prefactor     5.1002        .91156        .93376E-08   -.13376E-02
   3  Prefactor     .10000E-03    2.6962       -.12205E-06** at limit **
   4  Prefactor     .10000E-03    2.3673        .10716E-06** at limit **
   5  norm          4.0492        .91018        .82865E-07   -.76253E-02
   6  norm          1.8360        .22087        .39434E-08   -.10638E-02
   7  norm          4.5349        1.2711       -.15186E-07   -.92764E-03
   8  Prefactor     4.8002        2.4233       -.35733E-08   -.45176E-03
   9  Prefactor     .10000E-03    1.2720       -.49580E-07** at limit **
  10  Prefactor     18.669        15.807        .58726E-05    .40171E-03
  11  Prefactor     .66059        .65188       -.10152E-06   -.12773E-02
  12  norm          6.0217        4.9424       -.19377E-07    .44676E-05
  13  norm          3.0077        .94717        .55269E-08   -.20886E-02
  14  Prefactor     .10000E-03    2.2020       -.68583E-07** at limit **
  15  norm          2.9096        .90847        .22739E-07   -.15092E-02
  16  Prefactor     6.5306        2.2911        .36053E-06   -.51905E-02
  17  Prefactor     .10000E-03    3.8473        .88118E-07** at limit **
  18  Prefactor     .10115E-03    .38233        .19272E-06** at limit **
  19  Normalizat    1.0237        .54415E-01   -.25952E-06   -.31442E-04
  20  Prefactor     1.0209        .15545E-01   -.55781E-08   -.82151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.2605
  Prefactor  = 5.10017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.04922
  norm       = 1.83596
  norm       = 4.53495
  Prefactor  = 4.80022
  Prefactor  = 0.0001
  Prefactor  = 18.6686
  Prefactor  = 0.660589
  norm       = 6.02172
  norm       = 3.00772
  Prefactor  = 0.0001
  norm       = 2.90963
  Prefactor  = 6.53057
  Prefactor  = 0.0001
  Prefactor  = 0.000101147
  Normalizat = 1.0237
  Prefactor  = 1.02094
 **********
 **   18 **HESSE 
 **********

 FCN=   167274.8     FROM HESSE     STATUS=OK           309 CALLS     2121 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.261        4.9807        .96483E-04   -1.4877    
   2  Prefactor     5.1002        .91530        .15565E-03   -1.5256    
   3  Prefactor     .10000E-03    2.7122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0492        .99725        .96233E-03   -1.5305    
   6  norm          1.8360        .22059        .63305E-04   -1.5437    
   7  norm          4.5349        1.2665        .18907E-03   -1.5282    
   8  Prefactor     4.8002        2.4191        .18340E-03   -1.5270    
   9  Prefactor     .10000E-03    1.2790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.669        16.042        .92760E-04   -1.4844    
  11  Prefactor     .66059        1.2880        .30432E-02   -1.5545    
  12  norm          6.0217        4.9421        .16360E-03   -1.5217    
  13  norm          3.0077        .94407        .21246E-03   -1.5361    
  14  Prefactor     .10000E-03    2.2250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9096        .90365        .20613E-03   -1.5367    
  16  Prefactor     6.5306        3.1232        .78520E-03   -1.5197    
  17  Prefactor     .10000E-03    3.8891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10115E-03    .48980        .85424E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0237        .57654E-01    .46184E-03   -.92241    
  20  Prefactor     1.0209        .16527E-01    .14100E-03   -.92035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86266e-07
Minuit parameter uncertainties:
  1  4.98085
  2  0.915304
  3  8.60902e-07
  4  2.08052e-06
  5  0.997251
  6  0.220588
  7  1.26649
  8  2.41916
  9  4.40042e-07
  10  16.0456
  11  1.28803
  12  4.94248
  13  0.944074
  14  4.20931e-07
  15  0.903653
  16  3.12327
  17  2.54011e-06
  18  0.00149906
  19  0.0576579
  20  0.0165276
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  3.008e+00  9.441e-01  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:  1.021e+00  1.653e-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.024e+00  5.766e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.65
Ra Dec: 301.393 77.883
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.62e-08 +/- 8.22e-09
Energy Flux (Fixed Index): 1.24e-05 +/- 3.89e-06

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) = 167274.680315
delta logL = 0.0973661273601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 167274.645331
delta logL = 0.132350238448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9803       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2789       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0213       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.

 FCN=   167274.6     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      254 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9805        9.0887        .58794E-02    .91977E-02
   2  alpha         2.2788        1.5835        .41357        .58678E-03
   3  Normalizat    1.0191        .23871E-01    .10441        .37075E-03
   4  Prefactor     1.0213        .59060E-02    .31899E-01   -.96642E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.98051
  alpha      = 2.27885
  Normalizat = 1.01907
  Prefactor  = 1.02133
 **********
 **   18 **HESSE 
 **********

 FCN=   167274.6     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9805        .92387        .20049E-03   -1.5363    
   2  alpha         2.2788        .27004        .26149E-01   -.88577E-01
   3  Normalizat    1.0191        .53697E-01    .46276E-03   -.92394    
   4  Prefactor     1.0213        .16190E-01    .14097E-03   -.92022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62884e-08
Minuit parameter uncertainties:
  1  0.923877
  2  0.270573
  3  0.0537002
  4  0.0161899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572016': 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) = 167274.645331
delta logL = 0.132350378088

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  2.981e+00  9.239e-01  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  2.279e+00  2.706e-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:  1.021e+00  1.619e-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.019e+00  5.370e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.96
Ra Dec: 301.393 77.883
Photon Index (Free Index): 2.28 +/- 0.27
Photon Flux (Free Index): 3.12e-08 +/- 1.27e-08
Energy Flux (Free Index): 1.20e-05 +/- 3.71e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/572016/cmap_HighResolution_382147201_384739201_4FGL_J2005.5+7752_monthly_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.62e-08', energy_flux2='1.20e-05', photon_flux_error='8.22e-09', dlogl='1.32e-01', energy_flux='1.24e-05', photon_flux2='3.12e-08', job_status='DONE', time_completed='2021-11-05 15:54:37.790398', photon_index_error2='0.27', photon_index2='2.28', ts='22.65', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.71e-06', EG='1.02', time_epoch_completed='1636152877.79', return_code='0', job_id='572016', GAL2='1.02', EG2='1.02', return_code2='0', energy_flux_error='3.89e-06', photon_flux_error2='1.27e-08', ts2='22.96', photon_index='2.14' WHERE bin_id='56' AND source_name='4FGL J2005.5+7752' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Nov  5 15:54:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 572016: <4FGL_J2005.5+7752_monthly_bin56> in cluster <slac> Done

Job <4FGL_J2005.5+7752_monthly_bin56> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Nov  5 12:45:25 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Nov  5 13:04:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Nov  5 13:04:52 2021
Terminated at Fri Nov  5 15:54:41 2021
Results reported at Fri Nov  5 15:54:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.5+7752_monthly_bin56 301.393 77.8829 382147201 384739201 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 :                                   9157.00 sec.
    Max Memory :                                 645 MB
    Average Memory :                             519.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10186 sec.
    Turnaround time :                            11356 sec.

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

