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


Performing analysis on: 4FGL_J2005.5+7752_monthly_bin34
RA = 301.393, Dec = 77.8829
tmin = 325123201, tmax = 327715201
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='570891', job_status='RUN', time_executed='2021-11-05 13:07:22.534442', time_epoch_executed='1636142842.53' WHERE source_name='4FGL J2005.5+7752' and cadence='monthly' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570891

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570891/ft1_4FGL_J2005.5+7752_monthly_bin34.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570891/ft2_4FGL_J2005.5+7752_monthly_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570891/ft1_4FGL_J2005.5+7752_monthly_bin34.fits outfile=/scratch/kocevski/570891/ft1_filteredMKT_4FGL_J2005.5+7752_monthly_bin34.fits ra=301.393 dec=77.8829 rad=12.0 tmin=325123201.0 tmax=327715201.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.47
user 29.51
sys 0.77

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/570891/ft2_4FGL_J2005.5+7752_monthly_bin34.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/570891/ft1_filteredMKT_4FGL_J2005.5+7752_monthly_bin34.fits evtable="EVENTS" outfile="/scratch/kocevski/570891/ft1_filtered_4FGL_J2005.5+7752_monthly_bin34.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.83
user 0.65
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570891/ft1_filtered_4FGL_J2005.5+7752_monthly_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/570891/ft2_4FGL_J2005.5+7752_monthly_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/570891/ltcube_325123201_327715201_4FGL_J2005.5+7752_monthly_bin34.fits outfile=/scratch/kocevski/570891/expmap_325123201_327715201_4FGL_J2005.5+7752_monthly_bin34.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/570891/ltcube_325123201_327715201_4FGL_J2005.5+7752_monthly_bin34.fits
.....................!
real 193.51
user 186.75
sys 5.44

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES 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/570891/ft1_filtered_4FGL_J2005.5+7752_monthly_bin34.fits scfile=/scratch/kocevski/570891/ft2_4FGL_J2005.5+7752_monthly_bin34.fits outfile=/scratch/kocevski/570891/cmap_325123201_327715201_4FGL_J2005.5+7752_monthly_bin34.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.79
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/570891/ft1_filtered_4FGL_J2005.5+7752_monthly_bin34.fits scfile=/scratch/kocevski/570891/ft2_4FGL_J2005.5+7752_monthly_bin34.fits outfile=/scratch/kocevski/570891/cmap_HighResolution_325123201_327715201_4FGL_J2005.5+7752_monthly_bin34.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.63
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .99202       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .80157E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0749       1.0000         .10000E-03   10000.    
     5 'norm      '    7.3613       1.0000         .10000E-03   10000.    
     6 'norm      '    3.1797       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3552       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45360E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11060E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.4914       1.0000         .10000E-03   10000.    
    13 'norm      '    6.6696       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.897       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5414       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8813       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40189E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0833       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98515       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=   161672.8     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     1861 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99634        1.3789       -.17450E-06   -.97330E-03
   2  Prefactor     .99435        .67506        .12442E-06   -.55645E-03
   3  Prefactor     .36107E-01    1.5720       -.25108E-06   -.44408E-04
   4  Prefactor     5.1379        12.805       -.61893E-06   -.91198E-05
   5  norm          7.3617        1.1930       -.33005E-08    .43760E-04
   6  norm          3.1800        .25987        .11088E-07    .12795E-02
   7  norm          3.3552        1.1525       -.14338E-07   -.49833E-03
   8  Prefactor     .10000E-03    .38494       -.17829E-07** at limit **
   9  Prefactor     .10000E-03    .86017        .27374E-07** at limit **
  10  Prefactor     .10000E-03    4.7869       -.15036E-06** at limit **
  11  Prefactor     .10000E-03    .50128       -.74055E-08** at limit **
  12  norm          5.4944        4.6212        .13241E-05    .24440E-04
  13  norm          6.6703        1.1252       -.44536E-08   -.26542E-03
  14  Prefactor     16.896        7.4513       -.38552E-06   -.18260E-04
  15  norm          2.5414        .76266        .92808E-09   -.58576E-03
  16  Prefactor     4.8705        3.0168       -.10766E-06   -.81959E-04
  17  Prefactor     .10000E-03    6.2260        .14780E-05** at limit **
  18  Prefactor     .10000E-03    .40791       -.18940E-07** at limit **
  19  Normalizat    1.0834        .43087E-01    .82038E-07   -.90213E-03
  20  Prefactor     .98513        .13717E-01    .26349E-08    .13318E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.996336
  Prefactor  = 0.994351
  Prefactor  = 0.0361072
  Prefactor  = 5.13788
  norm       = 7.36167
  norm       = 3.18002
  norm       = 3.35519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.49435
  norm       = 6.67029
  Prefactor  = 16.8957
  norm       = 2.54136
  Prefactor  = 4.87051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08338
  Prefactor  = 0.985133
 **********
 **   18 **HESSE 
 **********

 FCN=   161672.8     FROM HESSE     STATUS=OK           315 CALLS     2176 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99634        1.9481        .65324E-02   -1.5508    
   2  Prefactor     .99435        .67073        .24168E-03   -1.5509    
   3  Prefactor     .36107E-01    1.6212        .13154       -1.5670    
   4  Prefactor     5.1379        12.828        .17848E-03   -1.5255    
   5  norm          7.3617        1.1945        .14783E-03   -1.5165    
   6  norm          3.1800        .26293        .55508E-04   -1.5351    
   7  norm          3.3552        1.1393        .22094E-03   -1.5342    
   8  Prefactor     .10000E-03    1.6404        .46359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9662        .70253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .52350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.4944        4.5946        .17146E-03   -1.5239    
  13  norm          6.6703        1.1236        .15538E-03   -1.5191    
  14  Prefactor     16.896        7.4497        .97435E-04   -1.4886    
  15  norm          2.5414        .76299        .18684E-03   -1.5389    
  16  Prefactor     4.8705        3.0098        .18206E-03   -1.5267    
  17  Prefactor     .10000E-03    6.3224        .42523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5444        .49770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0834        .57765E-01    .22339E-02   -.90287    
  20  Prefactor     .98513        .16587E-01    .14175E-03   -.93227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12721e-07
Minuit parameter uncertainties:
  1  1.94823
  2  0.670736
  3  0.483232
  4  12.8353
  5  1.19449
  6  0.262929
  7  1.13933
  8  3.50358e-06
  9  8.0191e-05
  10  3.89764e-07
  11  1.3247e-07
  12  4.59491
  13  1.12361
  14  7.45013
  15  0.762997
  16  3.00993
  17  8.68231e-06
  18  1.64619e-06
  19  0.0577682
  20  0.0165875
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  6.670e+00  1.124e+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.851e-01  1.659e-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.083e+00  5.777e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 78.15
Ra Dec: 301.393 77.883
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 9.78e-09
Energy Flux (Fixed Index): 2.75e-05 +/- 4.63e-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) = 161672.303847
delta logL = 0.526954850677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 161672.303365
delta logL = 0.527437203098

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3355       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2987       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98610       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   161672.3     FROM MIGRAD    STATUS=FAILED        96 CALLS      289 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3350        1.1480        .15947E-04   -.10950E-03
   2  alpha         2.2988        .15801        .14596E-01    .29842E-02
   3  Normalizat    1.0737        .54343E-01    .44850E-03    .51913E-04
   4  Prefactor     .98614        .16301E-01    .14168E-03   -.35692E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   161672.3     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      356 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3350        1.1480        .18786E-04   -1.5205    
   2  alpha         2.2988        .15801        .33250E-03   -.80586E-01
   3  Normalizat    1.0737        .54343E-01    .71280E-04   -.90601    
   4  Prefactor     .98614        .16301E-01    .25792E-04   -.93193    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   161672.3     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      387 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3350        1.1227        .31894E-05   -.11407E-03
   2  alpha         2.2988        .15440        .29193E-02   -.14830E-04
   3  Normalizat    1.0737        .54324E-01    .17940E-04    .52724E-04
   4  Prefactor     .98614        .16302E-01    .56672E-05   -.34664E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33501
  alpha      = 2.29875
  Normalizat = 1.0737
  Prefactor  = 0.986136
 **********
 **   18 **HESSE 
 **********

 FCN=   161672.3     FROM HESSE     STATUS=OK            23 CALLS      410 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3350        1.1172        .63787E-06   -1.5205    
   2  alpha         2.2988        .15361        .11677E-03   -.80586E-01
   3  Normalizat    1.0737        .54279E-01    .35880E-05   -.90601    
   4  Prefactor     .98614        .16297E-01    .11334E-05   -.93193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0973e-11
Minuit parameter uncertainties:
  1  1.11719
  2  0.15371
  3  0.0542815
  4  0.0162971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570891': 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) = 161672.303362
delta logL = 0.527440444217

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  6.335e+00  1.117e+00  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  2.299e+00  1.537e-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.861e-01  1.630e-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.074e+00  5.428e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 79.39
Ra Dec: 301.393 77.883
Photon Index (Free Index): 2.30 +/- 0.15
Photon Flux (Free Index): 6.82e-08 +/- 1.45e-08
Energy Flux (Free Index): 2.55e-05 +/- 4.40e-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/570891/cmap_HighResolution_325123201_327715201_4FGL_J2005.5+7752_monthly_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='2.55e-05', photon_flux_error='9.78e-09', dlogl='5.27e-01', energy_flux='2.75e-05', photon_flux2='6.82e-08', job_status='DONE', time_completed='2021-11-05 15:55:31.917197', photon_index_error2='0.15', photon_index2='2.30', ts='78.15', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='4.40e-06', EG='1.08', time_epoch_completed='1636152931.92', return_code='0', job_id='570891', GAL2='0.99', EG2='1.07', return_code2='0', energy_flux_error='4.63e-06', photon_flux_error2='1.45e-08', ts2='79.39', photon_index='2.14' WHERE bin_id='34' AND source_name='4FGL J2005.5+7752' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Nov  5 15:55:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 570891: <4FGL_J2005.5+7752_monthly_bin34> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.5+7752_monthly_bin34 301.393 77.8829 325123201 327715201 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 :                                   9172.00 sec.
    Max Memory :                                 645 MB
    Average Memory :                             526.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10243 sec.
    Turnaround time :                            11703 sec.

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

