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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin771
RA = 343.01, Dec = 40.5232
tmin = 439171201, tmax = 439430401
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='559031', job_status='RUN', time_executed='2021-09-29 01:02:33.795891', time_epoch_executed='1632902553.8' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/559031

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/559031/ft1_4FGL_J2252.0+4031_daily_bin771.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/559031/ft2_4FGL_J2252.0+4031_daily_bin771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/559031/ft1_4FGL_J2252.0+4031_daily_bin771.fits outfile=/scratch/kocevski/559031/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin771.fits ra=343.01 dec=40.5232 rad=12.0 tmin=439171201.0 tmax=439430401.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.73
user 5.44
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/559031/ft1_filtered_4FGL_J2252.0+4031_daily_bin771.fits evtable="EVENTS" scfile=/scratch/kocevski/559031/ft2_4FGL_J2252.0+4031_daily_bin771.fits sctable="SC_DATA" expcube=/scratch/kocevski/559031/ltcube_439171201_439430401_4FGL_J2252.0+4031_daily_bin771.fits outfile=/scratch/kocevski/559031/expmap_439171201_439430401_4FGL_J2252.0+4031_daily_bin771.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/559031/ltcube_439171201_439430401_4FGL_J2252.0+4031_daily_bin771.fits
.....................!
real 191.13
user 186.00
sys 4.83

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/559031/ft1_filtered_4FGL_J2252.0+4031_daily_bin771.fits scfile=/scratch/kocevski/559031/ft2_4FGL_J2252.0+4031_daily_bin771.fits outfile=/scratch/kocevski/559031/cmap_439171201_439430401_4FGL_J2252.0+4031_daily_bin771.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/559031/ft1_filtered_4FGL_J2252.0+4031_daily_bin771.fits scfile=/scratch/kocevski/559031/ft2_4FGL_J2252.0+4031_daily_bin771.fits outfile=/scratch/kocevski/559031/cmap_HighResolution_439171201_439430401_4FGL_J2252.0+4031_daily_bin771.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4928       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11425E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0122       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12698E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.391       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19613E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7811       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.100       1.0000         .10000E-03   10000.    
    13 'norm      '    8.1627       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10757E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   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'    .90413       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96635       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=   8153.097     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2021 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4935        1.1484       -.41358E-07    .34862E-03
   2  Prefactor     .10000E-03    20.066       -.10613E-04** at limit **
   3  Prefactor     13.226        20.339        .85821E-06    .94875E-04
   4  Prefactor     .10000E-03    27.409       -.19318E-04** at limit **
   5  Prefactor     9.0126        11.534       -.48500E-06   -.13192E-03
   6  Prefactor     .10000E-03    133.14       -.31492E-04** at limit **
   7  norm          14.392        7.6468       -.70149E-06   -.11909E-03
   8  Prefactor     .10000E-03    20.976        .10681E-04** at limit **
   9  Prefactor     .10000E-03    2.9222       -.33120E-07** at limit **
  10  Prefactor     .10351E-03    20.569        .57376E-05** at limit **
  11  norm          3.7808        2.1683        .10404E-06   -.56515E-03
  12  Prefactor     61.100        19.540       -.46758E-07   -.18219E-03
  13  norm          8.1637        6.6081       -.38704E-05    .20976E-03
  14  norm          .10000E-03    3.9614       -.49270E-07** at limit **
  15  Prefactor     .10000E-03    31.441       -.14622E-04** at limit **
  16  norm          .10000E-03    1.9821       -.16020E-07** at limit **
  17  Prefactor     .10000E-03    35.530        .25745E-04** at limit **
  18  Prefactor     .10000E-03    23.151        .12681E-04** at limit **
  19  Normalizat    .90418        .28824        .15356E-05   -.74047E-04
  20  Prefactor     .96632        .84461E-01   -.42509E-07   -.89414E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49352
  Prefactor  = 0.0001
  Prefactor  = 13.2259
  Prefactor  = 0.0001
  Prefactor  = 9.01263
  Prefactor  = 0.000100002
  norm       = 14.3918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103511
  norm       = 3.78076
  Prefactor  = 61.0996
  norm       = 8.16367
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.904178
  Prefactor  = 0.966318
 **********
 **   18 **HESSE 
 **********

 FCN=   8153.097     FROM HESSE     STATUS=OK           291 CALLS     2312 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4935        1.1478        .25888E-04   -1.5392    
   2  Prefactor     .10000E-03    20.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.226        20.284        .11013E-03   -1.4980    
   4  Prefactor     .10000E-03    27.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0126        11.513        .13351E-03   -1.5107    
   6  Prefactor     .10000E-03    136.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.392        7.6368        .10558E-03   -1.4949    
   8  Prefactor     .10000E-03    21.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9308        .15071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10351E-03    140.80        .77920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7808        2.1627        .95355E-04   -1.5319    
  12  Prefactor     61.100        19.534        .51331E-04   -1.4143    
  13  norm          8.1637        6.5769        .14033E-03   -1.5136    
  14  norm          .10000E-03    3.9623        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0315        .24812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .90418        .31080        .51142E-03   -.96313    
  20  Prefactor     .96632        .92267E-01    .14870E-03   -.93861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35004e-08
Minuit parameter uncertainties:
  1  1.14783
  2  2.23462e-05
  3  20.2944
  4  2.73279e-07
  5  11.5154
  6  0.000956443
  7  7.63727
  8  2.02067e-05
  9  4.06825e-06
  10  0.0445766
  11  2.16272
  12  19.5362
  13  6.57749
  14  8.27004e-07
  15  0.000572366
  16  2.03123e-06
  17  4.74729e-05
  18  4.21772e-06
  19  0.311418
  20  0.0922819
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.068e-06  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:  9.663e-01  9.228e-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:  9.042e-01  3.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/559031/likelihoodResults_439171201_439430401_4FGL_J2252.0+4031_daily_bin771.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): 102
logL (Free Index) = 8153.09895102
delta logL = -0.00162332176478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8153.09732729
delta logL = 4.03148987971e-07

Fit tolerance = 1e-08

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

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

 FCN=   8153.097     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10095E-03    22.529        .15441E-02** at limit **
   2  Index         1.9799        5.3482        .50000        .57166E-04
   3  Normalizat    .90418        .19870E-01    .51142E-03   -.75514E-04
   4  Prefactor     .96632        .60089E-02    .14870E-03    .12997E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100947
  Index      = 1.97986
  Normalizat = 0.904177
  Prefactor  = 0.966319
 **********
 **   18 **HESSE 
 **********

 FCN=   8153.097     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10095E-03    99.132        .30882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9799        5.7253        .50000       -.64855    
   3  Normalizat    .90418        .42873E-01    .20457E-04   -.96314    
   4  Prefactor     .96632        .12965E-01    .59482E-05   -.93861    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.00373e-08
Minuit parameter uncertainties:
  1  0.0194059
  2  227.161
  3  0.0428744
  4  0.0129653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/559031': 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): 102
logL (Free Index) = 8153.09732671
delta logL = 9.84096914181e-07

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.009e-04  1.941e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.980e+00  2.272e+02  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:  9.663e-01  1.297e-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:  9.042e-01  4.287e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 343.010 40.523

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/559031/cmap_HighResolution_439171201_439430401_4FGL_J2252.0+4031_daily_bin771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-09-29 01:14:57.374323', job_id='559031', GAL2='0.97', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632903297.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='771' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:14:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 559031: <4FGL_J2252.0+4031_daily_bin771> in cluster <slac> Done

Job <4FGL_J2252.0+4031_daily_bin771> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:00:32 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:00:33 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:33 2021
Terminated at Wed Sep 29 01:14:58 2021
Results reported at Wed Sep 29 01:14:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin771 343.01 40.5232 439171201 439430401 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 :                                   740.21 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             324.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

