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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin477
RA = 194.31, Dec = 36.7706
tmin = 362966401, tmax = 363225601
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='34516', job_status='RUN', time_executed='2021-09-06 11:37:45.413510', time_epoch_executed='1630953465.41' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34516

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34516/ft1_4FGL_J1257.2+3646_daily_bin477.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34516/ft2_4FGL_J1257.2+3646_daily_bin477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34516/ft1_4FGL_J1257.2+3646_daily_bin477.fits outfile=/scratch/kocevski/34516/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin477.fits ra=194.31 dec=36.7706 rad=12.0 tmin=362966401.0 tmax=363225601.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.10
user 5.82
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34516/ft1_filtered_4FGL_J1257.2+3646_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/34516/ft2_4FGL_J1257.2+3646_daily_bin477.fits sctable="SC_DATA" expcube=/scratch/kocevski/34516/ltcube_362966401_363225601_4FGL_J1257.2+3646_daily_bin477.fits outfile=/scratch/kocevski/34516/expmap_362966401_363225601_4FGL_J1257.2+3646_daily_bin477.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/34516/ltcube_362966401_363225601_4FGL_J1257.2+3646_daily_bin477.fits
.....................!
real 192.86
user 186.09
sys 5.01

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/34516/ft1_filtered_4FGL_J1257.2+3646_daily_bin477.fits scfile=/scratch/kocevski/34516/ft2_4FGL_J1257.2+3646_daily_bin477.fits outfile=/scratch/kocevski/34516/cmap_362966401_363225601_4FGL_J1257.2+3646_daily_bin477.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.56
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.946       1.0000         .10000E-03   10000.    
     2 'norm      '    8.0648       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16776E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.275       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.159       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3788       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0793       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0176       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0945       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98540       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=   4731.726     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2844 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.948        51.770        .39227E-06    .11920E-04
   2  norm          8.0708        4.1726       -.49857E-08    .11502E-03
   3  Prefactor     .10000E-03    3.6396       -.19500E-06** at limit **
   4  Prefactor     .10000E-03    2.2659        .11063E-06** at limit **
   5  Prefactor     1.6310        2.4350        .31323E-07   -.44144E-04
   6  Prefactor     30.279        17.252        .56880E-08    .75193E-05
   7  Prefactor     .10000E-03    24.987       -.69493E-06** at limit **
   8  Prefactor     .10000E-03    12.708        .60790E-06** at limit **
   9  Prefactor     .10000E-03    55.328       -.15883E-05** at limit **
  10  Prefactor     13.159        8.4824        .27824E-06   -.15953E-03
  11  norm          2.3786        2.5352       -.74024E-07   -.12750E-04
  12  Prefactor     .10000E-03    21.194       -.98990E-06** at limit **
  13  Prefactor     .10000E-03    7.7679       -.97463E-06** at limit **
  14  Prefactor     .10000E-03    6.5075        .79351E-06** at limit **
  15  norm          .10000E-03    1.7661       -.82916E-07** at limit **
  16  norm          .10000E-03    7.2914        .49074E-06** at limit **
  17  norm          1.0829        3.6201        .40637E-06   -.23411E-03
  18  norm          .10000E-03    3.7664        .26977E-06** at limit **
  19  Prefactor     1.0045        4.7699        .21227E-05   -.13063E-03
  20  Prefactor     14.588        18.260       -.14395E-05   -.85464E-04
  21  Prefactor     .10000E-03    18.508       -.82237E-07** at limit **
  22  Prefactor     .10000E-03    6.1589       -.58644E-06** at limit **
  23  Prefactor     .10000E-03    32.737        .27541E-05** at limit **
  24  Normalizat    1.0946        .19757       -.60249E-06   -.65705E-04
  25  Prefactor     .98528        .24126       -.14530E-06   -.55986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.948
  norm       = 8.07079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.63103
  Prefactor  = 30.279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1589
  norm       = 2.37857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.08294
  norm       = 0.0001
  Prefactor  = 1.00452
  Prefactor  = 14.5878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09461
  Prefactor  = 0.985276
 **********
 **   18 **HESSE 
 **********

 FCN=   4731.726     FROM HESSE     STATUS=OK           421 CALLS     3265 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.948        51.828        .49798E-04   -1.4094    
   2  norm          8.0708        4.0259        .93322E-04   -1.5140    
   3  Prefactor     .10000E-03    3.6512        .12822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9150        .19219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6310        2.4002        .12473E-03   -1.5453    
   6  Prefactor     30.279        17.198        .72818E-04   -1.4607    
   7  Prefactor     .10000E-03    25.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    55.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.159        8.4574        .55210E-03   -1.4982    
  11  norm          2.3786        2.5389        .10997E-03   -1.5400    
  12  Prefactor     .10000E-03    21.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5651        .17202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7708        .89320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.3307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0829        3.4840        .21609E-03   -1.5500    
  18  norm          .10000E-03    3.7710        .13008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0045        4.7272        .23482E-03   -1.5508    
  20  Prefactor     14.588        18.214        .10502E-03   -1.4944    
  21  Prefactor     .10000E-03    18.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.1964        .16713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0946        .23134        .23227E-03   -.89925    
  25  Prefactor     .98528        .28242        .30208E-03   -.93222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24057e-10
Minuit parameter uncertainties:
  1  51.864
  2  4.02605
  3  5.64216e-06
  4  1.95863e-05
  5  2.40036
  6  17.2005
  7  3.99976e-05
  8  2.91701e-05
  9  0.000157525
  10  8.45819
  11  2.53901
  12  6.32521e-05
  13  4.37762e-05
  14  2.59299e-05
  15  3.74848e-06
  16  2.08188e-05
  17  3.48465
  18  4.07563e-07
  19  4.3586
  20  18.2205
  21  1.06415e-05
  22  2.09671e-05
  23  0.000233245
  24  0.231557
  25  0.282846
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.316e+01  8.458e+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.853e-01  2.828e-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.095e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.97
Ra Dec: 194.310 36.771
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 4.99e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 3.23e-05 +/- 2.08e-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) = 4730.90181611
delta logL = 0.824218713065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4730.89594145
delta logL = 0.830093370523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0082       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7456       1.0000          .0000       10.000    
     3 'Normalizat'    1.0415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0249       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=   4730.896     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      253 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0065        51.053        .44923E-02    .21349E-03
   2  Index         2.7457        2.5524        .84491E-01    .15399E-03
   3  Normalizat    1.0415        .90331E-01    .41164E-01   -.15909E-06
   4  Prefactor     1.0249        .96569E-01    .67072E-01    .74811E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.00647
  Index      = 2.74575
  Normalizat = 1.0415
  Prefactor  = 1.02489
 **********
 **   18 **HESSE 
 **********

 FCN=   4730.896     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0065        7.8070        .79153E-04   -1.5260    
   2  Index         2.7457        .74783        .33523E-02   -.46772    
   3  Normalizat    1.0415        .23455        .23725E-03   -.91653    
   4  Prefactor     1.0249        .28628        .29670E-03   -.91905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15302e-11
Minuit parameter uncertainties:
  1  7.8086
  2  0.751379
  3  0.234787
  4  0.286702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34516': 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) = 4730.8959414
delta logL = 0.830093422662

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  5.006e+00  7.809e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.746e+00  7.514e-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.025e+00  2.867e-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.041e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.65
Ra Dec: 194.310 36.771
Photon Index (Free Index): 2.75 +/- 0.75
Photon Flux (Free Index): 9.27e-08 +/- 5.82e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.27e-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/34516/cmap_HighResolution_362966401_363225601_4FGL_J1257.2+3646_daily_bin477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.99e-08', energy_flux2='2.16e-05', photon_flux_error='3.21e-08', dlogl='8.30e-01', energy_flux='3.23e-05', photon_flux2='9.27e-08', job_status='DONE', time_completed='2021-09-06 11:47:32.426931', photon_index_error2='0.75', photon_index2='2.75', ts='4.97', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.09', time_epoch_completed='1630954052.43', return_code='0', job_id='34516', GAL2='1.02', EG2='1.04', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='5.82e-08', ts2='6.65', photon_index='2.03' WHERE bin_id='477' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:47:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 34516: <4FGL_J1257.2+3646_daily_bin477> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin477> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:31 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:32 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:35:32 2021
Terminated at Mon Sep  6 11:47:33 2021
Results reported at Mon Sep  6 11:47:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin477 194.31 36.7706 362966401 363225601 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            722 sec.

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

