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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin81
RA = 343.01, Dec = 40.5232
tmin = 260323201, tmax = 260582401
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='554429', job_status='RUN', time_executed='2021-09-29 00:45:48.408481', time_epoch_executed='1632901548.41' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554429/ft1_4FGL_J2252.0+4031_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554429/ft2_4FGL_J2252.0+4031_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554429/ft1_4FGL_J2252.0+4031_daily_bin81.fits outfile=/scratch/kocevski/554429/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin81.fits ra=343.01 dec=40.5232 rad=12.0 tmin=260323201.0 tmax=260582401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.53
user 1.33
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554429/ft1_filtered_4FGL_J2252.0+4031_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/554429/ft2_4FGL_J2252.0+4031_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/554429/ltcube_260323201_260582401_4FGL_J2252.0+4031_daily_bin81.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/554429/ft2_4FGL_J2252.0+4031_daily_bin81.fits
.....................!
real 12.91
user 12.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554429/ft1_filtered_4FGL_J2252.0+4031_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/554429/ft2_4FGL_J2252.0+4031_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/554429/ltcube_260323201_260582401_4FGL_J2252.0+4031_daily_bin81.fits outfile=/scratch/kocevski/554429/expmap_260323201_260582401_4FGL_J2252.0+4031_daily_bin81.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/554429/ltcube_260323201_260582401_4FGL_J2252.0+4031_daily_bin81.fits
.....................!
real 191.50
user 185.85
sys 5.26

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/554429/ft1_filtered_4FGL_J2252.0+4031_daily_bin81.fits scfile=/scratch/kocevski/554429/ft2_4FGL_J2252.0+4031_daily_bin81.fits outfile=/scratch/kocevski/554429/cmap_260323201_260582401_4FGL_J2252.0+4031_daily_bin81.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554429/ft1_filtered_4FGL_J2252.0+4031_daily_bin81.fits scfile=/scratch/kocevski/554429/ft2_4FGL_J2252.0+4031_daily_bin81.fits outfile=/scratch/kocevski/554429/cmap_HighResolution_260323201_260582401_4FGL_J2252.0+4031_daily_bin81.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9703       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3004       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.849       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.337       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3902       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2671       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3066       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.0064       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .76324E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    72.481       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2930       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85467       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=   11257.15     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2179 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9699        .75973       -.21204E-07   -.35972E-04
   2  Prefactor     .10000E-03    8.1778       -.59460E-08** at limit **
   3  Prefactor     .10000E-03    10.786       -.29807E-07** at limit **
   4  Prefactor     .10000E-03    18.436       -.39339E-09** at limit **
   5  Prefactor     1.6180        2.8661       -.13916E-07   -.33133E-05
   6  Prefactor     3.2697        53.799        .30841E-05   -.15080E-05
   7  norm          .10000E-03    .88431       -.12438E-08** at limit **
   8  Prefactor     29.849        19.612        .16531E-05    .76445E-05
   9  Prefactor     .10000E-03    2.0462        .15517E-07** at limit **
  10  Prefactor     11.333        25.916        .11371E-05    .12276E-04
  11  norm          2.3901        1.2059        .16711E-07    .10529E-03
  12  Prefactor     7.2651        13.196       -.77793E-05   -.10304E-04
  13  norm          1.3136        .63001       -.99606E-07   -.37272E-03
  14  norm          .10000E-03    3.6491        .15458E-07** at limit **
  15  Prefactor     .10000E-03    36.748       -.30687E-06** at limit **
  16  norm          6.0055        3.6718        .59038E-06    .49381E-04
  17  Prefactor     .10002E-03    12.400       -.96262E-07** at limit **
  18  Prefactor     72.468        58.940       -.21600E-05    .17618E-05
  19  Normalizat    1.2932        .21535        .16547E-05   -.25553E-04
  20  Prefactor     .85466        .65148E-01   -.19486E-06    .17398E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.61796
  Prefactor  = 3.26966
  norm       = 0.0001
  Prefactor  = 29.8487
  Prefactor  = 0.0001
  Prefactor  = 11.3328
  norm       = 2.39011
  Prefactor  = 7.26508
  norm       = 1.31361
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.00551
  Prefactor  = 0.000100018
  Prefactor  = 72.4678
  Normalizat = 1.29317
  Prefactor  = 0.854658
 **********
 **   18 **HESSE 
 **********

 FCN=   11257.15     FROM HESSE     STATUS=OK           301 CALLS     2480 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9699        .75667        .54906E-04   -1.5427    
   2  Prefactor     .10000E-03    8.1880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6180        2.8288        .23208E-03   -1.5454    
   6  Prefactor     3.2697        54.244        .22285E-03   -1.5346    
   7  norm          .10000E-03    .88668        .97350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.849        19.619        .73334E-04   -1.4615    
   9  Prefactor     .10000E-03    2.0569        .14819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.333        25.905        .11898E-03   -1.5035    
  11  norm          2.3901        1.2092        .79723E-04   -1.5399    
  12  Prefactor     7.2651        13.217        .14879E-03   -1.5169    
  13  norm          1.3136        5.0109        .19303E-02   -1.5479    
  14  norm          .10000E-03    3.6554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.0055        3.6852        .74980E-03   -1.5218    
  17  Prefactor     .10002E-03    13.018        .13560       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     72.468        58.946        .47156E-04   -1.4003    
  19  Normalizat    1.2932        .24847        .40057E-03   -.83770    
  20  Prefactor     .85466        .75113E-01    .15150E-03   -.97744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15816e-10
Minuit parameter uncertainties:
  1  0.756673
  2  1.78949e-06
  3  9.75422e-06
  4  3.89602e-06
  5  2.82904
  6  26.6634
  7  1.24871e-07
  8  19.6236
  9  1.77778e-06
  10  25.9307
  11  1.20924
  12  13.222
  13  5.01245
  14  3.18354e-06
  15  2.35602e-05
  16  3.68535
  17  0.000978017
  18  58.9935
  19  0.248696
  20  0.0751221
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.778e-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:  8.547e-01  7.512e-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.293e+00  2.487e-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: 5.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554429/likelihoodResults_260323201_260582401_4FGL_J2252.0+4031_daily_bin81.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) = 11257.1523718
delta logL = -0.00231786371296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11257.150054
delta logL = -1.29253749037e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0326       1.0000          .0000       10.000    
     3 'Normalizat'    1.2933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85464       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=   11257.15     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10205E-03    .39401        .15039E-01** at limit **
   2  Index         1.9457        5.7643        .50000        .55280E-04
   3  Normalizat    1.2932        .24436E-02    .40057E-03    .18448E-04
   4  Prefactor     .85466        .77449E-03    .15150E-03    .38842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102047
  Index      = 1.94575
  Normalizat = 1.29318
  Prefactor  = 0.854658
 **********
 **   18 **HESSE 
 **********

 FCN=   11257.15     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10205E-03    28.070        .15335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9457        5.9465        .50000       -.65713    
   3  Normalizat    1.2932        .20788E-01    .16023E-04   -.83770    
   4  Prefactor     .85466        .65883E-02    .30299E-04   -.97744    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.65008e-08
Minuit parameter uncertainties:
  1  0.015168
  2  252.927
  3  0.0207878
  4  0.00658833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554429': 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) = 11257.1500526
delta logL = 1.27024941321e-06

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.020e-04  1.517e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.946e+00  2.529e+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:  8.547e-01  6.588e-03  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.293e+00  2.079e-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/554429/cmap_HighResolution_260323201_260582401_4FGL_J2252.0+4031_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2021-09-29 01:00:59.114886', job_id='554429', GAL2='0.85', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632902459.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='81' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:00:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 554429: <4FGL_J2252.0+4031_daily_bin81> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin81 343.01 40.5232 260323201 260582401 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 :                                   908.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             385.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

