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


Performing analysis on: 4FGL_J2005.5+7752_monthly_bin121
RA = 301.393, Dec = 77.8829
tmin = 550627201, tmax = 553219201
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='574274', job_status='RUN', time_executed='2021-11-05 13:06:26.349371', time_epoch_executed='1636142786.35' WHERE source_name='4FGL J2005.5+7752' and cadence='monthly' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574274

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574274/ft1_4FGL_J2005.5+7752_monthly_bin121.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574274/ft2_4FGL_J2005.5+7752_monthly_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574274/ft1_4FGL_J2005.5+7752_monthly_bin121.fits outfile=/scratch/kocevski/574274/ft1_filteredMKT_4FGL_J2005.5+7752_monthly_bin121.fits ra=301.393 dec=77.8829 rad=12.0 tmin=550627201.0 tmax=553219201.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.16
user 29.54
sys 0.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574274/ft1_filtered_4FGL_J2005.5+7752_monthly_bin121.fits" evtable="EVENTS" scfile=/scratch/kocevski/574274/ft2_4FGL_J2005.5+7752_monthly_bin121.fits sctable="SC_DATA" outfile=/scratch/kocevski/574274/ltcube_550627201_553219201_4FGL_J2005.5+7752_monthly_bin121.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/574274/ft2_4FGL_J2005.5+7752_monthly_bin121.fits
.....................!
real 115.11
user 114.25
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574274/ft1_filtered_4FGL_J2005.5+7752_monthly_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/574274/ft2_4FGL_J2005.5+7752_monthly_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/574274/ltcube_550627201_553219201_4FGL_J2005.5+7752_monthly_bin121.fits outfile=/scratch/kocevski/574274/expmap_550627201_553219201_4FGL_J2005.5+7752_monthly_bin121.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/574274/ltcube_550627201_553219201_4FGL_J2005.5+7752_monthly_bin121.fits
.....................!
real 192.03
user 186.90
sys 4.68

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/574274/ft1_filtered_4FGL_J2005.5+7752_monthly_bin121.fits scfile=/scratch/kocevski/574274/ft2_4FGL_J2005.5+7752_monthly_bin121.fits outfile=/scratch/kocevski/574274/cmap_550627201_553219201_4FGL_J2005.5+7752_monthly_bin121.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.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574274/ft1_filtered_4FGL_J2005.5+7752_monthly_bin121.fits scfile=/scratch/kocevski/574274/ft2_4FGL_J2005.5+7752_monthly_bin121.fits outfile=/scratch/kocevski/574274/cmap_HighResolution_550627201_553219201_4FGL_J2005.5+7752_monthly_bin121.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.80
user 0.61
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3220       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.833       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.1820       1.0000         .10000E-03   10000.    
     6 'norm      '    .75525       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2627       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9629       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1863       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.595       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .50202       1.0000         .10000E-03   10000.    
    12 'norm      '    9.8126       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1491       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.659       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9020       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8384       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1233       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96130       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=   140836.5     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     1865 TOTAL
                     EDM=   .70E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3152       -.29584E-07** at limit **
   2  Prefactor     3.3220        .92144       -.72374E-07   -.12120E-03
   3  Prefactor     12.836        8.2431        .74351E-06    .90487E-05
   4  Prefactor     .10000E-03    16.861        .15686E-05** at limit **
   5  norm          9.1820        1.3573       -.12733E-08   -.73711E-05
   6  norm          .75528        .17157       -.85910E-08   -.40289E-03
   7  norm          4.2627        1.3376        .28750E-08   -.34232E-04
   8  Prefactor     3.9645        2.3428       -.27861E-08   -.43475E-03
   9  Prefactor     1.1865        .88722        .18537E-07   -.65207E-03
  10  Prefactor     14.586        12.541       -.18611E-05   -.16492E-05
  11  Prefactor     .50215        .60911        .22350E-07   -.68149E-04
  12  norm          9.8079        7.2956       -.43832E-05   -.35865E-05
  13  norm          1.1518        .84151       -.54196E-07   -.20632E-03
  14  Prefactor     47.660        8.9017        .60919E-07   -.49848E-05
  15  norm          1.9020        .85145        .11385E-07   -.76081E-04
  16  Prefactor     8.8371        3.5917        .17625E-06    .10370E-04
  17  Prefactor     .10000E-03    1.6490       -.91615E-07** at limit **
  18  Prefactor     .10000E-03    1.6623       -.92320E-08** at limit **
  19  Normalizat    1.1232        .57529E-01   -.10704E-06    .24134E-04
  20  Prefactor     .96130        .16453E-01    .34835E-07   -.12580E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.32201
  Prefactor  = 12.8356
  Prefactor  = 0.0001
  norm       = 9.18203
  norm       = 0.755277
  norm       = 4.26269
  Prefactor  = 3.96452
  Prefactor  = 1.18648
  Prefactor  = 14.586
  Prefactor  = 0.502149
  norm       = 9.80789
  norm       = 1.15178
  Prefactor  = 47.6602
  norm       = 1.90205
  Prefactor  = 8.83713
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.12322
  Prefactor  = 0.961302
 **********
 **   18 **HESSE 
 **********

 FCN=   140836.5     FROM HESSE     STATUS=OK           313 CALLS     2178 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3220        .91614        .16237E-03   -1.5343    
   3  Prefactor     12.836        8.2017        .11182E-03   -1.4991    
   4  Prefactor     .10000E-03    17.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1820        1.3571        .13226E-03   -1.5102    
   6  norm          .75528        .16945        .69920E-04   -1.5534    
   7  norm          4.2627        1.3338        .19515E-03   -1.5295    
   8  Prefactor     3.9645        2.3319        .10131E-02   -1.5310    
   9  Prefactor     1.1865        3.1573        .20942E-02   -1.5490    
  10  Prefactor     14.586        12.544        .10484E-03   -1.4944    
  11  Prefactor     .50215        1.3661        .29750E-02   -1.5566    
  12  norm          9.8079        7.2946        .12792E-03   -1.5082    
  13  norm          1.1518        .82784        .27995E-03   -1.5493    
  14  Prefactor     47.660        8.8994        .58083E-04   -1.4326    
  15  norm          1.9020        .84418        .21997E-03   -1.5432    
  16  Prefactor     8.8371        3.5722        .13482E-03   -1.5113    
  17  Prefactor     .10000E-03    1.6444        .16147       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7247        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1232        .61415E-01    .43186E-03   -.89010    
  20  Prefactor     .96130        .17623E-01    .14111E-03   -.94031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32503e-07
Minuit parameter uncertainties:
  1  1.04188e-07
  2  0.916149
  3  8.20237
  4  2.24639e-05
  5  1.3571
  6  0.16945
  7  1.33377
  8  2.33195
  9  3.15778
  10  12.5459
  11  1.36619
  12  7.29526
  13  0.827844
  14  8.89964
  15  0.84419
  16  3.57233
  17  0.000138075
  18  5.75413e-09
  19  0.0614189
  20  0.0176232
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  1.152e+00  8.278e-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.613e-01  1.762e-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.123e+00  6.142e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 301.393 77.883
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.00e-08 +/- 7.21e-09
Energy Flux (Fixed Index): 4.75e-06 +/- 3.41e-06

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

Saving results to:
/scratch/kocevski/574274/likelihoodResults_550627201_553219201_4FGL_J2005.5+7752_monthly_bin121.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) = 140836.532814
delta logL = 4.19800344389e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 140836.532807
delta logL = 4.82838368043e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1494       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1346       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96129       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=   140836.5     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      251 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1496        .81968        .28032E-03   -.20713E-02
   2  alpha         2.1343        .70240        .62215E-01   -.10048E-03
   3  Normalizat    1.1233        .56677E-01    .43185E-03    .50040E-03
   4  Prefactor     .96129        .17098E-01    .14111E-03    .19774E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14957
  alpha      = 2.13425
  Normalizat = 1.12332
  Prefactor  = 0.961295
 **********
 **   18 **HESSE 
 **********

 FCN=   140836.5     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1496        .84910        .11213E-04   -1.5494    
   2  alpha         2.1343        .73445        .24886E-02   -.14683    
   3  Normalizat    1.1233        .56735E-01    .17274E-04   -.89007    
   4  Prefactor     .96129        .17097E-01    .56443E-05   -.94031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11224e-10
Minuit parameter uncertainties:
  1  0.849113
  2  0.745696
  3  0.0567376
  4  0.0170975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574274': 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) = 140836.532807
delta logL = 4.86368953716e-05

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  1.150e+00  8.491e-01  1.000e-04  1.000e+04 ( 1.000e-12)
493        alpha:  2.134e+00  7.457e-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.613e-01  1.710e-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.123e+00  5.674e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 301.393 77.883
Photon Index (Free Index): 2.13 +/- 0.75
Photon Flux (Free Index): 9.92e-09 +/- 1.34e-08
Energy Flux (Free Index): 4.75e-06 +/- 3.42e-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/574274/cmap_HighResolution_550627201_553219201_4FGL_J2005.5+7752_monthly_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-05', comment='SUCCESS', photon_flux='1.00e-08', energy_flux2='4.75e-06', photon_flux_error='7.21e-09', dlogl='4.86e-05', energy_flux='4.75e-06', photon_flux2='9.92e-09', job_status='DONE', time_completed='2021-11-05 16:03:47.695925', photon_index_error2='0.75', photon_index2='2.13', ts='2.88', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.43e-08', energy_flux_error2='3.42e-06', EG='1.12', time_epoch_completed='1636153427.7', return_code='0', job_id='574274', GAL2='0.96', EG2='1.12', return_code2='0', energy_flux_error='3.41e-06', photon_flux_error2='1.34e-08', ts2='2.88', photon_index='2.14' WHERE bin_id='121' AND source_name='4FGL J2005.5+7752' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Nov  5 16:03:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 574274: <4FGL_J2005.5+7752_monthly_bin121> in cluster <slac> Done

Job <4FGL_J2005.5+7752_monthly_bin121> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Nov  5 12:55:21 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Nov  5 13:05:01 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:05:01 2021
Terminated at Fri Nov  5 16:03:49 2021
Results reported at Fri Nov  5 16:03:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.5+7752_monthly_bin121 301.393 77.8829 550627201 553219201 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 :                                   9626.00 sec.
    Max Memory :                                 642 MB
    Average Memory :                             498.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10727 sec.
    Turnaround time :                            11308 sec.

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

