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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin957
RA = 193.307, Dec = 53.0173
tmin = 487382401, tmax = 487641601
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='958636', job_status='RUN', time_executed='2021-09-06 07:36:34.404475', time_epoch_executed='1630938994.4' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='957'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958636/ft1_4FGL_J1253.2+5301_daily_bin957.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958636/ft2_4FGL_J1253.2+5301_daily_bin957.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958636/ft1_4FGL_J1253.2+5301_daily_bin957.fits outfile=/scratch/kocevski/958636/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin957.fits ra=193.307 dec=53.0173 rad=12.0 tmin=487382401.0 tmax=487641601.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.89
user 3.61
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958636/ft1_filtered_4FGL_J1253.2+5301_daily_bin957.fits" evtable="EVENTS" scfile=/scratch/kocevski/958636/ft2_4FGL_J1253.2+5301_daily_bin957.fits sctable="SC_DATA" outfile=/scratch/kocevski/958636/ltcube_487382401_487641601_4FGL_J1253.2+5301_daily_bin957.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/958636/ft2_4FGL_J1253.2+5301_daily_bin957.fits
.....................!
real 12.03
user 11.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958636/ft1_filtered_4FGL_J1253.2+5301_daily_bin957.fits evtable="EVENTS" scfile=/scratch/kocevski/958636/ft2_4FGL_J1253.2+5301_daily_bin957.fits sctable="SC_DATA" expcube=/scratch/kocevski/958636/ltcube_487382401_487641601_4FGL_J1253.2+5301_daily_bin957.fits outfile=/scratch/kocevski/958636/expmap_487382401_487641601_4FGL_J1253.2+5301_daily_bin957.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/958636/ltcube_487382401_487641601_4FGL_J1253.2+5301_daily_bin957.fits
.....................!
real 193.71
user 187.30
sys 5.22

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/958636/ft1_filtered_4FGL_J1253.2+5301_daily_bin957.fits scfile=/scratch/kocevski/958636/ft2_4FGL_J1253.2+5301_daily_bin957.fits outfile=/scratch/kocevski/958636/cmap_487382401_487641601_4FGL_J1253.2+5301_daily_bin957.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93276       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9853       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.429       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5933       1.0000         .10000E-03   10000.    
     6 'norm      '    .47508       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.754       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2167       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1662       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8865       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6802       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.8998       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.061       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9764       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.942       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5408       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.258       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4588       1.0000         .10000E-03   10000.    
    25 'norm      '    1.5531       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .90568       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83935       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96819       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=   6072.891     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3967 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93185        2.4334        .76404E-06    .34258E-03
   2  norm          2.9861        4.5700        .26286E-06   -.56662E-04
   3  Prefactor     18.429        18.794       -.24558E-06   -.72722E-04
   4  Prefactor     .10000E-03    3.2630        .14482E-06** at limit **
   5  Prefactor     2.5861        45.170        .16301E-05   -.42328E-04
   6  norm          .47432        1.7279        .13227E-05   -.16340E-04
   7  Prefactor     18.820        61.125        .79682E-05    .13442E-03
   8  norm          4.2328        10.042        .36985E-06    .19463E-03
   9  Prefactor     1.0933        28.591       -.21537E-05    .37786E-03
  10  Prefactor     2.8861        4.5793        .15375E-09   -.10623E-03
  11  norm          1.6801        1.9433       -.22741E-06   -.22791E-03
  12  Prefactor     .10000E-03    6.9227        .40952E-07** at limit **
  13  norm          7.8997        2.5638        .30138E-07   -.79197E-05
  14  Prefactor     16.042        34.410       -.19734E-05   -.86880E-04
  15  Prefactor     .10000E-03    14.940       -.17326E-05** at limit **
  16  Prefactor     5.9726        9.6906        .50572E-05   -.11906E-03
  17  norm          .10000E-03    3.6921        .26645E-07** at limit **
  18  norm          .10000E-03    2.1185        .76604E-07** at limit **
  19  Prefactor     .10000E-03    35.089        .22714E-05** at limit **
  20  Prefactor     11.940        13.161        .47608E-06   -.42425E-04
  21  Prefactor     7.5343        23.666        .14049E-05   -.32258E-04
  22  norm          .10000E-03    1.6137        .63977E-08** at limit **
  23  Prefactor     23.259        49.027       -.25471E-06   -.46520E-04
  24  Prefactor     5.4499        44.808       -.14950E-05   -.47646E-04
  25  norm          1.5530        1.3860        .11543E-06   -.31228E-04
  26  norm          .10000E-03    25.316       -.22951E-05** at limit **
  27  norm          .90502        3.5939        .20601E-05   -.77699E-06
  28  Prefactor     .10000E-03    15.916        .25013E-05** at limit **
  29  Normalizat    .83953        .15762       -.29804E-05   -.37274E-04
  30  Prefactor     .96805        .18239        .16565E-06   -.19973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.931846
  norm       = 2.98615
  Prefactor  = 18.429
  Prefactor  = 0.0001
  Prefactor  = 2.58608
  norm       = 0.474324
  Prefactor  = 18.8197
  norm       = 4.23281
  Prefactor  = 1.09334
  Prefactor  = 2.88609
  norm       = 1.68014
  Prefactor  = 0.0001
  norm       = 7.89969
  Prefactor  = 16.0417
  Prefactor  = 0.0001
  Prefactor  = 5.97259
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.9402
  Prefactor  = 7.5343
  norm       = 0.0001
  Prefactor  = 23.2592
  Prefactor  = 5.44994
  norm       = 1.55297
  norm       = 0.000100001
  norm       = 0.905024
  Prefactor  = 0.000100001
  Normalizat = 0.839529
  Prefactor  = 0.968046
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.891     FROM HESSE     STATUS=OK           600 CALLS     4567 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93185        2.2034        .17337E-02   -1.5515    
   2  norm          2.9861        4.5305        .19038E-03   -1.5362    
   3  Prefactor     18.429        18.045        .93299E-04   -1.4849    
   4  Prefactor     .10000E-03    3.2663        .13718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5861        44.501        .25337E-03   -1.5386    
   6  norm          .47432        1.7438        .18111E-03   -1.5570    
   7  Prefactor     18.820        62.628        .92486E-04   -1.4840    
   8  norm          4.2328        10.143        .19624E-03   -1.5296    
   9  Prefactor     1.0933        160.32        .58675E-02   -1.5499    
  10  Prefactor     2.8861        4.5563        .18383E-03   -1.5368    
  11  norm          1.6801        1.9197        .10161E-03   -1.5449    
  12  Prefactor     .10000E-03    6.9390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.8997        2.5639        .68706E-04   -1.5146    
  14  Prefactor     16.042        34.501        .99938E-04   -1.4907    
  15  Prefactor     .10000E-03    14.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9726        9.7603        .82125E-03   -1.5219    
  17  norm          .10000E-03    3.6935        .14624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1749        .22142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.940        13.127        .11592E-03   -1.5017    
  21  Prefactor     7.5343        23.653        .14604E-03   -1.5159    
  22  norm          .10000E-03    1.6249        .96348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.259        48.819        .83057E-04   -1.4743    
  24  Prefactor     5.4499        44.450        .17198E-03   -1.5241    
  25  norm          1.5530        1.3723        .83281E-04   -1.5459    
  26  norm          .10000E-03    25.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .90502        3.6027        .27336E-03   -1.5518    
  28  Prefactor     .10000E-03    16.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .83953        .18499        .21693E-03   -.98619    
  30  Prefactor     .96805        .21443        .25781E-03   -.93802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07415e-08
Minuit parameter uncertainties:
  1  2.20357
  2  4.53097
  3  18.0505
  4  1.17091e-05
  5  21.4738
  6  1.74399
  7  62.848
  8  10.1472
  9  26.5505
  10  4.5568
  11  1.91976
  12  1.92278e-05
  13  2.56389
  14  34.544
  15  0.000149288
  16  9.76291
  17  3.10273e-06
  18  1.09237e-05
  19  0.000405509
  20  13.1297
  21  23.6827
  22  2.10195e-06
  23  48.9028
  24  31.1601
  25  1.37233
  26  0.000278436
  27  3.60355
  28  0.000240857
  29  0.185124
  30  0.214622
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  7.900e+00  2.564e+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.680e-01  2.146e-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:  8.395e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 41.67
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 7.67e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 5.54e-05 +/- 1.80e-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) = 6072.12647418
delta logL = 0.764566758538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6072.10952377
delta logL = 0.781517164999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4999       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5971       1.0000          .0000       5.0000    
     3 'Normalizat'    .85744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95899       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=   6072.110     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      199 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4999        3.0808        .34374E-02    .12074E-02
   2  alpha         1.5970        .27017        .19317        .10795E-05
   3  Normalizat    .85743        .14177        .44355E-01    .38168E-04
   4  Prefactor     .95898        .18007        .45753E-01   -.18621E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.49989
  alpha      = 1.59696
  Normalizat = 0.857431
  Prefactor  = 0.958982
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.110     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4999        2.8766        .74476E-04   -1.5125    
   2  alpha         1.5970        .26415        .81387E-02   -.36957    
   3  Normalizat    .85743        .16552        .21502E-03   -.97972    
   4  Prefactor     .95898        .21052        .25903E-03   -.94110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69095e-10
Minuit parameter uncertainties:
  1  2.87664
  2  0.26472
  3  0.165622
  4  0.210703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958636': 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) = 6072.10952367
delta logL = 0.781517269016

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  8.500e+00  2.877e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.597e+00  2.647e-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.590e-01  2.107e-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:  8.574e-01  1.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.20
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.60 +/- 0.26
Photon Flux (Free Index): 5.71e-08 +/- 2.42e-08
Energy Flux (Free Index): 8.82e-05 +/- 4.70e-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/958636/cmap_HighResolution_487382401_487641601_4FGL_J1253.2+5301_daily_bin957.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.67e-08', energy_flux2='8.82e-05', photon_flux_error='2.49e-08', dlogl='7.82e-01', energy_flux='5.54e-05', photon_flux2='5.71e-08', job_status='DONE', time_completed='2021-09-06 07:50:33.310045', photon_index_error2='0.26', photon_index2='1.60', ts='41.67', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='4.70e-05', EG='0.84', time_epoch_completed='1630939833.31', return_code='0', job_id='958636', GAL2='0.96', EG2='0.86', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='2.42e-08', ts2='43.20', photon_index='1.93' WHERE bin_id='957' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:50:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 958636: <4FGL_J1253.2+5301_daily_bin957> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin957> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:36:11 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:36:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:36:13 2021
Terminated at Mon Sep  6 07:50:34 2021
Results reported at Mon Sep  6 07:50:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin957 193.307 53.0173 487382401 487641601 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 :                                   808.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

