/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 75 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 = 7421
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2252.0+4031_daily_bin33
RA = 343.01, Dec = 40.5232
tmin = 247881601, tmax = 248140801
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='554358', job_status='RUN', time_executed='2021-09-29 00:46:53.306879', time_epoch_executed='1632901613.31' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554358

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554358/ft1_4FGL_J2252.0+4031_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554358/ft2_4FGL_J2252.0+4031_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554358/ft1_4FGL_J2252.0+4031_daily_bin33.fits outfile=/scratch/kocevski/554358/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin33.fits ra=343.01 dec=40.5232 rad=12.0 tmin=247881601.0 tmax=248140801.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 1.39
user 1.23
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/554358/ft2_4FGL_J2252.0+4031_daily_bin33.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/554358/ft2_4FGL_J2252.0+4031_daily_bin33.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/554358/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin33.fits evtable="EVENTS" outfile="/scratch/kocevski/554358/ft1_filtered_4FGL_J2252.0+4031_daily_bin33.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554358/ft1_filtered_4FGL_J2252.0+4031_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/554358/ft2_4FGL_J2252.0+4031_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/554358/ltcube_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.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/554358/ft2_4FGL_J2252.0+4031_daily_bin33.fits
.....................!
real 12.26
user 11.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554358/ft1_filtered_4FGL_J2252.0+4031_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/554358/ft2_4FGL_J2252.0+4031_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/554358/ltcube_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.fits outfile=/scratch/kocevski/554358/expmap_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.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/554358/ltcube_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.fits
.....................!
real 190.85
user 185.94
sys 4.55

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 J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 173 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 J2252.0+4031 @ 343.01 40.5232

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/554358/ft1_filtered_4FGL_J2252.0+4031_daily_bin33.fits scfile=/scratch/kocevski/554358/ft2_4FGL_J2252.0+4031_daily_bin33.fits outfile=/scratch/kocevski/554358/cmap_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.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=343.01 yref=40.5232 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554358/ft1_filtered_4FGL_J2252.0+4031_daily_bin33.fits scfile=/scratch/kocevski/554358/ft2_4FGL_J2252.0+4031_daily_bin33.fits outfile=/scratch/kocevski/554358/cmap_HighResolution_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.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=343.01 yref=40.5232 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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/554358/ft1_filtered_4FGL_J2252.0+4031_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/554358/ft2_4FGL_J2252.0+4031_daily_bin33.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/554358/Model_4FGL_J2252.0+4031_daily_bin33.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/554358/ft1_filtered_4FGL_J2252.0+4031_daily_bin33.fits.....................!
real 138.13
user 136.62
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/554358/ft1_filtered_4FGL_J2252.0+4031_daily_bin33.fits', '/scratch/kocevski/554358/ft2_4FGL_J2252.0+4031_daily_bin33.fits', expMap='/scratch/kocevski/554358/expmap_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.fits', expCube='/scratch/kocevski/554358/ltcube_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/554358/Model_4FGL_J2252.0+4031_daily_bin33.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2252.0+4031'

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  2.093e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/554358/ft1_filtered_4FGL_J2252.0+4031_daily_bin33.fits
Spacecraft file(s): /scratch/kocevski/554358/ft2_4FGL_J2252.0+4031_daily_bin33.fits
Exposure map: /scratch/kocevski/554358/expmap_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.fits
Exposure cube: /scratch/kocevski/554358/ltcube_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/554358/Model_4FGL_J2252.0+4031_daily_bin33.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) = 11360.2055595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12474E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.090       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3530       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2657       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.294       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6132       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0619       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.986       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1338       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4585       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4597       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83199       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11360.11     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1731 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0514        .85121        .28284E-07   -.21164E-03
   2  Prefactor     .10000E-03    9.1642        .42981E-06** at limit **
   3  Prefactor     23.094        15.802       -.31484E-06   -.24463E-04
   4  Prefactor     .10000E-03    31.326        .10097E-04** at limit **
   5  Prefactor     4.3492        7.3765       -.27505E-06   -.80935E-04
   6  Prefactor     .10000E-03    29.645       -.87986E-05** at limit **
   7  norm          4.2671        3.9799        .12287E-07   -.33872E-04
   8  Prefactor     18.294        14.986        .35362E-07   -.16535E-05
   9  Prefactor     4.6126        4.6260        .35495E-06   -.13047E-02
  10  Prefactor     .10000E-03    10.034        .28586E-06** at limit **
  11  norm          5.0616        1.9329       -.84183E-08   -.41486E-04
  12  Prefactor     22.984        13.251        .10004E-06    .20801E-05
  13  norm          4.1330        3.0303        .50484E-07   -.19778E-02
  14  norm          .10000E-03    4.0378       -.16395E-07** at limit **
  15  Prefactor     .10000E-03    8.8250       -.99929E-06** at limit **
  16  norm          1.4583        1.6677       -.10230E-07   -.20189E-04
  17  Prefactor     .10000E-03    8.2303        .31471E-06** at limit **
  18  Prefactor     .10000E-03    59.975       -.19153E-05** at limit **
  19  Normalizat    1.4597        .21757        .23308E-07    .30257E-04
  20  Prefactor     .83203        .67155E-01    .56547E-08    .45185E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05144
  Prefactor  = 0.0001
  Prefactor  = 23.0942
  Prefactor  = 0.0001
  Prefactor  = 4.34923
  Prefactor  = 0.0001
  norm       = 4.26714
  Prefactor  = 18.2936
  Prefactor  = 4.61258
  Prefactor  = 0.0001
  norm       = 5.06156
  Prefactor  = 22.984
  norm       = 4.13304
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.45973
  Prefactor  = 0.832033
 **********
 **   18 **HESSE 
 **********

 FCN=   11360.11     FROM HESSE     STATUS=OK           295 CALLS     2026 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0514        .81929        .79776E-04   -1.5503    
   2  Prefactor     .10000E-03    9.1688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.094        15.598        .83359E-04   -1.4746    
   4  Prefactor     .10000E-03    31.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3492        7.2747        .19306E-03   -1.5291    
   6  Prefactor     .10000E-03    29.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2671        3.9446        .17138E-03   -1.5295    
   8  Prefactor     18.294        14.989        .93641E-04   -1.4852    
   9  Prefactor     4.6126        5.6124        .93698E-03   -1.5278    
  10  Prefactor     .10000E-03    10.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0616        1.9393        .86410E-04   -1.5258    
  12  Prefactor     22.984        13.270        .83548E-04   -1.4749    
  13  norm          4.1330        4.3658        .99129E-03   -1.5301    
  14  norm          .10000E-03    4.0435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4583        1.6583        .14227E-03   -1.5466    
  17  Prefactor     .10000E-03    8.2368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    60.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4597        .25001        .39346E-03   -.78916    
  20  Prefactor     .83203        .77243E-01    .15833E-03   -.98558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96361e-09
Minuit parameter uncertainties:
  1  0.819301
  2  9.76175e-06
  3  15.6009
  4  0.000162945
  5  7.2762
  6  9.63215e-05
  7  3.94485
  8  14.9921
  9  5.61308
  10  1.93385e-06
  11  1.9393
  12  13.2716
  13  4.36618
  14  4.28518e-07
  15  5.06487e-06
  16  1.65832
  17  2.51983e-06
  18  4.3631e-05
  19  0.250216
  20  0.0772534
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  4.613e+00  5.613e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  8.320e-01  7.725e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.460e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 343.010 40.523
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.82e-05

TS (Fixed Index): 1.02
Ra Dec: 343.010 40.523
Photon Flux Upper Limit: 9.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554358/likelihoodResults_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.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) = 11360.0555567
delta logL = 0.0539264957624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11360.0549665
delta logL = 0.0545166649845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4358       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3047       1.0000          .0000       10.000    
     3 'Normalizat'    1.4529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11360.05     FROM MIGRAD    STATUS=FAILED        90 CALLS      309 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4354        6.8965        .21278E-03   -.13143E-03
   2  Index         2.3050        .94682        .92346E-02    .76526E-03
   3  Normalizat    1.4530        .24033        .39417E-03   -.19584E-03
   4  Prefactor     .83291        .75658E-01    .15824E-03   -.53709E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11360.05     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      381 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4354        6.8965        .86734E-04   -1.5337    
   2  Index         2.3050        .94682        .39946E-03   -.56926    
   3  Normalizat    1.4530        .24033        .37678E-03   -.79109    
   4  Prefactor     .83291        .75658E-01    .12454E-03   -.98527    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11360.05     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      418 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4354        5.8083        .85114E-05   -.38468E-04
   2  Index         2.3050        .79968        .18469E-02    .18466E-05
   3  Normalizat    1.4530        .24015        .15767E-04   -.12114E-04
   4  Prefactor     .83291        .75642E-01    .31649E-04   -.31611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43537
  Index      = 2.30495
  Normalizat = 1.45296
  Prefactor  = 0.832906
 **********
 **   18 **HESSE 
 **********

 FCN=   11360.05     FROM HESSE     STATUS=OK            23 CALLS      441 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4354        5.6478        .17023E-05   -1.5337    
   2  Index         2.3050        .77776        .73877E-04   -.56926    
   3  Normalizat    1.4530        .23995        .31533E-05   -.79109    
   4  Prefactor     .83291        .75600E-01    .63298E-05   -.98527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68877e-12
Minuit parameter uncertainties:
  1  5.64865
  2  0.782255
  3  0.24014
  4  0.0756093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554358': 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) = 11360.0549662
delta logL = 0.0545169892994

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  3.435e+00  5.649e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.305e+00  7.823e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  8.329e-01  7.561e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.453e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 343.010 40.523
Photon Index (Free Index): 2.30 +/- 0.78
Photon Flux (Free Index): 3.21e-08 +/- 4.06e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.53e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/554358/cmap_HighResolution_247881601_248140801_4FGL_J2252.0+4031_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='1.21e-05', photon_flux_error='2.98e-08', dlogl='5.45e-02', energy_flux='1.50e-05', photon_flux2='3.21e-08', job_status='DONE', time_completed='2021-09-29 01:01:23.261377', photon_index_error2='0.78', photon_index2='2.30', ts='1.02', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.57e-08', energy_flux_error2='1.53e-05', EG='1.46', time_epoch_completed='1632902483.26', return_code='0', job_id='554358', GAL2='0.83', EG2='1.45', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='4.06e-08', ts2='1.13', photon_index='2.05' WHERE bin_id='33' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:01:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 554358: <4FGL_J2252.0+4031_daily_bin33> in cluster <slac> Done

Job <4FGL_J2252.0+4031_daily_bin33> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:45:27 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:45:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:45:28 2021
Terminated at Wed Sep 29 01:01:23 2021
Results reported at Wed Sep 29 01:01:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin33 343.01 40.5232 247881601 248140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2252.0+4031 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   869.32 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             347.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            956 sec.

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

