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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin749
RA = 343.01, Dec = 40.5232
tmin = 433468801, tmax = 433728001
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='558999', job_status='RUN', time_executed='2021-09-29 01:03:24.877764', time_epoch_executed='1632902604.88' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/558999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/558999/ft1_4FGL_J2252.0+4031_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/558999/ft2_4FGL_J2252.0+4031_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/558999/ft1_4FGL_J2252.0+4031_daily_bin749.fits outfile=/scratch/kocevski/558999/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin749.fits ra=343.01 dec=40.5232 rad=12.0 tmin=433468801.0 tmax=433728001.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.98
user 5.70
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/558999/ft2_4FGL_J2252.0+4031_daily_bin749.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/558999/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin749.fits evtable="EVENTS" outfile="/scratch/kocevski/558999/ft1_filtered_4FGL_J2252.0+4031_daily_bin749.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/558999/ft1_filtered_4FGL_J2252.0+4031_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/558999/ft2_4FGL_J2252.0+4031_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/558999/ltcube_433468801_433728001_4FGL_J2252.0+4031_daily_bin749.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/558999/ft2_4FGL_J2252.0+4031_daily_bin749.fits
.....................!
real 12.00
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/558999/ft1_filtered_4FGL_J2252.0+4031_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/558999/ft2_4FGL_J2252.0+4031_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/558999/ltcube_433468801_433728001_4FGL_J2252.0+4031_daily_bin749.fits outfile=/scratch/kocevski/558999/expmap_433468801_433728001_4FGL_J2252.0+4031_daily_bin749.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/558999/ltcube_433468801_433728001_4FGL_J2252.0+4031_daily_bin749.fits
.....................!
real 191.56
user 186.61
sys 4.64

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/558999/ft1_filtered_4FGL_J2252.0+4031_daily_bin749.fits scfile=/scratch/kocevski/558999/ft2_4FGL_J2252.0+4031_daily_bin749.fits outfile=/scratch/kocevski/558999/cmap_433468801_433728001_4FGL_J2252.0+4031_daily_bin749.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/558999/ft1_filtered_4FGL_J2252.0+4031_daily_bin749.fits scfile=/scratch/kocevski/558999/ft2_4FGL_J2252.0+4031_daily_bin749.fits outfile=/scratch/kocevski/558999/cmap_HighResolution_433468801_433728001_4FGL_J2252.0+4031_daily_bin749.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0741       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.457       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.864       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7439       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.666       1.0000         .10000E-03   10000.    
    13 'norm      '    .10920E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.084       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7698       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.045       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0207       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0058       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=   5966.355     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2041 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0744        1.0111        .43193E-07   -.29750E-04
   2  Prefactor     .10000E-03    46.444       -.33722E-06** at limit **
   3  Prefactor     17.458        28.368       -.38390E-08   -.14690E-04
   4  Prefactor     .10000E-03    40.598        .12108E-06** at limit **
   5  Prefactor     .10000E-03    8.8636        .25564E-06** at limit **
   6  Prefactor     .10000E-03    21.643        .86469E-07** at limit **
   7  norm          4.2032        4.0455       -.93989E-09   -.16217E-04
   8  Prefactor     .10000E-03    8.3470        .24396E-07** at limit **
   9  Prefactor     .10000E-03    2.5980        .45925E-07** at limit **
  10  Prefactor     18.863        53.918       -.10218E-05   -.49338E-05
  11  norm          2.7444        2.2297        .10258E-05   -.16198E-03
  12  Prefactor     12.658        19.253       -.16342E-06   -.35974E-05
  13  norm          .10000E-03    4.3572       -.50495E-06** at limit **
  14  norm          .10000E-03    5.5515        .40260E-07** at limit **
  15  Prefactor     18.042        35.097       -.13136E-05   -.47373E-04
  16  norm          2.7691        3.0066        .90941E-08   -.20173E-04
  17  Prefactor     29.989        52.416       -.10894E-05   -.99167E-04
  18  Prefactor     .10000E-03    150.91        .79005E-06** at limit **
  19  Normalizat    1.0207        .33285        .16271E-05   -.29535E-04
  20  Prefactor     1.0058        .98928E-01   -.67598E-06    .73855E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07443
  Prefactor  = 0.0001
  Prefactor  = 17.4581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.20319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8634
  norm       = 2.74438
  Prefactor  = 12.6575
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.0416
  norm       = 2.76912
  Prefactor  = 29.9887
  Prefactor  = 0.0001
  Normalizat = 1.02071
  Prefactor  = 1.00583
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.355     FROM HESSE     STATUS=OK           291 CALLS     2332 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0744        .99034        .69471E-04   -1.5501    
   2  Prefactor     .10000E-03    46.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.458        28.086        .95859E-04   -1.4872    
   4  Prefactor     .10000E-03    40.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2032        4.0428        .14801E-03   -1.5298    
   8  Prefactor     .10000E-03    8.3475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5996        .12158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.863        53.908        .92217E-04   -1.4839    
  11  norm          2.7444        2.2569        .49781E-03   -1.5377    
  12  Prefactor     12.658        19.248        .11255E-03   -1.4996    
  13  norm          .10000E-03    4.3710        .15735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.5562        .17775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.042        35.191        .94183E-04   -1.4858    
  16  norm          2.7691        3.0009        .13426E-03   -1.5375    
  17  Prefactor     29.989        53.033        .73095E-04   -1.4612    
  18  Prefactor     .10000E-03    151.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0207        .37025        .48122E-03   -.92340    
  20  Prefactor     1.0058        .11087        .15058E-03   -.92535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2763e-10
Minuit parameter uncertainties:
  1  0.990355
  2  7.0052e-05
  3  28.1075
  4  4.25466e-05
  5  3.34082e-06
  6  8.28101e-06
  7  4.04304
  8  9.51141e-07
  9  2.2406e-10
  10  54.0479
  11  2.257
  12  19.2574
  13  3.26421e-06
  14  1.15416e-06
  15  35.2313
  16  3.00102
  17  53.1168
  18  0.000238942
  19  0.371185
  20  0.1109
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  2.241e-10  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:  1.006e+00  1.109e-01  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.021e+00  3.712e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/558999/likelihoodResults_433468801_433728001_4FGL_J2252.0+4031_daily_bin749.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) = 5966.35685385
delta logL = -0.0018184458886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5966.3550351
delta logL = 2.9899092624e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0285       1.0000          .0000       10.000    
     3 'Normalizat'    1.0207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0058       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=   5966.355     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10223E-03    1.6721        .12426E-01** at limit **
   2  Index         1.9478        5.3616        .50000        .58686E-04
   3  Normalizat    1.0207        .65572E-02    .48120E-03    .60481E-05
   4  Prefactor     1.0058        .20557E-02    .15058E-03   -.24763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102227
  Index      = 1.94778
  Normalizat = 1.02071
  Prefactor  = 1.00583
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.355     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10223E-03    42.078        .12736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9478        5.8613        .50000       -.65662    
   3  Normalizat    1.0207        .33386E-01    .19248E-04   -.92340    
   4  Prefactor     1.0058        .10466E-01    .60233E-05   -.92536    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58755e-07
Minuit parameter uncertainties:
  1  0.0193739
  2  253.646
  3  0.033387
  4  0.0104665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/558999': 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) = 5966.35503408
delta logL = 1.31974866235e-06

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.022e-04  1.937e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.948e+00  2.536e+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:  1.006e+00  1.047e-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.021e+00  3.339e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/558999/cmap_HighResolution_433468801_433728001_4FGL_J2252.0+4031_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-29 01:13:45.634426', job_id='558999', GAL2='1.01', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632903225.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='749' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:13:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 558999: <4FGL_J2252.0+4031_daily_bin749> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin749 343.01 40.5232 433468801 433728001 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 :                                   619.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            797 sec.

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

