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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin653
RA = 194.31, Dec = 36.7706
tmin = 408585601, tmax = 408844801
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='36147', job_status='RUN', time_executed='2021-09-06 11:40:49.862354', time_epoch_executed='1630953649.86' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36147/ft1_4FGL_J1257.2+3646_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36147/ft2_4FGL_J1257.2+3646_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36147/ft1_4FGL_J1257.2+3646_daily_bin653.fits outfile=/scratch/kocevski/36147/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin653.fits ra=194.31 dec=36.7706 rad=12.0 tmin=408585601.0 tmax=408844801.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 4.30
user 4.04
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36147/ft1_filtered_4FGL_J1257.2+3646_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/36147/ft2_4FGL_J1257.2+3646_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/36147/ltcube_408585601_408844801_4FGL_J1257.2+3646_daily_bin653.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/36147/ft2_4FGL_J1257.2+3646_daily_bin653.fits
.....................!
real 12.13
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36147/ft1_filtered_4FGL_J1257.2+3646_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/36147/ft2_4FGL_J1257.2+3646_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/36147/ltcube_408585601_408844801_4FGL_J1257.2+3646_daily_bin653.fits outfile=/scratch/kocevski/36147/expmap_408585601_408844801_4FGL_J1257.2+3646_daily_bin653.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/36147/ltcube_408585601_408844801_4FGL_J1257.2+3646_daily_bin653.fits
.....................!
real 191.47
user 185.83
sys 4.29

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/36147/ft1_filtered_4FGL_J1257.2+3646_daily_bin653.fits scfile=/scratch/kocevski/36147/ft2_4FGL_J1257.2+3646_daily_bin653.fits outfile=/scratch/kocevski/36147/cmap_408585601_408844801_4FGL_J1257.2+3646_daily_bin653.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.80
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36147/ft1_filtered_4FGL_J1257.2+3646_daily_bin653.fits scfile=/scratch/kocevski/36147/ft2_4FGL_J1257.2+3646_daily_bin653.fits outfile=/scratch/kocevski/36147/cmap_HighResolution_408585601_408844801_4FGL_J1257.2+3646_daily_bin653.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.81
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.893       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8886       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5462       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.561       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6718       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    260.27       1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.771       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7773       1.0000         .10000E-03   10000.    
    16 'norm      '    26.154       1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .42113       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.290       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9329       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.489       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1129       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97778       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=   2658.193     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     3273 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.898        80.864        .55469E-05   -.11898E-04
   2  norm          5.8888        4.0414        .97613E-07    .52692E-04
   3  Prefactor     8.5457        9.9469        .10520E-06    .60475E-05
   4  Prefactor     .10000E-03    1.8852       -.91100E-07** at limit **
   5  Prefactor     .10000E-03    1.2690       -.13071E-06** at limit **
   6  Prefactor     10.560        13.818        .45166E-06    .32841E-04
   7  Prefactor     .10000E-03    54.905       -.79561E-06** at limit **
   8  Prefactor     .10000E-03    45.210        .53062E-06** at limit **
   9  Prefactor     .10000E-03    47.517        .54508E-06** at limit **
  10  Prefactor     6.6695        9.5148        .28510E-06    .61251E-04
  11  norm          .10000E-03    3.1594        .83535E-06** at limit **
  12  Prefactor     260.29        168.77        .17390E-05   -.13349E-04
  13  Prefactor     63.811        51.605        .12236E-05   -.37513E-04
  14  Prefactor     .10000E-03    10.691        .21409E-06** at limit **
  15  norm          3.7811        9.5731       -.10510E-05   -.10194E-03
  16  norm          26.131        48.886       -.16844E-05   -.46021E-04
  17  norm          .10000E-03    7.7556        .19585E-05** at limit **
  18  norm          .10000E-03    8.3790        .54477E-06** at limit **
  19  Prefactor     .38094        7.3514       -.16049E-05    .56586E-03
  20  Prefactor     .10000E-03    29.249       -.23768E-06** at limit **
  21  Prefactor     40.280        87.251       -.27503E-05   -.64851E-04
  22  Prefactor     1.9141        60.017        .11619E-05   -.70616E-05
  23  Prefactor     29.731        267.34        .16446E-04    .36813E-04
  24  Normalizat    1.1118        .37499       -.20043E-04   -.17303E-03
  25  Prefactor     .97906        .42681        .20777E-04   -.20374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.8978
  norm       = 5.88876
  Prefactor  = 8.54573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5601
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.6695
  norm       = 0.0001
  Prefactor  = 260.286
  Prefactor  = 63.8107
  Prefactor  = 0.0001
  norm       = 3.78112
  norm       = 26.1308
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.380942
  Prefactor  = 0.0001
  Prefactor  = 40.2799
  Prefactor  = 1.91412
  Prefactor  = 29.7308
  Normalizat = 1.11184
  Prefactor  = 0.979064
 **********
 **   18 **HESSE 
 **********

 FCN=   2658.193     FROM HESSE     STATUS=OK           423 CALLS     3696 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.898        81.098        .60513E-04   -1.4382    
   2  norm          5.8888        4.0260        .82180E-04   -1.5223    
   3  Prefactor     8.5457        9.9461        .13712E-03   -1.5123    
   4  Prefactor     .10000E-03    1.9182        .13773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2734        .56673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.560        13.829        .12329E-03   -1.5058    
   7  Prefactor     .10000E-03    54.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    45.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    47.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.6695        9.5134        .15535E-03   -1.5191    
  11  norm          .10000E-03    3.1839        .89764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     260.29        168.79        .12562E-03   -1.2467    
  13  Prefactor     63.811        51.276        .25126E-03   -1.4109    
  14  Prefactor     .10000E-03    10.695        .16468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7811        9.5893        .20771E-03   -1.5319    
  16  norm          26.131        48.908        .78332E-04   -1.4685    
  17  norm          .10000E-03    7.9690        .14084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.4085        .14574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38094        37.947        .22171E-02   -1.5585    
  20  Prefactor     .10000E-03    29.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.280        87.441        .63150E-04   -1.4438    
  22  Prefactor     1.9141        60.081        .29872E-03   -1.5431    
  23  Prefactor     29.731        269.24        .36890E-03   -1.4617    
  24  Normalizat    1.1118        .38029        .25884E-03   -.89373    
  25  Prefactor     .97906        .42551        .32361E-03   -.93431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19452e-09
Minuit parameter uncertainties:
  1  81.303
  2  4.02619
  3  9.94802
  4  5.10087e-06
  5  1.55057e-06
  6  13.8328
  7  0.000406125
  8  0.000276964
  9  0.000265129
  10  9.51553
  11  5.6933e-05
  12  169.111
  13  51.3117
  14  3.96262e-05
  15  9.59321
  16  48.9834
  17  0.000235809
  18  5.70615e-05
  19  7.60806
  20  5.10036e-05
  21  87.7215
  22  21.4709
  23  180.023
  24  0.381231
  25  0.426979
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.669e+00  9.516e+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.791e-01  4.270e-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.112e+00  3.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36147/likelihoodResults_408585601_408844801_4FGL_J1257.2+3646_daily_bin653.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) = 2658.19336301
delta logL = 5.34073274139e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2658.19334961
delta logL = 6.6814361162e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7200       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0159       1.0000          .0000       10.000    
     3 'Normalizat'    1.1120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97918       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=   2658.193     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      233 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7296        546.37        .38697E-02    .23591E-03
   2  Index         2.0170        5.4983        .15384        .10433E-03
   3  Normalizat    1.1121        .15248        .58528E-01    .17905E-03
   4  Prefactor     .97896        .15303        .73140E-01    .22736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.72962
  Index      = 2.01704
  Normalizat = 1.11205
  Prefactor  = 0.978957
 **********
 **   18 **HESSE 
 **********

 FCN=   2658.193     FROM HESSE     STATUS=OK            29 CALLS      262 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7296        11.107        .15479E-03   -1.5189    
   2  Index         2.0170        .89972        .81325E-02   -.63925    
   3  Normalizat    1.1121        .34664        .25884E-03   -.89366    
   4  Prefactor     .97896        .41082        .32361E-03   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48749e-10
Minuit parameter uncertainties:
  1  11.1102
  2  0.907431
  3  0.347352
  4  0.412143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36147': 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) = 2658.19334727
delta logL = 6.91524478498e-05

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  6.730e+00  1.111e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.017e+00  9.074e-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.790e-01  4.121e-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.112e+00  3.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.91
Ra Dec: 194.310 36.771

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/36147/cmap_HighResolution_408585601_408844801_4FGL_J1257.2+3646_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-06 11:49:14.859976', job_id='36147', GAL2='0.98', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630954154.86', return_code2='0', ts='0.91', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.92e-05', ts2='0.91', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='653' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:49:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 36147: <4FGL_J1257.2+3646_daily_bin653> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin653 194.31 36.7706 408585601 408844801 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 :                                   499.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   516 sec.
    Turnaround time :                            518 sec.

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

