/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 0 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 = 73151
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2005.5+7752_monthly_bin43
RA = 301.393, Dec = 77.8829
tmin = 348451201, tmax = 351043201
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='570904', job_status='RUN', time_executed='2021-11-05 13:05:02.789117', time_epoch_executed='1636142702.79' WHERE source_name='4FGL J2005.5+7752' and cadence='monthly' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570904

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570904/ft1_4FGL_J2005.5+7752_monthly_bin43.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570904/ft2_4FGL_J2005.5+7752_monthly_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570904/ft1_4FGL_J2005.5+7752_monthly_bin43.fits outfile=/scratch/kocevski/570904/ft1_filteredMKT_4FGL_J2005.5+7752_monthly_bin43.fits ra=301.393 dec=77.8829 rad=12.0 tmin=348451201.0 tmax=351043201.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 30.31
user 29.49
sys 0.74

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570904/ft1_filtered_4FGL_J2005.5+7752_monthly_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/570904/ft2_4FGL_J2005.5+7752_monthly_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/570904/ltcube_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.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/570904/ft2_4FGL_J2005.5+7752_monthly_bin43.fits
.....................!
real 109.70
user 109.13
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570904/ft1_filtered_4FGL_J2005.5+7752_monthly_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/570904/ft2_4FGL_J2005.5+7752_monthly_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/570904/ltcube_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.fits outfile=/scratch/kocevski/570904/expmap_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.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/570904/ltcube_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.fits
.....................!
real 192.06
user 186.13
sys 5.59

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/570904/ft1_filtered_4FGL_J2005.5+7752_monthly_bin43.fits scfile=/scratch/kocevski/570904/ft2_4FGL_J2005.5+7752_monthly_bin43.fits outfile=/scratch/kocevski/570904/cmap_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.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.80
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/570904/ft1_filtered_4FGL_J2005.5+7752_monthly_bin43.fits scfile=/scratch/kocevski/570904/ft2_4FGL_J2005.5+7752_monthly_bin43.fits outfile=/scratch/kocevski/570904/cmap_HighResolution_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.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.81
user 0.65
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/570904/ft1_filtered_4FGL_J2005.5+7752_monthly_bin43.fits', '/scratch/kocevski/570904/ft2_4FGL_J2005.5+7752_monthly_bin43.fits', expMap='/scratch/kocevski/570904/expmap_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.fits', expCube='/scratch/kocevski/570904/ltcube_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/570904/Model_4FGL_J2005.5+7752_monthly_bin43.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/570904/ft1_filtered_4FGL_J2005.5+7752_monthly_bin43.fits
Spacecraft file(s): /scratch/kocevski/570904/ft2_4FGL_J2005.5+7752_monthly_bin43.fits
Exposure map: /scratch/kocevski/570904/expmap_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.fits
Exposure cube: /scratch/kocevski/570904/ltcube_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/570904/Model_4FGL_J2005.5+7752_monthly_bin43.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 158845.018253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7145       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29902       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2149       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3055       1.0000         .10000E-03   10000.    
     5 'norm      '    6.2461       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4602       1.0000         .10000E-03   10000.    
     7 'norm      '    11.043       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62457       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2420       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.508       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5334       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.106       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3294       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3671       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1084       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95668       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=   158844.3     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1856 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7144        4.3202         .0000        .13780E-01
   2  Prefactor     .30000        .36813         .0000        .14058E-01
   3  Prefactor     6.2133        6.3778         .0000       -.30476E-02
   4  Prefactor     9.3057        9.2312         .0000        .41979E-03
   5  norm          6.2461        1.1413         .0000        .28846E-03
   6  norm          1.4602        .21039         .0000        .69093E-02
   7  norm          11.043        1.6176         .0000        .18695E-01
   8  Prefactor     .62236        .90109         .0000        .72709E-02
   9  Prefactor     .10000E-03    1.5816         .0000    ** at limit **
  10  Prefactor     1.2176        27.761         .0000        .42952E-03
  11  Prefactor     .10000E-03    .20897         .0000    ** at limit **
  12  norm          .10000E-03    3.4761         .0000    ** at limit **
  13  norm          3.5453        .99311         .0000        .71539E-02
  14  Prefactor     18.509        7.3306         .0000        .29223E-02
  15  norm          1.5335        .71454         .0000        .10443E-01
  16  Prefactor     11.106        3.7648         .0000        .97481E-02
  17  Prefactor     8.3301        7.4460         .0000        .11053E-02
  18  Prefactor     1.3764        1.7021         .0000        .21956    
  19  Normalizat    1.1084        .54530E-01     .0000        .55344E-03
  20  Prefactor     .95667        .15418E-01     .0000       -.86083E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.71436
  Prefactor  = 0.300005
  Prefactor  = 6.21332
  Prefactor  = 9.30568
  norm       = 6.24609
  norm       = 1.46021
  norm       = 11.0434
  Prefactor  = 0.622363
  Prefactor  = 0.0001
  Prefactor  = 1.21762
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.54535
  Prefactor  = 18.5092
  norm       = 1.53353
  Prefactor  = 11.1056
  Prefactor  = 8.33006
  Prefactor  = 1.37644
  Normalizat = 1.10841
  Prefactor  = 0.956669
 **********
 **   18 **HESSE 
 **********

 FCN=   158844.3     FROM HESSE     STATUS=OK           311 CALLS     2167 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7144        4.3190        .92663E-03   -1.5274    
   2  Prefactor     .30000        .79878        .23007E-02   -1.5598    
   3  Prefactor     6.2133        6.5587        .16103E-03   -1.5209    
   4  Prefactor     9.3057        9.2313        .13138E-03   -1.5098    
   5  norm          6.2461        1.1410        .16062E-03   -1.5208    
   6  norm          1.4602        .20885        .65259E-04   -1.5466    
   7  norm          11.043        1.6188        .60280E-03   -1.5043    
   8  Prefactor     .62236        2.1859        .42333E-02   -1.5550    
   9  Prefactor     .10000E-03    1.6021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2176        28.435        .40222E-03   -1.5487    
  11  Prefactor     .10000E-03    1.2933        .34533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.5041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5453        .98989        .19863E-03   -1.5331    
  14  Prefactor     18.509        7.3298        .93097E-04   -1.4847    
  15  norm          1.5335        .70538        .22079E-03   -1.5460    
  16  Prefactor     11.106        3.7561        .60110E-03   -1.5041    
  17  Prefactor     8.3301        7.4534        .13891E-03   -1.5131    
  18  Prefactor     1.3764        1.6860        .18655E-02   -1.5473    
  19  Normalizat    1.1084        .57429E-01    .43282E-03   -.89482    
  20  Prefactor     .95667        .16481E-01    .14048E-03   -.94188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00845e-07
Minuit parameter uncertainties:
  1  4.31925
  2  0.79881
  3  6.55945
  4  9.23276
  5  1.141
  6  0.20885
  7  1.61879
  8  2.18621
  9  1.42997e-06
  10  11.7742
  11  3.52445e-06
  12  1.72842e-06
  13  0.989894
  14  7.3302
  15  0.705387
  16  3.7562
  17  7.45428
  18  1.68606
  19  0.057432
  20  0.0164809
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  3.545e+00  9.899e-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:  9.567e-01  1.648e-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.108e+00  5.743e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.87
Ra Dec: 301.393 77.883
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.09e-08 +/- 8.62e-09
Energy Flux (Fixed Index): 1.46e-05 +/- 4.08e-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) = 158842.91715
delta logL = 1.38523330714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 158842.910574
delta logL = 1.39180927849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0346       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6032       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95883       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=   158842.9     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0345        6.6936        .58233E-02    .10666E-01
   2  alpha         2.6034        1.1199        .41196        .10099E-02
   3  Normalizat    1.0883        .19534E-01    .98451E-01    .47215E-03
   4  Prefactor     .95883        .51052E-02    .31755E-01   -.16924E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.03448
  alpha      = 2.6034
  Normalizat = 1.08831
  Prefactor  = 0.958832
 **********
 **   18 **HESSE 
 **********

 FCN=   158842.9     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0345        1.1568        .15809E-03   -1.5360    
   2  alpha         2.6034        .32639        .19074E-01    .41372E-01
   3  Normalizat    1.0883        .54384E-01    .43624E-03   -.90128    
   4  Prefactor     .95883        .16074E-01    .14032E-03   -.94115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80841e-07
Minuit parameter uncertainties:
  1  1.15683
  2  0.327322
  3  0.0543864
  4  0.0160736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570904': 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) = 158842.910574
delta logL = 1.39180956723

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  3.034e+00  1.157e+00  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  2.603e+00  3.273e-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.588e-01  1.607e-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.088e+00  5.439e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.96
Ra Dec: 301.393 77.883
Photon Index (Free Index): 2.60 +/- 0.33
Photon Flux (Free Index): 5.12e-08 +/- 1.62e-08
Energy Flux (Free Index): 1.38e-05 +/- 3.44e-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/570904/cmap_HighResolution_348451201_351043201_4FGL_J2005.5+7752_monthly_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.09e-08', energy_flux2='1.38e-05', photon_flux_error='8.62e-09', dlogl='1.39e+00', energy_flux='1.46e-05', photon_flux2='5.12e-08', job_status='DONE', time_completed='2021-11-05 15:45:12.059438', photon_index_error2='0.33', photon_index2='2.60', ts='23.87', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.44e-06', EG='1.11', time_epoch_completed='1636152312.06', return_code='0', job_id='570904', GAL2='0.96', EG2='1.09', return_code2='0', energy_flux_error='4.08e-06', photon_flux_error2='1.62e-08', ts2='26.96', photon_index='2.14' WHERE bin_id='43' AND source_name='4FGL J2005.5+7752' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Nov  5 15:45:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 570904: <4FGL_J2005.5+7752_monthly_bin43> in cluster <slac> Done

Job <4FGL_J2005.5+7752_monthly_bin43> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Nov  5 12:40:31 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Nov  5 13:04:50 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:50 2021
Terminated at Fri Nov  5 15:45:13 2021
Results reported at Fri Nov  5 15:45:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.5+7752_monthly_bin43 301.393 77.8829 348451201 351043201 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 :                                   8681.00 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             520.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9623 sec.
    Turnaround time :                            11082 sec.

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

