/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 = 7454
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin652
RA = 193.307, Dec = 53.0173
tmin = 408326401, tmax = 408585601
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='958257', job_status='RUN', time_executed='2021-09-06 07:37:34.457667', time_epoch_executed='1630939054.46' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958257

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958257/ft1_4FGL_J1253.2+5301_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958257/ft2_4FGL_J1253.2+5301_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958257/ft1_4FGL_J1253.2+5301_daily_bin652.fits outfile=/scratch/kocevski/958257/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin652.fits ra=193.307 dec=53.0173 rad=12.0 tmin=408326401.0 tmax=408585601.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 5.27
user 4.65
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958257/ft1_filtered_4FGL_J1253.2+5301_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/958257/ft2_4FGL_J1253.2+5301_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/958257/ltcube_408326401_408585601_4FGL_J1253.2+5301_daily_bin652.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/958257/ft2_4FGL_J1253.2+5301_daily_bin652.fits
.....................!
real 13.61
user 11.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958257/ft1_filtered_4FGL_J1253.2+5301_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/958257/ft2_4FGL_J1253.2+5301_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/958257/ltcube_408326401_408585601_4FGL_J1253.2+5301_daily_bin652.fits outfile=/scratch/kocevski/958257/expmap_408326401_408585601_4FGL_J1253.2+5301_daily_bin652.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/958257/ltcube_408326401_408585601_4FGL_J1253.2+5301_daily_bin652.fits
.....................!
real 192.70
user 185.45
sys 4.82

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/958257/ft1_filtered_4FGL_J1253.2+5301_daily_bin652.fits scfile=/scratch/kocevski/958257/ft2_4FGL_J1253.2+5301_daily_bin652.fits outfile=/scratch/kocevski/958257/cmap_408326401_408585601_4FGL_J1253.2+5301_daily_bin652.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.82
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958257/ft1_filtered_4FGL_J1253.2+5301_daily_bin652.fits scfile=/scratch/kocevski/958257/ft2_4FGL_J1253.2+5301_daily_bin652.fits outfile=/scratch/kocevski/958257/cmap_HighResolution_408326401_408585601_4FGL_J1253.2+5301_daily_bin652.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/958257/ft1_filtered_4FGL_J1253.2+5301_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/958257/ft2_4FGL_J1253.2+5301_daily_bin652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/958257/Model_4FGL_J1253.2+5301_daily_bin652.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/958257/ft1_filtered_4FGL_J1253.2+5301_daily_bin652.fits.....................!
real 35.69
user 34.11
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.8490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.982       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.611       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0885       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.181       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7927       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5469       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.8941       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11716E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.434       1.0000         .10000E-03   10000.    
    17 'norm      '    55.581       1.0000         .10000E-03   10000.    
    18 'norm      '    13.326       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.847       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1428       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .24883E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.120       1.0000         .10000E-03   10000.    
    26 'norm      '    91.993       1.0000         .10000E-03   10000.    
    27 'norm      '    .12459E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2686       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .56069       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=   3175.776     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3911 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5787        .19961E-07** at limit **
   2  norm          8.8512        7.7120       -.83589E-06   -.17536E-04
   3  Prefactor     36.974        31.341       -.25746E-06    .58763E-05
   4  Prefactor     .10000E-03    4.7870        .48814E-07** at limit **
   5  Prefactor     23.575        36.387       -.14515E-05    .38960E-04
   6  norm          3.0889        2.7602       -.14209E-06   -.37178E-05
   7  Prefactor     .10000E-03    116.66       -.19692E-04** at limit **
   8  norm          16.199        15.767       -.55714E-07    .95783E-05
   9  Prefactor     2.6070        124.53       -.24868E-05   -.27879E-04
  10  Prefactor     .10000E-03    7.3700       -.13784E-06** at limit **
  11  norm          4.5471        3.7492       -.62729E-07    .42682E-04
  12  Prefactor     .10000E-03    8.2481       -.53878E-08** at limit **
  13  norm          7.8947        4.3190       -.73774E-07   -.31975E-05
  14  Prefactor     .10000E-03    41.748        .50085E-06** at limit **
  15  Prefactor     .10000E-03    118.66        .68031E-05** at limit **
  16  Prefactor     32.432        21.248       -.84328E-07    .18197E-04
  17  norm          55.592        32.101       -.12256E-05   -.57386E-05
  18  norm          13.329        9.1831        .10694E-05   -.76118E-05
  19  Prefactor     11.824        60.872       -.25752E-04   -.54407E-05
  20  Prefactor     .10000E-03    12.130       -.13824E-07** at limit **
  21  Prefactor     .10000E-03    29.042        .63167E-06** at limit **
  22  norm          4.1440        5.2042        .71277E-06   -.37225E-04
  23  Prefactor     .10000E-03    33.327        .43697E-06** at limit **
  24  Prefactor     .10000E-03    264.99        .38235E-05** at limit **
  25  norm          14.120        4.6844        .96683E-07    .54603E-04
  26  norm          91.988        123.63       -.43720E-05    .10348E-05
  27  norm          .10000E-03    14.320       -.40492E-06** at limit **
  28  Prefactor     .10000E-03    116.33       -.32004E-05** at limit **
  29  Normalizat    1.2685        .26122        .20618E-05   -.33167E-05
  30  Prefactor     .56060        .31203       -.20076E-06    .38617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.85122
  Prefactor  = 36.9735
  Prefactor  = 0.0001
  Prefactor  = 23.5745
  norm       = 3.0889
  Prefactor  = 0.0001
  norm       = 16.1987
  Prefactor  = 2.60696
  Prefactor  = 0.0001
  norm       = 4.54713
  Prefactor  = 0.0001
  norm       = 7.89469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.4322
  norm       = 55.5923
  norm       = 13.3285
  Prefactor  = 11.8242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.14404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1201
  norm       = 91.9882
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26846
  Prefactor  = 0.560597
 **********
 **   18 **HESSE 
 **********

 FCN=   3175.776     FROM HESSE     STATUS=OK           588 CALLS     4499 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6321        .11717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.8512        7.7194        .13474E-03   -1.5113    
   3  Prefactor     36.974        31.215        .65903E-04   -1.4491    
   4  Prefactor     .10000E-03    4.7887        .12039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.575        36.300        .82436E-04   -1.4737    
   6  norm          3.0889        2.7663        .85073E-04   -1.5356    
   7  Prefactor     .10000E-03    116.48        .21404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.199        15.227        .99569E-04   -1.4903    
   9  Prefactor     2.6070        117.10        .24347E-03   -1.5385    
  10  Prefactor     .10000E-03    7.4023        .14929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5471        3.7500        .94281E-04   -1.5281    
  12  Prefactor     .10000E-03    8.2494        .15808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.8947        4.3173        .83520E-04   -1.5146    
  14  Prefactor     .10000E-03    41.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    119.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.432        21.278        .70359E-04   -1.4568    
  17  norm          55.592        32.106        .53805E-04   -1.4215    
  18  norm          13.329        9.1617        .10973E-03   -1.4978    
  19  Prefactor     11.824        61.040        .11638E-03   -1.5020    
  20  Prefactor     .10000E-03    12.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1440        5.1916        .13893E-03   -1.5301    
  23  Prefactor     .10000E-03    33.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    267.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.120        4.6837        .67855E-04   -1.4956    
  26  norm          91.988        123.62        .20949E-03   -1.3787    
  27  norm          .10000E-03    14.838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    116.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2685        .30340        .22249E-03   -.84513    
  30  Prefactor     .56060        .35565        .38816E-03   -1.0927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0128e-10
Minuit parameter uncertainties:
  1  6.23426e-06
  2  7.72029
  3  31.2292
  4  7.24945e-06
  5  36.3344
  6  2.76637
  7  0.000128538
  8  15.2306
  9  35.0171
  10  7.48998e-06
  11  3.75019
  12  3.629e-07
  13  4.31744
  14  2.00597e-05
  15  3.65585e-05
  16  21.2828
  17  32.1156
  18  9.16262
  19  53.8173
  20  5.18521e-06
  21  0.000209623
  22  5.1922
  23  1.36043e-05
  24  0.000724707
  25  4.68382
  26  123.967
  27  3.64893e-05
  28  4.86373e-05
  29  0.303822
  30  0.357081
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  7.895e+00  4.317e+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:  5.606e-01  3.571e-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.268e+00  3.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.41
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 7.67e-08 +/- 4.19e-08
Energy Flux (Fixed Index): 5.54e-05 +/- 3.03e-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) = 3175.76201634
delta logL = 0.0144130665617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3175.75795057
delta logL = 0.0184788300253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3146       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8457       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55427       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=   3175.758     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      206 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3168        131.46        .34758E-02   -.14939E-04
   2  alpha         1.8456        2.8725        .20680        .16342E-04
   3  Normalizat    1.2752        .34395        .50217E-01   -.34706E-03
   4  Prefactor     .55390        .42885        .88095E-01   -.58010E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.31684
  alpha      = 1.84556
  Normalizat = 1.27519
  Prefactor  = 0.553897
 **********
 **   18 **HESSE 
 **********

 FCN=   3175.758     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3168        4.9822        .85932E-04   -1.5131    
   2  alpha         1.8456        .44123        .85268E-02   -.26486    
   3  Normalizat    1.2752        .29244        .22201E-03   -.84310    
   4  Prefactor     .55390        .35230        .39032E-03   -1.0956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41704e-10
Minuit parameter uncertainties:
  1  4.98248
  2  0.443723
  3  0.292819
  4  0.353712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958257': 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) = 3175.75794816
delta logL = 0.01848124362

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  8.317e+00  4.982e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.846e+00  4.437e-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:  5.539e-01  3.537e-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.275e+00  2.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.40
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.85 +/- 0.44
Photon Flux (Free Index): 7.25e-08 +/- 4.50e-08
Energy Flux (Free Index): 6.25e-05 +/- 5.34e-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/958257/cmap_HighResolution_408326401_408585601_4FGL_J1253.2+5301_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.67e-08', energy_flux2='6.25e-05', photon_flux_error='4.19e-08', dlogl='1.85e-02', energy_flux='5.54e-05', photon_flux2='7.25e-08', job_status='DONE', time_completed='2021-09-06 07:47:38.876014', photon_index_error2='0.44', photon_index2='1.85', ts='8.41', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='5.34e-05', EG='1.27', time_epoch_completed='1630939658.88', return_code='0', job_id='958257', GAL2='0.55', EG2='1.28', return_code2='0', energy_flux_error='3.03e-05', photon_flux_error2='4.50e-08', ts2='8.40', photon_index='1.93' WHERE bin_id='652' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:47:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 958257: <4FGL_J1253.2+5301_daily_bin652> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin652> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 07:35:44 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:35:46 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:35:46 2021
Terminated at Mon Sep  6 07:47:39 2021
Results reported at Mon Sep  6 07:47:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin652 193.307 53.0173 408326401 408585601 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 :                                   586.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            715 sec.

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

