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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin488
RA = 194.31, Dec = 36.7706
tmin = 365817601, tmax = 366076801
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='34532', job_status='RUN', time_executed='2021-09-06 11:39:20.917872', time_epoch_executed='1630953560.92' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34532

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34532/ft1_4FGL_J1257.2+3646_daily_bin488.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34532/ft2_4FGL_J1257.2+3646_daily_bin488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34532/ft1_4FGL_J1257.2+3646_daily_bin488.fits outfile=/scratch/kocevski/34532/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin488.fits ra=194.31 dec=36.7706 rad=12.0 tmin=365817601.0 tmax=366076801.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.49
user 3.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34532/ft1_filtered_4FGL_J1257.2+3646_daily_bin488.fits" evtable="EVENTS" scfile=/scratch/kocevski/34532/ft2_4FGL_J1257.2+3646_daily_bin488.fits sctable="SC_DATA" outfile=/scratch/kocevski/34532/ltcube_365817601_366076801_4FGL_J1257.2+3646_daily_bin488.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/34532/ft2_4FGL_J1257.2+3646_daily_bin488.fits
.....................!
real 12.37
user 12.04
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34532/ft1_filtered_4FGL_J1257.2+3646_daily_bin488.fits evtable="EVENTS" scfile=/scratch/kocevski/34532/ft2_4FGL_J1257.2+3646_daily_bin488.fits sctable="SC_DATA" expcube=/scratch/kocevski/34532/ltcube_365817601_366076801_4FGL_J1257.2+3646_daily_bin488.fits outfile=/scratch/kocevski/34532/expmap_365817601_366076801_4FGL_J1257.2+3646_daily_bin488.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/34532/ltcube_365817601_366076801_4FGL_J1257.2+3646_daily_bin488.fits
.....................!
real 189.82
user 185.38
sys 4.04

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/34532/ft1_filtered_4FGL_J1257.2+3646_daily_bin488.fits scfile=/scratch/kocevski/34532/ft2_4FGL_J1257.2+3646_daily_bin488.fits outfile=/scratch/kocevski/34532/cmap_365817601_366076801_4FGL_J1257.2+3646_daily_bin488.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=194.31 yref=36.7706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0217       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.123       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .79118E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    105.83       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .71969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10904E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.359       1.0000         .10000E-03   10000.    
    17 'norm      '    .11525E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1223       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.195       1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.239       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1738       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91183       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=   5821.126     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2993 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.567       -.18532E-05** at limit **
   2  norm          1.3096        2.0792        .74883E-06   -.48818E-03
   3  Prefactor     .10000E-03    2.5264       -.28204E-06** at limit **
   4  Prefactor     .10000E-03    .77196       -.31012E-07** at limit **
   5  Prefactor     2.0214        2.1923       -.64114E-07    .15683E-03
   6  Prefactor     12.123        8.2284       -.55289E-07    .15827E-03
   7  Prefactor     .10000E-03    18.920       -.65513E-06** at limit **
   8  Prefactor     .11273E-03    30.098        .34272E-05** at limit **
   9  Prefactor     105.89        91.534       -.88707E-06    .30892E-04
  10  Prefactor     .10000E-03    6.0841       -.47149E-06** at limit **
  11  norm          .71758        6.1614        .12631E-05    .16316E-03
  12  Prefactor     .10000E-03    15.475       -.25948E-06** at limit **
  13  Prefactor     .10000E-03    22.133       -.47281E-06** at limit **
  14  Prefactor     .10001E-03    53.952       -.28704E-05** at limit **
  15  norm          .10000E-03    4.6593       -.59820E-06** at limit **
  16  norm          20.362        13.906        .13426E-06    .36872E-04
  17  norm          .10000E-03    2.5642       -.55973E-06** at limit **
  18  norm          3.7857        3.9671       -.68977E-06   -.76297E-03
  19  Prefactor     .10000E-03    1.8492        .60938E-07** at limit **
  20  Prefactor     1.1302        35.219        .26343E-04   -.21782E-03
  21  Prefactor     .10000E-03    33.418        .25747E-06** at limit **
  22  Prefactor     26.187        25.036       -.19399E-05    .16745E-03
  23  Prefactor     35.471        89.250        .45010E-06    .96543E-04
  24  Normalizat    1.1730        .19155       -.75723E-05   -.49197E-04
  25  Prefactor     .91277        .22191        .96933E-05    .50896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.3096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.02143
  Prefactor  = 12.1226
  Prefactor  = 0.000100001
  Prefactor  = 0.000112727
  Prefactor  = 105.895
  Prefactor  = 0.0001
  norm       = 0.717582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  norm       = 20.362
  norm       = 0.000100001
  norm       = 3.78568
  Prefactor  = 0.0001
  Prefactor  = 1.13023
  Prefactor  = 0.0001
  Prefactor  = 26.1874
  Prefactor  = 35.4707
  Normalizat = 1.173
  Prefactor  = 0.91277
 **********
 **   18 **HESSE 
 **********

 FCN=   5821.126     FROM HESSE     STATUS=OK           429 CALLS     3422 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3096        2.0537        .66567E-03   -1.5479    
   3  Prefactor     .10000E-03    2.5347        .11847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .77654        .65349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0214        2.1697        .11154E-03   -1.5424    
   6  Prefactor     12.123        8.2260        .11505E-03   -1.5011    
   7  Prefactor     .10000E-03    19.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11273E-03    33.959        .10540       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     105.89        90.131        .19546E-03   -1.3646    
  10  Prefactor     .10000E-03    6.1309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .71758        6.0208        .34256E-03   -1.5539    
  12  Prefactor     .10000E-03    15.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    55.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7620        .16086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.362        13.906        .88767E-04   -1.4805    
  17  norm          .10000E-03    4.2854        .22453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7857        3.8194        .14547E-03   -1.5319    
  19  Prefactor     .10000E-03    1.8797        .10128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1302        37.281        .22144E-02   -1.5495    
  21  Prefactor     .10000E-03    33.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.187        25.111        .78271E-04   -1.4684    
  23  Prefactor     35.471        89.818        .67509E-04   -1.4516    
  24  Normalizat    1.1730        .21874        .22039E-03   -.87441    
  25  Prefactor     .91277        .26135        .30596E-03   -.95696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63728e-09
Minuit parameter uncertainties:
  1  0.000592196
  2  2.05385
  3  2.53739e-05
  4  1.93473e-06
  5  2.16976
  6  8.22676
  7  0.000233823
  8  0.0416012
  9  90.2482
  10  8.70818e-05
  11  4.15741
  12  6.3807e-05
  13  0.000100959
  14  0.00170439
  15  8.58397e-05
  16  13.9079
  17  9.41861e-05
  18  3.81964
  19  3.48773e-06
  20  12.9908
  21  6.21336e-05
  22  25.1209
  23  90.1632
  24  0.218908
  25  0.261709
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  8.708e-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:  9.128e-01  2.617e-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.173e+00  2.189e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34532/likelihoodResults_365817601_366076801_4FGL_J1257.2+3646_daily_bin488.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) = 5821.12701327
delta logL = -0.000777601293521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5821.12623693
delta logL = -1.26654776977e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12330E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0667       1.0000          .0000       10.000    
     3 'Normalizat'    1.1731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91271       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=   5821.126     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      208 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.050        .90712E-02** at limit **
   2  Index         2.1141        7.3247        .50000       -.65739E-04
   3  Normalizat    1.1730        .12326E-01    .35588E-01    .71861E-04
   4  Prefactor     .91276        .15374E-01    .69158E-01    .11663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.11411
  Normalizat = 1.17301
  Prefactor  = 0.912756
 **********
 **   18 **HESSE 
 **********

 FCN=   5821.126     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    244.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1141        6.0234        .50000       -.61527    
   3  Normalizat    1.1730        .25640E-01    .22039E-03   -.87441    
   4  Prefactor     .91276        .31934E-01    .30596E-03   -.95697    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.63976e-07
Minuit parameter uncertainties:
  1  0.00189228
  2  23.8312
  3  0.02564
  4  0.0319347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34532': 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) = 5821.12623439
delta logL = 1.27275961859e-06

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.892e-03  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.114e+00  2.383e+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.128e-01  3.193e-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.173e+00  2.564e-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/34532/cmap_HighResolution_365817601_366076801_4FGL_J1257.2+3646_daily_bin488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-06 11:51:08.746226', job_id='34532', GAL2='0.91', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630954268.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='488' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 34532: <4FGL_J1257.2+3646_daily_bin488> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin488 194.31 36.7706 365817601 366076801 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 :                                   704.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

