/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 11 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 = 7376
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1451
RA = 194.473, Dec = 32.4721
tmin = 615427201, tmax = 615686401
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='49732', job_status='RUN', time_executed='2021-09-06 12:17:03.510676', time_epoch_executed='1630955823.51' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49732/ft1_4FGL_J1257.8+3228_daily_bin1451.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49732/ft1_4FGL_J1257.8+3228_daily_bin1451.fits outfile=/scratch/kocevski/49732/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1451.fits ra=194.473 dec=32.4721 rad=12.0 tmin=615427201.0 tmax=615686401.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.73
user 3.25
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.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/49732/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1451.fits evtable="EVENTS" outfile="/scratch/kocevski/49732/ft1_filtered_4FGL_J1257.8+3228_daily_bin1451.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.58
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49732/ft1_filtered_4FGL_J1257.8+3228_daily_bin1451.fits" evtable="EVENTS" scfile=/scratch/kocevski/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.fits sctable="SC_DATA" outfile=/scratch/kocevski/49732/ltcube_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.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/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.fits
.....................!
real 12.05
user 11.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49732/ft1_filtered_4FGL_J1257.8+3228_daily_bin1451.fits evtable="EVENTS" scfile=/scratch/kocevski/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.fits sctable="SC_DATA" expcube=/scratch/kocevski/49732/ltcube_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.fits outfile=/scratch/kocevski/49732/expmap_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.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/49732/ltcube_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.fits
.....................!
real 190.49
user 185.26
sys 4.77

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1257.8+3228 @ 194.473 32.4721

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/49732/ft1_filtered_4FGL_J1257.8+3228_daily_bin1451.fits scfile=/scratch/kocevski/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.fits outfile=/scratch/kocevski/49732/cmap_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.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.473 yref=32.4721 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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49732/ft1_filtered_4FGL_J1257.8+3228_daily_bin1451.fits scfile=/scratch/kocevski/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.fits outfile=/scratch/kocevski/49732/cmap_HighResolution_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.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.473 yref=32.4721 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/49732/ft1_filtered_4FGL_J1257.8+3228_daily_bin1451.fits evtable="EVENTS" scfile=/scratch/kocevski/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49732/Model_4FGL_J1257.8+3228_daily_bin1451.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/49732/ft1_filtered_4FGL_J1257.8+3228_daily_bin1451.fits.....................!
real 50.14
user 48.74
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49732/ft1_filtered_4FGL_J1257.8+3228_daily_bin1451.fits', '/scratch/kocevski/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.fits', expMap='/scratch/kocevski/49732/expmap_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.fits', expCube='/scratch/kocevski/49732/ltcube_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49732/Model_4FGL_J1257.8+3228_daily_bin1451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.8+3228'

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.994e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/49732/ft1_filtered_4FGL_J1257.8+3228_daily_bin1451.fits
Spacecraft file(s): /scratch/kocevski/49732/ft2_4FGL_J1257.8+3228_daily_bin1451.fits
Exposure map: /scratch/kocevski/49732/expmap_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.fits
Exposure cube: /scratch/kocevski/49732/ltcube_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49732/Model_4FGL_J1257.8+3228_daily_bin1451.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) = 6055.20542683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12395E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2198       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28224E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0951       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14413E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .35894       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0178       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20275E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.015       1.0000         .10000E-03   10000.    
    16 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2853       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1826       1.0000         .10000E-03   10000.    
    19 'norm      '    9.2912       1.0000         .10000E-03   10000.    
    20 'norm      '    6.9108       1.0000         .10000E-03   10000.    
    21 'norm      '    .15476E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.7057       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.142       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6096       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .21594E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.567       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .19990E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .32155E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .55972       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4661       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6055.104     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     3848 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.718       -.30201E-06** at limit **
   2  norm          5.2126        2.7665        .19597E-08    .47943E-04
   3  Prefactor     .10001E-03    5.1392       -.17217E-05** at limit **
   4  Prefactor     4.4549        2.5900        .31732E-07    .73609E-04
   5  Prefactor     1.4308        1.5985        .12710E-06    .13657E-03
   6  Prefactor     .10000E-03    1.9242       -.32319E-08** at limit **
   7  norm          2.0943        2.7754        .14615E-06    .52380E-04
   8  Prefactor     .10000E-03    13.030        .32067E-06** at limit **
   9  Prefactor     .10000E-03    10.520        .60511E-08** at limit **
  10  Prefactor     28.186        57.453        .39929E-06    .16748E-05
  11  Prefactor     11.357        8.3481       -.10455E-06   -.36271E-03
  12  Prefactor     .34429        3.5388        .75633E-06   -.32304E-03
  13  norm          6.9982        5.4304        .13813E-06   -.15524E-03
  14  Prefactor     .10000E-03    54.631       -.99145E-06** at limit **
  15  Prefactor     18.343        19.976       -.47532E-06   -.21492E-03
  16  norm          .10000E-03    1.8278       -.19663E-06** at limit **
  17  Prefactor     5.3513        10.789       -.46856E-06   -.12732E-03
  18  norm          1.1775        3.1069        .72811E-06    .45076E-06
  19  norm          9.2974        9.9328       -.55952E-08   -.70778E-05
  20  norm          6.9063        4.0826       -.68230E-07   -.64735E-03
  21  norm          .10000E-03    5.5793       -.62922E-07** at limit **
  22  norm          9.7400        18.788        .25590E-05    .12027E-03
  23  Prefactor     .10000E-03    1.7674        .13324E-05** at limit **
  24  Prefactor     22.964        14.641       -.54349E-06   -.34906E-03
  25  norm          1.6126        4.8827        .10349E-05    .13956E-03
  26  Prefactor     .10000E-03    18.274        .38626E-06** at limit **
  27  Prefactor     10.621        11.457        .20448E-06   -.16022E-04
  28  Prefactor     .10000E-03    6.7120        .69862E-07** at limit **
  29  Prefactor     .10000E-03    40.749       -.55940E-07** at limit **
  30  Prefactor     .10000E-03    1.7087        .67144E-07** at limit **
  31  Normalizat    .55945        .16518       -.18874E-05   -.27051E-03
  32  Prefactor     1.4664        .20983        .37465E-06   -.28302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.21255
  Prefactor  = 0.000100007
  Prefactor  = 4.45493
  Prefactor  = 1.43078
  Prefactor  = 0.0001
  norm       = 2.09433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.1864
  Prefactor  = 11.3573
  Prefactor  = 0.344289
  norm       = 6.99818
  Prefactor  = 0.000100002
  Prefactor  = 18.3426
  norm       = 0.0001
  Prefactor  = 5.35132
  norm       = 1.17749
  norm       = 9.29738
  norm       = 6.90625
  norm       = 0.0001
  norm       = 9.73999
  Prefactor  = 0.0001
  Prefactor  = 22.9644
  norm       = 1.61259
  Prefactor  = 0.0001
  Prefactor  = 10.6209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.559452
  Prefactor  = 1.46642
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.104     FROM HESSE     STATUS=OK           663 CALLS     4511 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.881        .20615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2126        2.7688        .88411E-04   -1.5251    
   3  Prefactor     .10001E-03    9.1822        .30127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4549        2.5903        .89192E-04   -1.5286    
   5  Prefactor     1.4308        1.5798        .99825E-04   -1.5469    
   6  Prefactor     .10000E-03    1.9313        .10540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0943        2.7605        .14495E-03   -1.5419    
   8  Prefactor     .10000E-03    13.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.186        57.424        .76081E-04   -1.4646    
  11  Prefactor     11.357        8.3417        .11847E-03   -1.5034    
  12  Prefactor     .34429        16.036        .26077E-02   -1.5591    
  13  norm          6.9982        5.4179        .14243E-03   -1.5179    
  14  Prefactor     .10000E-03    54.801        .18248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.343        19.983        .94363E-04   -1.4851    
  16  norm          .10000E-03    1.8699        .10268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3513        10.824        .17483E-03   -1.5245    
  18  norm          1.1775        3.0306        .21125E-03   -1.5491    
  19  norm          9.2974        9.9370        .13148E-03   -1.5098    
  20  norm          6.9063        4.0565        .10994E-03   -1.5182    
  21  norm          .10000E-03    5.6344        .17859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.7400        18.815        .64314E-03   -1.5084    
  23  Prefactor     .10000E-03    2.5595        .18343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.964        14.596        .83266E-04   -1.4749    
  25  norm          1.6126        4.8439        .28576E-03   -1.5454    
  26  Prefactor     .10000E-03    18.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.621        11.456        .12325E-03   -1.5056    
  28  Prefactor     .10000E-03    6.7215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    40.866        .21360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.7295        .99340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .55945        .19276        .28890E-03   -1.0973    
  32  Prefactor     1.4664        .24878        .24329E-03   -.78484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59968e-09
Minuit parameter uncertainties:
  1  0.00010786
  2  2.76882
  3  0.000510829
  4  2.59037
  5  1.57986
  6  4.78624e-07
  7  2.76065
  8  8.88734e-05
  9  2.24068e-06
  10  57.5369
  11  8.34257
  12  4.70004
  13  5.41823
  14  0.000661237
  15  19.9904
  16  4.92027e-06
  17  10.8279
  18  3.03098
  19  9.93879
  20  4.05667
  21  3.43324e-06
  22  18.8265
  23  4.29522e-05
  24  14.5983
  25  4.84505
  26  9.85339e-05
  27  11.4582
  28  9.47381e-06
  29  6.07069e-05
  30  3.41243e-06
  31  0.192989
  32  0.248989
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.998e+00  5.418e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.466e+00  2.490e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  5.595e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.10e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.26e-05

TS (Fixed Index): 3.04
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49732/likelihoodResults_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.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): 0
logL (Free Index) = 6055.01378884
delta logL = 0.0899056917606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6055.01025215
delta logL = 0.0934423741128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0196       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5376       1.0000          .0000       5.0000    
     3 'Normalizat'    .54286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6055.010     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      262 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0253        97.793        .40913E-02    .37904E-03
   2  alpha         2.5386        3.4252        .30082        .71108E-04
   3  Normalizat    .54324        .81003E-01    .66161E-01    .10401E-03
   4  Prefactor     1.4805        .81822E-01    .54808E-01   -.21503E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.02529
  alpha      = 2.53859
  Normalizat = 0.543242
  Prefactor  = 1.48046
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.010     FROM HESSE     STATUS=OK            31 CALLS      293 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0253        5.6550        .12428E-03   -1.5217    
   2  alpha         2.5386        .80477        .14633E-01    .15437E-01
   3  Normalizat    .54324        .19254        .29280E-03   -1.1045    
   4  Prefactor     1.4805        .24838        .24232E-03   -.78088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01857e-10
Minuit parameter uncertainties:
  1  5.65551
  2  0.819364
  3  0.192774
  4  0.248578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49732': 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) = 6055.01024359
delta logL = 0.0934509411936

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.025e+00  5.656e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.539e+00  8.194e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.480e+00  2.486e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  5.432e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.54 +/- 0.82
Photon Flux (Free Index): 5.21e-08 +/- 4.17e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.09e-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/49732/cmap_HighResolution_615427201_615686401_4FGL_J1257.8+3228_daily_bin1451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-05', comment='SUCCESS', photon_flux='4.10e-08', energy_flux2='1.49e-05', photon_flux_error='3.17e-08', dlogl='9.35e-02', energy_flux='1.63e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-06 12:31:32.199123', photon_index_error2='0.82', photon_index2='2.54', ts='3.04', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.09e-05', EG='0.56', time_epoch_completed='1630956692.2', return_code='0', job_id='49732', GAL2='1.48', EG2='0.54', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.17e-08', ts2='3.25', photon_index='2.22' WHERE bin_id='1451' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 49732: <4FGL_J1257.8+3228_daily_bin1451> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1451> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:16:08 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:16:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:16:10 2021
Terminated at Mon Sep  6 12:31:33 2021
Results reported at Mon Sep  6 12:31:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1451 194.473 32.4721 615427201 615686401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.8+3228 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   847.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

