/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 81 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin93
RA = 193.307, Dec = 53.0173
tmin = 263433601, tmax = 263692801
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='953587', job_status='RUN', time_executed='2021-09-06 07:22:10.247095', time_epoch_executed='1630938130.25' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953587

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953587/ft1_4FGL_J1253.2+5301_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953587/ft2_4FGL_J1253.2+5301_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953587/ft1_4FGL_J1253.2+5301_daily_bin93.fits outfile=/scratch/kocevski/953587/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin93.fits ra=193.307 dec=53.0173 rad=12.0 tmin=263433601.0 tmax=263692801.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.53
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953587/ft1_filtered_4FGL_J1253.2+5301_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/953587/ft2_4FGL_J1253.2+5301_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/953587/ltcube_263433601_263692801_4FGL_J1253.2+5301_daily_bin93.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/953587/ft2_4FGL_J1253.2+5301_daily_bin93.fits
.....................!
real 16.68
user 16.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953587/ft1_filtered_4FGL_J1253.2+5301_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/953587/ft2_4FGL_J1253.2+5301_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/953587/ltcube_263433601_263692801_4FGL_J1253.2+5301_daily_bin93.fits outfile=/scratch/kocevski/953587/expmap_263433601_263692801_4FGL_J1253.2+5301_daily_bin93.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/953587/ltcube_263433601_263692801_4FGL_J1253.2+5301_daily_bin93.fits
.....................!
real 190.83
user 185.92
sys 4.28

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/953587/ft1_filtered_4FGL_J1253.2+5301_daily_bin93.fits scfile=/scratch/kocevski/953587/ft2_4FGL_J1253.2+5301_daily_bin93.fits outfile=/scratch/kocevski/953587/cmap_263433601_263692801_4FGL_J1253.2+5301_daily_bin93.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.307 yref=53.0173 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953587/ft1_filtered_4FGL_J1253.2+5301_daily_bin93.fits scfile=/scratch/kocevski/953587/ft2_4FGL_J1253.2+5301_daily_bin93.fits outfile=/scratch/kocevski/953587/cmap_HighResolution_263433601_263692801_4FGL_J1253.2+5301_daily_bin93.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1198       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5284       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14076E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.395       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .42325E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.614       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1935       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .31597       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    22.667       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.6368       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10876E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    66.970       1.0000         .10000E-03   10000.    
    25 'norm      '    .50120       1.0000         .10000E-03   10000.    
    26 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.4103       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0037       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0163       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=   5350.250     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3948 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1110        7.3488        .98040E-06    .93435E-04
   2  norm          2.5279        5.9346        .55008E-05   -.64772E-04
   3  Prefactor     .10003E-03    28.401       -.24179E-05** at limit **
   4  Prefactor     11.395        9.6240       -.14114E-05   -.42765E-04
   5  Prefactor     .10000E-03    7.9052        .39210E-07** at limit **
   6  norm          .44808E-01    1.3025       -.26421E-06    .12438E-03
   7  Prefactor     .10000E-03    18.191        .30939E-06** at limit **
   8  norm          .10000E-03    3.4125        .84544E-07** at limit **
   9  Prefactor     32.594        22.305       -.77652E-07   -.18818E-04
  10  Prefactor     .10000E-03    3.0402        .64381E-07** at limit **
  11  norm          5.1932        2.4215       -.15030E-07   -.53002E-04
  12  Prefactor     .10000E-03    15.170       -.99837E-07** at limit **
  13  norm          .31635        1.4496        .44571E-06    .63876E-04
  14  Prefactor     13.395        47.838       -.21115E-06    .73213E-05
  15  Prefactor     27.303        44.961        .11190E-05   -.29376E-04
  16  Prefactor     .10000E-03    2.4862       -.26619E-07** at limit **
  17  norm          .10000E-03    5.1381       -.60021E-07** at limit **
  18  norm          22.665        6.7451        .49376E-07   -.72654E-04
  19  Prefactor     .10000E-03    18.037        .37609E-06** at limit **
  20  Prefactor     .10000E-03    9.4016        .89224E-07** at limit **
  21  Prefactor     .10000E-03    29.135        .38593E-06** at limit **
  22  norm          3.6358        4.7390        .19151E-06    .13352E-05
  23  Prefactor     .10000E-03    25.913       -.20872E-05** at limit **
  24  Prefactor     66.932        54.068        .24936E-05   -.52695E-04
  25  norm          .50110        1.2761        .14432E-06   -.61491E-05
  26  norm          .10000E-03    30.715        .13363E-05** at limit **
  27  norm          4.4100        4.1658       -.20624E-06   -.70630E-04
  28  Prefactor     .10000E-03    69.660       -.38108E-06** at limit **
  29  Normalizat    1.0041        .18450        .81315E-06    .56885E-04
  30  Prefactor     1.0157        .21117       -.28387E-05   -.17225E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11095
  norm       = 2.52791
  Prefactor  = 0.000100032
  Prefactor  = 11.3948
  Prefactor  = 0.0001
  norm       = 0.0448076
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.5944
  Prefactor  = 0.0001
  norm       = 5.19315
  Prefactor  = 0.0001
  norm       = 0.316354
  Prefactor  = 13.3951
  Prefactor  = 27.3032
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.6651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.63579
  Prefactor  = 0.0001
  Prefactor  = 66.9319
  norm       = 0.501103
  norm       = 0.0001
  norm       = 4.41004
  Prefactor  = 0.0001
  Normalizat = 1.00412
  Prefactor  = 1.01568
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.250     FROM HESSE     STATUS=OK           594 CALLS     4542 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1110        5.7164        .31382E-03   -1.5497    
   2  norm          2.5279        5.9777        .12269E-02   -1.5390    
   3  Prefactor     .10003E-03    137.34        .63756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.395        9.6223        .59339E-03   -1.5033    
   5  Prefactor     .10000E-03    7.9072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .44808E-01    33.553        .15515E-02   -1.5666    
   7  Prefactor     .10000E-03    18.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.4231        .13188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.594        22.340        .70165E-04   -1.4566    
  10  Prefactor     .10000E-03    3.0672        .12448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1932        2.4210        .37700E-03   -1.5252    
  12  Prefactor     .10000E-03    15.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .31635        1.3817        .17026E-03   -1.5595    
  14  Prefactor     13.395        47.837        .10949E-03   -1.4976    
  15  Prefactor     27.303        45.020        .76650E-04   -1.4662    
  16  Prefactor     .10000E-03    2.4882        .11263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1405        .16193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          22.665        6.7500        .84133E-04   -1.4755    
  19  Prefactor     .10000E-03    18.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.6358        4.7293        .17175E-03   -1.5327    
  23  Prefactor     .10000E-03    26.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     66.932        54.512        .49045E-04   -1.4070    
  25  norm          .50110        1.1038        .12736E-02   -1.5566    
  26  norm          .10000E-03    30.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.4100        4.1595        .13772E-03   -1.5288    
  28  Prefactor     .10000E-03    69.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0041        .22008        .23061E-03   -.92893    
  30  Prefactor     1.0157        .24954        .28388E-03   -.92209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32106e-09
Minuit parameter uncertainties:
  1  5.04065
  2  5.97914
  3  0.00420441
  4  9.62365
  5  5.88414e-06
  6  2.45094
  7  1.065e-05
  8  1.06111e-05
  9  22.3455
  10  6.44693e-06
  11  2.42102
  12  5.32189e-05
  13  1.32211
  14  47.9746
  15  45.0756
  16  2.18598e-06
  17  7.67362e-06
  18  6.75018
  19  1.12678e-05
  20  9.44708e-06
  21  2.66883e-05
  22  4.72978
  23  6.45706e-07
  24  54.5525
  25  1.10385
  26  0.000106926
  27  4.15981
  28  0.000245936
  29  0.220282
  30  0.249829
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.164e-01  1.322e+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.016e+00  2.498e-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.004e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 4.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953587/likelihoodResults_263433601_263692801_4FGL_J1253.2+5301_daily_bin93.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5350.24716396
delta logL = 0.00297541220516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5350.24710393
delta logL = 0.00303544561757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33013       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7811       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5350.247     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      251 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33008        1.3515        .14609E-02    .46037E-03
   2  alpha         1.7809        1.6921        .48044E-01    .72165E-05
   3  Normalizat    1.0047        .19761        .23055E-03   -.11243E-04
   4  Prefactor     1.0152        .24596        .28393E-03   -.18498E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.330076
  alpha      = 1.78086
  Normalizat = 1.00469
  Prefactor  = 1.01523
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.247     FROM HESSE     STATUS=OK            27 CALLS      278 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33008        1.3374        .58438E-04   -1.5593    
   2  alpha         1.7809        1.6887        .19218E-02   -.29178    
   3  Normalizat    1.0047        .19775        .92220E-05   -.92874    
   4  Prefactor     1.0152        .24613        .11357E-04   -.92224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87031e-11
Minuit parameter uncertainties:
  1  1.32865
  2  1.87436
  3  0.197894
  4  0.246407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953587': 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) = 5350.24710392
delta logL = 0.00303545530824

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.301e-01  1.329e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.781e+00  1.874e+00  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.015e+00  2.464e-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.005e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 193.307 53.017

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/953587/cmap_HighResolution_263433601_263692801_4FGL_J1253.2+5301_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', job_status='DONE', photon_flux_upper_limit='4.65e-08', time_completed='2021-09-06 07:36:37.987485', job_id='953587', GAL2='1.02', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630938997.99', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.04e-03', ts2='0.07', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='93' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:36:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 953587: <4FGL_J1253.2+5301_daily_bin93> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin93> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:20:23 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:20:24 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:20:24 2021
Terminated at Mon Sep  6 07:36:38 2021
Results reported at Mon Sep  6 07:36:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin93 193.307 53.0173 263433601 263692801 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 :                                   864.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

