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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1406
RA = 194.473, Dec = 32.4721
tmin = 603763201, tmax = 604022401
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='49666', job_status='RUN', time_executed='2021-09-06 12:17:50.403436', time_epoch_executed='1630955870.4' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49666

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49666/ft1_4FGL_J1257.8+3228_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49666/ft2_4FGL_J1257.8+3228_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49666/ft1_4FGL_J1257.8+3228_daily_bin1406.fits outfile=/scratch/kocevski/49666/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1406.fits ra=194.473 dec=32.4721 rad=12.0 tmin=603763201.0 tmax=604022401.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 4.22
user 3.94
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49666/ft2_4FGL_J1257.8+3228_daily_bin1406.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/49666/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1406.fits evtable="EVENTS" outfile="/scratch/kocevski/49666/ft1_filtered_4FGL_J1257.8+3228_daily_bin1406.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/49666/ft1_filtered_4FGL_J1257.8+3228_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/49666/ft2_4FGL_J1257.8+3228_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/49666/ltcube_603763201_604022401_4FGL_J1257.8+3228_daily_bin1406.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/49666/ft2_4FGL_J1257.8+3228_daily_bin1406.fits
.....................!
real 12.52
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49666/ft1_filtered_4FGL_J1257.8+3228_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/49666/ft2_4FGL_J1257.8+3228_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/49666/ltcube_603763201_604022401_4FGL_J1257.8+3228_daily_bin1406.fits outfile=/scratch/kocevski/49666/expmap_603763201_604022401_4FGL_J1257.8+3228_daily_bin1406.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/49666/ltcube_603763201_604022401_4FGL_J1257.8+3228_daily_bin1406.fits
.....................!
real 192.11
user 187.07
sys 4.49

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/49666/ft1_filtered_4FGL_J1257.8+3228_daily_bin1406.fits scfile=/scratch/kocevski/49666/ft2_4FGL_J1257.8+3228_daily_bin1406.fits outfile=/scratch/kocevski/49666/cmap_603763201_604022401_4FGL_J1257.8+3228_daily_bin1406.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49666/ft1_filtered_4FGL_J1257.8+3228_daily_bin1406.fits scfile=/scratch/kocevski/49666/ft2_4FGL_J1257.8+3228_daily_bin1406.fits outfile=/scratch/kocevski/49666/cmap_HighResolution_603763201_604022401_4FGL_J1257.8+3228_daily_bin1406.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/49666/ft1_filtered_4FGL_J1257.8+3228_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/49666/ft2_4FGL_J1257.8+3228_daily_bin1406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49666/Model_4FGL_J1257.8+3228_daily_bin1406.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/49666/ft1_filtered_4FGL_J1257.8+3228_daily_bin1406.fits.....................!
real 42.19
user 40.76
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.3890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0896       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.235       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.928       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7823       1.0000         .10000E-03   10000.    
    13 'norm      '    7.4117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    136.08       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .68736       1.0000         .10000E-03   10000.    
    17 'Prefactor '    100.93       1.0000         .10000E-03   10000.    
    18 'norm      '    .30557E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    40.343       1.0000         .10000E-03   10000.    
    21 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.3817       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .97594       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.797       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.980       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.9774       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .62853       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92668       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=   4631.996     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     4353 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5377       -.74330E-07** at limit **
   2  norm          7.3891        3.8411        .78754E-07    .20253E-03
   3  Prefactor     3.0905        7.1462        .48147E-06   -.63624E-04
   4  Prefactor     .10000E-03    1.2933        .23150E-07** at limit **
   5  Prefactor     2.7669        3.1417        .10355E-06   -.10366E-03
   6  Prefactor     .10000E-03    2.9587       -.36253E-07** at limit **
   7  norm          13.236        6.8829       -.17566E-08   -.73749E-04
   8  Prefactor     .10000E-03    4.4239        .63619E-08** at limit **
   9  Prefactor     13.122        14.317        .35906E-07   -.84166E-05
  10  Prefactor     52.925        69.567       -.45630E-06   -.48127E-04
  11  Prefactor     .10000E-03    4.8562       -.59113E-07** at limit **
  12  Prefactor     5.7818        8.6534        .37979E-06   -.77492E-04
  13  norm          7.4113        5.2554        .81435E-07   -.61086E-04
  14  Prefactor     136.08        78.044        .60257E-06    .43896E-04
  15  Prefactor     .10000E-03    10.697        .48899E-06** at limit **
  16  norm          .68714        5.5082        .19821E-05   -.22344E-03
  17  Prefactor     100.90        33.460       -.63416E-06   -.47965E-03
  18  norm          .10001E-03    11.440       -.16723E-05** at limit **
  19  norm          .10000E-03    5.6011        .10493E-07** at limit **
  20  norm          40.349        8.6684        .82615E-08   -.47359E-03
  21  norm          .10000E-03    15.706        .16318E-05** at limit **
  22  norm          9.3767        28.999       -.10180E-05   -.62542E-04
  23  Prefactor     .96541        6.9199        .28255E-05   -.21961E-03
  24  Prefactor     .10000E-03    14.754       -.12249E-05** at limit **
  25  norm          11.798        10.690        .11591E-06   -.72593E-04
  26  Prefactor     .10000E-03    116.79       -.20149E-06** at limit **
  27  Prefactor     14.983        18.214        .41312E-07   -.47500E-04
  28  Prefactor     .10000E-03    10.931       -.34860E-06** at limit **
  29  Prefactor     .10000E-03    25.296       -.14709E-06** at limit **
  30  Prefactor     1.9780        3.5034        .28927E-06   -.90177E-04
  31  Normalizat    .62838        .19404       -.10701E-05   -.19595E-03
  32  Prefactor     .92685        .22083       -.10490E-06   -.15607E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.38915
  Prefactor  = 3.09048
  Prefactor  = 0.0001
  Prefactor  = 2.76693
  Prefactor  = 0.0001
  norm       = 13.2359
  Prefactor  = 0.0001
  Prefactor  = 13.1223
  Prefactor  = 52.9247
  Prefactor  = 0.0001
  Prefactor  = 5.78179
  norm       = 7.41129
  Prefactor  = 136.078
  Prefactor  = 0.0001
  norm       = 0.687141
  Prefactor  = 100.897
  norm       = 0.000100012
  norm       = 0.0001
  norm       = 40.3491
  norm       = 0.000100001
  norm       = 9.37672
  Prefactor  = 0.965411
  Prefactor  = 0.000100002
  norm       = 11.7981
  Prefactor  = 0.000100001
  Prefactor  = 14.9831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97797
  Normalizat = 0.628376
  Prefactor  = 0.926849
 **********
 **   18 **HESSE 
 **********

 FCN=   4631.996     FROM HESSE     STATUS=OK           659 CALLS     5012 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3891        3.8397        .90097E-04   -1.5164    
   3  Prefactor     3.0905        7.1619        .23073E-03   -1.5356    
   4  Prefactor     .10000E-03    1.2990        .75414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7669        3.1312        .11757E-03   -1.5375    
   6  Prefactor     .10000E-03    2.9623        .11431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.236        6.8752        .11010E-03   -1.4980    
   8  Prefactor     .10000E-03    4.4277        .13978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.122        14.314        .11058E-03   -1.4983    
  10  Prefactor     52.925        69.759        .55130E-04   -1.4252    
  11  Prefactor     .10000E-03    4.8822        .14644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7818        8.6342        .16702E-03   -1.5227    
  13  norm          7.4113        5.2527        .12449E-03   -1.5163    
  14  Prefactor     136.08        78.229        .17263E-03   -1.3370    
  15  Prefactor     .10000E-03    10.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .68714        6.0010        .31038E-03   -1.5542    
  17  Prefactor     100.90        33.133        .40018E-04   -1.3696    
  18  norm          .10001E-03    75.877        .36047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.6043        .15731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          40.349        8.3345        .63109E-04   -1.4437    
  21  norm          .10000E-03    16.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.3767        28.914        .13084E-03   -1.5095    
  23  Prefactor     .96541        7.4872        .24337E-02   -1.5511    
  24  Prefactor     .10000E-03    15.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.798        10.657        .11663E-03   -1.5021    
  26  Prefactor     .10000E-03    117.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.983        18.198        .10348E-03   -1.4934    
  28  Prefactor     .10000E-03    10.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    25.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.9780        3.4887        .16349E-03   -1.5427    
  31  Normalizat    .62838        .22279        .27675E-03   -1.0679    
  32  Prefactor     .92685        .25413        .27705E-03   -.95209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6493e-10
Minuit parameter uncertainties:
  1  1.40219e-05
  2  3.83983
  3  7.16389
  4  2.97781e-07
  5  3.1314
  6  3.14446e-06
  7  6.87558
  8  1.37273e-06
  9  14.3182
  10  69.8669
  11  4.07819e-06
  12  8.63602
  13  5.25306
  14  78.2888
  15  9.21918e-05
  16  4.06154
  17  33.1395
  18  0.00187847
  19  4.0359e-07
  20  8.3347
  21  0.000256384
  22  28.9575
  23  5.37773
  24  0.000384254
  25  10.6591
  26  0.000549602
  27  18.2049
  28  7.47159e-05
  29  5.04219e-05
  30  3.48907
  31  0.223109
  32  0.254453
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  7.411e+00  5.253e+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:  9.268e-01  2.545e-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:  6.284e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.34e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.22e-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) = 4631.97409543
delta logL = 0.0216246850086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4631.97216008
delta logL = 0.0235600376136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7262       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0858       1.0000          .0000       5.0000    
     3 'Normalizat'    .63238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92357       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=   4631.972     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      229 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7233        196.67        .36066E-02    .96581E-04
   2  alpha         2.0855        2.8436        .36358        .30134E-04
   3  Normalizat    .63221        .16646        .62391E-01    .33051E-04
   4  Prefactor     .92395        .17695        .45305E-01   -.23343E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.72328
  alpha      = 2.08553
  Normalizat = 0.63221
  Prefactor  = 0.923945
 **********
 **   18 **HESSE 
 **********

 FCN=   4631.972     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7233        5.5220        .12858E-03   -1.5152    
   2  alpha         2.0855        .60714        .14030E-01   -.16656    
   3  Normalizat    .63221        .20871        .27604E-03   -1.0663    
   4  Prefactor     .92395        .25132        .27746E-03   -.95309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02621e-10
Minuit parameter uncertainties:
  1  5.52232
  2  0.613446
  3  0.208969
  4  0.251639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49666': 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) = 4631.9721582
delta logL = 0.023561911763

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  7.723e+00  5.522e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.086e+00  6.134e-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:  9.239e-01  2.516e-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:  6.322e-01  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.56
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.09 +/- 0.61
Photon Flux (Free Index): 3.91e-08 +/- 3.35e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.50e-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/49666/cmap_HighResolution_603763201_604022401_4FGL_J1257.8+3228_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.34e-08', energy_flux2='1.86e-05', photon_flux_error='3.08e-08', dlogl='2.36e-02', energy_flux='1.72e-05', photon_flux2='3.91e-08', job_status='DONE', time_completed='2021-09-06 12:31:03.483026', photon_index_error2='0.61', photon_index2='2.09', ts='4.51', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='0.63', time_epoch_completed='1630956663.48', return_code='0', job_id='49666', GAL2='0.92', EG2='0.63', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='3.35e-08', ts2='4.56', photon_index='2.22' WHERE bin_id='1406' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:31:03 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1406 194.473 32.4721 603763201 604022401 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 :                                   677.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

