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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1594
RA = 193.307, Dec = 53.0173
tmin = 652492801, tmax = 652752001
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='717597', job_status='RUN', time_executed='2021-09-08 00:30:40.383414', time_epoch_executed='1631086240.38' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/717597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/717597/ft1_4FGL_J1253.2+5301_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/717597/ft2_4FGL_J1253.2+5301_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/717597/ft1_4FGL_J1253.2+5301_daily_bin1594.fits outfile=/scratch/kocevski/717597/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1594.fits ra=193.307 dec=53.0173 rad=12.0 tmin=652492801.0 tmax=652752001.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 4.49
user 4.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/717597/ft1_filtered_4FGL_J1253.2+5301_daily_bin1594.fits" evtable="EVENTS" scfile=/scratch/kocevski/717597/ft2_4FGL_J1253.2+5301_daily_bin1594.fits sctable="SC_DATA" outfile=/scratch/kocevski/717597/ltcube_652492801_652752001_4FGL_J1253.2+5301_daily_bin1594.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/717597/ft2_4FGL_J1253.2+5301_daily_bin1594.fits
.....................!
real 15.86
user 15.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/717597/ft1_filtered_4FGL_J1253.2+5301_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/717597/ft2_4FGL_J1253.2+5301_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/717597/ltcube_652492801_652752001_4FGL_J1253.2+5301_daily_bin1594.fits outfile=/scratch/kocevski/717597/expmap_652492801_652752001_4FGL_J1253.2+5301_daily_bin1594.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/717597/ltcube_652492801_652752001_4FGL_J1253.2+5301_daily_bin1594.fits
.....................!
real 192.90
user 186.98
sys 5.37

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/717597/ft1_filtered_4FGL_J1253.2+5301_daily_bin1594.fits scfile=/scratch/kocevski/717597/ft2_4FGL_J1253.2+5301_daily_bin1594.fits outfile=/scratch/kocevski/717597/cmap_652492801_652752001_4FGL_J1253.2+5301_daily_bin1594.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/717597/ft1_filtered_4FGL_J1253.2+5301_daily_bin1594.fits scfile=/scratch/kocevski/717597/ft2_4FGL_J1253.2+5301_daily_bin1594.fits outfile=/scratch/kocevski/717597/cmap_HighResolution_652492801_652752001_4FGL_J1253.2+5301_daily_bin1594.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1130       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    79.126       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4117       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    78.035       1.0000         .10000E-03   10000.    
     8 'norm      '    13.459       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.770       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7063       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.036       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.726       1.0000         .10000E-03   10000.    
    18 'norm      '    7.7855       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.214       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4563       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.618       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15634E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    60.568       1.0000         .10000E-03   10000.    
    27 'norm      '    2.1533       1.0000         .10000E-03   10000.    
    28 'Prefactor '    92.298       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2953       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .24877       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=   4133.514     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3895 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1125        4.2480       -.17001E-05   -.77027E-03
   2  norm          4.2818        7.9356        .16826E-05   -.48139E-03
   3  Prefactor     79.134        35.405        .16512E-05    .48182E-04
   4  Prefactor     7.4136        13.589        .96396E-06   -.19473E-03
   5  Prefactor     .10000E-03    31.021       -.38344E-05** at limit **
   6  norm          .10000E-03    .87615       -.11038E-07** at limit **
   7  Prefactor     78.035        85.979        .38178E-06   -.50442E-05
   8  norm          13.460        10.637       -.24236E-06    .19258E-04
   9  Prefactor     20.776        31.879        .39495E-06   -.24330E-05
  10  Prefactor     .10000E-03    3.6640        .19720E-07** at limit **
  11  norm          2.7063        2.4884       -.12639E-08   -.58307E-04
  12  Prefactor     .10000E-03    42.673        .82599E-06** at limit **
  13  norm          2.5396        1.8441        .49884E-07    .12561E-03
  14  Prefactor     .10000E-03    12.564       -.10458E-06** at limit **
  15  Prefactor     19.033        50.174       -.29587E-05    .16079E-04
  16  Prefactor     .10000E-03    9.6791        .91915E-07** at limit **
  17  norm          12.726        13.309        .40094E-06    .14552E-03
  18  norm          7.7857        6.2189       -.61014E-06   -.30211E-04
  19  Prefactor     27.222        39.780        .38804E-05   -.39238E-04
  20  Prefactor     1.4553        59.941       -.22957E-05   -.98185E-04
  21  Prefactor     .10000E-03    15.646        .50002E-07** at limit **
  22  norm          10.618        7.0159       -.79819E-06    .22467E-03
  23  Prefactor     .10000E-03    30.724        .30570E-05** at limit **
  24  Prefactor     .10000E-03    188.77        .88444E-07** at limit **
  25  norm          .10000E-03    .61644        .56122E-08** at limit **
  26  norm          60.571        60.950        .18015E-05   -.24189E-04
  27  norm          2.1530        3.1214       -.23332E-06   -.20221E-03
  28  Prefactor     92.310        72.855        .89282E-05   -.13331E-03
  29  Normalizat    1.2953        .21655       -.76452E-06    .81758E-04
  30  Prefactor     .24866        .24436        .26229E-06   -.36961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11255
  norm       = 4.28184
  Prefactor  = 79.134
  Prefactor  = 7.41362
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 78.0349
  norm       = 13.4598
  Prefactor  = 20.7755
  Prefactor  = 0.0001
  norm       = 2.7063
  Prefactor  = 0.0001
  norm       = 2.53959
  Prefactor  = 0.0001
  Prefactor  = 19.0333
  Prefactor  = 0.0001
  norm       = 12.7264
  norm       = 7.78569
  Prefactor  = 27.2216
  Prefactor  = 1.45525
  Prefactor  = 0.0001
  norm       = 10.6183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 60.5708
  norm       = 2.15303
  Prefactor  = 92.3101
  Normalizat = 1.29534
  Prefactor  = 0.248662
 **********
 **   18 **HESSE 
 **********

 FCN=   4133.514     FROM HESSE     STATUS=OK           588 CALLS     4483 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1125        4.3112        .22157E-03   -1.5497    
   2  norm          4.2818        7.6915        .18565E-03   -1.5294    
   3  Prefactor     79.134        34.910        .45148E-04   -1.3926    
   4  Prefactor     7.4136        13.362        .14732E-03   -1.5163    
   5  Prefactor     .10000E-03    31.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .88567        .58732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     78.035        85.794        .45460E-04   -1.3939    
   8  norm          13.460        10.627        .10918E-03   -1.4974    
   9  Prefactor     20.776        31.902        .87886E-04   -1.4796    
  10  Prefactor     .10000E-03    3.6854        .12009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7063        2.4892        .93866E-04   -1.5379    
  12  Prefactor     .10000E-03    43.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5396        1.8497        .72471E-04   -1.5389    
  14  Prefactor     .10000E-03    12.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.033        50.250        .91799E-04   -1.4835    
  16  Prefactor     .10000E-03    9.7575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.726        13.328        .56144E-03   -1.4994    
  18  norm          7.7857        6.2231        .13110E-03   -1.5150    
  19  Prefactor     27.222        39.573        .76795E-04   -1.4664    
  20  Prefactor     1.4553        57.564        .35675E-03   -1.5467    
  21  Prefactor     .10000E-03    15.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.618        6.6773        .10911E-03   -1.5056    
  23  Prefactor     .10000E-03    30.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    192.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .86948        .98403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          60.571        60.904        .51555E-04   -1.4150    
  27  norm          2.1530        3.1117        .13210E-03   -1.5414    
  28  Prefactor     92.310        71.082        .20915E-03   -1.3783    
  29  Normalizat    1.2953        .21110        .18315E-03   -.83706    
  30  Prefactor     .24866        .22963        .45969E-03   -1.2541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95496e-09
Minuit parameter uncertainties:
  1  4.31236
  2  7.69327
  3  34.919
  4  13.3675
  5  1.71559e-05
  6  1.91914e-07
  7  85.9301
  8  10.6286
  9  31.9286
  10  1.03586e-06
  11  2.48925
  12  3.0337e-05
  13  1.84971
  14  4.003e-06
  15  50.3621
  16  6.41474e-06
  17  13.3311
  18  6.22367
  19  39.6113
  20  18.3235
  21  3.22438e-05
  22  6.67774
  23  0.000129004
  24  0.00023033
  25  1.02945e-07
  26  60.9665
  27  3.11198
  28  71.1474
  29  0.211241
  30  0.230471
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.540e+00  1.850e+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:  2.487e-01  2.305e-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.295e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.90
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.47e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.30e-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) = 4133.02810165
delta logL = 0.486174402487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4133.02461085
delta logL = 0.489665200997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6968       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3807       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .24492       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=   4133.025     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      198 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6968        2.0335        .62019E-02    .14116E-02
   2  alpha         1.3808        .48224        .32130       -.74925E-05
   3  Normalizat    1.3025        .20991        .32758E-01    .34843E-06
   4  Prefactor     .24497        .24432        .10452        .44610E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.69677
  alpha      = 1.38081
  Normalizat = 1.3025
  Prefactor  = 0.244975
 **********
 **   18 **HESSE 
 **********

 FCN=   4133.025     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6968        2.0396        .75296E-04   -1.5380    
   2  alpha         1.3808        .51797        .13212E-01   -.46416    
   3  Normalizat    1.3025        .19656        .18272E-03   -.83492    
   4  Prefactor     .24497        .22839        .46297E-03   -1.2565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83134e-10
Minuit parameter uncertainties:
  1  2.03965
  2  0.522718
  3  0.196675
  4  0.229232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/717597': 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) = 4133.02461044
delta logL = 0.489665615395

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.697e+00  2.040e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.381e+00  5.227e-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:  2.450e-01  2.292e-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.302e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.38 +/- 0.52
Photon Flux (Free Index): 1.56e-08 +/- 1.33e-08
Energy Flux (Free Index): 4.26e-05 +/- 5.18e-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/717597/cmap_HighResolution_652492801_652752001_4FGL_J1253.2+5301_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.47e-08', energy_flux2='4.26e-05', photon_flux_error='1.80e-08', dlogl='4.90e-01', energy_flux='1.78e-05', photon_flux2='1.56e-08', job_status='DONE', time_completed='2021-09-08 00:41:59.115767', photon_index_error2='0.52', photon_index2='1.38', ts='8.90', fit_tolerance='1e-08', GAL='0.25', photon_index_error='0.00', energy_flux_error2='5.18e-05', EG='1.30', time_epoch_completed='1631086919.12', return_code='0', job_id='717597', GAL2='0.24', EG2='1.30', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='1.33e-08', ts2='9.88', photon_index='1.93' WHERE bin_id='1594' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:41:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 717597: <4FGL_J1253.2+5301_daily_bin1594> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1594> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 00:25:39 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:26:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:26:48 2021
Terminated at Wed Sep  8 00:41:59 2021
Results reported at Wed Sep  8 00:41:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1594 193.307 53.0173 652492801 652752001 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 :                                   681.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            980 sec.

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

