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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin717
RA = 194.31, Dec = 36.7706
tmin = 425174401, tmax = 425433601
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='36247', job_status='RUN', time_executed='2021-09-06 11:43:23.124024', time_epoch_executed='1630953803.12' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36247/ft1_4FGL_J1257.2+3646_daily_bin717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36247/ft2_4FGL_J1257.2+3646_daily_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36247/ft1_4FGL_J1257.2+3646_daily_bin717.fits outfile=/scratch/kocevski/36247/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin717.fits ra=194.31 dec=36.7706 rad=12.0 tmin=425174401.0 tmax=425433601.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 5.25
user 4.99
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36247/ft1_filtered_4FGL_J1257.2+3646_daily_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/36247/ft2_4FGL_J1257.2+3646_daily_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/36247/ltcube_425174401_425433601_4FGL_J1257.2+3646_daily_bin717.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/36247/ft2_4FGL_J1257.2+3646_daily_bin717.fits
.....................!
real 11.93
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36247/ft1_filtered_4FGL_J1257.2+3646_daily_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/36247/ft2_4FGL_J1257.2+3646_daily_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/36247/ltcube_425174401_425433601_4FGL_J1257.2+3646_daily_bin717.fits outfile=/scratch/kocevski/36247/expmap_425174401_425433601_4FGL_J1257.2+3646_daily_bin717.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/36247/ltcube_425174401_425433601_4FGL_J1257.2+3646_daily_bin717.fits
.....................!
real 190.10
user 185.74
sys 3.97

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/36247/ft1_filtered_4FGL_J1257.2+3646_daily_bin717.fits scfile=/scratch/kocevski/36247/ft2_4FGL_J1257.2+3646_daily_bin717.fits outfile=/scratch/kocevski/36247/cmap_425174401_425433601_4FGL_J1257.2+3646_daily_bin717.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.65
user 0.42
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.105       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7465       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2583       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    81.877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.191       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .39717       1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.845       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10643E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.8163       1.0000         .10000E-03   10000.    
    17 'norm      '    12.651       1.0000         .10000E-03   10000.    
    18 'norm      '    .10373E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.695       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.889       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.366       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2525       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87567       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=   3860.972     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2925 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.107        45.872       -.19180E-06   -.62772E-05
   2  norm          5.7467        4.4756       -.25398E-06   -.12421E-04
   3  Prefactor     .10000E-03    3.6791        .36309E-07** at limit **
   4  Prefactor     1.7862        2.4114       -.57800E-07   -.46143E-04
   5  Prefactor     4.2590        3.6227        .14358E-05    .71610E-03
   6  Prefactor     .10000E-03    4.0109       -.13051E-07** at limit **
   7  Prefactor     81.871        47.683       -.53024E-07    .10677E-04
   8  Prefactor     11.201        28.175       -.32211E-06   -.61774E-04
   9  Prefactor     .10000E-03    38.818        .48370E-07** at limit **
  10  Prefactor     .10000E-03    3.8691       -.79194E-06** at limit **
  11  norm          .41637        6.5245        .16919E-05   -.31480E-03
  12  Prefactor     63.848        77.179       -.22412E-06   -.26145E-05
  13  Prefactor     .10215E-03    71.862       -.52126E-05** at limit **
  14  Prefactor     .10000E-03    7.7571       -.16873E-06** at limit **
  15  norm          .10000E-03    2.2739       -.55356E-07** at limit **
  16  norm          5.8206        17.664        .98403E-07   -.41418E-04
  17  norm          12.640        6.4562        .26453E-07    .37909E-03
  18  norm          .10000E-03    5.6869       -.89791E-07** at limit **
  19  Prefactor     10.691        5.6979        .68565E-08    .26204E-03
  20  Prefactor     .10000E-03    8.8198       -.36565E-07** at limit **
  21  Prefactor     32.924        55.161       -.34602E-07    .54032E-05
  22  Prefactor     .10000E-03    17.891        .24705E-06** at limit **
  23  Prefactor     23.290        76.688       -.13442E-05   -.37181E-04
  24  Normalizat    1.2530        .23536        .14798E-05    .68980E-04
  25  Prefactor     .87486        .28233       -.25541E-05    .70120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.1075
  norm       = 5.74668
  Prefactor  = 0.0001
  Prefactor  = 1.78619
  Prefactor  = 4.25902
  Prefactor  = 0.0001
  Prefactor  = 81.8711
  Prefactor  = 11.2006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.416369
  Prefactor  = 63.8479
  Prefactor  = 0.000102146
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.82056
  norm       = 12.6395
  norm       = 0.0001
  Prefactor  = 10.6914
  Prefactor  = 0.0001
  Prefactor  = 32.9244
  Prefactor  = 0.0001
  Prefactor  = 23.29
  Normalizat = 1.253
  Prefactor  = 0.874859
 **********
 **   18 **HESSE 
 **********

 FCN=   3860.972     FROM HESSE     STATUS=OK           435 CALLS     3360 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.107        45.914        .62523E-04   -1.4425    
   2  norm          5.7467        4.5072        .10600E-03   -1.5228    
   3  Prefactor     .10000E-03    3.6842        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7862        2.4123        .10412E-03   -1.5441    
   5  Prefactor     4.2590        3.6931        .52849E-03   -1.5295    
   6  Prefactor     .10000E-03    4.0125        .12154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     81.871        47.782        .44389E-04   -1.3896    
   8  Prefactor     11.201        28.183        .11976E-03   -1.5038    
   9  Prefactor     .10000E-03    38.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8809        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .41637        26.105        .24807E-02   -1.5579    
  12  Prefactor     63.848        77.237        .50223E-04   -1.4108    
  13  Prefactor     .10215E-03    66.038        .10792       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.7647        .16902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2760        .91489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.8206        17.652        .16653E-03   -1.5225    
  17  norm          12.640        6.4448        .10276E-03   -1.4997    
  18  norm          .10000E-03    5.6989        .14445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.691        5.7093        .10011E-03   -1.5054    
  20  Prefactor     .10000E-03    8.8302        .18019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.924        55.162        .69871E-04   -1.4560    
  22  Prefactor     .10000E-03    17.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.290        77.102        .82865E-04   -1.4742    
  24  Normalizat    1.2530        .27886        .23084E-03   -.84980    
  25  Prefactor     .87486        .32944        .33183E-03   -.97025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76264e-09
Minuit parameter uncertainties:
  1  45.9535
  2  4.50747
  3  8.58019e-07
  4  2.41242
  5  3.69327
  6  4.50682e-06
  7  47.804
  8  28.2169
  9  9.00555e-06
  10  2.29097e-05
  11  6.59594
  12  77.3588
  13  0.0238363
  14  6.58646e-06
  15  5.52609e-08
  16  17.6681
  17  6.4452
  18  1.91921e-06
  19  5.7096
  20  4.86269e-07
  21  55.2478
  22  2.3748e-05
  23  77.4348
  24  0.279191
  25  0.330196
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.291e-05  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:  8.749e-01  3.302e-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.253e+00  2.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 6.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36247/likelihoodResults_425174401_425433601_4FGL_J1257.2+3646_daily_bin717.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3860.97283761
delta logL = -0.00120985590729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3860.97162768
delta logL = 7.96940184955e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0135       1.0000          .0000       10.000    
     3 'Normalizat'    1.2530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87487       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3860.972     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10071E-03    59.679        .12032E-02** at limit **
   2  Index         1.9703        5.9579        .50000        .24339E-04
   3  Normalizat    1.2530        .21993E-01    .23084E-03    .13420E-04
   4  Prefactor     .87486        .27053E-01    .33183E-03    .88734E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100705
  Index      = 1.97033
  Normalizat = 1.253
  Prefactor  = 0.874858
 **********
 **   18 **HESSE 
 **********

 FCN=   3860.972     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10071E-03    246.27        .24064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9703        8.9961        .50000       -.65094    
   3  Normalizat    1.2530        .47539E-01    .92337E-05   -.84980    
   4  Prefactor     .87486        .58449E-01    .13273E-04   -.97025    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.10291e-08
Minuit parameter uncertainties:
  1  0.0264718
  2  566.463
  3  0.047541
  4  0.0584531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36247': 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): 102
logL (Free Index) = 3860.97162746
delta logL = 2.95488462143e-07

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.007e-04  2.647e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.970e+00  5.665e+02  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:  8.749e-01  5.845e-02  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.253e+00  4.754e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/36247/cmap_HighResolution_425174401_425433601_4FGL_J1257.2+3646_daily_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', job_status='DONE', photon_flux_upper_limit='6.83e-08', time_completed='2021-09-06 11:53:30.429278', job_id='36247', GAL2='0.87', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630954410.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='717' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:53:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 36247: <4FGL_J1257.2+3646_daily_bin717> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin717 194.31 36.7706 425174401 425433601 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 :                                   586.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

