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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin1061
RA = 343.01, Dec = 40.5232
tmin = 514339201, tmax = 514598401
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='560663', job_status='RUN', time_executed='2021-09-29 01:06:01.200527', time_epoch_executed='1632902761.2' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/560663

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/560663/ft1_4FGL_J2252.0+4031_daily_bin1061.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/560663/ft2_4FGL_J2252.0+4031_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/560663/ft1_4FGL_J2252.0+4031_daily_bin1061.fits outfile=/scratch/kocevski/560663/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin1061.fits ra=343.01 dec=40.5232 rad=12.0 tmin=514339201.0 tmax=514598401.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 4.16
user 3.89
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/560663/ft2_4FGL_J2252.0+4031_daily_bin1061.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/560663/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin1061.fits evtable="EVENTS" outfile="/scratch/kocevski/560663/ft1_filtered_4FGL_J2252.0+4031_daily_bin1061.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/560663/ft1_filtered_4FGL_J2252.0+4031_daily_bin1061.fits" evtable="EVENTS" scfile=/scratch/kocevski/560663/ft2_4FGL_J2252.0+4031_daily_bin1061.fits sctable="SC_DATA" outfile=/scratch/kocevski/560663/ltcube_514339201_514598401_4FGL_J2252.0+4031_daily_bin1061.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/560663/ft2_4FGL_J2252.0+4031_daily_bin1061.fits
.....................!
real 11.76
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/560663/ft1_filtered_4FGL_J2252.0+4031_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/560663/ft2_4FGL_J2252.0+4031_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/560663/ltcube_514339201_514598401_4FGL_J2252.0+4031_daily_bin1061.fits outfile=/scratch/kocevski/560663/expmap_514339201_514598401_4FGL_J2252.0+4031_daily_bin1061.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/560663/ltcube_514339201_514598401_4FGL_J2252.0+4031_daily_bin1061.fits
.....................!
real 190.88
user 185.52
sys 5.01

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/560663/ft1_filtered_4FGL_J2252.0+4031_daily_bin1061.fits scfile=/scratch/kocevski/560663/ft2_4FGL_J2252.0+4031_daily_bin1061.fits outfile=/scratch/kocevski/560663/cmap_514339201_514598401_4FGL_J2252.0+4031_daily_bin1061.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6366       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17243E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.331       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.6093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3765       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5965       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.308       1.0000         .10000E-03   10000.    
    14 'norm      '    9.2178       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8035       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0702       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70107       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0531       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=   11683.86     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2018 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6366        .83064       -.16717E-07   -.81996E-04
   2  Prefactor     .10000E-03    25.882       -.20215E-07** at limit **
   3  Prefactor     20.326        14.456       -.11845E-06    .11298E-04
   4  Prefactor     .10000E-03    30.732        .30626E-05** at limit **
   5  Prefactor     .10000E-03    2.9751       -.14788E-06** at limit **
   6  Prefactor     .10000E-03    6.5300        .38944E-06** at limit **
   7  norm          6.6098        3.9378        .72528E-06   -.64329E-03
   8  Prefactor     .10000E-03    6.8690       -.37587E-06** at limit **
   9  Prefactor     1.3761        4.2113       -.48477E-05   -.29567E-03
  10  Prefactor     .10000E-03    15.126       -.90618E-06** at limit **
  11  norm          2.5965        1.6351       -.54970E-07   -.74407E-03
  12  Prefactor     .10000E-03    6.9130        .42271E-06** at limit **
  13  norm          12.309        7.0389        .24858E-06   -.11503E-03
  14  norm          9.2180        8.7329       -.28531E-06   -.34099E-03
  15  Prefactor     6.8007        18.994       -.16658E-05    .71191E-04
  16  norm          3.0705        2.3094        .58676E-08   -.34464E-03
  17  Prefactor     .10000E-03    11.196        .42401E-06** at limit **
  18  Prefactor     .10001E-03    35.780       -.36152E-05** at limit **
  19  Normalizat    .70132        .22270        .91188E-06   -.63954E-04
  20  Prefactor     1.0531        .71685E-01   -.21544E-07    .63573E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.63661
  Prefactor  = 0.0001
  Prefactor  = 20.326
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.60975
  Prefactor  = 0.0001
  Prefactor  = 1.37608
  Prefactor  = 0.0001
  norm       = 2.59646
  Prefactor  = 0.000100001
  norm       = 12.3086
  norm       = 9.21796
  Prefactor  = 6.80074
  norm       = 3.07049
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 0.701321
  Prefactor  = 1.05306
 **********
 **   18 **HESSE 
 **********

 FCN=   11683.86     FROM HESSE     STATUS=OK           295 CALLS     2313 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6366        .83018        .51664E-04   -1.5383    
   2  Prefactor     .10000E-03    25.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.326        14.448        .88828E-04   -1.4806    
   4  Prefactor     .10000E-03    30.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.6098        3.9236        .15566E-03   -1.5194    
   8  Prefactor     .10000E-03    6.8681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3761        5.0480        .37123E-03   -1.5473    
  10  Prefactor     .10000E-03    15.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5965        1.6305        .10251E-03   -1.5386    
  12  Prefactor     .10000E-03    32.782        .52644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.309        6.9906        .11418E-03   -1.5006    
  14  norm          9.2180        8.7862        .66002E-03   -1.5101    
  15  Prefactor     6.8007        18.849        .15383E-03   -1.5186    
  16  norm          3.0705        2.2897        .13673E-03   -1.5357    
  17  Prefactor     .10000E-03    11.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    35.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .70132        .23343        .51440E-03   -1.0384    
  20  Prefactor     1.0531        .77950E-01    .14324E-03   -.90981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46557e-10
Minuit parameter uncertainties:
  1  0.830188
  2  1.8957e-05
  3  14.4506
  4  0.000738645
  5  1.5296e-06
  6  4.54454e-05
  7  3.92377
  8  5.37094e-05
  9  5.04956
  10  0.000159566
  11  1.63051
  12  0.000262312
  13  6.99105
  14  8.78743
  15  18.8654
  16  2.28976
  17  6.52041e-05
  18  0.000936082
  19  0.23376
  20  0.0779581
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.376e+00  5.050e+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:  1.053e+00  7.796e-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:  7.013e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/560663/likelihoodResults_514339201_514598401_4FGL_J2252.0+4031_daily_bin1061.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) = 11683.7949475
delta logL = 0.0674264247446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11683.6011726
delta logL = 0.261201391228

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14886E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.2674       1.0000          .0000       10.000    
     3 'Normalizat'    .65335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0630       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=   11683.60     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      309 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14180E-02    .23697E-01    .10238E-02** at limit **
   2  Index         5.2851        1.8164        .10745        .30919E-03
   3  Normalizat    .65275        .33939E-01    .11992        .10239E-03
   4  Prefactor     1.0631        .11438E-01    .39203E-01   -.31463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00141801
  Index      = 5.28512
  Normalizat = 0.652748
  Prefactor  = 1.06314
 **********
 **   18 **HESSE 
 **********

 FCN=   11683.60     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      340 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14180E-02    .13644        .54999E-05   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.2851        7.5031        .66531E-02    .57055E-01
   3  Normalizat    .65275        .17353        .53197E-03   -1.0579    
   4  Prefactor     1.0631        .57586E-01    .14262E-03   -.90653    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.02474e-06
Minuit parameter uncertainties:
  1  0.0268204
  2  6.45064
  3  0.173672
  4  0.057589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/560663': 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) = 11683.6011608
delta logL = 0.261213118314

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.418e-03  2.682e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  5.285e+00  6.451e+00  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.063e+00  5.759e-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:  6.527e-01  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/560663/cmap_HighResolution_514339201_514598401_4FGL_J2252.0+4031_daily_bin1061.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-09-29 01:21:32.443158', job_id='560663', GAL2='1.06', fit_tolerance='1e-08', EG2='0.65', EG='0.70', time_epoch_completed='1632903692.44', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.61e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1061' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:21:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 560663: <4FGL_J2252.0+4031_daily_bin1061> in cluster <slac> Done

Job <4FGL_J2252.0+4031_daily_bin1061> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 01:05:49 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:05:50 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:05:50 2021
Terminated at Wed Sep 29 01:21:33 2021
Results reported at Wed Sep 29 01:21:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin1061 343.01 40.5232 514339201 514598401 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 :                                   926.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

