/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 160 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 = 7375
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin914
RA = 194.31, Dec = 36.7706
tmin = 476236801, tmax = 476496001
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='36558', job_status='RUN', time_executed='2021-09-06 11:44:08.104030', time_epoch_executed='1630953848.1' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='914'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36558

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36558/ft1_4FGL_J1257.2+3646_daily_bin914.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36558/ft2_4FGL_J1257.2+3646_daily_bin914.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36558/ft1_4FGL_J1257.2+3646_daily_bin914.fits outfile=/scratch/kocevski/36558/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin914.fits ra=194.31 dec=36.7706 rad=12.0 tmin=476236801.0 tmax=476496001.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.51
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36558/ft2_4FGL_J1257.2+3646_daily_bin914.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/36558/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin914.fits evtable="EVENTS" outfile="/scratch/kocevski/36558/ft1_filtered_4FGL_J1257.2+3646_daily_bin914.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.66
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36558/ft1_filtered_4FGL_J1257.2+3646_daily_bin914.fits" evtable="EVENTS" scfile=/scratch/kocevski/36558/ft2_4FGL_J1257.2+3646_daily_bin914.fits sctable="SC_DATA" outfile=/scratch/kocevski/36558/ltcube_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.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/36558/ft2_4FGL_J1257.2+3646_daily_bin914.fits
.....................!
real 12.30
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36558/ft1_filtered_4FGL_J1257.2+3646_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/36558/ft2_4FGL_J1257.2+3646_daily_bin914.fits sctable="SC_DATA" expcube=/scratch/kocevski/36558/ltcube_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.fits outfile=/scratch/kocevski/36558/expmap_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.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/36558/ltcube_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.fits
.....................!
real 192.71
user 185.22
sys 4.78

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/36558/ft1_filtered_4FGL_J1257.2+3646_daily_bin914.fits scfile=/scratch/kocevski/36558/ft2_4FGL_J1257.2+3646_daily_bin914.fits outfile=/scratch/kocevski/36558/cmap_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.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.62
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36558/ft1_filtered_4FGL_J1257.2+3646_daily_bin914.fits scfile=/scratch/kocevski/36558/ft2_4FGL_J1257.2+3646_daily_bin914.fits outfile=/scratch/kocevski/36558/cmap_HighResolution_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.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.76
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/36558/ft1_filtered_4FGL_J1257.2+3646_daily_bin914.fits', '/scratch/kocevski/36558/ft2_4FGL_J1257.2+3646_daily_bin914.fits', expMap='/scratch/kocevski/36558/expmap_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.fits', expCube='/scratch/kocevski/36558/ltcube_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/36558/Model_4FGL_J1257.2+3646_daily_bin914.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/36558/ft1_filtered_4FGL_J1257.2+3646_daily_bin914.fits
Spacecraft file(s): /scratch/kocevski/36558/ft2_4FGL_J1257.2+3646_daily_bin914.fits
Exposure map: /scratch/kocevski/36558/expmap_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.fits
Exposure cube: /scratch/kocevski/36558/ltcube_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/36558/Model_4FGL_J1257.2+3646_daily_bin914.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) = 6821.93045643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.660       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6275       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5004       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0377       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.818       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.570       1.0000         .10000E-03   10000.    
    17 'norm      '    .31581       1.0000         .10000E-03   10000.    
    18 'norm      '    10.343       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9519       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.295       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.135       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    63.250       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92419       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=   6821.926     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2876 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.435        .23975E-06** at limit **
   2  norm          13.660        4.3330        .26340E-07    .13648E-04
   3  Prefactor     .10000E-03    5.7969        .12696E-06** at limit **
   4  Prefactor     1.6275        1.7581       -.17127E-07    .66205E-05
   5  Prefactor     18.587        4.2475       -.43484E-08    .40086E-04
   6  Prefactor     .10000E-03    19.304       -.83538E-06** at limit **
   7  Prefactor     12.266        18.014       -.37683E-08   -.66166E-05
   8  Prefactor     .10000E-03    9.5735       -.15657E-06** at limit **
   9  Prefactor     49.075        86.020       -.24975E-05   -.31472E-04
  10  Prefactor     6.5013        5.5586        .11963E-05   -.48735E-04
  11  norm          3.0424        5.5535        .13346E-06   -.15529E-03
  12  Prefactor     .10000E-03    14.829       -.11635E-06** at limit **
  13  Prefactor     14.845        26.111        .12650E-05    .16445E-04
  14  Prefactor     .10000E-03    13.621        .54151E-06** at limit **
  15  norm          .10000E-03    1.9492        .16970E-06** at limit **
  16  norm          16.568        15.780        .64979E-07   -.48004E-05
  17  norm          .25743        3.0661        .55033E-06   -.34631E-03
  18  norm          10.409        7.6571       -.65113E-06   -.33026E-03
  19  Prefactor     1.9536        2.7086        .75318E-07   -.15892E-03
  20  Prefactor     12.307        12.089       -.32687E-06   -.11052E-03
  21  Prefactor     25.132        47.508       -.56657E-06   -.22522E-04
  22  Prefactor     .10000E-03    5.6024       -.40761E-07** at limit **
  23  Prefactor     63.238        61.311       -.83654E-06   -.32347E-04
  24  Normalizat    1.0692        .17392       -.85907E-06   -.11159E-03
  25  Prefactor     .92423        .20846        .37868E-06   -.11639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.6601
  Prefactor  = 0.0001
  Prefactor  = 1.62749
  Prefactor  = 18.5873
  Prefactor  = 0.0001
  Prefactor  = 12.2665
  Prefactor  = 0.0001
  Prefactor  = 49.0753
  Prefactor  = 6.50129
  norm       = 3.0424
  Prefactor  = 0.0001
  Prefactor  = 14.8452
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.5683
  norm       = 0.257428
  norm       = 10.4093
  Prefactor  = 1.95362
  Prefactor  = 12.3068
  Prefactor  = 25.1323
  Prefactor  = 0.0001
  Prefactor  = 63.2384
  Normalizat = 1.06917
  Prefactor  = 0.924231
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.926     FROM HESSE     STATUS=OK           433 CALLS     3309 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.660        4.3230        .90011E-04   -1.4969    
   3  Prefactor     .10000E-03    5.8633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6275        1.7572        .10725E-03   -1.5453    
   5  Prefactor     18.587        4.2435        .77612E-04   -1.4845    
   6  Prefactor     .10000E-03    19.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.266        18.014        .11436E-03   -1.5007    
   8  Prefactor     .10000E-03    9.6269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.075        85.900        .57235E-04   -1.4306    
  10  Prefactor     6.5013        5.5812        .78705E-03   -1.5198    
  11  norm          3.0424        5.4999        .21699E-03   -1.5359    
  12  Prefactor     .10000E-03    14.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.845        26.977        .10405E-03   -1.4937    
  14  Prefactor     .10000E-03    13.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9554        .11251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.568        15.787        .98393E-04   -1.4894    
  17  norm          .25743        43.566        .21472E-02   -1.5607    
  18  norm          10.409        11.077        .12459E-03   -1.5063    
  19  Prefactor     1.9536        2.6715        .14761E-03   -1.5428    
  20  Prefactor     12.307        12.130        .11424E-03   -1.5006    
  21  Prefactor     25.132        47.431        .79901E-04   -1.4705    
  22  Prefactor     .10000E-03    5.6121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     63.238        61.602        .50457E-04   -1.4116    
  24  Normalizat    1.0692        .20605        .23956E-03   -.90748    
  25  Prefactor     .92423        .24644        .31413E-03   -.95299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00088e-10
Minuit parameter uncertainties:
  1  2.06908e-05
  2  4.32312
  3  6.652e-06
  4  1.75721
  5  4.24355
  6  1.07749e-05
  7  18.0223
  8  1.9284e-05
  9  86.1178
  10  5.58166
  11  5.50084
  12  4.6287e-06
  13  26.9992
  14  2.50381e-05
  15  2.60554e-06
  16  15.7906
  17  6.70142
  18  11.079
  19  2.67168
  20  12.1322
  21  47.5023
  22  5.7447e-07
  23  61.6645
  24  0.2062
  25  0.24674
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.501e+00  5.582e+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:  9.242e-01  2.467e-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.069e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.67
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.47e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.37e-05

TS (Fixed Index): 2.67
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36558/likelihoodResults_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.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) = 6821.84178451
delta logL = 0.0837557056302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6821.8372159
delta logL = 0.0883243121862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7941       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3357       1.0000          .0000       10.000    
     3 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93508       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.

 FCN=   6821.837     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      239 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7941        101.61        .45936E-02    .55336E-03
   2  Index         2.3359        6.1666        .11797        .14410E-03
   3  Normalizat    1.0552        .80297E-01    .40226E-01    .11870E-04
   4  Prefactor     .93504        .76230E-01    .70636E-01    .18164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.79412
  Index      = 2.33594
  Normalizat = 1.05517
  Prefactor  = 0.935035
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.837     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7941        7.1970        .13868E-03   -1.5270    
   2  Index         2.3359        .89046        .71139E-02   -.56192    
   3  Normalizat    1.0552        .20319        .24093E-03   -.91205    
   4  Prefactor     .93504        .24689        .31250E-03   -.94927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30903e-08
Minuit parameter uncertainties:
  1  7.19827
  2  0.89717
  3  0.203342
  4  0.247183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36558': 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) = 6821.83721565
delta logL = 0.0883245613877

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.794e+00  7.198e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.336e+00  8.972e-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:  9.350e-01  2.472e-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.055e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.34 +/- 0.90
Photon Flux (Free Index): 3.47e-08 +/- 3.67e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/36558/cmap_HighResolution_476236801_476496001_4FGL_J1257.2+3646_daily_bin914.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', comment='SUCCESS', photon_flux='2.47e-08', energy_flux2='1.24e-05', photon_flux_error='2.12e-08', dlogl='8.83e-02', energy_flux='1.60e-05', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-09-06 11:57:13.783554', photon_index_error2='0.90', photon_index2='2.34', ts='2.67', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='7.66e-08', energy_flux_error2='1.26e-05', EG='1.07', time_epoch_completed='1630954633.78', return_code='0', job_id='36558', GAL2='0.94', EG2='1.06', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.67e-08', ts2='2.87', photon_index='2.03' WHERE bin_id='914' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:57:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 36558: <4FGL_J1257.2+3646_daily_bin914> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin914> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:41:13 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:41:14 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:41:14 2021
Terminated at Mon Sep  6 11:57:14 2021
Results reported at Mon Sep  6 11:57:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin914 194.31 36.7706 476236801 476496001 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 :                                   759.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

