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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin345
RA = 193.307, Dec = 53.0173
tmin = 328752001, tmax = 329011201
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='955287', job_status='RUN', time_executed='2021-09-06 07:27:42.533129', time_epoch_executed='1630938462.53' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955287/ft1_4FGL_J1253.2+5301_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955287/ft2_4FGL_J1253.2+5301_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955287/ft1_4FGL_J1253.2+5301_daily_bin345.fits outfile=/scratch/kocevski/955287/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin345.fits ra=193.307 dec=53.0173 rad=12.0 tmin=328752001.0 tmax=329011201.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.60
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955287/ft1_filtered_4FGL_J1253.2+5301_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/955287/ft2_4FGL_J1253.2+5301_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/955287/ltcube_328752001_329011201_4FGL_J1253.2+5301_daily_bin345.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/955287/ft2_4FGL_J1253.2+5301_daily_bin345.fits
.....................!
real 12.21
user 11.64
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955287/ft1_filtered_4FGL_J1253.2+5301_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/955287/ft2_4FGL_J1253.2+5301_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/955287/ltcube_328752001_329011201_4FGL_J1253.2+5301_daily_bin345.fits outfile=/scratch/kocevski/955287/expmap_328752001_329011201_4FGL_J1253.2+5301_daily_bin345.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/955287/ltcube_328752001_329011201_4FGL_J1253.2+5301_daily_bin345.fits
.....................!
real 190.99
user 184.92
sys 4.65

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/955287/ft1_filtered_4FGL_J1253.2+5301_daily_bin345.fits scfile=/scratch/kocevski/955287/ft2_4FGL_J1253.2+5301_daily_bin345.fits outfile=/scratch/kocevski/955287/cmap_328752001_329011201_4FGL_J1253.2+5301_daily_bin345.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955287/ft1_filtered_4FGL_J1253.2+5301_daily_bin345.fits scfile=/scratch/kocevski/955287/ft2_4FGL_J1253.2+5301_daily_bin345.fits outfile=/scratch/kocevski/955287/cmap_HighResolution_328752001_329011201_4FGL_J1253.2+5301_daily_bin345.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/955287/ft1_filtered_4FGL_J1253.2+5301_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/955287/ft2_4FGL_J1253.2+5301_daily_bin345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/955287/Model_4FGL_J1253.2+5301_daily_bin345.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/955287/ft1_filtered_4FGL_J1253.2+5301_daily_bin345.fits.....................!
real 55.82
user 54.41
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.318       1.0000         .10000E-03   10000.    
     2 'norm      '    7.1072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0839       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.364       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32498E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92086E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3243       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2713       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0748       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.4362       1.0000         .10000E-03   10000.    
    18 'norm      '    .77649E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.042       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0239       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.947       1.0000         .10000E-03   10000.    
    24 'Prefactor '    69.397       1.0000         .10000E-03   10000.    
    25 'norm      '    1.8926       1.0000         .10000E-03   10000.    
    26 'norm      '    .10332E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.7707       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0133       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94808       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6656.025     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     3299 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.320        1.2102       -.30043E-08   -.81660E-03
   2  norm          7.1077        4.2450       -.20073E-05   -.81726E-03
   3  Prefactor     .10047E-03    16.861       -.10692E-04** at limit **
   4  Prefactor     .10000E-03    3.5350        .58402E-06** at limit **
   5  Prefactor     .10000E-03    6.5057       -.11671E-05** at limit **
   6  norm          2.0842        2.0049        .11979E-06    .97686E-04
   7  Prefactor     15.356        1.9183       -.85431E-06    .14721E-02
   8  norm          .10000E-03    4.2765       -.61012E-06** at limit **
   9  Prefactor     .10090E-03    3.5360        .23307E-06** at limit **
  10  Prefactor     .11697        46.248       -.10135E-04    .16296E-03
  11  norm          1.3228        1.5574        .47110E-06    .23494E-04
  12  Prefactor     4.2792        1.6799       -.12601E-05    .65422E-03
  13  norm          6.0747        2.2541        .32551E-07    .12319E-03
  14  Prefactor     .10000E-03    5.1468       -.36484E-05** at limit **
  15  Prefactor     .10000E-03    14.659        .13773E-05** at limit **
  16  Prefactor     .10002E-03    6.1298        .86596E-05** at limit **
  17  norm          8.4365        1.0775       -.40151E-06    .45357E-03
  18  norm          .10008E-03    9.8365       -.21254E-04** at limit **
  19  Prefactor     34.064        4.6680        .14519E-05   -.50091E-02
  20  Prefactor     .10000E-03    4.7061        .22504E-06** at limit **
  21  Prefactor     9.0079        3.0337       -.20523E-05    .22511E-02
  22  norm          .10000E-03    .90795       -.77268E-07** at limit **
  23  Prefactor     11.948        1.1248        .29431E-06   -.34924E-03
  24  Prefactor     69.388        1.7160       -.32225E-06    .25666E-02
  25  norm          1.8928        1.9145       -.83472E-07    .14003E-03
  26  norm          .10016E-03    144.17       -.14502E-04** at limit **
  27  norm          1.7720        3.0287       -.95560E-06   -.39957E-03
  28  Prefactor     .10044E-03    17.126        .35910E-05** at limit **
  29  Normalizat    1.0131        .18031        .17846E-05    .13369E-03
  30  Prefactor     .94832        .22159        .25946E-06    .87409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3201
  norm       = 7.10775
  Prefactor  = 0.000100469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08416
  Prefactor  = 15.356
  norm       = 0.0001
  Prefactor  = 0.000100905
  Prefactor  = 0.116971
  norm       = 1.32276
  Prefactor  = 4.27919
  norm       = 6.07473
  Prefactor  = 0.000100005
  Prefactor  = 0.000100003
  Prefactor  = 0.000100017
  norm       = 8.43654
  norm       = 0.000100079
  Prefactor  = 34.0636
  Prefactor  = 0.0001
  Prefactor  = 9.0079
  norm       = 0.0001
  Prefactor  = 11.9481
  Prefactor  = 69.388
  norm       = 1.89282
  norm       = 0.000100162
  norm       = 1.77199
  Prefactor  = 0.000100439
  Normalizat = 1.01311
  Prefactor  = 0.948322
 **********
 **   18 **HESSE 
 **********

 FCN=   6656.025     FROM HESSE     STATUS=OK           662 CALLS     3961 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.320        4.7248        .22782E-02   -1.4829    
   2  norm          7.1077        4.3208        .37618E-02   -1.5175    
   3  Prefactor     .10047E-03    28.235        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5027        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0842        2.0215        .71508E-02   -1.5419    
   7  Prefactor     15.356        53.628        .25545E-02   -1.4924    
   8  norm          .10000E-03    4.2122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10090E-03    15.914        .10678       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11697        5.2141        .54835E-01   -1.5640    
  11  norm          1.3228        1.6076        .95521E-02   -1.5478    
  12  Prefactor     4.2792        16.172        .48736E-02   -1.5294    
  13  norm          6.0747        2.2557        .40725E-02   -1.5215    
  14  Prefactor     .10000E-03    9.6275        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    9.4216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.4365        13.739        .34505E-02   -1.5127    
  18  norm          .10008E-03    1.7461        .58435E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.064        40.850        .17171E-02   -1.4540    
  20  Prefactor     .10000E-03    4.6840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.0079        37.396        .33356E-02   -1.5108    
  22  norm          .10000E-03    .90491        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.948        39.057        .28974E-02   -1.5017    
  24  Prefactor     69.388        47.744        .12046E-02   -1.4040    
  25  norm          1.8928        1.9698        .75608E-02   -1.5433    
  26  norm          .10016E-03    149.41        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.7720        3.0931        .78675E-02   -1.5442    
  28  Prefactor     .10044E-03    26.085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0131        .16501        .44615E-01   -.92593    
  30  Prefactor     .94832        .19152        .45615E-01   -.94472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04625e-07
Minuit parameter uncertainties:
  1  4.72493
  2  4.32097
  3  0.00728231
  4  2.58552e-05
  5  3.57094e-05
  6  2.02155
  7  53.7975
  8  2.25266e-05
  9  0.00759053
  10  1.5614
  11  1.60767
  12  16.1882
  13  2.25574
  14  0.00041666
  15  0.000387366
  16  0.000794956
  17  13.7439
  18  0.000741942
  19  40.8837
  20  7.30902e-06
  21  36.7467
  22  8.04875e-07
  23  39.141
  24  47.7707
  25  1.96984
  26  0.00985838
  27  3.09343
  28  0.00676911
  29  0.165092
  30  0.191654
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  6.075e+00  2.256e+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:  9.483e-01  1.917e-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:  1.013e+00  1.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.85
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 4.26e-05 +/- 1.58e-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) = 6655.89280399
delta logL = 0.131712284835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6655.88096214
delta logL = 0.143554136462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4357       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7603       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94348       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=   6655.881     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4360        4.1893        .39552E-02   -.16563E-02
   2  alpha         1.7600        .49808        .23331        .35670E-04
   3  Normalizat    1.0214        .15414        .43151E-01    .39204E-04
   4  Prefactor     .94347        .19117        .45557E-01    .39670E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.43597
  alpha      = 1.76002
  Normalizat = 1.02144
  Prefactor  = 0.94347
 **********
 **   18 **HESSE 
 **********

 FCN=   6655.881     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4360        2.4652        .37942E-03   -1.5201    
   2  alpha         1.7600        .31638        .95450E-02   -.30050    
   3  Normalizat    1.0214        .17649        .22258E-03   -.92316    
   4  Prefactor     .94347        .22039        .28760E-03   -.94638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56755e-12
Minuit parameter uncertainties:
  1  2.46527
  2  0.317316
  3  0.176589
  4  0.220597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955287': 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) = 6655.88096179
delta logL = 0.143554482896

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  6.436e+00  2.465e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.760e+00  3.173e-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:  9.435e-01  2.206e-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:  1.021e+00  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.10
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.76 +/- 0.32
Photon Flux (Free Index): 5.08e-08 +/- 2.40e-08
Energy Flux (Free Index): 5.30e-05 +/- 3.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/955287/cmap_HighResolution_328752001_329011201_4FGL_J1253.2+5301_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='5.30e-05', photon_flux_error='2.19e-08', dlogl='1.44e-01', energy_flux='4.26e-05', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-09-06 07:41:25.241501', photon_index_error2='0.32', photon_index2='1.76', ts='30.85', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.08e-05', EG='1.01', time_epoch_completed='1630939285.24', return_code='0', job_id='955287', GAL2='0.94', EG2='1.02', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='2.40e-08', ts2='31.10', photon_index='1.93' WHERE bin_id='345' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:41:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 955287: <4FGL_J1253.2+5301_daily_bin345> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin345> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:25:42 2021
Job was executed on host(s) <bullet0073>, 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:26 2021
Results reported at Mon Sep  6 07:41:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin345 193.307 53.0173 328752001 329011201 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 :                                   805.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            944 sec.

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

