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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin22
RA = 193.307, Dec = 53.0173
tmin = 245030401, tmax = 245289601
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='952285', job_status='RUN', time_executed='2021-09-06 07:19:29.014304', time_epoch_executed='1630937969.01' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952285

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952285/ft1_4FGL_J1253.2+5301_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952285/ft2_4FGL_J1253.2+5301_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952285/ft1_4FGL_J1253.2+5301_daily_bin22.fits outfile=/scratch/kocevski/952285/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin22.fits ra=193.307 dec=53.0173 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.88
user 1.29
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952285/ft1_filtered_4FGL_J1253.2+5301_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/952285/ft2_4FGL_J1253.2+5301_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/952285/ltcube_245030401_245289601_4FGL_J1253.2+5301_daily_bin22.fits outfile=/scratch/kocevski/952285/expmap_245030401_245289601_4FGL_J1253.2+5301_daily_bin22.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/952285/ltcube_245030401_245289601_4FGL_J1253.2+5301_daily_bin22.fits
.....................!
real 192.58
user 186.71
sys 5.34

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952285/ft1_filtered_4FGL_J1253.2+5301_daily_bin22.fits scfile=/scratch/kocevski/952285/ft2_4FGL_J1253.2+5301_daily_bin22.fits outfile=/scratch/kocevski/952285/cmap_HighResolution_245030401_245289601_4FGL_J1253.2+5301_daily_bin22.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.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .64084E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5008       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.661       1.0000         .10000E-03   10000.    
     6 'norm      '    5.2483       1.0000         .10000E-03   10000.    
     7 'Prefactor '    60.844       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    90.041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2502       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.7392       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7163       1.0000         .10000E-03   10000.    
    17 'norm      '    7.8059       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3518       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.555       1.0000         .10000E-03   10000.    
    22 'norm      '    3.9993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    48.061       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1765       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.1038       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.5800       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0002       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94603       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=   5229.971     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3933 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4117        .16738E-07** at limit **
   2  norm          .10028E-03    4.0886        .20623E-05** at limit **
   3  Prefactor     8.4992        21.841        .16894E-05   -.32712E-04
   4  Prefactor     .10000E-03    7.6970       -.53823E-07** at limit **
   5  Prefactor     34.649        32.222        .17925E-05   -.25660E-03
   6  norm          5.2482        2.8279        .16032E-06   -.43830E-03
   7  Prefactor     60.831        64.601       -.91830E-05   -.84104E-04
   8  norm          .10000E-03    3.9032        .37843E-08** at limit **
   9  Prefactor     90.043        33.219        .63195E-06   -.63142E-04
  10  Prefactor     .10000E-03    2.8589        .38897E-07** at limit **
  11  norm          1.2502        1.5078        .86758E-07   -.19425E-04
  12  Prefactor     .10000E-03    32.938        .57609E-05** at limit **
  13  norm          7.7392        3.3675        .50123E-07   -.15231E-03
  14  Prefactor     .10000E-03    182.04        .15689E-05** at limit **
  15  Prefactor     .10000E-03    47.422        .43966E-05** at limit **
  16  Prefactor     8.7170        10.614        .45559E-06   -.86324E-04
  17  norm          7.8064        8.0812        .12403E-05    .13549E-02
  18  norm          2.3520        3.5234       -.37194E-07   -.40193E-03
  19  Prefactor     .10000E-03    12.673        .15242E-06** at limit **
  20  Prefactor     .10000E-03    10.108       -.45652E-07** at limit **
  21  Prefactor     37.556        32.805        .41236E-06   -.20582E-04
  22  norm          3.9996        3.4034       -.63377E-07   -.11037E-03
  23  Prefactor     48.064        60.669        .23601E-05   -.16548E-04
  24  Prefactor     .10000E-03    20.694       -.11682E-05** at limit **
  25  norm          1.1765        1.2324        .16889E-07   -.22133E-03
  26  norm          .10000E-03    36.244       -.10535E-04** at limit **
  27  norm          5.1036        4.2597       -.10242E-05   -.31392E-03
  28  Prefactor     7.6232        177.52        .11188E-03    .18286E-05
  29  Normalizat    1.0002        .19395       -.27077E-05   -.30488E-03
  30  Prefactor     .94605        .22513       -.64944E-06   -.30151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100279
  Prefactor  = 8.49924
  Prefactor  = 0.0001
  Prefactor  = 34.6488
  norm       = 5.24822
  Prefactor  = 60.8313
  norm       = 0.0001
  Prefactor  = 90.0428
  Prefactor  = 0.0001
  norm       = 1.25022
  Prefactor  = 0.0001
  norm       = 7.73924
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.71702
  norm       = 7.80642
  norm       = 2.35197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.5562
  norm       = 3.99959
  Prefactor  = 48.0643
  Prefactor  = 0.0001
  norm       = 1.17651
  norm       = 0.0001
  norm       = 5.10361
  Prefactor  = 7.62324
  Normalizat = 1.00017
  Prefactor  = 0.946047
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.971     FROM HESSE     STATUS=OK           584 CALLS     4517 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4194        .83820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10028E-03    33.683        .27251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.4992        21.815        .13749E-03   -1.5125    
   4  Prefactor     .10000E-03    7.7280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.649        31.509        .68068E-04   -1.4530    
   6  norm          5.2482        2.8313        .85215E-04   -1.5250    
   7  Prefactor     60.831        64.615        .51439E-04   -1.4146    
   8  norm          .10000E-03    3.9123        .13943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     90.043        33.333        .42346E-04   -1.3807    
  10  Prefactor     .10000E-03    2.8731        .11935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2502        1.4918        .94253E-04   -1.5484    
  12  Prefactor     .10000E-03    33.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.7392        3.3673        .84096E-04   -1.5152    
  14  Prefactor     .10000E-03    184.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.7170        10.603        .13577E-03   -1.5117    
  17  norm          7.8064        8.1793        .71761E-03   -1.5149    
  18  norm          2.3520        3.5063        .15978E-03   -1.5401    
  19  Prefactor     .10000E-03    12.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     37.556        32.769        .65401E-04   -1.4482    
  22  norm          3.9996        3.3993        .11886E-03   -1.5308    
  23  Prefactor     48.064        60.830        .57841E-04   -1.4320    
  24  Prefactor     .10000E-03    20.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1765        1.2033        .79684E-04   -1.5491    
  26  norm          .10000E-03    36.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.1036        4.2564        .12959E-03   -1.5256    
  28  Prefactor     7.6232        174.60        .14566E-03   -1.5156    
  29  Normalizat    1.0002        .23335        .23583E-03   -.93025    
  30  Prefactor     .94605        .27052        .29555E-03   -.94550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.96801e-09
Minuit parameter uncertainties:
  1  1.56388e-06
  2  0.0061298
  3  21.835
  4  1.03017e-05
  5  31.5237
  6  2.83136
  7  64.6898
  8  3.03333e-06
  9  33.3402
  10  7.22194e-06
  11  1.49185
  12  6.46076e-05
  13  3.36734
  14  0.000943405
  15  6.986e-05
  16  10.6056
  17  8.18042
  18  3.50657
  19  9.50418e-06
  20  2.80961e-07
  21  32.7844
  22  3.39951
  23  60.9085
  24  1.17667e-05
  25  1.2033
  26  2.05781e-05
  27  4.25661
  28  73.2083
  29  0.233585
  30  0.270908
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  7.739e+00  3.367e+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.460e-01  2.709e-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.000e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.17
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 7.51e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 5.43e-05 +/- 2.36e-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) = 5229.30853095
delta logL = 0.662298460327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5229.28552142
delta logL = 0.685307991179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2886       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3865       1.0000          .0000       5.0000    
     3 'Normalizat'    .94916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97931       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=   5229.286     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      270 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2884        3.2466        .64943E-04    .28467E-02
   2  alpha         2.3866        .39419        .71167E-02    .23140E-03
   3  Normalizat    .94913        .22463        .24082E-03   -.88234E-04
   4  Prefactor     .97931        .27069        .29034E-03   -.12800E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.2884
  alpha      = 2.38661
  Normalizat = 0.949133
  Prefactor  = 0.979315
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.286     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2884        3.1386        .12989E-04   -1.5206    
   2  alpha         2.3866        .38086        .28467E-03   -.45373E-01
   3  Normalizat    .94913        .22460        .96326E-05   -.94755    
   4  Prefactor     .97931        .27080        .11614E-04   -.93422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91231e-10
Minuit parameter uncertainties:
  1  3.13873
  2  0.382352
  3  0.224826
  4  0.271176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952285': 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) = 5229.28552138
delta logL = 0.685308032143

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  6.288e+00  3.139e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.387e+00  3.824e-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.793e-01  2.712e-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:  9.491e-01  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.48
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.39 +/- 0.38
Photon Flux (Free Index): 1.20e-07 +/- 5.76e-08
Energy Flux (Free Index): 4.30e-05 +/- 1.72e-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/952285/cmap_HighResolution_245030401_245289601_4FGL_J1253.2+5301_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.51e-08', energy_flux2='4.30e-05', photon_flux_error='3.27e-08', dlogl='6.85e-01', energy_flux='5.43e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-06 07:31:35.403507', photon_index_error2='0.38', photon_index2='2.39', ts='18.17', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.00', time_epoch_completed='1630938695.4', return_code='0', job_id='952285', GAL2='0.98', EG2='0.95', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='5.76e-08', ts2='19.48', photon_index='1.93' WHERE bin_id='22' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:31:35 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin22 193.307 53.0173 245030401 245289601 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 :                                   723.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            930 sec.

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

