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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin758
RA = 194.31, Dec = 36.7706
tmin = 435801601, tmax = 436060801
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='36308', job_status='RUN', time_executed='2021-09-06 11:44:17.512269', time_epoch_executed='1630953857.51' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36308/ft1_4FGL_J1257.2+3646_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36308/ft2_4FGL_J1257.2+3646_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36308/ft1_4FGL_J1257.2+3646_daily_bin758.fits outfile=/scratch/kocevski/36308/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin758.fits ra=194.31 dec=36.7706 rad=12.0 tmin=435801601.0 tmax=436060801.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.05
user 5.46
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36308/ft2_4FGL_J1257.2+3646_daily_bin758.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/36308/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/36308/ft1_filtered_4FGL_J1257.2+3646_daily_bin758.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.68
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36308/ft1_filtered_4FGL_J1257.2+3646_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/36308/ft2_4FGL_J1257.2+3646_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/36308/ltcube_435801601_436060801_4FGL_J1257.2+3646_daily_bin758.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/36308/ft2_4FGL_J1257.2+3646_daily_bin758.fits
.....................!
real 12.79
user 12.19
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36308/ft1_filtered_4FGL_J1257.2+3646_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/36308/ft2_4FGL_J1257.2+3646_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/36308/ltcube_435801601_436060801_4FGL_J1257.2+3646_daily_bin758.fits outfile=/scratch/kocevski/36308/expmap_435801601_436060801_4FGL_J1257.2+3646_daily_bin758.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/36308/ltcube_435801601_436060801_4FGL_J1257.2+3646_daily_bin758.fits
.....................!
real 190.87
user 185.20
sys 4.98

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/36308/ft1_filtered_4FGL_J1257.2+3646_daily_bin758.fits scfile=/scratch/kocevski/36308/ft2_4FGL_J1257.2+3646_daily_bin758.fits outfile=/scratch/kocevski/36308/cmap_435801601_436060801_4FGL_J1257.2+3646_daily_bin758.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.90
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36308/ft1_filtered_4FGL_J1257.2+3646_daily_bin758.fits scfile=/scratch/kocevski/36308/ft2_4FGL_J1257.2+3646_daily_bin758.fits outfile=/scratch/kocevski/36308/cmap_HighResolution_435801601_436060801_4FGL_J1257.2+3646_daily_bin758.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.99
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.1268       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8064       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9977       1.0000         .10000E-03   10000.    
     9 'Prefactor '    208.34       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.542       1.0000         .10000E-03   10000.    
    11 'norm      '    5.3145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21240E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8421       1.0000         .10000E-03   10000.    
    15 'norm      '    .10601E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.2191       1.0000         .10000E-03   10000.    
    17 'norm      '    .30515E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.6456       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1924       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.521       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8235       1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.437       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90120       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94467       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=   4010.511     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2907 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.869        .49733E-06** at limit **
   2  norm          3.1270        2.8474       -.30282E-08    .22090E-05
   3  Prefactor     4.2667        5.9369        .73759E-07    .59791E-05
   4  Prefactor     4.8063        3.0135       -.32151E-07    .17911E-05
   5  Prefactor     1.9195        2.4504        .24583E-07    .12485E-04
   6  Prefactor     .10000E-03    5.5687        .25333E-06** at limit **
   7  Prefactor     .10000E-03    45.778        .93711E-06** at limit **
   8  Prefactor     9.9795        22.275       -.11388E-06    .18916E-05
   9  Prefactor     208.31        115.36       -.41465E-06    .31888E-04
  10  Prefactor     10.539        9.5263       -.18401E-06    .31882E-04
  11  norm          5.3113        6.2637        .75680E-06    .25297E-03
  12  Prefactor     .10000E-03    29.798        .22285E-06** at limit **
  13  Prefactor     .10000E-03    111.05        .79761E-06** at limit **
  14  Prefactor     3.8279        55.656        .18179E-05    .28069E-04
  15  norm          .10000E-03    5.5357        .11688E-06** at limit **
  16  norm          6.2191        18.449        .13771E-06   -.42532E-05
  17  norm          .10000E-03    3.4858       -.74000E-06** at limit **
  18  norm          5.6472        5.6152        .71464E-06    .48450E-03
  19  Prefactor     2.1939        5.8989       -.93685E-06    .61916E-04
  20  Prefactor     .10000E-03    7.7698       -.17019E-06** at limit **
  21  Prefactor     54.454        94.200        .20786E-05    .24634E-04
  22  Prefactor     8.8127        25.839       -.12401E-06    .32226E-04
  23  Prefactor     40.223        76.815       -.12790E-05   -.14315E-04
  24  Normalizat    .90147        .24041        .41889E-05    .24905E-04
  25  Prefactor     .94445        .27750       -.43151E-05    .17494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.12701
  Prefactor  = 4.26669
  Prefactor  = 4.80627
  Prefactor  = 1.9195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.9795
  Prefactor  = 208.311
  Prefactor  = 10.539
  norm       = 5.31126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.82785
  norm       = 0.0001
  norm       = 6.21912
  norm       = 0.000100001
  norm       = 5.64717
  Prefactor  = 2.1939
  Prefactor  = 0.0001
  Prefactor  = 54.4543
  Prefactor  = 8.81273
  Prefactor  = 40.223
  Normalizat = 0.901474
  Prefactor  = 0.944448
 **********
 **   18 **HESSE 
 **********

 FCN=   4010.511     FROM HESSE     STATUS=OK           431 CALLS     3338 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.1270        2.8563        .94823E-04   -1.5354    
   3  Prefactor     4.2667        5.9274        .17663E-03   -1.5295    
   4  Prefactor     4.8063        3.0235        .80635E-04   -1.5269    
   5  Prefactor     1.9195        2.4332        .10722E-03   -1.5431    
   6  Prefactor     .10000E-03    5.5765        .14589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    45.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.9795        22.264        .12673E-03   -1.5076    
   9  Prefactor     208.31        115.20        .14003E-03   -1.2811    
  10  Prefactor     10.539        9.4040        .12340E-03   -1.5059    
  11  norm          5.3113        6.3359        .16091E-03   -1.5247    
  12  Prefactor     .10000E-03    29.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    112.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8279        54.119        .20589E-03   -1.5317    
  15  norm          .10000E-03    5.5477        .14498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2191        18.457        .16097E-03   -1.5209    
  17  norm          .10000E-03    13.618        .20888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.6472        5.5360        .14192E-03   -1.5233    
  19  Prefactor     2.1939        5.6574        .20349E-03   -1.5412    
  20  Prefactor     .10000E-03    7.7783        .17233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     54.454        93.212        .54323E-04   -1.4231    
  22  Prefactor     8.8127        25.886        .13494E-03   -1.5114    
  23  Prefactor     40.223        76.972        .31518E-03   -1.4439    
  24  Normalizat    .90147        .25246        .24330E-03   -.96408    
  25  Prefactor     .94445        .29289        .28798E-03   -.94605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16081e-10
Minuit parameter uncertainties:
  1  1.4406e-05
  2  2.85647
  3  5.92819
  4  3.0236
  5  2.43332
  6  1.32558e-06
  7  1.34655e-05
  8  22.2823
  9  115.322
  10  9.40534
  11  6.33674
  12  1.70105e-06
  13  0.000439978
  14  28.8172
  15  1.949e-06
  16  18.4741
  17  0.000219026
  18  5.5365
  19  5.65873
  20  3.48652e-06
  21  93.4626
  22  25.9191
  23  77.163
  24  0.252793
  25  0.293381
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.054e+01  9.405e+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.444e-01  2.934e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.015e-01  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 4.00e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 2.31e-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) = 4010.39168554
delta logL = 0.119171210501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4010.38734353
delta logL = 0.123513215138

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7421       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3917       1.0000          .0000       10.000    
     3 'Normalizat'    .87449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96239       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=   4010.387     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      242 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7370        133.76        .36029E-02    .58817E-04
   2  Index         2.3933        6.1966        .10165        .10362E-03
   3  Normalizat    .87475        .11692        .44575E-01   -.37001E-05
   4  Prefactor     .96231        .10112        .45795E-01   -.34442E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.737
  Index      = 2.39326
  Normalizat = 0.874751
  Prefactor  = 0.962311
 **********
 **   18 **HESSE 
 **********

 FCN=   4010.387     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7370        9.9900        .11772E-03   -1.5152    
   2  Index         2.3933        .82011        .51172E-02   -.54843    
   3  Normalizat    .87475        .24801        .24641E-03   -.97353    
   4  Prefactor     .96231        .29360        .28526E-03   -.93997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86897e-09
Minuit parameter uncertainties:
  1  9.99217
  2  0.825246
  3  0.248331
  4  0.294086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36308': 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) = 4010.38733606
delta logL = 0.123520687243

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  7.737e+00  9.992e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.393e+00  8.252e-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.623e-01  2.941e-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:  8.748e-01  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.39 +/- 0.83
Photon Flux (Free Index): 6.36e-08 +/- 6.51e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.65e-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/36308/cmap_HighResolution_435801601_436060801_4FGL_J1257.2+3646_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.00e-08', energy_flux2='2.10e-05', photon_flux_error='3.57e-08', dlogl='1.24e-01', energy_flux='2.59e-05', photon_flux2='6.36e-08', job_status='DONE', time_completed='2021-09-06 11:53:25.104858', photon_index_error2='0.83', photon_index2='2.39', ts='4.27', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='0.90', time_epoch_completed='1630954405.1', return_code='0', job_id='36308', GAL2='0.96', EG2='0.87', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='6.51e-08', ts2='4.52', photon_index='2.03' WHERE bin_id='758' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:53:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 36308: <4FGL_J1257.2+3646_daily_bin758> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin758 194.31 36.7706 435801601 436060801 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 :                                   531.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            766 sec.

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

