/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 6842
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin391
RA = 193.307, Dec = 53.0173
tmin = 340675201, tmax = 340934401
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='955358', job_status='RUN', time_executed='2021-09-06 07:26:04.833714', time_epoch_executed='1630938364.83' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955358

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955358/ft1_4FGL_J1253.2+5301_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955358/ft2_4FGL_J1253.2+5301_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955358/ft1_4FGL_J1253.2+5301_daily_bin391.fits outfile=/scratch/kocevski/955358/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin391.fits ra=193.307 dec=53.0173 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.13
user 5.81
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955358/ft1_filtered_4FGL_J1253.2+5301_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/955358/ft2_4FGL_J1253.2+5301_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/955358/ltcube_340675201_340934401_4FGL_J1253.2+5301_daily_bin391.fits outfile=/scratch/kocevski/955358/expmap_340675201_340934401_4FGL_J1253.2+5301_daily_bin391.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/955358/ltcube_340675201_340934401_4FGL_J1253.2+5301_daily_bin391.fits
.....................!
real 193.93
user 187.51
sys 5.55

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/955358/ft1_filtered_4FGL_J1253.2+5301_daily_bin391.fits scfile=/scratch/kocevski/955358/ft2_4FGL_J1253.2+5301_daily_bin391.fits outfile=/scratch/kocevski/955358/cmap_340675201_340934401_4FGL_J1253.2+5301_daily_bin391.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.65
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3505       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6677       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60942       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11244E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.700       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6703       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4131       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7680       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8599       1.0000         .10000E-03   10000.    
    18 'norm      '    3.3399       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.640       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30397E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    135.39       1.0000         .10000E-03   10000.    
    24 'Prefactor '    85.099       1.0000         .10000E-03   10000.    
    25 'norm      '    7.7922       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.6101       1.0000         .10000E-03   10000.    
    28 'Prefactor '    67.524       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0878       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74947       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=   5264.573     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     3997 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3484        3.5444       -.16506E-06    .15250E-02
   2  norm          1.6697        3.2077        .67732E-06   -.33698E-05
   3  Prefactor     .54821        12.912       -.46743E-05    .44679E-03
   4  Prefactor     5.5905        6.5405        .37934E-05    .12652E-03
   5  Prefactor     .10000E-03    12.785        .12628E-05** at limit **
   6  norm          .10000E-03    .63007       -.19501E-06** at limit **
   7  Prefactor     39.575        71.252       -.10742E-03    .15896E-04
   8  norm          .10000E-03    2.6415       -.13944E-07** at limit **
   9  Prefactor     7.6684        19.684       -.54522E-05    .63495E-04
  10  Prefactor     .10000E-03    4.5254        .75150E-07** at limit **
  11  norm          5.4140        3.0470        .47074E-06    .34501E-03
  12  Prefactor     .10000E-03    13.523       -.27387E-06** at limit **
  13  norm          1.3801        1.3623       -.17370E-06    .16078E-03
  14  Prefactor     .10000E-03    40.962        .25431E-05** at limit **
  15  Prefactor     .10000E-03    27.392       -.71804E-06** at limit **
  16  Prefactor     2.7669        16.354       -.50484E-05   -.14087E-03
  17  norm          8.8595        11.985       -.10271E-05   -.40524E-05
  18  norm          3.3395        4.0350       -.95557E-06   -.14241E-03
  19  Prefactor     20.639        33.152       -.16823E-05    .63752E-04
  20  Prefactor     .10398E-03    17.171       -.20555E-05** at limit **
  21  Prefactor     .10000E-03    24.175        .98454E-06** at limit **
  22  norm          .10000E-03    1.3613       -.65500E-07** at limit **
  23  Prefactor     135.39        78.046        .37527E-05    .14173E-03
  24  Prefactor     85.096        59.881       -.43619E-05    .59574E-04
  25  norm          7.7922        2.6550       -.17928E-06    .82302E-03
  26  norm          .10000E-03    27.263       -.14059E-05** at limit **
  27  norm          4.6106        4.4871        .29087E-06   -.18330E-04
  28  Prefactor     67.487        100.96       -.34632E-04    .19641E-04
  29  Normalizat    1.0878        .18887        .78260E-05    .32912E-03
  30  Prefactor     .74955        .21148        .25924E-05    .49304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.34839
  norm       = 1.66971
  Prefactor  = 0.548207
  Prefactor  = 5.5905
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 39.5747
  norm       = 0.0001
  Prefactor  = 7.66837
  Prefactor  = 0.0001
  norm       = 5.41402
  Prefactor  = 0.0001
  norm       = 1.38011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.76689
  norm       = 8.85948
  norm       = 3.33945
  Prefactor  = 20.6386
  Prefactor  = 0.00010398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 135.393
  Prefactor  = 85.0963
  norm       = 7.79222
  norm       = 0.0001
  norm       = 4.61056
  Prefactor  = 67.4875
  Normalizat = 1.08779
  Prefactor  = 0.749553
 **********
 **   18 **HESSE 
 **********

 FCN=   5264.573     FROM HESSE     STATUS=OK           598 CALLS     4595 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3484        3.5695        .97999E-04   -1.5245    
   2  norm          1.6697        3.1638        .17096E-03   -1.5450    
   3  Prefactor     .54821        116.31        .45765E-02   -1.5560    
   4  Prefactor     5.5905        6.5221        .16994E-03   -1.5235    
   5  Prefactor     .10000E-03    12.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .98892        .11184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.575        71.320        .63616E-04   -1.4449    
   8  norm          .10000E-03    2.6476        .11505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.6684        19.790        .14479E-03   -1.5154    
  10  Prefactor     .10000E-03    4.5595        .15047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.4140        3.0212        .85861E-04   -1.5243    
  12  Prefactor     .10000E-03    13.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3801        1.3728        .81850E-04   -1.5473    
  14  Prefactor     .10000E-03    41.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7669        16.121        .24463E-03   -1.5375    
  17  norm          8.8595        11.983        .13466E-03   -1.5113    
  18  norm          3.3395        4.0224        .15236E-03   -1.5342    
  19  Prefactor     20.639        33.174        .88163E-04   -1.4799    
  20  Prefactor     .10398E-03    20.384        .81885E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.3639        .82605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     135.39        78.266        .34612E-04   -1.3376    
  24  Prefactor     85.096        60.090        .43547E-04   -1.3860    
  25  norm          7.7922        2.6552        .33396E-03   -1.5150    
  26  norm          .10000E-03    27.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.6106        4.4757        .14368E-03   -1.5278    
  28  Prefactor     67.487        100.91        .48845E-04   -1.4063    
  29  Normalizat    1.0878        .22527        .21355E-03   -.90145    
  30  Prefactor     .74955        .25060        .30799E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09148e-08
Minuit parameter uncertainties:
  1  3.56961
  2  3.16409
  3  16.0001
  4  6.52289
  5  0.000431756
  6  1.94965e-05
  7  71.4742
  8  3.57547e-06
  9  19.8068
  10  1.4326e-05
  11  3.02126
  12  7.62435e-05
  13  1.37287
  14  7.75173e-05
  15  9.60697e-05
  16  13.3627
  17  11.9863
  18  4.02274
  19  33.2035
  20  0.0180198
  21  8.99611e-05
  22  6.30734e-06
  23  78.3259
  24  60.1333
  25  2.65522
  26  3.24873e-07
  27  4.47607
  28  101.171
  29  0.225471
  30  0.250978
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.380e+00  1.373e+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:  7.496e-01  2.510e-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.088e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.81
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 9.68e-06 +/- 9.63e-06

TS (Fixed Index): 3.81
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/955358/likelihoodResults_340675201_340934401_4FGL_J1253.2+5301_daily_bin391.txt

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) = 5264.53281241
delta logL = 0.039771293611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5264.53144263
delta logL = 0.0411410749757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3176       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2389       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75392       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=   5264.531     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3178        28.810        .95894E-02   -.26490E-04
   2  alpha         2.2389        3.0206        .41439        .24088E-04
   3  Normalizat    1.0803        .63804E-01    .38866E-01    .49665E-05
   4  Prefactor     .75388        .63578E-01    .69411E-01    .18321E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.31777
  alpha      = 2.23893
  Normalizat = 1.08032
  Prefactor  = 0.753882
 **********
 **   18 **HESSE 
 **********

 FCN=   5264.531     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3178        1.3677        .75140E-04   -1.5478    
   2  alpha         2.2389        1.0347        .17359E-01   -.10462    
   3  Normalizat    1.0803        .20318        .21416E-03   -.90386    
   4  Prefactor     .75388        .24584        .30714E-03   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83466e-12
Minuit parameter uncertainties:
  1  1.36777
  2  1.06712
  3  0.203323
  4  0.246192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955358': 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) = 5264.5314426
delta logL = 0.04114110506

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.318e+00  1.368e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.239e+00  1.067e+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:  7.539e-01  2.462e-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.080e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.24 +/- 1.07
Photon Flux (Free Index): 1.99e-08 +/- 3.03e-08
Energy Flux (Free Index): 8.58e-06 +/- 8.37e-06

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/955358/cmap_HighResolution_340675201_340934401_4FGL_J1253.2+5301_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-05', comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='8.58e-06', photon_flux_error='1.33e-08', dlogl='4.11e-02', energy_flux='9.68e-06', photon_flux2='1.99e-08', job_status='DONE', time_completed='2021-09-06 07:41:52.720576', photon_index_error2='1.07', photon_index2='2.24', ts='3.81', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='5.46e-08', energy_flux_error2='8.37e-06', EG='1.09', time_epoch_completed='1630939312.72', return_code='0', job_id='955358', GAL2='0.75', EG2='1.08', return_code2='0', energy_flux_error='9.63e-06', photon_flux_error2='3.03e-08', ts2='3.88', photon_index='1.93' WHERE bin_id='391' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 955358: <4FGL_J1253.2+5301_daily_bin391> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin391> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:25:49 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:25:50 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:25:50 2021
Terminated at Mon Sep  6 07:41:53 2021
Results reported at Mon Sep  6 07:41:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin391 193.307 53.0173 340675201 340934401 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 :                                   934.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            964 sec.

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

