/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 153 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 = 7566
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin40
RA = 193.307, Dec = 53.0173
tmin = 249696001, tmax = 249955201
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='952315', job_status='RUN', time_executed='2021-09-06 07:19:06.016157', time_epoch_executed='1630937946.02' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952315

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952315/ft1_4FGL_J1253.2+5301_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952315/ft2_4FGL_J1253.2+5301_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952315/ft1_4FGL_J1253.2+5301_daily_bin40.fits outfile=/scratch/kocevski/952315/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin40.fits ra=193.307 dec=53.0173 rad=12.0 tmin=249696001.0 tmax=249955201.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 1.52
user 1.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952315/ft2_4FGL_J1253.2+5301_daily_bin40.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/952315/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/952315/ft1_filtered_4FGL_J1253.2+5301_daily_bin40.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.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952315/ft1_filtered_4FGL_J1253.2+5301_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/952315/ft2_4FGL_J1253.2+5301_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/952315/ltcube_249696001_249955201_4FGL_J1253.2+5301_daily_bin40.fits outfile=/scratch/kocevski/952315/expmap_249696001_249955201_4FGL_J1253.2+5301_daily_bin40.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/952315/ltcube_249696001_249955201_4FGL_J1253.2+5301_daily_bin40.fits
.....................!
real 194.80
user 188.94
sys 5.54

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/952315/ft1_filtered_4FGL_J1253.2+5301_daily_bin40.fits scfile=/scratch/kocevski/952315/ft2_4FGL_J1253.2+5301_daily_bin40.fits outfile=/scratch/kocevski/952315/cmap_249696001_249955201_4FGL_J1253.2+5301_daily_bin40.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.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26515E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .27503       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3836       1.0000         .10000E-03   10000.    
     8 'norm      '    3.4579       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54926E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.4950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5470       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.318       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11767E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.990       1.0000         .10000E-03   10000.    
    18 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19791E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.626       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.597       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4083       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1453       1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.4234       1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.732       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91857       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2986       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=   5581.892     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3908 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3990        .39702E-06** at limit **
   2  norm          .10000E-03    2.0566        .15399E-06** at limit **
   3  Prefactor     .10000E-03    70.088        .20788E-05** at limit **
   4  Prefactor     .10000E-03    3.5787        .19076E-06** at limit **
   5  Prefactor     .10000E-03    14.185        .30631E-07** at limit **
   6  norm          .26934        1.4994       -.54981E-06    .82106E-03
   7  Prefactor     3.3928        141.92        .20194E-05    .24354E-04
   8  norm          3.4562        5.1823        .33820E-05    .19954E-04
   9  Prefactor     3.6218        12.671        .86796E-05    .31849E-05
  10  Prefactor     .10004E-03    5.4862       -.16256E-05** at limit **
  11  norm          9.4982        3.4614       -.12581E-06    .60649E-03
  12  Prefactor     .10000E-03    15.219        .46353E-06** at limit **
  13  norm          3.5469        2.1537       -.33772E-07    .89444E-04
  14  Prefactor     53.300        67.438       -.57459E-07   -.53357E-04
  15  Prefactor     .10001E-03    51.681        .18905E-05** at limit **
  16  Prefactor     .10000E-03    10.285        .39284E-06** at limit **
  17  norm          10.982        15.074        .53311E-06    .33687E-05
  18  norm          .10000E-03    2.9286       -.14842E-07** at limit **
  19  Prefactor     .10001E-03    135.19       -.13332E-04** at limit **
  20  Prefactor     12.630        18.887        .15881E-06    .22433E-04
  21  Prefactor     26.564        39.782       -.32577E-05   -.11793E-03
  22  norm          1.4054        2.9231        .19624E-06    .83246E-04
  23  Prefactor     .10000E-03    20.894        .52216E-06** at limit **
  24  Prefactor     .10000E-03    25.796       -.23854E-06** at limit **
  25  norm          1.1434        1.5876        .13987E-07    .12229E-03
  26  norm          .10000E-03    32.327       -.48065E-06** at limit **
  27  norm          2.4234        2.7498        .61538E-07   -.52994E-05
  28  Prefactor     20.661        60.522       -.33863E-05   -.22286E-03
  29  Normalizat    .91883        .18036        .40700E-06    .10024E-03
  30  Prefactor     1.2982        .21851       -.24201E-05    .17660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.269335
  Prefactor  = 3.39285
  norm       = 3.45618
  Prefactor  = 3.62177
  Prefactor  = 0.000100043
  norm       = 9.49822
  Prefactor  = 0.0001
  norm       = 3.54687
  Prefactor  = 53.3
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 10.9823
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 12.6301
  Prefactor  = 26.5644
  norm       = 1.40541
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 1.14339
  norm       = 0.000100001
  norm       = 2.42344
  Prefactor  = 20.6612
  Normalizat = 0.918827
  Prefactor  = 1.2982
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.892     FROM HESSE     STATUS=OK           582 CALLS     4490 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5389        .26866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0667        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    72.353        .42882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5897        .13802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .26934        6.3943        .16778E-02   -1.5604    
   7  Prefactor     3.3928        141.75        .21997E-03   -1.5340    
   8  norm          3.4562        5.1735        .99274E-03   -1.5336    
   9  Prefactor     3.6218        12.685        .10614E-02   -1.5327    
  10  Prefactor     .10004E-03    15.496        .32278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.4982        3.3819        .79082E-04   -1.5091    
  12  Prefactor     .10000E-03    15.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5469        2.1540        .82858E-04   -1.5331    
  14  Prefactor     53.300        67.605        .54929E-04   -1.4247    
  15  Prefactor     .10001E-03    51.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.982        15.078        .12085E-03   -1.5045    
  18  norm          .10000E-03    3.0406        .24953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    134.63        .20238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.630        18.720        .11273E-03   -1.4997    
  21  Prefactor     26.564        39.233        .77679E-04   -1.4677    
  22  norm          1.4054        2.8446        .16914E-03   -1.5471    
  23  Prefactor     .10000E-03    20.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    25.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1434        1.5413        .10482E-03   -1.5494    
  26  norm          .10000E-03    32.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.4234        2.7379        .12796E-03   -1.5397    
  28  Prefactor     20.661        61.029        .87966E-04   -1.4799    
  29  Normalizat    .91883        .21309        .24404E-03   -.95802    
  30  Prefactor     1.2982        .25841        .26553E-03   -.83361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0082e-09
Minuit parameter uncertainties:
  1  9.85902e-07
  2  3.7069e-06
  3  9.40111e-05
  4  7.49049e-06
  5  0.000107223
  6  2.62449
  7  43.9716
  8  5.17413
  9  12.6944
  10  0.00163852
  11  3.38192
  12  0.000103007
  13  2.154
  14  67.7022
  15  0.00105294
  16  6.15621e-05
  17  15.0832
  18  1.48128e-05
  19  0.00210106
  20  18.7289
  21  39.271
  22  2.84491
  23  0.000220104
  24  0.000232157
  25  1.54136
  26  0.000284941
  27  2.73808
  28  61.2138
  29  0.213289
  30  0.258667
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.547e+00  2.154e+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.298e+00  2.587e-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.188e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.47
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.51e-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) = 5581.86204586
delta logL = 0.0295550370702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5581.86179982
delta logL = 0.029801073043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5055       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7869       1.0000          .0000       5.0000    
     3 'Normalizat'    .92401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2964       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5581.862     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      234 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5054        2.2384        .85564E-04    .16343E-02
   2  alpha         1.7868        .58885        .13895E-01    .95919E-04
   3  Normalizat    .92408        .20251        .24346E-03   -.10021E-03
   4  Prefactor     1.2963        .25649        .26577E-03   -.92055E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.50539
  alpha      = 1.78684
  Normalizat = 0.924084
  Prefactor  = 1.29628
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.862     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5054        2.2496        .17113E-04   -1.5333    
   2  alpha         1.7868        .59157        .55582E-03   -.28928    
   3  Normalizat    .92408        .20272        .97382E-05   -.95619    
   4  Prefactor     1.2963        .25679        .10631E-04   -.83418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19832e-09
Minuit parameter uncertainties:
  1  2.24966
  2  0.59775
  3  0.202885
  4  0.257037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952315': 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) = 5581.86179972
delta logL = 0.0298011748246

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.505e+00  2.250e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.787e+00  5.978e-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:  1.296e+00  2.570e-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.241e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.52
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.79 +/- 0.60
Photon Flux (Free Index): 2.85e-08 +/- 2.92e-08
Energy Flux (Free Index): 2.80e-05 +/- 2.31e-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/952315/cmap_HighResolution_249696001_249955201_4FGL_J1253.2+5301_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='2.80e-05', photon_flux_error='2.09e-08', dlogl='2.98e-02', energy_flux='2.49e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-09-06 07:31:48.103526', photon_index_error2='0.60', photon_index2='1.79', ts='14.47', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='2.31e-05', EG='0.92', time_epoch_completed='1630938708.1', return_code='0', job_id='952315', GAL2='1.30', EG2='0.92', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='2.92e-08', ts2='14.52', photon_index='1.93' WHERE bin_id='40' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:31:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 952315: <4FGL_J1253.2+5301_daily_bin40> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin40> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:16:10 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:16:12 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:16:12 2021
Terminated at Mon Sep  6 07:31:48 2021
Results reported at Mon Sep  6 07:31:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin40 193.307 53.0173 249696001 249955201 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 :                                   760.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

