/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 214 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 = 7248
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin267
RA = 194.31, Dec = 36.7706
tmin = 308534401, tmax = 308793601
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='32822', job_status='RUN', time_executed='2021-09-06 11:34:02.506419', time_epoch_executed='1630953242.51' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32822

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32822/ft1_4FGL_J1257.2+3646_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32822/ft2_4FGL_J1257.2+3646_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32822/ft1_4FGL_J1257.2+3646_daily_bin267.fits outfile=/scratch/kocevski/32822/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin267.fits ra=194.31 dec=36.7706 rad=12.0 tmin=308534401.0 tmax=308793601.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.41
user 5.16
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/32822/ft2_4FGL_J1257.2+3646_daily_bin267.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32822/ft2_4FGL_J1257.2+3646_daily_bin267.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/32822/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin267.fits evtable="EVENTS" outfile="/scratch/kocevski/32822/ft1_filtered_4FGL_J1257.2+3646_daily_bin267.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.49
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32822/ft1_filtered_4FGL_J1257.2+3646_daily_bin267.fits" evtable="EVENTS" scfile=/scratch/kocevski/32822/ft2_4FGL_J1257.2+3646_daily_bin267.fits sctable="SC_DATA" outfile=/scratch/kocevski/32822/ltcube_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.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/32822/ft2_4FGL_J1257.2+3646_daily_bin267.fits
.....................!
real 12.27
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32822/ft1_filtered_4FGL_J1257.2+3646_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/32822/ft2_4FGL_J1257.2+3646_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/32822/ltcube_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.fits outfile=/scratch/kocevski/32822/expmap_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.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/32822/ltcube_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.fits
.....................!
real 192.22
user 187.12
sys 4.72

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1257.2+3646 @ 194.31 36.7706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/32822/ft1_filtered_4FGL_J1257.2+3646_daily_bin267.fits scfile=/scratch/kocevski/32822/ft2_4FGL_J1257.2+3646_daily_bin267.fits outfile=/scratch/kocevski/32822/cmap_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.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=194.31 yref=36.7706 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32822/ft1_filtered_4FGL_J1257.2+3646_daily_bin267.fits scfile=/scratch/kocevski/32822/ft2_4FGL_J1257.2+3646_daily_bin267.fits outfile=/scratch/kocevski/32822/cmap_HighResolution_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.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=194.31 yref=36.7706 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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32822/ft1_filtered_4FGL_J1257.2+3646_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/32822/ft2_4FGL_J1257.2+3646_daily_bin267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32822/Model_4FGL_J1257.2+3646_daily_bin267.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/32822/ft1_filtered_4FGL_J1257.2+3646_daily_bin267.fits.....................!
real 47.08
user 45.70
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/32822/ft1_filtered_4FGL_J1257.2+3646_daily_bin267.fits', '/scratch/kocevski/32822/ft2_4FGL_J1257.2+3646_daily_bin267.fits', expMap='/scratch/kocevski/32822/expmap_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.fits', expCube='/scratch/kocevski/32822/ltcube_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/32822/Model_4FGL_J1257.2+3646_daily_bin267.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.2+3646'

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.472e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/32822/ft1_filtered_4FGL_J1257.2+3646_daily_bin267.fits
Spacecraft file(s): /scratch/kocevski/32822/ft2_4FGL_J1257.2+3646_daily_bin267.fits
Exposure map: /scratch/kocevski/32822/expmap_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.fits
Exposure cube: /scratch/kocevski/32822/ltcube_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/32822/Model_4FGL_J1257.2+3646_daily_bin267.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) = 5436.20016096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.557       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7799       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.756       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0056       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0301       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9956       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.797       1.0000         .10000E-03   10000.    
    11 'norm      '    13.653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8036       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14636E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3110       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70977       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5436.198     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2842 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.566        37.936        .16640E-05    .80756E-04
   2  norm          3.7800        2.7874       -.12678E-06   -.21329E-03
   3  Prefactor     28.759        13.565       -.10738E-06   -.73322E-04
   4  Prefactor     4.0057        2.7622        .38036E-07    .31726E-04
   5  Prefactor     5.0304        3.0056        .15079E-06    .26006E-03
   6  Prefactor     4.9961        6.9506        .10734E-06    .14341E-04
   7  Prefactor     .10000E-03    21.839       -.27151E-05** at limit **
   8  Prefactor     .10000E-03    7.0359        .56971E-07** at limit **
   9  Prefactor     .10001E-03    28.262        .43360E-05** at limit **
  10  Prefactor     10.798        7.0489       -.44661E-06    .22014E-04
  11  norm          13.653        5.7815        .23902E-08    .22358E-04
  12  Prefactor     .10000E-03    21.096       -.19573E-05** at limit **
  13  Prefactor     .10000E-03    13.349       -.17684E-05** at limit **
  14  Prefactor     3.8015        10.568        .67288E-05   -.49034E-03
  15  norm          .10000E-03    3.4433       -.46570E-06** at limit **
  16  norm          .10000E-03    5.1060       -.56650E-07** at limit **
  17  norm          .10000E-03    1.9839       -.12696E-07** at limit **
  18  norm          .10000E-03    1.7731       -.97167E-10** at limit **
  19  Prefactor     .10000E-03    .89428       -.28883E-07** at limit **
  20  Prefactor     .10000E-03    4.7431        .28508E-07** at limit **
  21  Prefactor     .10000E-03    21.076       -.19300E-05** at limit **
  22  Prefactor     .10001E-03    15.142        .48634E-05** at limit **
  23  Prefactor     .10000E-03    111.19       -.26733E-05** at limit **
  24  Normalizat    1.3108        .18278       -.57505E-06   -.24157E-04
  25  Prefactor     .70989        .22412        .40536E-07   -.49401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5656
  norm       = 3.77997
  Prefactor  = 28.7593
  Prefactor  = 4.0057
  Prefactor  = 5.03044
  Prefactor  = 4.99615
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 10.7981
  norm       = 13.6535
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 3.80152
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.00010001
  Prefactor  = 0.000100003
  Normalizat = 1.31078
  Prefactor  = 0.709887
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.198     FROM HESSE     STATUS=OK           421 CALLS     3263 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.566        38.077        .90568E-04   -1.4823    
   2  norm          3.7800        2.7922        .99500E-04   -1.5319    
   3  Prefactor     28.759        13.579        .74712E-04   -1.4635    
   4  Prefactor     4.0057        2.7626        .94830E-04   -1.5308    
   5  Prefactor     5.0304        3.0017        .93323E-04   -1.5259    
   6  Prefactor     4.9961        6.9420        .17992E-03   -1.5261    
   7  Prefactor     .10000E-03    22.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    29.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.798        7.0629        .12193E-03   -1.5051    
  11  norm          13.653        5.7830        .10840E-03   -1.4969    
  12  Prefactor     .10000E-03    21.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8015        11.126        .10348E-02   -1.5318    
  15  norm          .10000E-03    3.5235        .13389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1131        .16272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0427        .20267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7753        .95877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .89742        .68076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7522        .15682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    16.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    111.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3108        .21491        .21332E-03   -.83245    
  25  Prefactor     .70989        .26182        .34710E-03   -1.0314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23925e-09
Minuit parameter uncertainties:
  1  38.1245
  2  2.7923
  3  13.58
  4  2.76272
  5  3.00181
  6  6.94315
  7  0.000532712
  8  6.6138e-06
  9  0.00100642
  10  7.06345
  11  5.78324
  12  0.000382796
  13  0.000276401
  14  11.1316
  15  3.47216e-05
  16  4.50826e-06
  17  3.49631e-07
  18  2.18607e-07
  19  7.42376e-07
  20  3.38895e-06
  21  0.000380572
  22  0.000819861
  23  0.00114365
  24  0.215057
  25  0.26228
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.080e+01  7.063e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.099e-01  2.623e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.311e+00  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.32
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 4.10e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.73e-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) = 5436.1609403
delta logL = 0.0374540575567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5436.16035852
delta logL = 0.0380358408174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2820       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1584       1.0000          .0000       10.000    
     3 'Normalizat'    1.3049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71411       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   5436.160     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      284 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2837        8.6956        .13155E-03   -.13755E-02
   2  Index         2.1589        .51023        .49266E-02   -.39528E-03
   3  Normalizat    1.3047        .21235        .21373E-03    .49951E-03
   4  Prefactor     .71436        .26168        .34610E-03    .39096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.28367
  Index      = 2.15887
  Normalizat = 1.30467
  Prefactor  = 0.714362
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.160     FROM HESSE     STATUS=OK            23 CALLS      307 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2837        8.2767        .26309E-04   -1.5098    
   2  Index         2.1589        .48555        .19706E-03   -.60435    
   3  Normalizat    1.3047        .21234        .42745E-04   -.83427    
   4  Prefactor     .71436        .26176        .13844E-04   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7196e-09
Minuit parameter uncertainties:
  1  8.27773
  2  0.486685
  3  0.212485
  4  0.262208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32822': 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) = 5436.16035691
delta logL = 0.0380374490014

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  9.284e+00  8.278e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.159e+00  4.867e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  7.144e-01  2.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.305e+00  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.38
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.16 +/- 0.49
Photon Flux (Free Index): 4.60e-08 +/- 3.40e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.91e-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/32822/cmap_HighResolution_308534401_308793601_4FGL_J1257.2+3646_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.10e-08', energy_flux2='2.24e-05', photon_flux_error='2.68e-08', dlogl='3.80e-02', energy_flux='2.65e-05', photon_flux2='4.60e-08', job_status='DONE', time_completed='2021-09-06 11:44:28.238568', photon_index_error2='0.49', photon_index2='2.16', ts='6.32', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='1.31', time_epoch_completed='1630953868.24', return_code='0', job_id='32822', GAL2='0.71', EG2='1.30', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='3.40e-08', ts2='6.38', photon_index='2.03' WHERE bin_id='267' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:44:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 32822: <4FGL_J1257.2+3646_daily_bin267> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin267> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:18 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:30:19 2021
Terminated at Mon Sep  6 11:44:29 2021
Results reported at Mon Sep  6 11:44:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin267 194.31 36.7706 308534401 308793601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.2+3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   622.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

