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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1418
RA = 194.473, Dec = 32.4721
tmin = 606873601, tmax = 607132801
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='49685', job_status='RUN', time_executed='2021-09-06 12:17:30.498804', time_epoch_executed='1630955850.5' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49685/ft1_4FGL_J1257.8+3228_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49685/ft2_4FGL_J1257.8+3228_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49685/ft1_4FGL_J1257.8+3228_daily_bin1418.fits outfile=/scratch/kocevski/49685/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1418.fits ra=194.473 dec=32.4721 rad=12.0 tmin=606873601.0 tmax=607132801.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.38
user 5.04
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49685/ft1_filtered_4FGL_J1257.8+3228_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/49685/ft2_4FGL_J1257.8+3228_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/49685/ltcube_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.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/49685/ft2_4FGL_J1257.8+3228_daily_bin1418.fits
.....................!
real 11.44
user 11.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49685/ft1_filtered_4FGL_J1257.8+3228_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/49685/ft2_4FGL_J1257.8+3228_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/49685/ltcube_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.fits outfile=/scratch/kocevski/49685/expmap_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.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/49685/ltcube_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.fits
.....................!
real 191.33
user 185.38
sys 5.55

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/49685/ft1_filtered_4FGL_J1257.8+3228_daily_bin1418.fits scfile=/scratch/kocevski/49685/ft2_4FGL_J1257.8+3228_daily_bin1418.fits outfile=/scratch/kocevski/49685/cmap_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49685/ft1_filtered_4FGL_J1257.8+3228_daily_bin1418.fits scfile=/scratch/kocevski/49685/ft2_4FGL_J1257.8+3228_daily_bin1418.fits outfile=/scratch/kocevski/49685/cmap_HighResolution_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.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.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49685/ft1_filtered_4FGL_J1257.8+3228_daily_bin1418.fits', '/scratch/kocevski/49685/ft2_4FGL_J1257.8+3228_daily_bin1418.fits', expMap='/scratch/kocevski/49685/expmap_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.fits', expCube='/scratch/kocevski/49685/ltcube_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49685/Model_4FGL_J1257.8+3228_daily_bin1418.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/49685/ft1_filtered_4FGL_J1257.8+3228_daily_bin1418.fits
Spacecraft file(s): /scratch/kocevski/49685/ft2_4FGL_J1257.8+3228_daily_bin1418.fits
Exposure map: /scratch/kocevski/49685/expmap_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.fits
Exposure cube: /scratch/kocevski/49685/ltcube_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49685/Model_4FGL_J1257.8+3228_daily_bin1418.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) = 5525.55297965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.8912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1925       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20147       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.0870       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1760       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8967       1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1570       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.183       1.0000         .10000E-03   10000.    
    19 'norm      '    17.400       1.0000         .10000E-03   10000.    
    20 'norm      '    7.1069       1.0000         .10000E-03   10000.    
    21 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.0072       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13904E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .41849E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    42.892       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .69224E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    25.854       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .45594E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .98220       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1865       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=   5525.344     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     3873 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    122.21       -.54472E-05** at limit **
   2  norm          4.8919        3.0435       -.20226E-07    .22561E-03
   3  Prefactor     .10000E-03    9.3252       -.11408E-05** at limit **
   4  Prefactor     5.1928        2.6093        .84764E-07    .31054E-03
   5  Prefactor     .20218        1.4440       -.18059E-06    .66907E-03
   6  Prefactor     .10000E-03    1.3395        .11480E-06** at limit **
   7  norm          7.0891        4.5034        .14146E-06    .26992E-03
   8  Prefactor     3.1799        7.7960       -.11882E-05   -.49216E-04
   9  Prefactor     .10000E-03    7.7600       -.21839E-06** at limit **
  10  Prefactor     .10001E-03    64.543        .45688E-05** at limit **
  11  Prefactor     .10000E-03    4.2252        .95323E-07** at limit **
  12  Prefactor     1.8991        5.1307       -.36275E-05   -.50870E-03
  13  norm          .10001E-03    4.1344       -.16517E-06** at limit **
  14  Prefactor     8.1887        60.016       -.26605E-05   -.41013E-04
  15  Prefactor     .10000E-03    21.181        .63686E-06** at limit **
  16  norm          .10000E-03    1.5998        .41491E-07** at limit **
  17  Prefactor     .10000E-03    8.8091        .13750E-05** at limit **
  18  norm          10.180        6.7895        .53735E-06   -.44429E-03
  19  norm          17.400        13.377       -.15030E-07   -.26855E-04
  20  norm          7.1026        4.4717       -.21331E-06   -.11049E-02
  21  norm          .10000E-03    4.3412        .65671E-06** at limit **
  22  norm          4.0233        32.098       -.13568E-05   -.25342E-04
  23  Prefactor     .10001E-03    3.8406        .21140E-05** at limit **
  24  Prefactor     .10001E-03    65.642        .12244E-04** at limit **
  25  norm          .10000E-03    7.1479        .31745E-06** at limit **
  26  Prefactor     42.912        43.662        .86340E-09   -.15331E-03
  27  Prefactor     .10000E-03    4.6916        .74121E-07** at limit **
  28  Prefactor     .25126        14.899        .17343E-05   -.85591E-04
  29  Prefactor     25.856        44.329       -.60796E-06   -.41914E-04
  30  Prefactor     .10000E-03    2.1833       -.56117E-06** at limit **
  31  Normalizat    .98213        .17940        .97755E-06   -.34554E-03
  32  Prefactor     1.1861        .21968       -.63392E-06   -.18341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 4.89188
  Prefactor  = 0.0001
  Prefactor  = 5.19283
  Prefactor  = 0.202175
  Prefactor  = 0.0001
  norm       = 7.08914
  Prefactor  = 3.17986
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 1.89906
  norm       = 0.00010001
  Prefactor  = 8.18868
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.1798
  norm       = 17.4002
  norm       = 7.10258
  norm       = 0.0001
  norm       = 4.02332
  Prefactor  = 0.000100009
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 42.9119
  Prefactor  = 0.0001
  Prefactor  = 0.251256
  Prefactor  = 25.856
  Prefactor  = 0.000100001
  Normalizat = 0.982126
  Prefactor  = 1.18608
 **********
 **   18 **HESSE 
 **********

 FCN=   5525.344     FROM HESSE     STATUS=OK           667 CALLS     4540 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    125.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.8919        3.0394        .94857E-04   -1.5266    
   3  Prefactor     .10000E-03    9.5450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1928        2.6114        .79190E-04   -1.5252    
   5  Prefactor     .20218        2.5063        .16425E-02   -1.5618    
   6  Prefactor     .10000E-03    1.3401        .84015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.0891        4.4961        .12135E-03   -1.5175    
   8  Prefactor     3.1799        7.7643        .22740E-03   -1.5351    
   9  Prefactor     .10000E-03    7.7694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    65.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2530        .14920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8991        5.2524        .27304E-03   -1.5432    
  13  norm          .10001E-03    10.964        .27938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1887        60.111        .14038E-03   -1.5136    
  15  Prefactor     .10000E-03    21.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6233        .91793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.9014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.180        6.6900        .12557E-03   -1.5070    
  19  norm          17.400        13.374        .96016E-04   -1.4873    
  20  norm          7.1026        4.3222        .11420E-03   -1.5175    
  21  norm          .10000E-03    4.3679        .15102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.0233        32.033        .20146E-03   -1.5307    
  23  Prefactor     .10001E-03    5.5357        .23704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    67.485        .44991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.2397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     42.912        43.144        .30606E-03   -1.4397    
  27  Prefactor     .10000E-03    4.6953        .15724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .25126        15.180        .88323E-01   -1.5608    
  29  Prefactor     25.856        44.354        .78784E-04   -1.4691    
  30  Prefactor     .10000E-03    12.027        .20869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .98213        .20942        .23932E-03   -.93632    
  32  Prefactor     1.1861        .26028        .27695E-03   -.86761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61346e-09
Minuit parameter uncertainties:
  1  0.00177174
  2  3.03953
  3  0.000103912
  4  2.61145
  5  1.4234
  6  2.331e-06
  7  4.49628
  8  7.76673
  9  2.58586e-05
  10  0.00138724
  11  1.54444e-06
  12  5.25368
  13  0.000656598
  14  44.4351
  15  9.51351e-06
  16  5.1278e-07
  17  0.000146439
  18  6.69051
  19  13.3767
  20  4.32238
  21  2.49042e-05
  22  22.7214
  23  0.000451846
  24  0.00143796
  25  3.08165e-05
  26  43.1753
  27  4.77249e-07
  28  3.90616
  29  44.411
  30  0.000190362
  31  0.209598
  32  0.260558
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  6.566e-04  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.186e+00  2.606e-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:  9.821e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49685/likelihoodResults_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.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) = 5525.34440257
delta logL = -0.000432546591583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5525.34396222
delta logL = 7.80107802711e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15447E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3444       1.0000          .0000       5.0000    
     3 'Normalizat'    .98267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1853       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5523.385     FROM MIGRAD    STATUS=CONVERGED    169 CALLS      343 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23909        .14357        .20098E-04    .51250E-03
   2  alpha         5.0000        1.1098        .43909E-01** at limit **
   3  Normalizat    .83277        .21795        .25704E-03    .46751E-04
   4  Prefactor     1.3049        .26791        .26573E-03    .67555E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.23909
  alpha      = 5
  Normalizat = 0.832766
  Prefactor  = 1.30491
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.385     FROM HESSE     STATUS=OK            23 CALLS      366 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23909        .14215        .80391E-06   -1.5610    
   2  alpha         5.0000        1.1105        .87819E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83277        .21821        .10281E-04   -.98865    
   4  Prefactor     1.3049        .26823        .10629E-04   -.83161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0147e-11
Minuit parameter uncertainties:
  1  0.14215
  2  1.95903e-06
  3  0.218442
  4  0.268512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49685': 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) = 5523.38476851
delta logL = 1.95920150941

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.391e-01  1.422e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.000e+00  1.959e-06  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.305e+00  2.685e-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:  8.328e-01  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.33
Ra Dec: 194.473 32.472
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.04e-07 +/- 6.14e-08
Energy Flux (Free Index): 1.42e-05 +/- 8.40e-06

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/49685/cmap_HighResolution_606873601_607132801_4FGL_J1257.8+3228_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', comment='SUCCESS', energy_flux2='1.42e-05', dlogl='1.96e+00', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-06 12:32:39.424828', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='6.71e-08', energy_flux_error2='8.40e-06', EG='0.98', time_epoch_completed='1630956759.42', return_code='0', job_id='49685', GAL2='1.30', EG2='0.83', return_code2='0', photon_flux_error2='6.14e-08', ts2='4.33', photon_index='2.22' WHERE bin_id='1418' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:32:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 49685: <4FGL_J1257.8+3228_daily_bin1418> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1418> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:16:05 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:16:07 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:07 2021
Terminated at Mon Sep  6 12:32:40 2021
Results reported at Mon Sep  6 12:32:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1418 194.473 32.4721 606873601 607132801 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 :                                   836.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

