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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin943
RA = 193.307, Dec = 53.0173
tmin = 483753601, tmax = 484012801
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='958616', job_status='RUN', time_executed='2021-09-06 07:38:12.555004', time_epoch_executed='1630939092.56' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958616/ft1_4FGL_J1253.2+5301_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958616/ft2_4FGL_J1253.2+5301_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958616/ft1_4FGL_J1253.2+5301_daily_bin943.fits outfile=/scratch/kocevski/958616/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin943.fits ra=193.307 dec=53.0173 rad=12.0 tmin=483753601.0 tmax=484012801.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 6.37
user 5.27
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958616/ft1_filtered_4FGL_J1253.2+5301_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/958616/ft2_4FGL_J1253.2+5301_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/958616/ltcube_483753601_484012801_4FGL_J1253.2+5301_daily_bin943.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/958616/ft2_4FGL_J1253.2+5301_daily_bin943.fits
.....................!
real 12.70
user 11.83
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958616/ft1_filtered_4FGL_J1253.2+5301_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/958616/ft2_4FGL_J1253.2+5301_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/958616/ltcube_483753601_484012801_4FGL_J1253.2+5301_daily_bin943.fits outfile=/scratch/kocevski/958616/expmap_483753601_484012801_4FGL_J1253.2+5301_daily_bin943.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/958616/ltcube_483753601_484012801_4FGL_J1253.2+5301_daily_bin943.fits
.....................!
real 192.66
user 185.21
sys 4.98

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/958616/ft1_filtered_4FGL_J1253.2+5301_daily_bin943.fits scfile=/scratch/kocevski/958616/ft2_4FGL_J1253.2+5301_daily_bin943.fits outfile=/scratch/kocevski/958616/cmap_483753601_484012801_4FGL_J1253.2+5301_daily_bin943.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.65
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9297       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.753       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8195       1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.610       1.0000         .10000E-03   10000.    
     8 'norm      '    18.505       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6081       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0245       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6807       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5020       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4014       1.0000         .10000E-03   10000.    
    17 'norm      '    12.180       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.063       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8082       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .53329       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.2236       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0807       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82631       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=   5262.510     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3854 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2340       -.32755E-07** at limit **
   2  norm          1.9296        3.2108        .23555E-06    .12610E-03
   3  Prefactor     24.752        17.127        .10223E-06   -.27637E-05
   4  Prefactor     .10000E-03    6.4637        .94102E-06** at limit **
   5  Prefactor     .10000E-03    20.371        .60072E-06** at limit **
   6  norm          1.8196        2.4349        .10481E-06   -.10186E-05
   7  Prefactor     55.626        70.692       -.18632E-05    .44964E-05
   8  norm          18.502        8.6953       -.58449E-07   -.17541E-03
   9  Prefactor     .10000E-03    30.240        .68807E-06** at limit **
  10  Prefactor     3.6072        9.1236        .44867E-05   -.11632E-03
  11  norm          4.0246        3.0032       -.56030E-06    .21652E-04
  12  Prefactor     3.6775        28.461        .64433E-06   -.83961E-05
  13  norm          3.5020        2.1176       -.15019E-07    .15384E-05
  14  Prefactor     .10000E-03    16.253        .51086E-06** at limit **
  15  Prefactor     .10000E-03    38.979       -.19551E-05** at limit **
  16  Prefactor     9.4006        11.091       -.21271E-06   -.24371E-05
  17  norm          12.180        11.784       -.13192E-07    .29955E-04
  18  norm          .10000E-03    .82985        .84213E-08** at limit **
  19  Prefactor     .10000E-03    11.763        .12953E-06** at limit **
  20  Prefactor     .10000E-03    20.255       -.88543E-06** at limit **
  21  Prefactor     29.070        35.998       -.64822E-06   -.68604E-05
  22  norm          2.8081        4.1227        .49215E-06    .28709E-03
  23  Prefactor     .10000E-03    67.643        .65553E-06** at limit **
  24  Prefactor     .10000E-03    24.034        .42612E-06** at limit **
  25  norm          .53218        1.9753        .62254E-06    .13763E-03
  26  norm          .10000E-03    34.475       -.15614E-06** at limit **
  27  norm          6.2227        4.7609        .64022E-06   -.15479E-03
  28  Prefactor     .10000E-03    25.580        .93755E-06** at limit **
  29  Normalizat    1.0809        .17893       -.17369E-05   -.45601E-04
  30  Prefactor     .82618        .20563        .12238E-05    .19646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.92961
  Prefactor  = 24.7525
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 1.81959
  Prefactor  = 55.6261
  norm       = 18.502
  Prefactor  = 0.0001
  Prefactor  = 3.60722
  norm       = 4.02456
  Prefactor  = 3.67746
  norm       = 3.50197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.40065
  norm       = 12.1797
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0701
  norm       = 2.80809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.532185
  norm       = 0.0001
  norm       = 6.22274
  Prefactor  = 0.0001
  Normalizat = 1.08086
  Prefactor  = 0.826185
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.510     FROM HESSE     STATUS=OK           588 CALLS     4442 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2473        .78623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9296        3.1832        .16201E-03   -1.5430    
   3  Prefactor     24.752        17.115        .80515E-04   -1.4713    
   4  Prefactor     .10000E-03    6.6196        .18123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8196        2.4162        .12356E-03   -1.5438    
   7  Prefactor     55.626        70.511        .53792E-04   -1.4215    
   8  norm          18.502        8.6926        .93107E-04   -1.4847    
   9  Prefactor     .10000E-03    30.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6072        9.1783        .10636E-02   -1.5328    
  11  norm          4.0246        3.0067        .93782E-04   -1.5307    
  12  Prefactor     3.6775        28.424        .21052E-03   -1.5324    
  13  norm          3.5020        2.1186        .79743E-04   -1.5334    
  14  Prefactor     .10000E-03    16.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4006        11.099        .13070E-03   -1.5095    
  17  norm          12.180        11.788        .57390E-03   -1.5010    
  18  norm          .10000E-03    .83016        .64535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.070        35.683        .74316E-04   -1.4629    
  22  norm          2.8081        4.1145        .16933E-03   -1.5373    
  23  Prefactor     .10000E-03    67.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .53218        1.9667        .18089E-03   -1.5562    
  26  norm          .10000E-03    34.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.2227        4.7611        .65771E-03   -1.5209    
  28  Prefactor     .10000E-03    25.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0809        .20634        .21317E-03   -.90369    
  30  Prefactor     .82618        .23823        .29613E-03   -.98770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45545e-10
Minuit parameter uncertainties:
  1  1.8966e-06
  2  3.18346
  3  17.1188
  4  0.000142604
  5  0.00036993
  6  2.41635
  7  70.6174
  8  8.69315
  9  7.69946e-05
  10  9.18189
  11  3.0068
  12  20.461
  13  2.11862
  14  9.63545e-06
  15  5.1908e-05
  16  11.1013
  17  11.79
  18  3.78257e-07
  19  3.47399e-05
  20  4.62271e-05
  21  35.7089
  22  4.11496
  23  8.54763e-05
  24  1.93119e-05
  25  1.96691
  26  4.54672e-06
  27  4.76134
  28  7.26465e-06
  29  0.206495
  30  0.238525
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.502e+00  2.119e+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:  8.262e-01  2.385e-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.081e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.63
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.49e-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) = 5262.49227232
delta logL = 0.0177274526804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5262.49155174
delta logL = 0.0184480313128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5632       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8251       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82448       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=   5262.492     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5634        65.983        .53527E-02   -.44904E-04
   2  alpha         1.8249        2.5751        .36255        .71844E-05
   3  Normalizat    1.0842        .16234        .38685E-01    .29112E-05
   4  Prefactor     .82444        .12126        .67010E-01    .15337E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.56343
  alpha      = 1.82492
  Normalizat = 1.08421
  Prefactor  = 0.824438
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.492     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5634        2.2033        .81999E-04   -1.5330    
   2  alpha         1.8249        .54775        .13259E-01   -.27342    
   3  Normalizat    1.0842        .19266        .21291E-03   -.90260    
   4  Prefactor     .82444        .23712        .29645E-03   -.98834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15102e-13
Minuit parameter uncertainties:
  1  2.20333
  2  0.552592
  3  0.192783
  4  0.237414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958616': 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) = 5262.49155165
delta logL = 0.0184481226042

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.563e+00  2.203e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.825e+00  5.526e-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:  8.244e-01  2.374e-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.084e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.66
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.82 +/- 0.55
Photon Flux (Free Index): 3.03e-08 +/- 2.60e-08
Energy Flux (Free Index): 2.73e-05 +/- 2.36e-05

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/958616/cmap_HighResolution_483753601_484012801_4FGL_J1253.2+5301_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='2.73e-05', photon_flux_error='2.06e-08', dlogl='1.84e-02', energy_flux='2.46e-05', photon_flux2='3.03e-08', job_status='DONE', time_completed='2021-09-06 07:51:16.814805', photon_index_error2='0.55', photon_index2='1.82', ts='12.63', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.36e-05', EG='1.08', time_epoch_completed='1630939876.81', return_code='0', job_id='958616', GAL2='0.82', EG2='1.08', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='2.60e-08', ts2='12.66', photon_index='1.93' WHERE bin_id='943' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:51:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 958616: <4FGL_J1253.2+5301_daily_bin943> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin943> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:36:09 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:36:11 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:36:11 2021
Terminated at Mon Sep  6 07:51:17 2021
Results reported at Mon Sep  6 07:51:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin943 193.307 53.0173 483753601 484012801 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 :                                   747.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

