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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1312
RA = 193.307, Dec = 53.0173
tmin = 579398401, tmax = 579657601
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='960147', job_status='RUN', time_executed='2021-09-06 07:41:21.962892', time_epoch_executed='1630939281.96' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960147/ft1_4FGL_J1253.2+5301_daily_bin1312.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960147/ft2_4FGL_J1253.2+5301_daily_bin1312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960147/ft1_4FGL_J1253.2+5301_daily_bin1312.fits outfile=/scratch/kocevski/960147/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1312.fits ra=193.307 dec=53.0173 rad=12.0 tmin=579398401.0 tmax=579657601.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 3.55
user 3.31
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960147/ft2_4FGL_J1253.2+5301_daily_bin1312.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/960147/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1312.fits evtable="EVENTS" outfile="/scratch/kocevski/960147/ft1_filtered_4FGL_J1253.2+5301_daily_bin1312.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960147/ft1_filtered_4FGL_J1253.2+5301_daily_bin1312.fits" evtable="EVENTS" scfile=/scratch/kocevski/960147/ft2_4FGL_J1253.2+5301_daily_bin1312.fits sctable="SC_DATA" outfile=/scratch/kocevski/960147/ltcube_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.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/960147/ft2_4FGL_J1253.2+5301_daily_bin1312.fits
.....................!
real 11.70
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960147/ft1_filtered_4FGL_J1253.2+5301_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/960147/ft2_4FGL_J1253.2+5301_daily_bin1312.fits sctable="SC_DATA" expcube=/scratch/kocevski/960147/ltcube_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.fits outfile=/scratch/kocevski/960147/expmap_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.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/960147/ltcube_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.fits
.....................!
real 191.43
user 185.57
sys 5.43

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/960147/ft1_filtered_4FGL_J1253.2+5301_daily_bin1312.fits scfile=/scratch/kocevski/960147/ft2_4FGL_J1253.2+5301_daily_bin1312.fits outfile=/scratch/kocevski/960147/cmap_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960147/ft1_filtered_4FGL_J1253.2+5301_daily_bin1312.fits scfile=/scratch/kocevski/960147/ft2_4FGL_J1253.2+5301_daily_bin1312.fits outfile=/scratch/kocevski/960147/cmap_HighResolution_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/960147/ft1_filtered_4FGL_J1253.2+5301_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/960147/ft2_4FGL_J1253.2+5301_daily_bin1312.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/960147/Model_4FGL_J1253.2+5301_daily_bin1312.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/960147/ft1_filtered_4FGL_J1253.2+5301_daily_bin1312.fits.....................!
real 56.61
user 55.35
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/960147/ft1_filtered_4FGL_J1253.2+5301_daily_bin1312.fits', '/scratch/kocevski/960147/ft2_4FGL_J1253.2+5301_daily_bin1312.fits', expMap='/scratch/kocevski/960147/expmap_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.fits', expCube='/scratch/kocevski/960147/ltcube_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/960147/Model_4FGL_J1253.2+5301_daily_bin1312.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/960147/ft1_filtered_4FGL_J1253.2+5301_daily_bin1312.fits
Spacecraft file(s): /scratch/kocevski/960147/ft2_4FGL_J1253.2+5301_daily_bin1312.fits
Exposure map: /scratch/kocevski/960147/expmap_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.fits
Exposure cube: /scratch/kocevski/960147/ltcube_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/960147/Model_4FGL_J1253.2+5301_daily_bin1312.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) = 6834.55577969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14033E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.915       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9491       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7461       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4307       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8763       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3058       1.0000         .10000E-03   10000.    
    14 'Prefactor '    97.856       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0932       1.0000         .10000E-03   10000.    
    17 'norm      '    13.857       1.0000         .10000E-03   10000.    
    18 'norm      '    .27004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.680       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.642       1.0000         .10000E-03   10000.    
    22 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.472       1.0000         .10000E-03   10000.    
    25 'norm      '    27.254       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.1902       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82822       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3737       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=   6834.540     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3335 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1611       -.12348E-06** at limit **
   2  norm          .10000E-03    2.6772        .27662E-07** at limit **
   3  Prefactor     35.908        20.868        .34874E-06    .88996E-04
   4  Prefactor     .10000E-03    4.8391        .13198E-07** at limit **
   5  Prefactor     .10000E-03    22.109        .19219E-05** at limit **
   6  norm          1.4723        2.1616        .19482E-06    .20716E-03
   7  Prefactor     .10000E-03    17.860        .14048E-05** at limit **
   8  norm          4.9496        5.6542        .14294E-05    .94804E-03
   9  Prefactor     .10000E-03    6.4336        .13791E-06** at limit **
  10  Prefactor     5.7468        6.7751        .14066E-05    .76162E-03
  11  norm          3.4308        2.2436       -.16426E-06    .12870E-04
  12  Prefactor     9.8761        16.089        .11744E-06    .69172E-04
  13  norm          2.3057        1.8248        .33250E-07    .11764E-03
  14  Prefactor     97.855        49.342        .22709E-06    .66549E-06
  15  Prefactor     .10000E-03    16.656        .17870E-06** at limit **
  16  Prefactor     5.0940        6.8287        .52395E-06    .29239E-03
  17  norm          13.856        14.224        .17466E-06    .36798E-04
  18  norm          .10011E-03    3.9680       -.31419E-05** at limit **
  19  Prefactor     .10000E-03    15.080       -.21873E-05** at limit **
  20  Prefactor     19.683        15.644        .17823E-07    .93025E-04
  21  Prefactor     16.612        32.260        .61143E-05    .25199E-03
  22  norm          .10000E-03    2.1030       -.13180E-06** at limit **
  23  Prefactor     .10000E-03    31.017       -.38360E-05** at limit **
  24  Prefactor     11.469        51.088        .16325E-05    .17982E-04
  25  norm          27.254        4.3853       -.35222E-07    .38997E-03
  26  norm          .10000E-03    52.245        .26264E-05** at limit **
  27  norm          9.1909        5.4689        .76510E-07    .49018E-04
  28  Prefactor     .10000E-03    48.750       -.50342E-06** at limit **
  29  Normalizat    .82797        .17863       -.68780E-06    .26858E-03
  30  Prefactor     1.3740        .21429       -.75336E-06    .13662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.9082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.47232
  Prefactor  = 0.0001
  norm       = 4.94957
  Prefactor  = 0.0001
  Prefactor  = 5.74675
  norm       = 3.4308
  Prefactor  = 9.87605
  norm       = 2.3057
  Prefactor  = 97.8554
  Prefactor  = 0.0001
  Prefactor  = 5.094
  norm       = 13.8562
  norm       = 0.00010011
  Prefactor  = 0.000100001
  Prefactor  = 19.6825
  Prefactor  = 16.6119
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.4692
  norm       = 27.2544
  norm       = 0.000100001
  norm       = 9.19093
  Prefactor  = 0.0001
  Normalizat = 0.827973
  Prefactor  = 1.37402
 **********
 **   18 **HESSE 
 **********

 FCN=   6834.540     FROM HESSE     STATUS=OK           586 CALLS     3921 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8757        .22467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.7264        .13204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.908        20.034        .66872E-04   -1.4509    
   4  Prefactor     .10000E-03    4.8989        .17756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4723        2.1430        .13668E-03   -1.5465    
   7  Prefactor     .10000E-03    17.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9496        5.7737        .90392E-03   -1.5263    
   9  Prefactor     .10000E-03    6.4417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7468        6.8717        .83779E-03   -1.5228    
  11  norm          3.4308        2.2470        .92523E-04   -1.5337    
  12  Prefactor     9.8761        16.083        .12751E-03   -1.5079    
  13  norm          2.3057        1.8226        .96336E-04   -1.5404    
  14  Prefactor     97.855        49.333        .40636E-04   -1.3726    
  15  Prefactor     .10000E-03    16.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0940        6.8254        .89078E-03   -1.5257    
  17  norm          13.856        14.230        .53800E-03   -1.4963    
  18  norm          .10011E-03    11.171        .21298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.683        15.634        .90285E-04   -1.4820    
  21  Prefactor     16.612        32.726        .98178E-04   -1.4893    
  22  norm          .10000E-03    2.1185        .11696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.469        51.419        .11828E-03   -1.5031    
  25  norm          27.254        4.3851        .66087E-04   -1.4663    
  26  norm          .10000E-03    52.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.1909        5.4619        .13220E-03   -1.5102    
  28  Prefactor     .10000E-03    48.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .82797        .21035        .27102E-03   -.99039    
  30  Prefactor     1.3740        .25423        .27801E-03   -.81132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1287e-08
Minuit parameter uncertainties:
  1  4.74182e-06
  2  3.78543e-06
  3  20.0379
  4  2.55142e-06
  5  0.000172035
  6  2.14314
  7  0.000116638
  8  5.77435
  9  1.35787e-05
  10  6.87262
  11  2.24709
  12  16.0901
  13  1.82259
  14  49.3538
  15  1.65676e-05
  16  6.82643
  17  14.2333
  18  0.00221792
  19  0.000241828
  20  15.6373
  21  32.7609
  22  8.17697e-06
  23  0.000402814
  24  48.6385
  25  4.38516
  26  0.000365476
  27  5.46222
  28  6.01297e-05
  29  0.210554
  30  0.254458
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.306e+00  1.823e+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

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.374e+00  2.545e-01  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:  8.280e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.02
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.24e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.28e-05

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): 0
logL (Free Index) = 6834.53810295
delta logL = 0.00139886617035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6834.53800922
delta logL = 0.00149260553735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3288       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8997       1.0000          .0000       5.0000    
     3 'Normalizat'    .82856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3738       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.

 FCN=   6834.538     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3292        52.942        .67186E-02    .20669E-03
   2  alpha         1.9005        3.0741        .41173        .36570E-04
   3  Normalizat    .82854        .73659E-01    .43982E-01    .34888E-04
   4  Prefactor     1.3738        .82079E-01    .62867E-01    .16836E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32923
  alpha      = 1.90052
  Normalizat = 0.828544
  Prefactor  = 1.37376
 **********
 **   18 **HESSE 
 **********

 FCN=   6834.538     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3292        1.9042        .97317E-04   -1.5403    
   2  alpha         1.9005        .56264        .14170E-01   -.24215    
   3  Normalizat    .82854        .19500        .27094E-03   -.99018    
   4  Prefactor     1.3738        .25134        .27804E-03   -.81140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55574e-11
Minuit parameter uncertainties:
  1  1.90428
  2  0.567806
  3  0.195165
  4  0.251567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960147': 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) = 6834.53800807
delta logL = 0.00149375089404

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.329e+00  1.904e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.901e+00  5.678e-01  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:  1.374e+00  2.516e-01  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:  8.285e-01  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.90 +/- 0.57
Photon Flux (Free Index): 2.17e-08 +/- 2.07e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.70e-05

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/960147/cmap_HighResolution_579398401_579657601_4FGL_J1253.2+5301_daily_bin1312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.24e-08', energy_flux2='1.67e-05', photon_flux_error='1.77e-08', dlogl='1.49e-03', energy_flux='1.62e-05', photon_flux2='2.17e-08', job_status='DONE', time_completed='2021-09-06 07:55:03.547139', photon_index_error2='0.57', photon_index2='1.90', ts='4.02', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='0.83', time_epoch_completed='1630940103.55', return_code='0', job_id='960147', GAL2='1.37', EG2='0.83', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='2.07e-08', ts2='4.02', photon_index='1.93' WHERE bin_id='1312' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:55:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 960147: <4FGL_J1253.2+5301_daily_bin1312> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1312> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 07:40:53 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:40:54 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:54 2021
Terminated at Mon Sep  6 07:55:04 2021
Results reported at Mon Sep  6 07:55:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1312 193.307 53.0173 579398401 579657601 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 :                                   814.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

