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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin916
RA = 194.31, Dec = 36.7706
tmin = 476755201, tmax = 477014401
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='36561', job_status='RUN', time_executed='2021-09-06 11:43:27.649820', time_epoch_executed='1630953807.65' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='916'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36561

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36561/ft1_4FGL_J1257.2+3646_daily_bin916.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36561/ft2_4FGL_J1257.2+3646_daily_bin916.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36561/ft1_4FGL_J1257.2+3646_daily_bin916.fits outfile=/scratch/kocevski/36561/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin916.fits ra=194.31 dec=36.7706 rad=12.0 tmin=476755201.0 tmax=477014401.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.66
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36561/ft1_filtered_4FGL_J1257.2+3646_daily_bin916.fits" evtable="EVENTS" scfile=/scratch/kocevski/36561/ft2_4FGL_J1257.2+3646_daily_bin916.fits sctable="SC_DATA" outfile=/scratch/kocevski/36561/ltcube_476755201_477014401_4FGL_J1257.2+3646_daily_bin916.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/36561/ft2_4FGL_J1257.2+3646_daily_bin916.fits
.....................!
real 12.02
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36561/ft1_filtered_4FGL_J1257.2+3646_daily_bin916.fits evtable="EVENTS" scfile=/scratch/kocevski/36561/ft2_4FGL_J1257.2+3646_daily_bin916.fits sctable="SC_DATA" expcube=/scratch/kocevski/36561/ltcube_476755201_477014401_4FGL_J1257.2+3646_daily_bin916.fits outfile=/scratch/kocevski/36561/expmap_476755201_477014401_4FGL_J1257.2+3646_daily_bin916.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/36561/ltcube_476755201_477014401_4FGL_J1257.2+3646_daily_bin916.fits
.....................!
real 190.57
user 185.23
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/36561/ft1_filtered_4FGL_J1257.2+3646_daily_bin916.fits scfile=/scratch/kocevski/36561/ft2_4FGL_J1257.2+3646_daily_bin916.fits outfile=/scratch/kocevski/36561/cmap_476755201_477014401_4FGL_J1257.2+3646_daily_bin916.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.79
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36561/ft1_filtered_4FGL_J1257.2+3646_daily_bin916.fits scfile=/scratch/kocevski/36561/ft2_4FGL_J1257.2+3646_daily_bin916.fits outfile=/scratch/kocevski/36561/cmap_HighResolution_476755201_477014401_4FGL_J1257.2+3646_daily_bin916.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 2.40
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.946       1.0000         .10000E-03   10000.    
     2 'norm      '    9.0072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.100       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4647       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1429       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9390       1.0000         .10000E-03   10000.    
    11 'norm      '    .10717E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    59.162       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.882       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.983       1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4686       1.0000         .10000E-03   10000.    
    18 'norm      '    .10661E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11583E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.935       1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.682       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3246       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .49816       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=   6449.717     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3017 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.948        35.155       -.32722E-07   -.11984E-04
   2  norm          9.0065        4.7941        .20094E-06   -.85828E-04
   3  Prefactor     12.097        8.4465       -.91855E-08    .14142E-04
   4  Prefactor     4.4649        3.6090       -.37361E-06    .61952E-03
   5  Prefactor     3.7082        2.6980        .10659E-07    .89463E-04
   6  Prefactor     6.1422        6.8002        .24435E-07    .18297E-04
   7  Prefactor     .10000E-03    37.564       -.11078E-07** at limit **
   8  Prefactor     .10000E-03    6.2347        .36699E-07** at limit **
   9  Prefactor     .10000E-03    19.785        .13751E-07** at limit **
  10  Prefactor     3.9385        3.7542        .23870E-06   -.30624E-03
  11  norm          .10001E-03    18.854        .57177E-05** at limit **
  12  Prefactor     59.167        47.651       -.12280E-06   -.33361E-04
  13  Prefactor     10.932        25.684        .18811E-05   -.63584E-04
  14  Prefactor     13.979        10.874       -.11951E-06   -.45111E-05
  15  norm          .10000E-03    1.4910        .49815E-07** at limit **
  16  norm          .10000E-03    6.8769       -.21897E-07** at limit **
  17  norm          1.4685        3.3544        .12947E-05    .71345E-03
  18  norm          .10001E-03    3.8178       -.17094E-05** at limit **
  19  Prefactor     .10000E-03    3.6903        .86598E-06** at limit **
  20  Prefactor     18.919        17.766       -.52897E-06   -.14007E-03
  21  Prefactor     72.634        73.157       -.50380E-06    .17683E-03
  22  Prefactor     .10000E-03    32.222        .41327E-06** at limit **
  23  Prefactor     .10000E-03    60.433        .37179E-06** at limit **
  24  Normalizat    1.3249        .17212        .53326E-07    .47155E-04
  25  Prefactor     .49782        .19647       -.95034E-07    .87849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.9483
  norm       = 9.00654
  Prefactor  = 12.0974
  Prefactor  = 4.46491
  Prefactor  = 3.70823
  Prefactor  = 6.14221
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.9385
  norm       = 0.000100006
  Prefactor  = 59.1671
  Prefactor  = 10.9317
  Prefactor  = 13.9794
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.46853
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 18.9191
  Prefactor  = 72.6339
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.32492
  Prefactor  = 0.497822
 **********
 **   18 **HESSE 
 **********

 FCN=   6449.717     FROM HESSE     STATUS=OK           431 CALLS     3448 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.948        35.147        .67790E-04   -1.4525    
   2  norm          9.0065        4.7972        .10311E-03   -1.5108    
   3  Prefactor     12.097        8.4562        .11516E-03   -1.5012    
   4  Prefactor     4.4649        3.5767        .55038E-03   -1.5285    
   5  Prefactor     3.7082        2.6887        .10567E-03   -1.5323    
   6  Prefactor     6.1422        6.7952        .16198E-03   -1.5212    
   7  Prefactor     .10000E-03    37.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9385        3.7386        .73200E-03   -1.5311    
  11  norm          .10001E-03    18.541        .22780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     59.167        47.697        .52161E-04   -1.4168    
  13  Prefactor     10.932        24.466        .12145E-03   -1.5047    
  14  Prefactor     13.979        10.876        .10711E-03   -1.4960    
  15  norm          .10000E-03    1.4947        .95729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.9079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4685        3.3665        .20304E-03   -1.5466    
  18  norm          .10001E-03    7.6885        .28793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6167        .29270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.919        17.739        .92042E-04   -1.4838    
  21  Prefactor     72.634        73.207        .23546E-03   -1.4001    
  22  Prefactor     .10000E-03    32.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    60.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3249        .19741        .20888E-03   -.82825    
  25  Prefactor     .49782        .22100        .38064E-03   -1.1208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53216e-09
Minuit parameter uncertainties:
  1  35.1674
  2  4.79737
  3  8.45701
  4  3.57684
  5  2.68875
  6  6.79604
  7  0.000376106
  8  2.28104e-06
  9  0.000156732
  10  3.73882
  11  0.000693824
  12  47.7276
  13  24.4886
  14  10.8775
  15  6.07938e-06
  16  9.93741e-06
  17  3.36697
  18  0.000472763
  19  5.81902e-05
  20  17.7444
  21  73.2976
  22  0.000247774
  23  0.000442827
  24  0.197523
  25  0.221381
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  3.939e+00  3.739e+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:  4.978e-01  2.214e-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.325e+00  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.76
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.49e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 9.67e-06 +/- 9.18e-06

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) = 6448.34355756
delta logL = 1.37375479403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6448.3136544
delta logL = 1.40365794929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7938       1.0000         .10000E-03   10000.    
     2 'Index     '    .96426       1.0000          .0000       10.000    
     3 'Normalizat'    1.3316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49828       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=   6448.314     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      221 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7930        2.8442        .60853E-02   -.24545E-03
   2  Index         .96417        .44178        .26658       -.43191E-04
   3  Normalizat    1.3316        .16612        .47151E-01    .35301E-05
   4  Prefactor     .49829        .19477        .85863E-01    .41307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.79303
  Index      = 0.964167
  Normalizat = 1.33161
  Prefactor  = 0.498295
 **********
 **   18 **HESSE 
 **********

 FCN=   6448.314     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7930        4.0150        .13002E-03   -1.5374    
   2  Index         .96417        .63564        .11476E-01   -.93934    
   3  Normalizat    1.3316        .18781        .20843E-03   -.82628    
   4  Prefactor     .49829        .21956        .38045E-03   -1.1206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7067e-12
Minuit parameter uncertainties:
  1  4.01536
  2  0.640655
  3  0.187904
  4  0.219936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36561': 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) = 6448.31365438
delta logL = 1.40365796863

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  2.793e+00  4.015e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  9.642e-01  6.407e-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:  4.983e-01  2.199e-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.332e+00  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.55
Ra Dec: 194.310 36.771
Photon Index (Free Index): 0.96 +/- 0.64
Photon Flux (Free Index): 3.74e-09 +/- 4.38e-09
Energy Flux (Free Index): 5.89e-05 +/- 7.86e-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/36561/cmap_HighResolution_476755201_477014401_4FGL_J1257.2+3646_daily_bin916.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-08', energy_flux2='5.89e-05', photon_flux_error='1.42e-08', dlogl='1.40e+00', energy_flux='9.67e-06', photon_flux2='3.74e-09', job_status='DONE', time_completed='2021-09-06 11:55:02.077136', photon_index_error2='0.64', photon_index2='0.96', ts='9.76', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', energy_flux_error2='7.86e-05', EG='1.32', time_epoch_completed='1630954502.08', return_code='0', job_id='36561', GAL2='0.50', EG2='1.33', return_code2='0', energy_flux_error='9.18e-06', photon_flux_error2='4.38e-09', ts2='12.55', photon_index='2.03' WHERE bin_id='916' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:55:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 36561: <4FGL_J1257.2+3646_daily_bin916> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin916> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 11:41:13 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:41:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:41:15 2021
Terminated at Mon Sep  6 11:55:02 2021
Results reported at Mon Sep  6 11:55:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin916 194.31 36.7706 476755201 477014401 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 :                                   668.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

