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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin487
RA = 193.307, Dec = 53.0173
tmin = 365558401, tmax = 365817601
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='955470', job_status='RUN', time_executed='2021-09-06 07:26:17.700001', time_epoch_executed='1630938377.7' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955470

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955470/ft1_4FGL_J1253.2+5301_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955470/ft2_4FGL_J1253.2+5301_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955470/ft1_4FGL_J1253.2+5301_daily_bin487.fits outfile=/scratch/kocevski/955470/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin487.fits ra=193.307 dec=53.0173 rad=12.0 tmin=365558401.0 tmax=365817601.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.56
user 3.35
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955470/ft1_filtered_4FGL_J1253.2+5301_daily_bin487.fits" evtable="EVENTS" scfile=/scratch/kocevski/955470/ft2_4FGL_J1253.2+5301_daily_bin487.fits sctable="SC_DATA" outfile=/scratch/kocevski/955470/ltcube_365558401_365817601_4FGL_J1253.2+5301_daily_bin487.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/955470/ft2_4FGL_J1253.2+5301_daily_bin487.fits
.....................!
real 11.86
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955470/ft1_filtered_4FGL_J1253.2+5301_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/955470/ft2_4FGL_J1253.2+5301_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/955470/ltcube_365558401_365817601_4FGL_J1253.2+5301_daily_bin487.fits outfile=/scratch/kocevski/955470/expmap_365558401_365817601_4FGL_J1253.2+5301_daily_bin487.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/955470/ltcube_365558401_365817601_4FGL_J1253.2+5301_daily_bin487.fits
.....................!
real 190.69
user 185.10
sys 4.79

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/955470/ft1_filtered_4FGL_J1253.2+5301_daily_bin487.fits scfile=/scratch/kocevski/955470/ft2_4FGL_J1253.2+5301_daily_bin487.fits outfile=/scratch/kocevski/955470/cmap_365558401_365817601_4FGL_J1253.2+5301_daily_bin487.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.66
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955470/ft1_filtered_4FGL_J1253.2+5301_daily_bin487.fits scfile=/scratch/kocevski/955470/ft2_4FGL_J1253.2+5301_daily_bin487.fits outfile=/scratch/kocevski/955470/cmap_HighResolution_365558401_365817601_4FGL_J1253.2+5301_daily_bin487.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.62
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69523       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2734       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11712       1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.981       1.0000         .10000E-03   10000.    
     8 'norm      '    .19905E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.186       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7464       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.3542       1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.854       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.2802       1.0000         .10000E-03   10000.    
    18 'norm      '    .16419E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.929       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3258       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .49288E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.8861       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.683       1.0000         .10000E-03   10000.    
    26 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .12552E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0164       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81037       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=   6607.369     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3954 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69642        2.0049       -.75875E-06   -.14793E-02
   2  norm          3.2742        3.5241       -.61658E-06   -.42890E-03
   3  Prefactor     .10000E-03    10.160       -.49266E-06** at limit **
   4  Prefactor     .10000E-03    2.3479       -.25775E-08** at limit **
   5  Prefactor     .10000E-03    6.0006       -.49363E-05** at limit **
   6  norm          .12422        .83189        .17386E-06   -.12134E-02
   7  Prefactor     47.996        54.837        .13864E-04    .22111E-04
   8  norm          .10012E-03    4.5505        .63663E-06** at limit **
   9  Prefactor     13.155        19.091        .69030E-06   -.18926E-03
  10  Prefactor     .10000E-03    1.6333        .93381E-08** at limit **
  11  norm          5.7467        2.2163       -.80749E-07   -.50705E-04
  12  Prefactor     .10000E-03    6.3092        .39288E-05** at limit **
  13  norm          5.3544        2.1144        .28351E-07   -.13159E-03
  14  Prefactor     78.865        44.072        .62908E-05   -.33052E-05
  15  Prefactor     .10000E-03    16.935        .47050E-05** at limit **
  16  Prefactor     .10000E-03    2.7296       -.10053E-07** at limit **
  17  norm          9.2813        10.301        .11008E-06   -.16711E-04
  18  norm          .10001E-03    2.2743        .13388E-05** at limit **
  19  Prefactor     26.898        30.590       -.18503E-04   -.22785E-03
  20  Prefactor     8.3305        16.315        .20253E-06   -.11298E-03
  21  Prefactor     .10004E-03    89.504        .83334E-05** at limit **
  22  norm          4.8858        4.2995        .20733E-05   -.30579E-03
  23  Prefactor     .10000E-03    16.006       -.29185E-05** at limit **
  24  Prefactor     .10000E-03    23.834        .22839E-05** at limit **
  25  norm          11.682        2.9595        .32437E-06   -.35236E-03
  26  norm          .10000E-03    73.987        .28598E-06** at limit **
  27  norm          .10000E-03    1.9712        .72351E-06** at limit **
  28  Prefactor     .10000E-03    28.477       -.95459E-05** at limit **
  29  Normalizat    1.0161        .15331       -.51254E-06   -.46192E-03
  30  Prefactor     .81052        .18216       -.16716E-06   -.37474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.696422
  norm       = 3.2742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.12422
  Prefactor  = 47.9956
  norm       = 0.000100116
  Prefactor  = 13.1552
  Prefactor  = 0.0001
  norm       = 5.7467
  Prefactor  = 0.0001
  norm       = 5.35445
  Prefactor  = 78.8647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.28135
  norm       = 0.00010001
  Prefactor  = 26.8985
  Prefactor  = 8.33053
  Prefactor  = 0.000100044
  norm       = 4.88576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.682
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.01609
  Prefactor  = 0.810521
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.369     FROM HESSE     STATUS=OK           594 CALLS     4548 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69642        1.9948        .18862E-03   -1.5541    
   2  norm          3.2742        3.5148        .15236E-03   -1.5346    
   3  Prefactor     .10000E-03    10.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3509        .12154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .12422        5.2149        .13960E-02   -1.5638    
   7  Prefactor     47.996        54.832        .57889E-04   -1.4321    
   8  norm          .10012E-03    4.7493        .50639E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.155        19.146        .11031E-03   -1.4982    
  10  Prefactor     .10000E-03    1.6387        .10142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7467        2.2163        .72815E-04   -1.5228    
  12  Prefactor     .10000E-03    6.3093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3544        2.1148        .72026E-04   -1.5245    
  14  Prefactor     78.865        43.987        .45225E-04   -1.3930    
  15  Prefactor     .10000E-03    16.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7409        .13113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.2813        10.301        .13156E-03   -1.5099    
  18  norm          .10001E-03    5.3555        .23636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.898        30.672        .77199E-04   -1.4670    
  20  Prefactor     8.3305        16.247        .13894E-03   -1.5131    
  21  Prefactor     .10004E-03    92.211        .21165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.8858        4.2613        .13715E-03   -1.5266    
  23  Prefactor     .10000E-03    16.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.682        2.9595        .67494E-04   -1.5024    
  26  norm          .10000E-03    74.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.2210        .22106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0161        .18654        .21135E-03   -.92493    
  30  Prefactor     .81052        .21894        .29059E-03   -.99342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1093e-09
Minuit parameter uncertainties:
  1  1.99503
  2  3.51498
  3  3.09506e-05
  4  1.44652e-05
  5  4.21133e-05
  6  1.60921
  7  54.8897
  8  0.00148615
  9  19.1554
  10  2.10451e-06
  11  2.21634
  12  3.65494e-06
  13  2.11487
  14  44.0054
  15  2.18224e-05
  16  2.32443e-06
  17  10.303
  18  0.000463167
  19  30.6895
  20  16.256
  21  0.00404611
  22  4.26153
  23  5.36133e-06
  24  7.42532e-06
  25  2.95952
  26  7.14971e-05
  27  0.00026308
  28  6.43584e-06
  29  0.186664
  30  0.219171
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.354e+00  2.115e+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.105e-01  2.192e-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.016e+00  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.47
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.20e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 3.76e-05 +/- 1.48e-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) = 6607.01466515
delta logL = 0.353959900306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6607.0007452
delta logL = 0.367879842772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6372       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6595       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80812       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=   6607.001     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6367        2.9132        .42298E-02   -.16078E-04
   2  alpha         1.6592        .36785        .24195        .17024E-04
   3  Normalizat    1.0249        .14594        .42706E-01    .16261E-04
   4  Prefactor     .80815        .18165        .65820E-01    .21879E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.63674
  alpha      = 1.65925
  Normalizat = 1.02494
  Prefactor  = 0.808146
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6367        2.3406        .77754E-04   -1.5233    
   2  alpha         1.6592        .31931        .98858E-02   -.34299    
   3  Normalizat    1.0249        .17418        .21063E-03   -.92200    
   4  Prefactor     .80815        .21688        .29117E-03   -.99429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61184e-12
Minuit parameter uncertainties:
  1  2.34068
  2  0.320297
  3  0.174281
  4  0.217107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955470': 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) = 6607.00074498
delta logL = 0.367880063963

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  5.637e+00  2.341e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.659e+00  3.203e-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.081e-01  2.171e-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.025e+00  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.17
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.66 +/- 0.32
Photon Flux (Free Index): 4.01e-08 +/- 2.14e-08
Energy Flux (Free Index): 5.31e-05 +/- 3.24e-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/955470/cmap_HighResolution_365558401_365817601_4FGL_J1253.2+5301_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.20e-08', energy_flux2='5.31e-05', photon_flux_error='2.05e-08', dlogl='3.68e-01', energy_flux='3.76e-05', photon_flux2='4.01e-08', job_status='DONE', time_completed='2021-09-06 07:40:32.450907', photon_index_error2='0.32', photon_index2='1.66', ts='29.47', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='3.24e-05', EG='1.02', time_epoch_completed='1630939232.45', return_code='0', job_id='955470', GAL2='0.81', EG2='1.02', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='2.14e-08', ts2='30.17', photon_index='1.93' WHERE bin_id='487' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:40:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 955470: <4FGL_J1253.2+5301_daily_bin487> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin487> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:26:00 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:26:02 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:26:02 2021
Terminated at Mon Sep  6 07:40:33 2021
Results reported at Mon Sep  6 07:40:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin487 193.307 53.0173 365558401 365817601 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 :                                   840.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

