/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 43 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin361
RA = 193.307, Dec = 53.0173
tmin = 332899201, tmax = 333158401
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='955311', job_status='RUN', time_executed='2021-09-06 07:26:50.234213', time_epoch_executed='1630938410.23' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955311/ft1_4FGL_J1253.2+5301_daily_bin361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955311/ft2_4FGL_J1253.2+5301_daily_bin361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955311/ft1_4FGL_J1253.2+5301_daily_bin361.fits outfile=/scratch/kocevski/955311/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin361.fits ra=193.307 dec=53.0173 rad=12.0 tmin=332899201.0 tmax=333158401.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.25
user 3.94
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955311/ft2_4FGL_J1253.2+5301_daily_bin361.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/955311/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin361.fits evtable="EVENTS" outfile="/scratch/kocevski/955311/ft1_filtered_4FGL_J1253.2+5301_daily_bin361.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.67
user 0.33
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955311/ft1_filtered_4FGL_J1253.2+5301_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/955311/ft2_4FGL_J1253.2+5301_daily_bin361.fits sctable="SC_DATA" expcube=/scratch/kocevski/955311/ltcube_332899201_333158401_4FGL_J1253.2+5301_daily_bin361.fits outfile=/scratch/kocevski/955311/expmap_332899201_333158401_4FGL_J1253.2+5301_daily_bin361.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/955311/ltcube_332899201_333158401_4FGL_J1253.2+5301_daily_bin361.fits
.....................!
real 191.71
user 186.43
sys 4.24

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/955311/ft1_filtered_4FGL_J1253.2+5301_daily_bin361.fits scfile=/scratch/kocevski/955311/ft2_4FGL_J1253.2+5301_daily_bin361.fits outfile=/scratch/kocevski/955311/cmap_332899201_333158401_4FGL_J1253.2+5301_daily_bin361.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955311/ft1_filtered_4FGL_J1253.2+5301_daily_bin361.fits scfile=/scratch/kocevski/955311/ft2_4FGL_J1253.2+5301_daily_bin361.fits outfile=/scratch/kocevski/955311/cmap_HighResolution_332899201_333158401_4FGL_J1253.2+5301_daily_bin361.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.60
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.496       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6208       1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.437       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3736       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.6849       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10849E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.762       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0037       1.0000         .10000E-03   10000.    
    11 'norm      '    .75719       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5884       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4040       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .93771       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0121       1.0000         .10000E-03   10000.    
    26 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.0572       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16661E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69784       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5199       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=   7168.686     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3930 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.497        5.7696        .91678E-07   -.21963E-03
   2  norm          2.6213        3.4932        .95446E-07   -.44588E-03
   3  Prefactor     49.434        30.515       -.12660E-05   -.65226E-04
   4  Prefactor     6.3735        4.8378        .49428E-07    .74988E-04
   5  Prefactor     .10000E-03    5.2021       -.88348E-06** at limit **
   6  norm          4.6849        2.3329        .23349E-06   -.40563E-03
   7  Prefactor     .10000E-03    11.727       -.20278E-05** at limit **
   8  norm          .10004E-03    5.6753        .12315E-05** at limit **
   9  Prefactor     15.752        21.713        .26245E-06   -.23924E-03
  10  Prefactor     3.0038        3.8885        .16404E-05   -.31877E-03
  11  norm          .75777        1.6216       -.28843E-06   -.15278E-02
  12  Prefactor     .10000E-03    13.405       -.29680E-05** at limit **
  13  norm          2.5886        1.7677        .88489E-07   -.66008E-04
  14  Prefactor     .10000E-03    7.8521       -.24033E-06** at limit **
  15  Prefactor     8.4394        46.684        .62383E-04   -.13749E-05
  16  Prefactor     .10000E-03    2.1257       -.18553E-06** at limit **
  17  norm          .10000E-03    5.0834        .16574E-06** at limit **
  18  norm          .93987        2.1808       -.80625E-06   -.20290E-02
  19  Prefactor     .10000E-03    11.212        .21524E-05** at limit **
  20  Prefactor     .10000E-03    3.4217       -.23130E-06** at limit **
  21  Prefactor     .10000E-03    11.382        .54361E-06** at limit **
  22  norm          .10000E-03    1.2211       -.58238E-07** at limit **
  23  Prefactor     .10000E-03    19.606        .87118E-05** at limit **
  24  Prefactor     .10000E-03    14.498        .22732E-05** at limit **
  25  norm          3.0119        1.6935        .70343E-07   -.13908E-03
  26  norm          .10000E-03    23.900       -.10848E-04** at limit **
  27  norm          3.0591        4.4325        .28656E-05   -.73411E-03
  28  Prefactor     .10000E-03    73.597       -.18175E-06** at limit **
  29  Normalizat    .69819        .15911       -.37622E-05   -.13845E-03
  30  Prefactor     1.5194        .20007       -.20631E-06   -.28451E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4971
  norm       = 2.62134
  Prefactor  = 49.4336
  Prefactor  = 6.37349
  Prefactor  = 0.0001
  norm       = 4.68491
  Prefactor  = 0.0001
  norm       = 0.000100044
  Prefactor  = 15.752
  Prefactor  = 3.00383
  norm       = 0.757766
  Prefactor  = 0.0001
  norm       = 2.58857
  Prefactor  = 0.0001
  Prefactor  = 8.43939
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.939867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.01186
  norm       = 0.0001
  norm       = 3.0591
  Prefactor  = 0.0001
  Normalizat = 0.698191
  Prefactor  = 1.5194
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.686     FROM HESSE     STATUS=OK           592 CALLS     4522 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.497        5.7758        .88471E-04   -1.4802    
   2  norm          2.6213        3.4774        .17529E-03   -1.5384    
   3  Prefactor     49.434        30.554        .57034E-04   -1.4301    
   4  Prefactor     6.3735        4.8347        .15646E-03   -1.5203    
   5  Prefactor     .10000E-03    5.2045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.6849        2.3299        .86942E-04   -1.5275    
   7  Prefactor     .10000E-03    11.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10004E-03    40.526        .35958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.752        20.273        .10088E-03   -1.4914    
  10  Prefactor     3.0038        3.8332        .18042E-03   -1.5361    
  11  norm          .75777        1.3748        .14967E-02   -1.5534    
  12  Prefactor     .10000E-03    13.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5886        1.7676        .90210E-04   -1.5386    
  14  Prefactor     .10000E-03    7.8531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.4394        45.991        .13829E-03   -1.5127    
  16  Prefactor     .10000E-03    2.1298        .12054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.0862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .93987        1.8501        .18615E-02   -1.5514    
  19  Prefactor     .10000E-03    11.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.4255        .15295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2312        .91346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0119        1.6926        .80010E-04   -1.5361    
  26  norm          .10000E-03    23.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.0591        4.3834        .20117E-03   -1.5358    
  28  Prefactor     .10000E-03    73.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .69819        .18916        .27685E-03   -1.0396    
  30  Prefactor     1.5194        .24034        .25624E-03   -.76998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40657e-09
Minuit parameter uncertainties:
  1  5.77594
  2  3.47769
  3  30.5638
  4  4.83502
  5  4.74398e-06
  6  2.32991
  7  6.84023e-06
  8  0.00268265
  9  20.2821
  10  3.83352
  11  1.37489
  12  3.03544e-06
  13  1.76767
  14  3.957e-06
  15  39.4489
  16  3.06104e-06
  17  3.23668e-05
  18  1.85023
  19  5.33302e-06
  20  3.79718e-06
  21  9.20561e-06
  22  4.04692e-06
  23  6.94313e-06
  24  6.57834e-06
  25  1.69258
  26  9.1861e-06
  27  4.38381
  28  5.10179e-05
  29  0.189339
  30  0.240519
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.589e+00  1.768e+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.519e+00  2.405e-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:  6.982e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.65
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.24e-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) = 7168.34709784
delta logL = 0.338461355935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7168.34284572
delta logL = 0.34271347601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4254       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4866       1.0000          .0000       5.0000    
     3 'Normalizat'    .70566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5184       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=   7168.343     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4235        2.2046        .65697E-02   -.57476E-03
   2  alpha         1.4857        .51537        .40334       -.22032E-04
   3  Normalizat    .70537        .15222        .62297E-01    .11844E-04
   4  Prefactor     1.5187        .19954        .57984E-01   -.98954E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42351
  alpha      = 1.48573
  Normalizat = 0.705371
  Prefactor  = 1.51874
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.343     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4235        2.0222        .48059E-03   -1.5397    
   2  alpha         1.4857        .54470        .15385E-01   -.41775    
   3  Normalizat    .70537        .18225        .27559E-03   -1.0368    
   4  Prefactor     1.5187        .23997        .25639E-03   -.77016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56414e-12
Minuit parameter uncertainties:
  1  2.02226
  2  0.549995
  3  0.182402
  4  0.240145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955311': 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) = 7168.34284306
delta logL = 0.342716135122

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.424e+00  2.022e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.486e+00  5.500e-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.519e+00  2.401e-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:  7.054e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.32
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.49 +/- 0.55
Photon Flux (Free Index): 1.49e-08 +/- 1.57e-08
Energy Flux (Free Index): 3.08e-05 +/- 3.18e-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/955311/cmap_HighResolution_332899201_333158401_4FGL_J1253.2+5301_daily_bin361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='3.08e-05', photon_flux_error='1.72e-08', dlogl='3.43e-01', energy_flux='1.82e-05', photon_flux2='1.49e-08', job_status='DONE', time_completed='2021-09-06 07:41:56.177220', photon_index_error2='0.55', photon_index2='1.49', ts='7.65', fit_tolerance='1e-08', GAL='1.52', photon_index_error='0.00', energy_flux_error2='3.18e-05', EG='0.70', time_epoch_completed='1630939316.18', return_code='0', job_id='955311', GAL2='1.52', EG2='0.71', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='1.57e-08', ts2='8.32', photon_index='1.93' WHERE bin_id='361' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:41:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 955311: <4FGL_J1253.2+5301_daily_bin361> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin361> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:25:44 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:25: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:25:46 2021
Terminated at Mon Sep  6 07:41:56 2021
Results reported at Mon Sep  6 07:41:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin361 193.307 53.0173 332899201 333158401 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 :                                   897.44 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             316.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

