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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1
RA = 193.307, Dec = 53.0173
tmin = 239587201, tmax = 239846401
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='952252', job_status='RUN', time_executed='2021-09-06 07:18:13.770542', time_epoch_executed='1630937893.77' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952252

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952252/ft1_4FGL_J1253.2+5301_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952252/ft2_4FGL_J1253.2+5301_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952252/ft1_4FGL_J1253.2+5301_daily_bin1.fits outfile=/scratch/kocevski/952252/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1.fits ra=193.307 dec=53.0173 rad=12.0 tmin=239587201.0 tmax=239846401.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.32
user 1.13
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952252/ft1_filtered_4FGL_J1253.2+5301_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/952252/ft2_4FGL_J1253.2+5301_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/952252/ltcube_239587201_239846401_4FGL_J1253.2+5301_daily_bin1.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/952252/ft2_4FGL_J1253.2+5301_daily_bin1.fits
.....................!
real 13.67
user 12.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952252/ft1_filtered_4FGL_J1253.2+5301_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/952252/ft2_4FGL_J1253.2+5301_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/952252/ltcube_239587201_239846401_4FGL_J1253.2+5301_daily_bin1.fits outfile=/scratch/kocevski/952252/expmap_239587201_239846401_4FGL_J1253.2+5301_daily_bin1.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/952252/ltcube_239587201_239846401_4FGL_J1253.2+5301_daily_bin1.fits
.....................!
real 195.17
user 186.69
sys 5.76

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/952252/ft1_filtered_4FGL_J1253.2+5301_daily_bin1.fits scfile=/scratch/kocevski/952252/ft2_4FGL_J1253.2+5301_daily_bin1.fits outfile=/scratch/kocevski/952252/cmap_239587201_239846401_4FGL_J1253.2+5301_daily_bin1.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.59
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952252/ft1_filtered_4FGL_J1253.2+5301_daily_bin1.fits scfile=/scratch/kocevski/952252/ft2_4FGL_J1253.2+5301_daily_bin1.fits outfile=/scratch/kocevski/952252/cmap_HighResolution_239587201_239846401_4FGL_J1253.2+5301_daily_bin1.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/952252/ft1_filtered_4FGL_J1253.2+5301_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/952252/ft2_4FGL_J1253.2+5301_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952252/Model_4FGL_J1253.2+5301_daily_bin1.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/952252/ft1_filtered_4FGL_J1253.2+5301_daily_bin1.fits.....................!
real 37.23
user 34.89
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11277E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0837       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.942       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7931       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22976E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .14267E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.981       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    83.494       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.869       1.0000         .10000E-03   10000.    
    22 'norm      '    22.466       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.2505       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.9146       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .81768       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73534       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=   3444.765     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3924 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9803        .18516E-06** at limit **
   2  norm          .10000E-03    7.0925       -.17641E-05** at limit **
   3  Prefactor     .10000E-03    10.678        .10798E-06** at limit **
   4  Prefactor     6.0867        10.847        .46021E-05    .72076E-04
   5  Prefactor     22.923        23.337       -.23101E-05    .89958E-04
   6  norm          4.7935        3.4212        .20269E-07   -.16968E-03
   7  Prefactor     .10005E-03    488.75       -.11102E-04** at limit **
   8  norm          .10097E-03    7.9094        .12093E-05** at limit **
   9  Prefactor     15.260        26.076        .48430E-06   -.21760E-03
  10  Prefactor     .10000E-03    6.9980        .98940E-07** at limit **
  11  norm          4.3052        2.6399       -.13324E-07   -.10473E-04
  12  Prefactor     24.985        23.479        .13567E-06   -.50797E-04
  13  norm          .10000E-03    1.0017        .50540E-07** at limit **
  14  Prefactor     83.440        63.305       -.58202E-06   -.10824E-03
  15  Prefactor     .10000E-03    48.031       -.38198E-06** at limit **
  16  Prefactor     .10000E-03    6.5672        .24601E-07** at limit **
  17  norm          .10000E-03    14.050        .77536E-07** at limit **
  18  norm          .10000E-03    1.2042        .20472E-07** at limit **
  19  Prefactor     .10000E-03    16.850        .12410E-06** at limit **
  20  Prefactor     .10000E-03    41.394        .33638E-06** at limit **
  21  Prefactor     11.872        22.500        .28737E-06   -.81394E-05
  22  norm          22.466        8.0034        .13535E-06   -.52355E-04
  23  Prefactor     .10000E-03    49.751       -.73330E-06** at limit **
  24  Prefactor     .10000E-03    26.525       -.27249E-06** at limit **
  25  norm          2.2506        1.6644        .14973E-07   -.12834E-04
  26  norm          .10000E-03    37.646        .71204E-06** at limit **
  27  norm          1.9154        5.8357        .96748E-06   -.33574E-04
  28  Prefactor     .10000E-03    83.165        .66842E-06** at limit **
  29  Normalizat    .81749        .19335        .28848E-07   -.14955E-03
  30  Prefactor     .73554        .22274       -.18238E-05   -.76005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 6.08668
  Prefactor  = 22.9234
  norm       = 4.79351
  Prefactor  = 0.000100047
  norm       = 0.000100967
  Prefactor  = 15.2601
  Prefactor  = 0.0001
  norm       = 4.30516
  Prefactor  = 24.9855
  norm       = 0.0001
  Prefactor  = 83.4398
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8723
  norm       = 22.4664
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.25057
  norm       = 0.000100001
  norm       = 1.91539
  Prefactor  = 0.000100001
  Normalizat = 0.817485
  Prefactor  = 0.735542
 **********
 **   18 **HESSE 
 **********

 FCN=   3444.765     FROM HESSE     STATUS=OK           582 CALLS     4506 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0312        .98869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.8053        .31266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0867        11.058        .81389E-03   -1.5214    
   5  Prefactor     22.923        23.146        .83627E-04   -1.4750    
   6  norm          4.7935        3.4340        .84810E-04   -1.5270    
   7  Prefactor     .10005E-03    506.30        .40201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10097E-03    110.06        .27778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.260        23.677        .10255E-03   -1.4926    
  10  Prefactor     .10000E-03    7.1333        .15138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3052        2.6359        .72370E-04   -1.5293    
  12  Prefactor     24.985        23.529        .80146E-04   -1.4708    
  13  norm          .10000E-03    1.0081        .57358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     83.440        63.510        .21980E-03   -1.3879    
  15  Prefactor     .10000E-03    48.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6280        .14688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.2054        .62899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.872        22.486        .11628E-03   -1.5019    
  22  norm          22.466        8.0029        .84508E-04   -1.4760    
  23  Prefactor     .10000E-03    49.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.2506        1.6639        .63249E-04   -1.5408    
  26  norm          .10000E-03    37.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.9154        5.8294        .23384E-03   -1.5431    
  28  Prefactor     .10000E-03    83.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .81749        .22616        .21207E-03   -.99423    
  30  Prefactor     .73554        .25682        .26878E-03   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84071e-09
Minuit parameter uncertainties:
  1  2.68807e-06
  2  0.000224725
  3  4.28952e-06
  4  11.0615
  5  23.1552
  6  3.43412
  7  0.00987335
  8  0.0206695
  9  23.6911
  10  9.44625e-06
  11  2.63592
  12  23.5378
  13  7.85409e-07
  14  63.5616
  15  0.000355119
  16  5.70648e-06
  17  3.4619e-06
  18  4.01966e-07
  19  3.60357e-05
  20  0.000161616
  21  22.5019
  22  8.00324
  23  0.000510189
  24  0.000124627
  25  1.66393
  26  0.000438061
  27  5.83116
  28  0.000580944
  29  0.226422
  30  0.257234
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  7.854e-07  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.355e-01  2.572e-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:  8.175e-01  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/952252/likelihoodResults_239587201_239846401_4FGL_J1253.2+5301_daily_bin1.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) = 3444.76935302
delta logL = -0.00456221832746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3444.76479085
delta logL = -5.05051502842e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9349       1.0000          .0000       5.0000    
     3 'Normalizat'    .81751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73556       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=   3444.765     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      227 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2802        .57386E-03** at limit **
   2  alpha         2.0840        3.0364        .17026        .32458E-07
   3  Normalizat    .81749        .20991        .21207E-03   -.19129E-03
   4  Prefactor     .73554        .25490        .26878E-03   -.15568E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.08403
  Normalizat = 0.817486
  Prefactor  = 0.735541
 **********
 **   18 **HESSE 
 **********

 FCN=   3444.765     FROM HESSE     STATUS=OK            29 CALLS      256 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1437        .11477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0840        2.9440        .50000       -.16717    
   3  Normalizat    .81749        .21010        .42414E-04   -.99423    
   4  Prefactor     .73554        .25512        .10751E-04   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55726e-11
Minuit parameter uncertainties:
  1  1.58248e-08
  2  123.032
  3  0.210305
  4  0.255527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952252': 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) = 3444.76479023
delta logL = 5.74820205657e-07

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  1.582e-08  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.084e+00  1.230e+02  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.355e-01  2.555e-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:  8.175e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.307 53.017

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/952252/cmap_HighResolution_239587201_239846401_4FGL_J1253.2+5301_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', job_status='DONE', photon_flux_upper_limit='4.85e-08', time_completed='2021-09-06 07:29:16.229578', job_id='952252', GAL2='0.74', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630938556.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='5.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:29:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 952252: <4FGL_J1253.2+5301_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1 193.307 53.0173 239587201 239846401 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 :                                   651.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

