/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 20 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.2+3646_daily_bin77
RA = 194.31, Dec = 36.7706
tmin = 259286401, tmax = 259545601
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='31768', job_status='RUN', time_executed='2021-09-06 11:26:08.439745', time_epoch_executed='1630952768.44' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31768/ft1_4FGL_J1257.2+3646_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31768/ft2_4FGL_J1257.2+3646_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31768/ft1_4FGL_J1257.2+3646_daily_bin77.fits outfile=/scratch/kocevski/31768/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin77.fits ra=194.31 dec=36.7706 rad=12.0 tmin=259286401.0 tmax=259545601.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 2.29
user 2.08
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31768/ft1_filtered_4FGL_J1257.2+3646_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/31768/ft2_4FGL_J1257.2+3646_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/31768/ltcube_259286401_259545601_4FGL_J1257.2+3646_daily_bin77.fits outfile=/scratch/kocevski/31768/expmap_259286401_259545601_4FGL_J1257.2+3646_daily_bin77.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/31768/ltcube_259286401_259545601_4FGL_J1257.2+3646_daily_bin77.fits
.....................!
real 193.71
user 186.59
sys 6.50

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/31768/ft1_filtered_4FGL_J1257.2+3646_daily_bin77.fits scfile=/scratch/kocevski/31768/ft2_4FGL_J1257.2+3646_daily_bin77.fits outfile=/scratch/kocevski/31768/cmap_259286401_259545601_4FGL_J1257.2+3646_daily_bin77.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31768/ft1_filtered_4FGL_J1257.2+3646_daily_bin77.fits scfile=/scratch/kocevski/31768/ft2_4FGL_J1257.2+3646_daily_bin77.fits outfile=/scratch/kocevski/31768/cmap_HighResolution_259286401_259545601_4FGL_J1257.2+3646_daily_bin77.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=194.31 yref=36.7706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2198       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10980E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8096       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .53257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9072       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0852       1.0000         .10000E-03   10000.    
    11 'norm      '    8.3221       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.184       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4011       1.0000         .10000E-03   10000.    
    16 'norm      '    26.922       1.0000         .10000E-03   10000.    
    17 'norm      '    5.6624       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0672       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4278       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 '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66043       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2564       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=   6454.304     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2923 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.330        .58551E-06** at limit **
   2  norm          2.2187        2.2994        .30087E-07   -.48412E-04
   3  Prefactor     .10000E-03    1.6755        .34622E-08** at limit **
   4  Prefactor     .10000E-03    1.1716       -.98435E-08** at limit **
   5  Prefactor     3.8094        2.3588       -.10962E-07   -.93836E-05
   6  Prefactor     .52863        6.5146        .50124E-07   -.11660E-03
   7  Prefactor     .10000E-03    20.127       -.19750E-05** at limit **
   8  Prefactor     5.9069        10.370        .10706E-05   -.31979E-03
   9  Prefactor     .10001E-03    40.246        .65688E-05** at limit **
  10  Prefactor     5.0850        4.3337        .30389E-07   -.28808E-04
  11  norm          8.3227        5.2703        .11121E-05   -.14994E-02
  12  Prefactor     .10001E-03    54.719       -.52741E-05** at limit **
  13  Prefactor     38.185        29.104       -.84328E-06   -.76709E-06
  14  Prefactor     .10000E-03    16.312        .26093E-05** at limit **
  15  norm          3.4012        3.4396        .15689E-06    .12696E-04
  16  norm          26.921        14.791        .16630E-07    .19926E-04
  17  norm          5.6582        7.7245       -.27501E-06   -.25273E-03
  18  norm          5.0748        13.412        .27478E-06   -.16565E-03
  19  Prefactor     4.4280        2.7302        .35329E-07   -.77400E-04
  20  Prefactor     .10000E-03    5.9410       -.26829E-08** at limit **
  21  Prefactor     .10000E-03    13.590       -.14401E-05** at limit **
  22  Prefactor     .10000E-03    9.2771        .95988E-07** at limit **
  23  Prefactor     .10000E-03    29.969       -.19254E-05** at limit **
  24  Normalizat    .66028        .15345       -.19570E-06   -.21131E-04
  25  Prefactor     1.2566        .19688       -.14402E-06   -.13146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.21871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.80942
  Prefactor  = 0.52863
  Prefactor  = 0.000100001
  Prefactor  = 5.90689
  Prefactor  = 0.000100011
  Prefactor  = 5.08499
  norm       = 8.32265
  Prefactor  = 0.000100007
  Prefactor  = 38.1845
  Prefactor  = 0.000100001
  norm       = 3.40117
  norm       = 26.9214
  norm       = 5.6582
  norm       = 5.07484
  Prefactor  = 4.42801
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.660282
  Prefactor  = 1.25661
 **********
 **   18 **HESSE 
 **********

 FCN=   6454.304     FROM HESSE     STATUS=OK           433 CALLS     3356 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2187        2.2367        .11522E-03   -1.5410    
   3  Prefactor     .10000E-03    1.6856        .10156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7356        .16349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8094        2.3336        .90152E-04   -1.5318    
   6  Prefactor     .52863        22.680        .38722E-02   -1.5563    
   7  Prefactor     .10000E-03    20.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.9069        10.615        .82612E-03   -1.5222    
   9  Prefactor     .10001E-03    43.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0850        4.3295        .14866E-03   -1.5257    
  11  norm          8.3227        5.9539        .69484E-03   -1.5131    
  12  Prefactor     .10001E-03    56.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.185        29.995        .64861E-04   -1.4471    
  14  Prefactor     .10000E-03    16.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4012        3.4303        .14416E-03   -1.5339    
  16  norm          26.921        14.793        .77210E-04   -1.4670    
  17  norm          5.6582        8.4004        .12146E-03   -1.5232    
  18  norm          5.0748        14.630        .17862E-03   -1.5257    
  19  Prefactor     4.4280        2.7260        .98658E-04   -1.5287    
  20  Prefactor     .10000E-03    5.9718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.3206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .66028        .18211        .26001E-03   -1.0548    
  25  Prefactor     1.2566        .23442        .25273E-03   -.84607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18518e-08
Minuit parameter uncertainties:
  1  7.02167e-05
  2  2.23675
  3  1.54762e-07
  4  3.19939e-06
  5  2.33367
  6  6.92721
  7  0.000278648
  8  10.6185
  9  0.00136358
  10  4.32979
  11  5.95432
  12  0.00123782
  13  30.0071
  14  0.000296511
  15  3.43046
  16  14.7948
  17  8.40217
  18  14.6405
  19  2.72605
  20  8.01327e-07
  21  0.000170302
  22  1.06411e-05
  23  0.000335741
  24  0.182272
  25  0.234614
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.085e+00  4.330e+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:  1.257e+00  2.346e-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:  6.603e-01  1.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.21
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.93e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.06e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6453.61137225
delta logL = 0.693092355099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6453.60185023
delta logL = 0.702614371345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7886       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3548       1.0000          .0000       10.000    
     3 'Normalizat'    .66995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2525       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=   6453.602     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7844        6.8931        .41733E-02    .38204E-03
   2  Index         1.3538        .58034        .26290       -.17387E-03
   3  Normalizat    .66961        .14993        .41888E-01   -.34321E-03
   4  Prefactor     1.2529        .19526        .57240E-01   -.14142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.78442
  Index      = 1.35378
  Normalizat = 0.669606
  Prefactor  = 1.25288
 **********
 **   18 **HESSE 
 **********

 FCN=   6453.602     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7844        5.6833        .16693E-03   -1.5227    
   2  Index         1.3538        .55209        .10029E-01   -.81722    
   3  Normalizat    .66961        .17660        .25837E-03   -1.0511    
   4  Prefactor     1.2529        .23097        .25311E-03   -.84719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16832e-10
Minuit parameter uncertainties:
  1  5.6838
  2  0.554511
  3  0.176749
  4  0.231157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31768': 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) = 6453.60184663
delta logL = 0.702617969677

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.784e+00  5.684e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.354e+00  5.545e-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:  1.253e+00  2.312e-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:  6.696e-01  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.62
Ra Dec: 194.310 36.771
Photon Index (Free Index): 1.35 +/- 0.55
Photon Flux (Free Index): 8.02e-09 +/- 9.78e-09
Energy Flux (Free Index): 4.13e-05 +/- 5.53e-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/31768/cmap_HighResolution_259286401_259545601_4FGL_J1257.2+3646_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.93e-08', energy_flux2='4.13e-05', photon_flux_error='1.64e-08', dlogl='7.03e-01', energy_flux='1.25e-05', photon_flux2='8.02e-09', job_status='DONE', time_completed='2021-09-06 11:37:19.174660', photon_index_error2='0.55', photon_index2='1.35', ts='5.21', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='5.53e-05', EG='0.66', time_epoch_completed='1630953439.17', return_code='0', job_id='31768', GAL2='1.25', EG2='0.67', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='9.78e-09', ts2='6.62', photon_index='2.03' WHERE bin_id='77' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:37:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 31768: <4FGL_J1257.2+3646_daily_bin77> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin77> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:36 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:37 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:25:37 2021
Terminated at Mon Sep  6 11:37:19 2021
Results reported at Mon Sep  6 11:37:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin77 194.31 36.7706 259286401 259545601 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 :                                   663.50 sec.
    Max Memory :                                 1240 MB
    Average Memory :                             327.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            703 sec.

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

