/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 41 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 = 7436
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin204
RA = 194.473, Dec = 32.4721
tmin = 292204801, tmax = 292464001
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='42539', job_status='RUN', time_executed='2021-09-06 11:57:06.670459', time_epoch_executed='1630954626.67' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42539/ft1_4FGL_J1257.8+3228_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42539/ft2_4FGL_J1257.8+3228_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42539/ft1_4FGL_J1257.8+3228_daily_bin204.fits outfile=/scratch/kocevski/42539/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin204.fits ra=194.473 dec=32.4721 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.54
user 9.12
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42539/ft1_filtered_4FGL_J1257.8+3228_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/42539/ft2_4FGL_J1257.8+3228_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/42539/ltcube_292204801_292464001_4FGL_J1257.8+3228_daily_bin204.fits outfile=/scratch/kocevski/42539/expmap_292204801_292464001_4FGL_J1257.8+3228_daily_bin204.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/42539/ltcube_292204801_292464001_4FGL_J1257.8+3228_daily_bin204.fits
.....................!
real 192.37
user 186.28
sys 5.59

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/42539/ft1_filtered_4FGL_J1257.8+3228_daily_bin204.fits scfile=/scratch/kocevski/42539/ft2_4FGL_J1257.8+3228_daily_bin204.fits outfile=/scratch/kocevski/42539/cmap_292204801_292464001_4FGL_J1257.8+3228_daily_bin204.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.64
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42539/ft1_filtered_4FGL_J1257.8+3228_daily_bin204.fits scfile=/scratch/kocevski/42539/ft2_4FGL_J1257.8+3228_daily_bin204.fits outfile=/scratch/kocevski/42539/cmap_HighResolution_292204801_292464001_4FGL_J1257.8+3228_daily_bin204.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.5963       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4797       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7258       1.0000         .10000E-03   10000.    
    13 'norm      '    12.086       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.332       1.0000         .10000E-03   10000.    
    16 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0933       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4674       1.0000         .10000E-03   10000.    
    19 'norm      '    7.7744       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6097       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0482       1.0000         .10000E-03   10000.    
    22 'norm      '    43.011       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8066       1.0000         .10000E-03   10000.    
    25 'norm      '    .10507E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    96.612       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.023       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.845       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .17176E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3390       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .41951       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=   4145.394     FROM MIGRAD    STATUS=CONVERGED    857 CALLS     4378 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.591       -.42756E-06** at limit **
   2  norm          9.5967        4.2669        .19706E-07    .16252E-04
   3  Prefactor     .10000E-03    6.0970       -.10372E-06** at limit **
   4  Prefactor     .10000E-03    1.0705       -.82164E-08** at limit **
   5  Prefactor     5.4798        3.4345       -.26075E-07   -.22978E-04
   6  Prefactor     .10000E-03    21.233       -.89340E-06** at limit **
   7  norm          1.7007        8.1862        .29691E-06   -.11606E-03
   8  Prefactor     1.2580        47.607        .32573E-06   -.32474E-04
   9  Prefactor     36.168        25.633       -.15793E-06    .24445E-04
  10  Prefactor     .10000E-03    61.083       -.54284E-07** at limit **
  11  Prefactor     .10000E-03    14.755       -.22661E-06** at limit **
  12  Prefactor     5.7264        5.8306       -.46618E-06    .72950E-04
  13  norm          12.087        8.4131        .39164E-07    .91972E-04
  14  Prefactor     .10000E-03    15.787        .33987E-07** at limit **
  15  Prefactor     15.328        44.534        .13759E-05    .26227E-04
  16  norm          .10000E-03    4.3951        .56473E-07** at limit **
  17  Prefactor     2.0943        17.013        .80204E-05   -.16542E-03
  18  norm          2.4676        4.2943       -.31865E-06    .15101E-04
  19  norm          7.7743        7.8203       -.15319E-07    .26914E-05
  20  norm          1.6137        14.867       -.25802E-05   -.35778E-03
  21  norm          2.0473        17.191        .27247E-05    .11638E-03
  22  norm          43.034        35.404       -.21768E-06    .23987E-04
  23  Prefactor     .10000E-03    2.0595        .26528E-06** at limit **
  24  Prefactor     3.7916        19.206        .26933E-05    .69209E-04
  25  norm          .10000E-03    31.941        .23777E-06** at limit **
  26  Prefactor     96.650        86.434       -.28607E-05    .75537E-04
  27  Prefactor     15.026        18.572        .63998E-07   -.11076E-04
  28  Prefactor     17.850        29.558        .17140E-06   -.75662E-05
  29  Prefactor     .10000E-03    199.79        .43755E-06** at limit **
  30  Prefactor     .10000E-03    2.8357       -.15795E-07** at limit **
  31  Normalizat    1.3389        .21410       -.82622E-06   -.22230E-04
  32  Prefactor     .41950        .24031        .10592E-05    .32373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.59672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.4798
  Prefactor  = 0.000100001
  norm       = 1.70068
  Prefactor  = 1.25796
  Prefactor  = 36.1682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.72645
  norm       = 12.0868
  Prefactor  = 0.0001
  Prefactor  = 15.3275
  norm       = 0.0001
  Prefactor  = 2.09425
  norm       = 2.46759
  norm       = 7.77434
  norm       = 1.61367
  norm       = 2.04733
  norm       = 43.0344
  Prefactor  = 0.0001
  Prefactor  = 3.7916
  norm       = 0.0001
  Prefactor  = 96.6497
  Prefactor  = 15.026
  Prefactor  = 17.8497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33895
  Prefactor  = 0.419502
 **********
 **   18 **HESSE 
 **********

 FCN=   4145.394     FROM HESSE     STATUS=OK           659 CALLS     5037 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.5967        4.2641        .84454E-04   -1.5088    
   3  Prefactor     .10000E-03    6.1468        .15524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0724        .64993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4798        3.3844        .84873E-04   -1.5240    
   6  Prefactor     .10000E-03    21.464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7007        7.8891        .32286E-03   -1.5447    
   8  Prefactor     1.2580        46.388        .39833E-03   -1.5484    
   9  Prefactor     36.168        25.613        .66635E-04   -1.4504    
  10  Prefactor     .10000E-03    61.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7264        5.8235        .14841E-03   -1.5229    
  13  norm          12.087        8.3826        .11523E-03   -1.5013    
  14  Prefactor     .10000E-03    15.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.328        42.972        .10229E-03   -1.4925    
  16  norm          .10000E-03    4.4477        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0943        16.223        .14265E-02   -1.5419    
  18  norm          2.4676        4.2687        .16739E-03   -1.5394    
  19  norm          7.7743        7.8242        .14381E-03   -1.5150    
  20  norm          1.6137        10.294        .21972E-03   -1.5454    
  21  norm          2.0473        12.385        .26871E-03   -1.5422    
  22  norm          43.034        35.314        .61128E-04   -1.4395    
  23  Prefactor     .10000E-03    2.0685        .89835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.7916        18.838        .20688E-03   -1.5319    
  25  norm          .10000E-03    32.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     96.650        85.768        .20447E-03   -1.3739    
  27  Prefactor     15.026        18.560        .10333E-03   -1.4933    
  28  Prefactor     17.850        29.551        .94811E-04   -1.4863    
  29  Prefactor     .10000E-03    201.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.8838        .10587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3389        .23580        .20802E-03   -.82411    
  32  Prefactor     .41950        .25941        .40057E-03   -1.1582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40052e-09
Minuit parameter uncertainties:
  1  4.58878e-05
  2  4.26426
  3  1.25941e-05
  4  2.96934e-07
  5  3.38451
  6  0.000315248
  7  7.32717
  8  15.2902
  9  25.6208
  10  9.80587e-06
  11  2.9688e-05
  12  5.82407
  13  8.3834
  14  6.81696e-06
  15  43.0587
  16  6.43345e-06
  17  11.6618
  18  4.26924
  19  7.82523
  20  8.15312
  21  10.0737
  22  35.3308
  23  1.88424e-05
  24  16.9112
  25  3.22075e-05
  26  85.8778
  27  18.567
  28  29.5754
  29  0.000385122
  30  1.22993e-06
  31  0.235994
  32  0.260142
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.209e+01  8.383e+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:  4.195e-01  2.601e-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:  1.339e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 7.08e-08 +/- 4.91e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 1.95e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4145.39214821
delta logL = 0.00167489975047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4145.39192432
delta logL = 0.00189878477795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.957       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2517       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42106       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=   4145.392     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.957        7.4438        .11585E-03   -.13503E-02
   2  alpha         2.2517        .53167        .11207E-01   -.15899E-03
   3  Normalizat    1.3369        .22621        .20814E-03    .88079E-04
   4  Prefactor     .42097        .25341        .39990E-03    .62429E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9574
  alpha      = 2.25168
  Normalizat = 1.33689
  Prefactor  = 0.420971
 **********
 **   18 **HESSE 
 **********

 FCN=   4145.392     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.957        7.3703        .23170E-04   -1.5016    
   2  alpha         2.2517        .52624        .44829E-03   -.99493E-01
   3  Normalizat    1.3369        .22622        .41629E-04   -.82472    
   4  Prefactor     .42097        .25341        .15996E-04   -1.1575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46453e-09
Minuit parameter uncertainties:
  1  7.37084
  2  0.530249
  3  0.226385
  4  0.254086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42539': 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) = 4145.39192425
delta logL = 0.00189885947384

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.196e+01  7.371e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.252e+00  5.302e-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:  4.210e-01  2.541e-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:  1.337e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.29
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.25 +/- 0.53
Photon Flux (Free Index): 7.27e-08 +/- 5.24e-08
Energy Flux (Free Index): 2.77e-05 +/- 1.73e-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/42539/cmap_HighResolution_292204801_292464001_4FGL_J1257.8+3228_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.08e-08', energy_flux2='2.77e-05', photon_flux_error='4.91e-08', dlogl='1.90e-03', energy_flux='2.81e-05', photon_flux2='7.27e-08', job_status='DONE', time_completed='2021-09-06 12:08:31.802874', photon_index_error2='0.53', photon_index2='2.25', ts='6.26', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.34', time_epoch_completed='1630955311.8', return_code='0', job_id='42539', GAL2='0.42', EG2='1.34', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='5.24e-08', ts2='6.29', photon_index='2.22' WHERE bin_id='204' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:08:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 42539: <4FGL_J1257.8+3228_daily_bin204> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin204> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:55:57 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:55:58 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:55:58 2021
Terminated at Mon Sep  6 12:08:32 2021
Results reported at Mon Sep  6 12:08:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin204 194.473 32.4721 292204801 292464001 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 :                                   668.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            755 sec.

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

