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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1586
RA = 193.307, Dec = 53.0173
tmin = 650419201, tmax = 650678401
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='961924', job_status='RUN', time_executed='2021-09-06 07:48:22.238233', time_epoch_executed='1630939702.24' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961924/ft1_4FGL_J1253.2+5301_daily_bin1586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961924/ft2_4FGL_J1253.2+5301_daily_bin1586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961924/ft1_4FGL_J1253.2+5301_daily_bin1586.fits outfile=/scratch/kocevski/961924/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1586.fits ra=193.307 dec=53.0173 rad=12.0 tmin=650419201.0 tmax=650678401.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.76
user 3.48
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961924/ft1_filtered_4FGL_J1253.2+5301_daily_bin1586.fits" evtable="EVENTS" scfile=/scratch/kocevski/961924/ft2_4FGL_J1253.2+5301_daily_bin1586.fits sctable="SC_DATA" outfile=/scratch/kocevski/961924/ltcube_650419201_650678401_4FGL_J1253.2+5301_daily_bin1586.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/961924/ft2_4FGL_J1253.2+5301_daily_bin1586.fits
.....................!
real 12.34
user 11.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961924/ft1_filtered_4FGL_J1253.2+5301_daily_bin1586.fits evtable="EVENTS" scfile=/scratch/kocevski/961924/ft2_4FGL_J1253.2+5301_daily_bin1586.fits sctable="SC_DATA" expcube=/scratch/kocevski/961924/ltcube_650419201_650678401_4FGL_J1253.2+5301_daily_bin1586.fits outfile=/scratch/kocevski/961924/expmap_650419201_650678401_4FGL_J1253.2+5301_daily_bin1586.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/961924/ltcube_650419201_650678401_4FGL_J1253.2+5301_daily_bin1586.fits
.....................!
real 189.15
user 184.63
sys 4.02

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/961924/ft1_filtered_4FGL_J1253.2+5301_daily_bin1586.fits scfile=/scratch/kocevski/961924/ft2_4FGL_J1253.2+5301_daily_bin1586.fits outfile=/scratch/kocevski/961924/cmap_650419201_650678401_4FGL_J1253.2+5301_daily_bin1586.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961924/ft1_filtered_4FGL_J1253.2+5301_daily_bin1586.fits scfile=/scratch/kocevski/961924/ft2_4FGL_J1253.2+5301_daily_bin1586.fits outfile=/scratch/kocevski/961924/cmap_HighResolution_650419201_650678401_4FGL_J1253.2+5301_daily_bin1586.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.60
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70493E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.971       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.643       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.528       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3044       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.561       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3886       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5756       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.020       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.806       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10699E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0380       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.146       1.0000         .10000E-03   10000.    
    24 'Prefactor '    41.371       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7956       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .82949       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0703       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94443       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=   6286.920     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     3928 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90805E-01    4.0967       -.21328E-05    .13653E-02
   2  norm          .10000E-03    3.9774       -.13176E-06** at limit **
   3  Prefactor     13.946        15.606       -.16609E-05   -.24751E-03
   4  Prefactor     14.645        7.9687        .94413E-07    .55337E-04
   5  Prefactor     .10000E-03    8.7608       -.58928E-07** at limit **
   6  norm          .10000E-03    .77494       -.47567E-07** at limit **
   7  Prefactor     .10000E-03    40.891        .27276E-05** at limit **
   8  norm          .10000E-03    4.3863       -.81720E-07** at limit **
   9  Prefactor     16.530        15.677        .47269E-07    .29584E-04
  10  Prefactor     .10000E-03    3.6338        .10297E-06** at limit **
  11  norm          4.3043        2.3679       -.12821E-06    .63445E-04
  12  Prefactor     13.565        20.714        .15708E-05    .15555E-03
  13  norm          1.3888        1.3617       -.36929E-07   -.78052E-04
  14  Prefactor     .10000E-03    15.389        .69737E-07** at limit **
  15  Prefactor     .10000E-03    29.381       -.14868E-05** at limit **
  16  Prefactor     5.5848        12.169        .25174E-05    .56171E-03
  17  norm          .10000E-03    9.4656       -.95367E-07** at limit **
  18  norm          10.022        4.9267       -.29490E-07    .50704E-04
  19  Prefactor     19.803        32.578        .35711E-06    .39279E-04
  20  Prefactor     .10000E-03    13.510        .12917E-06** at limit **
  21  Prefactor     .10000E-03    31.883       -.94148E-06** at limit **
  22  norm          1.0408        3.1674        .13503E-06    .12089E-03
  23  Prefactor     15.989        60.056        .25493E-05    .44735E-04
  24  Prefactor     41.387        39.543       -.18863E-05   -.11116E-03
  25  norm          1.7957        1.5506        .15302E-07    .57400E-04
  26  norm          .10000E-03    32.019       -.83401E-06** at limit **
  27  norm          .83775        4.7406        .92908E-06    .27531E-03
  28  Prefactor     .10000E-03    26.400        .16101E-05** at limit **
  29  Normalizat    1.0698        .17220       -.55233E-06    .22128E-03
  30  Prefactor     .94484        .19785        .40889E-06    .90556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0908045
  norm       = 0.0001
  Prefactor  = 13.9455
  Prefactor  = 14.6452
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 16.5295
  Prefactor  = 0.0001
  norm       = 4.30431
  Prefactor  = 13.5651
  norm       = 1.3888
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.58476
  norm       = 0.0001
  norm       = 10.0217
  Prefactor  = 19.8034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.04075
  Prefactor  = 15.9893
  Prefactor  = 41.3869
  norm       = 1.79571
  norm       = 0.0001
  norm       = 0.837747
  Prefactor  = 0.000100001
  Normalizat = 1.06983
  Prefactor  = 0.944844
 **********
 **   18 **HESSE 
 **********

 FCN=   6286.920     FROM HESSE     STATUS=OK           590 CALLS     4518 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90805E-01    17.556        .18087E-02   -1.5648    
   2  norm          .10000E-03    4.0711        .30803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.946        16.448        .10716E-03   -1.4961    
   4  Prefactor     14.645        7.9625        .10467E-03   -1.4942    
   5  Prefactor     .10000E-03    8.7779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2641        .13455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.4826        .16193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.530        15.658        .98517E-04   -1.4895    
  10  Prefactor     .10000E-03    3.6582        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3043        2.3652        .84361E-04   -1.5293    
  12  Prefactor     13.565        20.781        .10877E-03   -1.4971    
  13  norm          1.3888        1.3807        .89034E-04   -1.5472    
  14  Prefactor     .10000E-03    15.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5848        12.542        .85070E-03   -1.5235    
  17  norm          .10000E-03    9.5033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.022        4.9239        .11669E-03   -1.5075    
  19  Prefactor     19.803        32.507        .89998E-04   -1.4818    
  20  Prefactor     .10000E-03    13.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0408        3.1164        .23469E-03   -1.5504    
  23  Prefactor     15.989        60.029        .99676E-04   -1.4908    
  24  Prefactor     41.387        39.526        .62322E-04   -1.4420    
  25  norm          1.7957        1.5531        .88861E-04   -1.5440    
  26  norm          .10000E-03    32.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .83775        4.8455        .31882E-03   -1.5525    
  28  Prefactor     .10000E-03    26.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0698        .19997        .22102E-03   -.90726    
  30  Prefactor     .94484        .22966        .28607E-03   -.94591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68887e-08
Minuit parameter uncertainties:
  1  2.5246
  2  1.41022e-05
  3  16.453
  4  7.96304
  5  9.55649e-06
  6  4.18391e-06
  7  0.000495638
  8  6.39036e-06
  9  15.6623
  10  5.15218e-06
  11  2.36526
  12  20.7925
  13  1.38074
  14  6.03324e-06
  15  0.000249075
  16  12.5478
  17  1.25978e-05
  18  4.92413
  19  32.5361
  20  2.58333e-06
  21  0.000172274
  22  3.11689
  23  60.2573
  24  39.5515
  25  1.55312
  26  0.000138388
  27  4.02982
  28  0.000242577
  29  0.200116
  30  0.229892
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.389e+00  1.381e+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.448e-01  2.299e-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.070e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.09
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.35e-08 +/- 1.34e-08
Energy Flux (Fixed Index): 9.75e-06 +/- 9.69e-06

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) = 6286.70772543
delta logL = 0.212130677313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6286.67176093
delta logL = 0.248095184893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0055       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2825       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94309       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=   6286.672     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      192 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0056        .97016        .13426E-01    .93131E-03
   2  alpha         1.2824        .57891        .50000       -.14796E-04
   3  Normalizat    1.0765        .15957        .39048E-01    .45407E-05
   4  Prefactor     .94309        .19613        .45552E-01    .16436E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00556
  alpha      = 1.28244
  Normalizat = 1.07652
  Prefactor  = 0.943086
 **********
 **   18 **HESSE 
 **********

 FCN=   6286.672     FROM HESSE     STATUS=OK            35 CALLS      227 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0056        1.2640        .74822E-03   -1.5507    
   2  alpha         1.2824        .79727        .20713E-01   -.50868    
   3  Normalizat    1.0765        .18380        .22043E-03   -.90509    
   4  Prefactor     .94309        .22603        .28634E-03   -.94651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63132e-10
Minuit parameter uncertainties:
  1  1.264
  2  0.816142
  3  0.183909
  4  0.226254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961924': 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) = 6286.67176092
delta logL = 0.248095196304

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.006e+00  1.264e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.282e+00  8.161e-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.431e-01  2.263e-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.077e+00  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.59
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.28 +/- 0.82
Photon Flux (Free Index): 5.62e-09 +/- 7.83e-09
Energy Flux (Free Index): 2.00e-05 +/- 3.21e-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/961924/cmap_HighResolution_650419201_650678401_4FGL_J1253.2+5301_daily_bin1586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.35e-08', energy_flux2='2.00e-05', photon_flux_error='1.34e-08', dlogl='2.48e-01', energy_flux='9.75e-06', photon_flux2='5.62e-09', job_status='DONE', time_completed='2021-09-06 08:02:17.582834', photon_index_error2='0.82', photon_index2='1.28', ts='5.09', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='3.21e-05', EG='1.07', time_epoch_completed='1630940537.58', return_code='0', job_id='961924', GAL2='0.94', EG2='1.08', return_code2='0', energy_flux_error='9.69e-06', photon_flux_error2='7.83e-09', ts2='5.59', photon_index='1.93' WHERE bin_id='1586' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:02:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 961924: <4FGL_J1253.2+5301_daily_bin1586> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1586> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 07:45:53 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:45:55 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:45:55 2021
Terminated at Mon Sep  6 08:02:18 2021
Results reported at Mon Sep  6 08:02:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1586 193.307 53.0173 650419201 650678401 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 :                                   820.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

