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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin444
RA = 194.31, Dec = 36.7706
tmin = 354412801, tmax = 354672001
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='34466', job_status='RUN', time_executed='2021-09-06 11:37:27.551516', time_epoch_executed='1630953447.55' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34466

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34466/ft1_4FGL_J1257.2+3646_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34466/ft2_4FGL_J1257.2+3646_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34466/ft1_4FGL_J1257.2+3646_daily_bin444.fits outfile=/scratch/kocevski/34466/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin444.fits ra=194.31 dec=36.7706 rad=12.0 tmin=354412801.0 tmax=354672001.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.45
user 3.21
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34466/ft1_filtered_4FGL_J1257.2+3646_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/34466/ft2_4FGL_J1257.2+3646_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/34466/ltcube_354412801_354672001_4FGL_J1257.2+3646_daily_bin444.fits outfile=/scratch/kocevski/34466/expmap_354412801_354672001_4FGL_J1257.2+3646_daily_bin444.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/34466/ltcube_354412801_354672001_4FGL_J1257.2+3646_daily_bin444.fits
.....................!
real 191.31
user 186.03
sys 4.91

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/34466/ft1_filtered_4FGL_J1257.2+3646_daily_bin444.fits scfile=/scratch/kocevski/34466/ft2_4FGL_J1257.2+3646_daily_bin444.fits outfile=/scratch/kocevski/34466/cmap_354412801_354672001_4FGL_J1257.2+3646_daily_bin444.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34466/ft1_filtered_4FGL_J1257.2+3646_daily_bin444.fits scfile=/scratch/kocevski/34466/ft2_4FGL_J1257.2+3646_daily_bin444.fits outfile=/scratch/kocevski/34466/cmap_HighResolution_354412801_354672001_4FGL_J1257.2+3646_daily_bin444.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4639       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3228       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.213       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8848       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9263       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5480       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.304       1.0000         .10000E-03   10000.    
    15 'norm      '    .10648E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8494       1.0000         .10000E-03   10000.    
    18 'norm      '    .14546E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.029       1.0000         .10000E-03   10000.    
    23 'Prefactor '    91.314       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0163       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82864       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=   5939.849     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2896 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.068        .11558E-04** at limit **
   2  norm          4.4641        2.6886        .16263E-06   -.11028E-03
   3  Prefactor     .10000E-03    4.6979       -.38702E-07** at limit **
   4  Prefactor     2.3229        2.1786       -.13965E-06   -.20239E-03
   5  Prefactor     1.8102        1.6016        .13867E-07    .38766E-04
   6  Prefactor     .10000E-03    26.583        .51276E-06** at limit **
   7  Prefactor     20.219        29.733        .75771E-05   -.12697E-03
   8  Prefactor     8.8852        11.873        .38951E-06   -.35546E-04
   9  Prefactor     .10000E-03    25.196        .97804E-05** at limit **
  10  Prefactor     6.9267        5.4663        .28224E-06   -.25690E-03
  11  norm          .10000E-03    1.9519       -.80721E-07** at limit **
  12  Prefactor     42.676        36.011        .81399E-05   -.18472E-03
  13  Prefactor     7.5466        13.471        .13568E-05   -.97622E-04
  14  Prefactor     14.266        15.241       -.79006E-05   -.33493E-03
  15  norm          .10041E-03    3.2667        .18984E-05** at limit **
  16  norm          .10000E-03    8.5160        .75365E-06** at limit **
  17  norm          1.8475        3.4128       -.15387E-06   -.47703E-03
  18  norm          .10019E-03    5.0117       -.67157E-06** at limit **
  19  Prefactor     .10000E-03    1.0148        .13931E-06** at limit **
  20  Prefactor     .10000E-03    7.0665       -.31164E-06** at limit **
  21  Prefactor     .10000E-03    18.694       -.80692E-05** at limit **
  22  Prefactor     10.032        14.572        .57421E-07   -.41244E-04
  23  Prefactor     91.314        61.952       -.48640E-06   -.11747E-06
  24  Normalizat    1.0160        .15495        .91799E-07   -.34570E-03
  25  Prefactor     .82896        .18925       -.77837E-06   -.25018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 4.46408
  Prefactor  = 0.0001
  Prefactor  = 2.32286
  Prefactor  = 1.81018
  Prefactor  = 0.0001
  Prefactor  = 20.2195
  Prefactor  = 8.88519
  Prefactor  = 0.000100001
  Prefactor  = 6.92666
  norm       = 0.0001
  Prefactor  = 42.6762
  Prefactor  = 7.54664
  Prefactor  = 14.2658
  norm       = 0.000100412
  norm       = 0.0001
  norm       = 1.84746
  norm       = 0.000100186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.0316
  Prefactor  = 91.3138
  Normalizat = 1.01602
  Prefactor  = 0.828958
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.849     FROM HESSE     STATUS=OK           435 CALLS     3331 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4641        2.6966        .90884E-04   -1.5285    
   3  Prefactor     .10000E-03    4.7600        .16309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3229        2.1773        .10194E-03   -1.5403    
   5  Prefactor     1.8102        1.6055        .88758E-04   -1.5439    
   6  Prefactor     .10000E-03    27.322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.219        29.627        .89088E-04   -1.4808    
   8  Prefactor     8.8852        11.869        .13447E-03   -1.5112    
   9  Prefactor     .10000E-03    25.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9267        5.4593        .15033E-03   -1.5182    
  11  norm          .10000E-03    1.9799        .10496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.676        35.754        .61371E-04   -1.4400    
  13  Prefactor     7.5466        13.402        .14597E-03   -1.5158    
  14  Prefactor     14.266        14.922        .10590E-03   -1.4952    
  15  norm          .10041E-03    28.996        .25380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.5458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8475        3.3616        .15891E-03   -1.5436    
  18  norm          .10019E-03    4.6404        .49736E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.0242        .75738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.032        14.585        .12653E-03   -1.5074    
  23  Prefactor     91.314        62.116        .42052E-04   -1.3794    
  24  Normalizat    1.0160        .18294        .21287E-03   -.92496    
  25  Prefactor     .82896        .22174        .29187E-03   -.98670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56334e-08
Minuit parameter uncertainties:
  1  0.000371007
  2  2.69668
  3  3.8641e-06
  4  2.17738
  5  1.60555
  6  2.23128e-05
  7  29.6486
  8  11.8716
  9  0.00030076
  10  5.45966
  11  1.28237e-06
  12  35.7717
  13  13.4071
  14  14.9264
  15  0.0069173
  16  5.58956e-05
  17  3.36192
  18  0.00185931
  19  4.43021e-06
  20  2.2986e-05
  21  0.000233476
  22  14.5903
  23  62.1598
  24  0.183048
  25  0.221978
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.927e+00  5.460e+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:  8.290e-01  2.220e-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.016e+00  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.88
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.63e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/34466/likelihoodResults_354412801_354672001_4FGL_J1257.2+3646_daily_bin444.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) = 5939.67950845
delta logL = 0.169417417492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5939.6736598
delta logL = 0.175266067477

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1438       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4607       1.0000          .0000       10.000    
     3 'Normalizat'    .99786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84336       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=   5939.674     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      272 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1447        68.357        .49503E-02    .13308E-03
   2  Index         2.4602        3.3288        .10980        .13396E-03
   3  Normalizat    .99802        .75828E-01    .46140E-01    .78201E-05
   4  Prefactor     .84313        .72596E-01    .65472E-01    .16724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.14473
  Index      = 2.46018
  Normalizat = 0.998019
  Prefactor  = 0.843125
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.674     FROM HESSE     STATUS=OK            33 CALLS      305 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1447        7.1596        .10618E-03   -1.5301    
   2  Index         2.4602        .97410        .56330E-02   -.53282    
   3  Normalizat    .99802        .18199        .21452E-03   -.93097    
   4  Prefactor     .84313        .22412        .28961E-03   -.98158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50104e-08
Minuit parameter uncertainties:
  1  7.16105
  2  0.982607
  3  0.182103
  4  0.224365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34466': 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) = 5939.67365862
delta logL = 0.175267243249

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.145e+00  7.161e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.460e+00  9.826e-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:  8.431e-01  2.244e-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:  9.980e-01  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.46 +/- 0.98
Photon Flux (Free Index): 3.96e-08 +/- 3.76e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.06e-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/34466/cmap_HighResolution_354412801_354672001_4FGL_J1257.2+3646_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', comment='SUCCESS', photon_flux='2.63e-08', energy_flux2='1.20e-05', photon_flux_error='2.07e-08', dlogl='1.75e-01', energy_flux='1.70e-05', photon_flux2='3.96e-08', job_status='DONE', time_completed='2021-09-06 11:49:21.391711', photon_index_error2='0.98', photon_index2='2.46', ts='3.88', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='7.58e-08', energy_flux_error2='1.06e-05', EG='1.02', time_epoch_completed='1630954161.39', return_code='0', job_id='34466', GAL2='0.84', EG2='1.00', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.76e-08', ts2='4.24', photon_index='2.03' WHERE bin_id='444' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 34466: <4FGL_J1257.2+3646_daily_bin444> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin444> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:27 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:28 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:35:28 2021
Terminated at Mon Sep  6 11:49:23 2021
Results reported at Mon Sep  6 11:49:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin444 194.31 36.7706 354412801 354672001 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 :                                   711.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            836 sec.

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

