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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1215
RA = 193.307, Dec = 53.0173
tmin = 554256001, tmax = 554515201
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='960020', job_status='RUN', time_executed='2021-09-06 07:43:04.244231', time_epoch_executed='1630939384.24' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960020/ft1_4FGL_J1253.2+5301_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960020/ft1_4FGL_J1253.2+5301_daily_bin1215.fits outfile=/scratch/kocevski/960020/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1215.fits ra=193.307 dec=53.0173 rad=12.0 tmin=554256001.0 tmax=554515201.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.28
user 3.83
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.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/960020/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/960020/ft1_filtered_4FGL_J1253.2+5301_daily_bin1215.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.68
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960020/ft1_filtered_4FGL_J1253.2+5301_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/960020/ltcube_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.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/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.fits
.....................!
real 12.26
user 11.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960020/ft1_filtered_4FGL_J1253.2+5301_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/960020/ltcube_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.fits outfile=/scratch/kocevski/960020/expmap_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.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/960020/ltcube_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.fits
.....................!
real 191.19
user 185.48
sys 5.02

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
Added 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1253.2+5301 @ 193.307 53.0173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/960020/ft1_filtered_4FGL_J1253.2+5301_daily_bin1215.fits scfile=/scratch/kocevski/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.fits outfile=/scratch/kocevski/960020/cmap_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.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=193.307 yref=53.0173 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960020/ft1_filtered_4FGL_J1253.2+5301_daily_bin1215.fits scfile=/scratch/kocevski/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.fits outfile=/scratch/kocevski/960020/cmap_HighResolution_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.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=193.307 yref=53.0173 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/960020/ft1_filtered_4FGL_J1253.2+5301_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/960020/Model_4FGL_J1253.2+5301_daily_bin1215.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/960020/ft1_filtered_4FGL_J1253.2+5301_daily_bin1215.fits..........!
real 14.67
user 13.27
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/960020/ft1_filtered_4FGL_J1253.2+5301_daily_bin1215.fits', '/scratch/kocevski/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.fits', expMap='/scratch/kocevski/960020/expmap_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.fits', expCube='/scratch/kocevski/960020/ltcube_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/960020/Model_4FGL_J1253.2+5301_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.2+5301'

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.003e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/960020/ft1_filtered_4FGL_J1253.2+5301_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/960020/ft2_4FGL_J1253.2+5301_daily_bin1215.fits
Exposure map: /scratch/kocevski/960020/expmap_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.fits
Exposure cube: /scratch/kocevski/960020/ltcube_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/960020/Model_4FGL_J1253.2+5301_daily_bin1215.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) = 147.427438093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .25158E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44464E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18134E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    134.10       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11311E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1589.7       1.0000         .10000E-03   10000.    
    15 'Prefactor '    327.82       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11582E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    27.431       1.0000         .10000E-03   10000.    
    18 'norm      '    7.4498       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13075E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11807E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .44262E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .21638       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77203E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   147.0518     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3813 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.920        .17211E-08** at limit **
   2  norm          .10000E-03    286.93        .52499E-06** at limit **
   3  Prefactor     .10000E-03    96.784        .15636E-06** at limit **
   4  Prefactor     .10000E-03    433.87        .76963E-06** at limit **
   5  Prefactor     .10006E-03    1697.9       -.31880E-05** at limit **
   6  norm          .10000E-03    96.847        .20405E-06** at limit **
   7  Prefactor     .10042E-03    8049.1       -.77137E-05** at limit **
   8  norm          .10000E-03    44.246        .10018E-06** at limit **
   9  Prefactor     134.12        154.41       -.18430E-05    .26145E-05
  10  Prefactor     .10000E-03    214.42       -.23654E-07** at limit **
  11  norm          .10000E-03    74.938       -.24694E-06** at limit **
  12  Prefactor     .10000E-03    86.618        .39547E-06** at limit **
  13  norm          .10000E-03    23.424        .46101E-08** at limit **
  14  Prefactor     1590.4        1899.6       -.20327E-04    .13373E-04
  15  Prefactor     328.14        349.15       -.62847E-05    .84124E-04
  16  Prefactor     .10000E-03    290.40        .11877E-05** at limit **
  17  norm          27.388        46.365        .14362E-06    .74551E-04
  18  norm          7.4422        18.554       -.13245E-05    .39767E-04
  19  Prefactor     .10000E-03    91.126        .21447E-07** at limit **
  20  Prefactor     .10000E-03    109.78       -.24846E-06** at limit **
  21  Prefactor     .10000E-03    119.03       -.12115E-05** at limit **
  22  norm          .10000E-03    18.146       -.28482E-07** at limit **
  23  Prefactor     .10002E-03    1167.5       -.24344E-05** at limit **
  24  Prefactor     .10000E-03    845.21       -.68464E-06** at limit **
  25  norm          .10005E-03    14.299       -.96497E-05** at limit **
  26  norm          .10000E-03    6479.8       -.10634E-05** at limit **
  27  norm          .10000E-03    83.594        .18809E-06** at limit **
  28  Prefactor     .10000E-03    572.02        .86484E-06** at limit **
  29  Normalizat    .21594        .28159        .26475E-04    .22809E-03
  30  Prefactor     .11939E-09    .31602        .72759E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  norm       = 0.0001
  Prefactor  = 0.000100425
  norm       = 0.0001
  Prefactor  = 134.119
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1590.36
  Prefactor  = 328.136
  Prefactor  = 0.000100002
  norm       = 27.3878
  norm       = 7.44222
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100002
  norm       = 0.000100046
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.215943
  Prefactor  = 1.19392e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   147.0518     FROM HESSE     STATUS=OK           564 CALLS     4377 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.920        .65996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    286.88        .20190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    96.781        .11689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    433.79        .21214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10006E-03    1696.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    96.842        .11693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10042E-03    8045.9        .18227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    44.244        .78958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     134.12        154.51        .17388E-03   -1.3387    
  10  Prefactor     .10000E-03    214.41        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    74.930        .10281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    86.598        .11055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    23.424        .57434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1590.4        1905.3        .54697E-04   -.75039    
  15  Prefactor     328.14        353.66        .11232E-03   -1.2065    
  16  Prefactor     .10000E-03    290.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          27.388        46.437        .76491E-04   -1.4661    
  18  norm          7.4422        18.554        .75472E-04   -1.5162    
  19  Prefactor     .10000E-03    91.130        .11340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    109.77        .12451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    119.05        .12966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    18.146        .50547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    1167.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    845.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10005E-03    21.055        .80254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6479.7        .21216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    83.590        .10861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    571.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .21594        .31356        .20859E-03   -1.2826    
  30  Prefactor     .11939E-09    .31364        .41197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42837e-09
Minuit parameter uncertainties:
  1  1.97762e-06
  2  0.000346049
  3  0.000145995
  4  0.000192076
  5  0.0201403
  6  0.000133006
  7  0.116706
  8  1.36708e-05
  9  154.975
  10  0.00032355
  11  0.000356835
  12  0.000125877
  13  6.89066e-07
  14  2004.14
  15  356.026
  16  0.0016376
  17  46.4985
  18  18.5684
  19  0.00023999
  20  0.000272611
  21  0.000491322
  22  8.14363e-07
  23  0.00878383
  24  0.00246663
  25  0.0019623
  26  0.00612786
  27  0.00014377
  28  0.00216914
  29  0.316172
  30  1.23036e-05
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  6.891e-07  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.194e-10  1.230e-05  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  2.159e-01  3.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 1.36e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/960020/likelihoodResults_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.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) = 147.051995528
delta logL = -0.000198744888849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 147.051796798
delta logL = -1.4093501477e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9160       1.0000          .0000       5.0000    
     3 'Normalizat'    .21587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .12653E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   147.0518     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      244 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2181.0        .57978E-02** at limit **
   2  alpha         1.4279        2.5561        .17068        .10991E-08
   3  Normalizat    .21593        .11268        .10432E-02    .16037E-05
   4  Prefactor     .31086E-13    .64771E-01    .41192E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.4279
  Normalizat = 0.215933
  Prefactor  = 3.10862e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   147.0518     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.724        .62474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4279        2.5120        .68270E-02   -.44321    
   3  Normalizat    .21593        .24798        .41729E-04   -1.2826    
   4  Prefactor     .31086E-13    .31366        .82384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38717e-12
Minuit parameter uncertainties:
  1  8.11996e-05
  2  610.206
  3  0.249254
  4  1.98198e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960020': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 147.051796452
delta logL = 3.31226061689e-07

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  8.120e-05  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.428e+00  6.102e+02  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  3.109e-14  1.982e-07  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  2.159e-01  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.307 53.017

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/960020/cmap_HighResolution_554256001_554515201_4FGL_J1253.2+5301_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-04', job_status='DONE', photon_flux_upper_limit='1.36e-06', time_completed='2021-09-06 07:48:57.753299', job_id='960020', GAL2='0.00', fit_tolerance='1e-08', EG2='0.22', EG='0.22', time_epoch_completed='1630939737.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='3.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1215' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:48:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 960020: <4FGL_J1253.2+5301_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1215> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 07:40:45 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:40:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:40:46 2021
Terminated at Mon Sep  6 07:48:58 2021
Results reported at Mon Sep  6 07:48:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1215 193.307 53.0173 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.2+5301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   346.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   492 sec.
    Turnaround time :                            493 sec.

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

