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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin684
RA = 343.01, Dec = 40.5232
tmin = 416620801, tmax = 416880001
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='558905', job_status='RUN', time_executed='2021-09-29 01:02:25.095682', time_epoch_executed='1632902545.1' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/558905

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/558905/ft1_4FGL_J2252.0+4031_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/558905/ft2_4FGL_J2252.0+4031_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/558905/ft1_4FGL_J2252.0+4031_daily_bin684.fits outfile=/scratch/kocevski/558905/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin684.fits ra=343.01 dec=40.5232 rad=12.0 tmin=416620801.0 tmax=416880001.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 5.21
user 4.95
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/558905/ft2_4FGL_J2252.0+4031_daily_bin684.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/558905/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/558905/ft1_filtered_4FGL_J2252.0+4031_daily_bin684.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.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/558905/ft1_filtered_4FGL_J2252.0+4031_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/558905/ft2_4FGL_J2252.0+4031_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/558905/ltcube_416620801_416880001_4FGL_J2252.0+4031_daily_bin684.fits outfile=/scratch/kocevski/558905/expmap_416620801_416880001_4FGL_J2252.0+4031_daily_bin684.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/558905/ltcube_416620801_416880001_4FGL_J2252.0+4031_daily_bin684.fits
.....................!
real 191.02
user 185.64
sys 4.96

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/558905/ft1_filtered_4FGL_J2252.0+4031_daily_bin684.fits scfile=/scratch/kocevski/558905/ft2_4FGL_J2252.0+4031_daily_bin684.fits outfile=/scratch/kocevski/558905/cmap_416620801_416880001_4FGL_J2252.0+4031_daily_bin684.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/558905/ft1_filtered_4FGL_J2252.0+4031_daily_bin684.fits scfile=/scratch/kocevski/558905/ft2_4FGL_J2252.0+4031_daily_bin684.fits outfile=/scratch/kocevski/558905/cmap_HighResolution_416620801_416880001_4FGL_J2252.0+4031_daily_bin684.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/558905/ft1_filtered_4FGL_J2252.0+4031_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/558905/ft2_4FGL_J2252.0+4031_daily_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/558905/Model_4FGL_J2252.0+4031_daily_bin684.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/558905/ft1_filtered_4FGL_J2252.0+4031_daily_bin684.fits.....................!
real 151.16
user 149.64
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/558905/ft1_filtered_4FGL_J2252.0+4031_daily_bin684.fits', '/scratch/kocevski/558905/ft2_4FGL_J2252.0+4031_daily_bin684.fits', expMap='/scratch/kocevski/558905/expmap_416620801_416880001_4FGL_J2252.0+4031_daily_bin684.fits', expCube='/scratch/kocevski/558905/ltcube_416620801_416880001_4FGL_J2252.0+4031_daily_bin684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/558905/Model_4FGL_J2252.0+4031_daily_bin684.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/558905/ft1_filtered_4FGL_J2252.0+4031_daily_bin684.fits
Spacecraft file(s): /scratch/kocevski/558905/ft2_4FGL_J2252.0+4031_daily_bin684.fits
Exposure map: /scratch/kocevski/558905/expmap_416620801_416880001_4FGL_J2252.0+4031_daily_bin684.fits
Exposure cube: /scratch/kocevski/558905/ltcube_416620801_416880001_4FGL_J2252.0+4031_daily_bin684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/558905/Model_4FGL_J2252.0+4031_daily_bin684.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) = 11942.3390603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.572       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.362       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9825       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   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      '    2.3184       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3284       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88697       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.

 FCN=   11942.30     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1735 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1506        .67357        .70243E-02    .90249E-03
   2  Prefactor     .10000E-03    6.5800        .90712E-02** at limit **
   3  Prefactor     .10005E-03    16.232        .90712E-02** at limit **
   4  Prefactor     .10020E-03    24.307        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.2080        .90712E-02** at limit **
   6  Prefactor     .10001E-03    13.633        .90712E-02** at limit **
   7  norm          .10000E-03    1.6244        .90712E-02** at limit **
   8  Prefactor     9.4563        17.551        .32580E-02    .86999E-04
   9  Prefactor     10.572        6.6356        .30807E-02    .38476E-03
  10  Prefactor     13.361        17.937        .27395E-02    .16409E-03
  11  norm          4.9824        2.0536        .45041E-02    .43692E-02
  12  Prefactor     .10000E-03    5.6841        .90712E-02** at limit **
  13  norm          .10000E-03    1.7839        .90712E-02** at limit **
  14  norm          .10000E-03    3.4151        .90712E-02** at limit **
  15  Prefactor     .10000E-03    13.814        .90712E-02** at limit **
  16  norm          2.3184        2.5008        .67353E-02    .43742E-03
  17  Prefactor     .10000E-03    18.612        .90712E-02** at limit **
  18  Prefactor     .10009E-03    29.275        .90712E-02** at limit **
  19  Normalizat    1.3284        .23741        .10352        .30529E-05
  20  Prefactor     .88697        .65722E-01    .34228E-01   -.78723E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15058
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 0.000100203
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 9.45631
  Prefactor  = 10.572
  Prefactor  = 13.3611
  norm       = 4.9824
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.31835
  Prefactor  = 0.0001
  Prefactor  = 0.00010009
  Normalizat = 1.32841
  Prefactor  = 0.886967
 **********
 **   18 **HESSE 
 **********

 FCN=   11942.30     FROM HESSE     STATUS=OK           285 CALLS     2020 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1506        .67315        .47684E-04   -1.5415    
   2  Prefactor     .10000E-03    6.5944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    16.703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10020E-03    24.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    13.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6384        .13588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4563        17.542        .13032E-03   -1.5093    
   9  Prefactor     10.572        6.6287        .12323E-03   -1.5058    
  10  Prefactor     13.361        17.934        .10958E-03   -1.4977    
  11  norm          4.9824        2.0544        .48529E-03   -1.5262    
  12  Prefactor     .10000E-03    5.7184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7860        .14254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3184        2.4931        .17458E-03   -1.5403    
  17  Prefactor     .10000E-03    18.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    29.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3284        .26653        .45878E-03   -.82722    
  20  Prefactor     .88697        .74176E-01    .15124E-03   -.96598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52734e-08
Minuit parameter uncertainties:
  1  0.673155
  2  7.3091e-05
  3  0.00187864
  4  0.004445
  5  3.82963e-06
  6  0.000589224
  7  4.72829e-06
  8  17.5512
  9  6.6292
  10  17.941
  11  2.05445
  12  1.73493e-05
  13  5.54797e-06
  14  8.99021e-06
  15  0.000134382
  16  2.49321
  17  0.000189033
  18  0.00325384
  19  0.266806
  20  0.0741844
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.057e+01  6.629e+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.870e-01  7.418e-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.328e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.03
Ra Dec: 343.010 40.523
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 5.61e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 2.15e-05

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) = 11941.3762831
delta logL = 0.921714887787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11941.3760777
delta logL = 0.921920285349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.774       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4638       1.0000          .0000       10.000    
     3 'Normalizat'    1.3568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88393       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.

 FCN=   11941.38     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      265 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.798        272.85        .26981E-02   -.13776E-03
   2  Index         1.4650        5.4827        .26479       -.38997E-04
   3  Normalizat    1.3568        .26658        .10260        .22605E-04
   4  Prefactor     .88390        .41353E-01    .34280E-01   -.11096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7985
  Index      = 1.46499
  Normalizat = 1.35676
  Prefactor  = 0.883903
 **********
 **   18 **HESSE 
 **********

 FCN=   11941.38     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.798        8.8949        .53961E-03   -1.4965    
   2  Index         1.4650        .39497        .92472E-02   -.78525    
   3  Normalizat    1.3568        .26372        .45468E-03   -.81888    
   4  Prefactor     .88390        .73307E-01    .15147E-03   -.96706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33268e-12
Minuit parameter uncertainties:
  1  8.89571
  2  0.395793
  3  0.263983
  4  0.073315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/558905': 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) = 11941.3760709
delta logL = 0.921927123072

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.380e+01  8.896e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.465e+00  3.958e-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.839e-01  7.332e-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.357e+00  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.87
Ra Dec: 343.010 40.523
Photon Index (Free Index): 1.46 +/- 0.40
Photon Flux (Free Index): 2.60e-08 +/- 2.27e-08
Energy Flux (Free Index): 9.26e-05 +/- 8.95e-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/558905/cmap_HighResolution_416620801_416880001_4FGL_J2252.0+4031_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.61e-08', energy_flux2='9.26e-05', photon_flux_error='3.52e-08', dlogl='9.22e-01', energy_flux='3.43e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-09-29 01:15:35.416589', photon_index_error2='0.40', photon_index2='1.46', ts='11.03', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='8.95e-05', EG='1.33', time_epoch_completed='1632903335.42', return_code='0', job_id='558905', GAL2='0.88', EG2='1.36', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='2.27e-08', ts2='12.87', photon_index='2.05' WHERE bin_id='684' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:15:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 558905: <4FGL_J2252.0+4031_daily_bin684> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin684 343.01 40.5232 416620801 416880001 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 :                                   789.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

