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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin767
RA = 194.31, Dec = 36.7706
tmin = 438134401, tmax = 438393601
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='36324', job_status='RUN', time_executed='2021-09-06 11:45:09.197928', time_epoch_executed='1630953909.2' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36324

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36324/ft1_4FGL_J1257.2+3646_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36324/ft2_4FGL_J1257.2+3646_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36324/ft1_4FGL_J1257.2+3646_daily_bin767.fits outfile=/scratch/kocevski/36324/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin767.fits ra=194.31 dec=36.7706 rad=12.0 tmin=438134401.0 tmax=438393601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.36
user 5.97
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36324/ft1_filtered_4FGL_J1257.2+3646_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/36324/ft2_4FGL_J1257.2+3646_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/36324/ltcube_438134401_438393601_4FGL_J1257.2+3646_daily_bin767.fits outfile=/scratch/kocevski/36324/expmap_438134401_438393601_4FGL_J1257.2+3646_daily_bin767.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/36324/ltcube_438134401_438393601_4FGL_J1257.2+3646_daily_bin767.fits
.....................!
real 191.34
user 185.90
sys 5.06

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/36324/ft1_filtered_4FGL_J1257.2+3646_daily_bin767.fits scfile=/scratch/kocevski/36324/ft2_4FGL_J1257.2+3646_daily_bin767.fits outfile=/scratch/kocevski/36324/cmap_438134401_438393601_4FGL_J1257.2+3646_daily_bin767.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 1.15
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36324/ft1_filtered_4FGL_J1257.2+3646_daily_bin767.fits scfile=/scratch/kocevski/36324/ft2_4FGL_J1257.2+3646_daily_bin767.fits outfile=/scratch/kocevski/36324/cmap_HighResolution_438134401_438393601_4FGL_J1257.2+3646_daily_bin767.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 1.21
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10109E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    8.4221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19529E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.506       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7984       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9870       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6493       1.0000         .10000E-03   10000.    
    16 'norm      '    6.4913       1.0000         .10000E-03   10000.    
    17 'norm      '    7.0796       1.0000         .10000E-03   10000.    
    18 'norm      '    .25614E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.311       1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.343       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6953       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .21831       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3888.317     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     2632 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6618        240.16       -.38461E-04    .29761E-04
   2  norm          8.4168        4.1046        .18077E-06    .24655E-03
   3  Prefactor     .10001E-03    25.696       -.67037E-05** at limit **
   4  Prefactor     1.5439        1.6563        .13059E-06    .50385E-04
   5  Prefactor     14.504        4.9017        .76156E-06    .27472E-03
   6  Prefactor     .10000E-03    4.8716        .13060E-05** at limit **
   7  Prefactor     .10002E-03    29.945        .12585E-04** at limit **
   8  Prefactor     .10000E-03    13.624       -.82602E-06** at limit **
   9  Prefactor     .10001E-03    31.339        .63667E-06** at limit **
  10  Prefactor     6.8041        7.5668        .23548E-06   -.65745E-04
  11  norm          2.9888        3.4469        .25231E-06    .30225E-04
  12  Prefactor     .10000E-03    10.240       -.36987E-06** at limit **
  13  Prefactor     .10000E-03    11.007        .29926E-05** at limit **
  14  Prefactor     .10000E-03    9.6188        .11811E-05** at limit **
  15  norm          1.6567        7.0932       -.47861E-05   -.27105E-04
  16  norm          6.5063        15.723        .17615E-05    .33923E-03
  17  norm          7.0876        4.6149       -.28534E-05    .12676E-03
  18  norm          .10001E-03    94.786       -.46283E-05** at limit **
  19  Prefactor     .10000E-03    2.6026       -.35564E-07** at limit **
  20  Prefactor     .10000E-03    4.7144       -.48462E-06** at limit **
  21  Prefactor     .10000E-03    23.566       -.18231E-05** at limit **
  22  Prefactor     15.351        21.708       -.25359E-05   -.33328E-03
  23  Prefactor     35.412        4.4983        .76725E-06   -.64976E-02
  24  Normalizat    1.6950        .26632        .45431E-06    .13465E-03
  25  Prefactor     .21752        .29652        .53445E-05    .38745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6618
  norm       = 8.41684
  Prefactor  = 0.000100008
  Prefactor  = 1.54389
  Prefactor  = 14.5044
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 6.80409
  norm       = 2.9888
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.65673
  norm       = 6.5063
  norm       = 7.08763
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3506
  Prefactor  = 35.4122
  Normalizat = 1.69498
  Prefactor  = 0.217518
 **********
 **   18 **HESSE 
 **********

 FCN=   3888.317     FROM HESSE     STATUS=OK           487 CALLS     3119 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6618        239.80        .90735E-02   -1.5450    
   2  norm          8.4168        4.1055        .34534E-02   -1.5128    
   3  Prefactor     .10001E-03    6.6918        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5439        1.6450        .85744E-02   -1.5459    
   5  Prefactor     14.504        4.8902        .26291E-02   -1.4946    
   6  Prefactor     .10000E-03    4.8687        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    30.067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.607        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    37.074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8041        7.5962        .38471E-02   -1.5186    
  11  norm          2.9888        3.4513        .58724E-02   -1.5362    
  12  Prefactor     .10000E-03    32.779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.013        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6567        7.2233        .82199E-02   -1.5451    
  16  norm          6.5063        15.902        .39380E-02   -1.5198    
  17  norm          7.0876        6.0924        .37692E-02   -1.5175    
  18  norm          .10001E-03    14.583        .58983E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5787        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7156        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.522        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.351        21.826        .25590E-02   -1.4924    
  23  Prefactor     35.412        84.019        .16852E-02   -1.4517    
  24  Normalizat    1.6950        .31789        .44987E-01   -.72437    
  25  Prefactor     .21752        .36293        .13070       -1.2747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54773e-07
Minuit parameter uncertainties:
  1  40.0886
  2  4.10567
  3  0.000467758
  4  1.64505
  5  4.89033
  6  1.90834e-05
  7  0.00153058
  8  0.000103264
  9  0.00143633
  10  7.59725
  11  3.45156
  12  0.000429511
  13  0.000158397
  14  7.06541e-06
  15  6.91989
  16  15.9126
  17  6.0929
  18  0.000577832
  19  1.82922e-06
  20  3.47897e-06
  21  0.000119149
  22  21.8377
  23  84.3013
  24  0.318279
  25  0.36678
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.804e+00  7.597e+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:  2.175e-01  3.668e-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.695e+00  3.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.86e-05

TS (Fixed Index): 1.47
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36324/likelihoodResults_438134401_438393601_4FGL_J1257.2+3646_daily_bin767.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) = 3888.21306928
delta logL = 0.103826146737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3888.21179871
delta logL = 0.105096722136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5435       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3818       1.0000          .0000       10.000    
     3 'Normalizat'    1.6852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22365       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=   3888.212     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      266 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5395        175.98        .47216E-02    .10181E-03
   2  Index         2.3808        6.1320        .12611        .74012E-04
   3  Normalizat    1.6853        .96187E-01    .45087E-01   -.59332E-06
   4  Prefactor     .22398        .97017E-01    .12885        .50872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.53952
  Index      = 2.38083
  Normalizat = 1.68531
  Prefactor  = 0.22398
 **********
 **   18 **HESSE 
 **********

 FCN=   3888.212     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5395        8.1308        .13510E-03   -1.5282    
   2  Index         2.3808        .88381        .62576E-02   -.55134    
   3  Normalizat    1.6853        .26203        .19928E-03   -.72696    
   4  Prefactor     .22398        .29403        .56934E-03   -1.2703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83109e-12
Minuit parameter uncertainties:
  1  8.13274
  2  0.890277
  3  0.262247
  4  0.295996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36324': 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) = 3888.21179242
delta logL = 0.105103008728

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  4.540e+00  8.133e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.381e+00  8.903e-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:  2.240e-01  2.960e-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.685e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.38 +/- 0.89
Photon Flux (Free Index): 3.63e-08 +/- 4.27e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.54e-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/36324/cmap_HighResolution_438134401_438393601_4FGL_J1257.2+3646_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='1.22e-05', photon_flux_error='2.88e-08', dlogl='1.05e-01', energy_flux='1.67e-05', photon_flux2='3.63e-08', job_status='DONE', time_completed='2021-09-06 11:55:12.302255', photon_index_error2='0.89', photon_index2='2.38', ts='1.47', fit_tolerance='1e-08', GAL='0.22', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.54e-05', EG='1.69', time_epoch_completed='1630954512.3', return_code='0', job_id='36324', GAL2='0.22', EG2='1.69', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='4.27e-08', ts2='1.69', photon_index='2.03' WHERE bin_id='767' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 36324: <4FGL_J1257.2+3646_daily_bin767> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin767 194.31 36.7706 438134401 438393601 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 :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

