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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1324
RA = 193.307, Dec = 53.0173
tmin = 582508801, tmax = 582768001
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='960159', job_status='RUN', time_executed='2021-09-06 07:41:23.398911', time_epoch_executed='1630939283.4' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960159

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960159/ft1_4FGL_J1253.2+5301_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960159/ft2_4FGL_J1253.2+5301_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960159/ft1_4FGL_J1253.2+5301_daily_bin1324.fits outfile=/scratch/kocevski/960159/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1324.fits ra=193.307 dec=53.0173 rad=12.0 tmin=582508801.0 tmax=582768001.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.66
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960159/ft1_filtered_4FGL_J1253.2+5301_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/960159/ft2_4FGL_J1253.2+5301_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/960159/ltcube_582508801_582768001_4FGL_J1253.2+5301_daily_bin1324.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/960159/ft2_4FGL_J1253.2+5301_daily_bin1324.fits
.....................!
real 11.67
user 11.31
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960159/ft1_filtered_4FGL_J1253.2+5301_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/960159/ft2_4FGL_J1253.2+5301_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/960159/ltcube_582508801_582768001_4FGL_J1253.2+5301_daily_bin1324.fits outfile=/scratch/kocevski/960159/expmap_582508801_582768001_4FGL_J1253.2+5301_daily_bin1324.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/960159/ltcube_582508801_582768001_4FGL_J1253.2+5301_daily_bin1324.fits
.....................!
real 190.44
user 185.71
sys 4.26

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960159/ft1_filtered_4FGL_J1253.2+5301_daily_bin1324.fits scfile=/scratch/kocevski/960159/ft2_4FGL_J1253.2+5301_daily_bin1324.fits outfile=/scratch/kocevski/960159/cmap_HighResolution_582508801_582768001_4FGL_J1253.2+5301_daily_bin1324.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0778       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.858       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11511E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5315       1.0000         .10000E-03   10000.    
    11 'norm      '    6.3118       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6926       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.680       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1058       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .92982E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10914E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.260       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    27.687       1.0000         .10000E-03   10000.    
    26 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.4384       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92985       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0639       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=   6669.089     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     3921 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0770        3.6722        .41717E-06   -.27706E-03
   2  norm          .10000E-03    1.8424        .15018E-07** at limit **
   3  Prefactor     19.864        25.177       -.24568E-05   -.80732E-05
   4  Prefactor     .10000E-03    2.8648        .31521E-07** at limit **
   5  Prefactor     .10000E-03    6.8919       -.23839E-06** at limit **
   6  norm          .10000E-03    1.4427        .25310E-06** at limit **
   7  Prefactor     .10000E-03    36.850       -.77571E-05** at limit **
   8  norm          .10000E-03    4.6742        .10056E-06** at limit **
   9  Prefactor     .10000E-03    41.063       -.96597E-05** at limit **
  10  Prefactor     2.5319        3.9666       -.93487E-06   -.33419E-03
  11  norm          6.3114        2.6663        .18911E-06   -.59927E-04
  12  Prefactor     .10000E-03    5.1288        .41700E-07** at limit **
  13  norm          1.6925        1.5607        .21188E-06    .12783E-02
  14  Prefactor     25.692        26.205       -.11584E-04   -.14300E-05
  15  Prefactor     .10000E-03    45.038        .10574E-04** at limit **
  16  Prefactor     .10000E-03    3.3935       -.11546E-07** at limit **
  17  norm          .10000E-03    6.6238        .33168E-06** at limit **
  18  norm          .10000E-03    1.5653        .22424E-07** at limit **
  19  Prefactor     .10000E-03    16.048        .48876E-07** at limit **
  20  Prefactor     3.0836        22.210       -.79269E-05   -.24101E-03
  21  Prefactor     .10585E-03    29.883        .27288E-05** at limit **
  22  norm          .10000E-03    2.7243        .29782E-06** at limit **
  23  Prefactor     37.388        53.162        .28307E-04   -.29515E-04
  24  Prefactor     .10000E-03    29.305        .12973E-04** at limit **
  25  norm          27.689        4.2336        .28241E-06   -.76954E-03
  26  norm          .10000E-03    26.543       -.83114E-05** at limit **
  27  norm          1.4380        1.5689       -.19116E-06   -.50406E-04
  28  Prefactor     .10000E-03    34.456        .18555E-05** at limit **
  29  Normalizat    .92981        .15770       -.17841E-05   -.13119E-03
  30  Prefactor     1.0639        .18853        .51624E-06   -.23491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.07697
  norm       = 0.0001
  Prefactor  = 19.8644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.53189
  norm       = 6.31142
  Prefactor  = 0.0001
  norm       = 1.69251
  Prefactor  = 25.6916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.08359
  Prefactor  = 0.000105846
  norm       = 0.0001
  Prefactor  = 37.3879
  Prefactor  = 0.000100001
  norm       = 27.6895
  norm       = 0.0001
  norm       = 1.43798
  Prefactor  = 0.0001
  Normalizat = 0.92981
  Prefactor  = 1.06387
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.089     FROM HESSE     STATUS=OK           592 CALLS     4513 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0770        3.6514        .12863E-03   -1.5304    
   2  norm          .10000E-03    1.8620        .10822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.864        25.107        .89879E-04   -1.4816    
   4  Prefactor     .10000E-03    2.8806        .13497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1293        .18729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.7106        .17236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5319        3.9514        .19430E-03   -1.5390    
  11  norm          6.3114        2.6630        .82297E-04   -1.5205    
  12  Prefactor     .10000E-03    5.1339        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6925        1.5721        .47592E-03   -1.5448    
  14  Prefactor     25.692        26.188        .79051E-04   -1.4694    
  15  Prefactor     .10000E-03    45.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.4012        .14689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.6361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6981        .19876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0836        19.468        .23009E-03   -1.5357    
  21  Prefactor     .10585E-03    31.267        .12053       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.5827        .24202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.388        53.189        .65658E-04   -1.4484    
  24  Prefactor     .10000E-03    29.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          27.689        4.2348        .62242E-04   -1.4655    
  26  norm          .10000E-03    26.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.4380        1.5724        .10408E-03   -1.5468    
  28  Prefactor     .10000E-03    34.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .92981        .18640        .23500E-03   -.95420    
  30  Prefactor     1.0639        .22454        .27680E-03   -.90630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78142e-09
Minuit parameter uncertainties:
  1  3.6516
  2  4.91257e-06
  3  25.1207
  4  5.79487e-06
  5  8.57178e-06
  6  4.54589e-05
  7  6.83174e-05
  8  1.92494e-05
  9  0.000236973
  10  3.95181
  11  2.66306
  12  3.40109e-06
  13  1.5721
  14  26.1998
  15  7.54265e-06
  16  3.66133e-06
  17  1.54819e-06
  18  6.21041e-06
  19  2.39373e-05
  20  15.5032
  21  0.0270546
  22  8.46856e-05
  23  53.2568
  24  0.00033752
  25  4.23481
  26  1.33499e-05
  27  1.57246
  28  3.39507e-05
  29  0.186528
  30  0.224741
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.693e+00  1.572e+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:  1.064e+00  2.247e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  9.298e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.58
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.64e-08 +/- 1.53e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.10e-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) = 6669.06367973
delta logL = 0.0252327456774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6669.06242398
delta logL = 0.026488492309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7501       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2142       1.0000          .0000       5.0000    
     3 'Normalizat'    .91995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0688       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=   6669.062     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7505        3.1606        .79235E-02    .17405E-03
   2  alpha         2.2141        1.9941        .41497E-01    .30124E-04
   3  Normalizat    .92000        .16062        .45156E-01    .28683E-05
   4  Prefactor     1.0688        .19003        .62446E-01   -.80367E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75053
  alpha      = 2.2141
  Normalizat = 0.920002
  Prefactor  = 1.06875
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.062     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7505        1.4968        .87189E-04   -1.5443    
   2  alpha         2.2141        1.0694        .16599E-02   -.11461    
   3  Normalizat    .92000        .18408        .23607E-03   -.95761    
   4  Prefactor     1.0688        .22506        .27618E-03   -.90472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77927e-12
Minuit parameter uncertainties:
  1  1.4968
  2  1.10551
  3  0.184205
  4  0.225261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960159': 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) = 6669.0624239
delta logL = 0.026488572742

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.751e+00  1.497e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.214e+00  1.106e+00  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:  1.069e+00  2.253e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  9.200e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.63
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.21 +/- 1.11
Photon Flux (Free Index): 2.54e-08 +/- 4.43e-08
Energy Flux (Free Index): 1.14e-05 +/- 9.54e-06

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/960159/cmap_HighResolution_582508801_582768001_4FGL_J1253.2+5301_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.64e-08', energy_flux2='1.14e-05', photon_flux_error='1.53e-08', dlogl='2.65e-02', energy_flux='1.19e-05', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-09-06 07:55:42.147411', photon_index_error2='1.11', photon_index2='2.21', ts='4.58', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='9.54e-06', EG='0.93', time_epoch_completed='1630940142.15', return_code='0', job_id='960159', GAL2='1.07', EG2='0.92', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='4.43e-08', ts2='4.63', photon_index='1.93' WHERE bin_id='1324' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:55:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 960159: <4FGL_J1253.2+5301_daily_bin1324> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1324> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 07:40:53 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:40:54 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:40:54 2021
Terminated at Mon Sep  6 07:55:42 2021
Results reported at Mon Sep  6 07:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1324 193.307 53.0173 582508801 582768001 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 :                                   852.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            889 sec.

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

