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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1589
RA = 194.473, Dec = 32.4721
tmin = 651196801, tmax = 651456001
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='51030', job_status='RUN', time_executed='2021-09-06 12:23:32.331858', time_epoch_executed='1630956212.33' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51030/ft1_4FGL_J1257.8+3228_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51030/ft2_4FGL_J1257.8+3228_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51030/ft1_4FGL_J1257.8+3228_daily_bin1589.fits outfile=/scratch/kocevski/51030/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1589.fits ra=194.473 dec=32.4721 rad=12.0 tmin=651196801.0 tmax=651456001.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.52
user 3.31
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51030/ft1_filtered_4FGL_J1257.8+3228_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/51030/ft2_4FGL_J1257.8+3228_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/51030/ltcube_651196801_651456001_4FGL_J1257.8+3228_daily_bin1589.fits outfile=/scratch/kocevski/51030/expmap_651196801_651456001_4FGL_J1257.8+3228_daily_bin1589.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/51030/ltcube_651196801_651456001_4FGL_J1257.8+3228_daily_bin1589.fits
.....................!
real 191.55
user 186.08
sys 5.12

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/51030/ft1_filtered_4FGL_J1257.8+3228_daily_bin1589.fits scfile=/scratch/kocevski/51030/ft2_4FGL_J1257.8+3228_daily_bin1589.fits outfile=/scratch/kocevski/51030/cmap_651196801_651456001_4FGL_J1257.8+3228_daily_bin1589.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.69
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51030/ft1_filtered_4FGL_J1257.8+3228_daily_bin1589.fits scfile=/scratch/kocevski/51030/ft2_4FGL_J1257.8+3228_daily_bin1589.fits outfile=/scratch/kocevski/51030/cmap_HighResolution_651196801_651456001_4FGL_J1257.8+3228_daily_bin1589.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.71
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14155E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.7793       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47151E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79329       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3517       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .72836       1.0000         .10000E-03   10000.    
     7 'norm      '    11.631       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12456E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2562       1.0000         .10000E-03   10000.    
    13 'norm      '    23.374       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9206       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9117       1.0000         .10000E-03   10000.    
    19 'norm      '    21.595       1.0000         .10000E-03   10000.    
    20 'norm      '    3.1223       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2219       1.0000         .10000E-03   10000.    
    22 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .43192E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.2072       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .49695E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .56217E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.625       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12035E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3064       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .91059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6556.719     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     3111 TOTAL
                     EDM=   .82E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.86       -.11172E-05** at limit **
   2  norm          6.7833        3.7251       -.14360E-06   -.20297E-05
   3  Prefactor     .10000E-03    38.711        .22621E-06** at limit **
   4  Prefactor     .78949        1.8372       -.10053E-06    .19736E-05
   5  Prefactor     5.3525        2.7045       -.18077E-07   -.56716E-05
   6  Prefactor     .72672        7.8098       -.54153E-08   -.10207E-05
   7  norm          11.633        5.0731       -.10467E-06   -.43191E-05
   8  Prefactor     .10000E-03    4.8931       -.58366E-07** at limit **
   9  Prefactor     .10000E-03    12.678       -.35802E-06** at limit **
  10  Prefactor     .10000E-03    52.701       -.39988E-06** at limit **
  11  Prefactor     .10000E-03    3.5237       -.11225E-06** at limit **
  12  Prefactor     6.2543        5.6503       -.20923E-06   -.88626E-05
  13  norm          23.374        7.2941        .18189E-07   -.12083E-03
  14  Prefactor     .10000E-03    16.023       -.28875E-06** at limit **
  15  Prefactor     .10000E-03    15.112        .41169E-06** at limit **
  16  norm          1.9207        2.8141       -.79337E-07   -.13367E-05
  17  Prefactor     .10000E-03    4.6826        .18102E-06** at limit **
  18  norm          4.9112        4.8813       -.13847E-06   -.90938E-05
  19  norm          21.598        1.5473       -.22620E-07    .19416E-05
  20  norm          3.1199        2.9313        .20934E-06    .59932E-04
  21  norm          5.2222        2.3462        .55382E-07   -.14637E-03
  22  norm          .10000E-03    8.1633        .16612E-08** at limit **
  23  Prefactor     .10000E-03    1.3563        .29262E-07** at limit **
  24  Prefactor     .10000E-03    51.399        .13431E-05** at limit **
  25  norm          5.2062        1.2915        .65459E-08   -.14693E-03
  26  Prefactor     .10002E-03    1785.7        .60260E-05** at limit **
  27  Prefactor     .10003E-03    200.09       -.11229E-05** at limit **
  28  Prefactor     14.644        3.9322        .10097E-06   -.13367E-02
  29  Prefactor     .10000E-03    61.665        .25910E-06** at limit **
  30  Prefactor     .10000E-03    2.8062       -.12406E-06** at limit **
  31  Normalizat    1.3064        .21343        .22498E-05   -.18762E-04
  32  Prefactor     .91064        .25459       -.61529E-06   -.10494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 6.78331
  Prefactor  = 0.0001
  Prefactor  = 0.789495
  Prefactor  = 5.35245
  Prefactor  = 0.726716
  norm       = 11.6328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.25427
  norm       = 23.3742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92068
  Prefactor  = 0.0001
  norm       = 4.91122
  norm       = 21.5979
  norm       = 3.11991
  norm       = 5.22224
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.20616
  Prefactor  = 0.000100016
  Prefactor  = 0.000100026
  Prefactor  = 14.644
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.30636
  Prefactor  = 0.910636
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.719     FROM HESSE     STATUS=OK           747 CALLS     3858 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.03        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.7833        3.9766        .38526E-02   -1.5187    
   3  Prefactor     .10000E-03    6.7843        .73295E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .78949        2.2625        .36746E-01   -1.5530    
   5  Prefactor     5.3525        2.7270        .43431E-02   -1.5245    
   6  Prefactor     .72672        7.7157        .12170E-01   -1.5537    
   7  norm          11.633        5.1384        .29367E-02   -1.5026    
   8  Prefactor     .10000E-03    4.8743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.691        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5063        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2543        5.6627        .40122E-02   -1.5208    
  13  norm          23.374        7.5261        .20713E-02   -1.4741    
  14  Prefactor     .10000E-03    16.026        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.098        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9207        2.8367        .74958E-02   -1.5431    
  17  Prefactor     .10000E-03    4.6795        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.9112        4.9010        .45371E-02   -1.5265    
  19  norm          21.598        13.656        .21548E-02   -1.4778    
  20  norm          3.1199        6.8485        .57363E-02   -1.5355    
  21  norm          5.2222        10.099        .43977E-02   -1.5251    
  22  norm          .10000E-03    8.1558        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3487        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.1869        .10614       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.2062        8.3715        .44040E-02   -1.5252    
  26  Prefactor     .10002E-03    84.584        .15366       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10003E-03    10.277        .13627       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.644        27.886        .26183E-02   -1.4942    
  29  Prefactor     .10000E-03    61.686        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.7765        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3064        .18538        .54143E-01   -.83377    
  32  Prefactor     .91064        .21586        .75617E-01   -.95770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56305e-08
Minuit parameter uncertainties:
  1  0.000787826
  2  3.9768
  3  1.16472e-05
  4  2.26273
  5  2.7271
  6  4.73632
  7  5.13863
  8  3.54454e-08
  9  5.7525e-07
  10  0.000238103
  11  1.02688e-07
  12  5.66316
  13  7.52641
  14  6.7856e-07
  15  3.63277e-07
  16  2.83694
  17  2.49294e-07
  18  4.90143
  19  13.6578
  20  6.85022
  21  10.1019
  22  2.12423e-07
  23  4.14623e-08
  24  5.64359e-05
  25  8.37342
  26  0.00231966
  27  0.00102494
  28  27.9111
  29  0.000423632
  30  8.39493e-08
  31  0.18547
  32  0.216066
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.337e+01  7.526e+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.106e-01  2.161e-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.306e+00  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.54
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.37e-07 +/- 4.41e-08
Energy Flux (Fixed Index): 5.43e-05 +/- 1.75e-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) = 6556.5200786
delta logL = 0.198859185318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6556.51859509
delta logL = 0.200342699556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.047       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4265       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93123       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=   6556.519     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      273 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.026        92.749        .21827E-02    .74114E-04
   2  alpha         2.4252        3.7026        .18588        .62366E-04
   3  Normalizat    1.2812        .17829        .54551E-01    .53132E-04
   4  Prefactor     .93102        .17990        .74881E-01    .32603E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.0257
  alpha      = 2.42522
  Normalizat = 1.28116
  Prefactor  = 0.931017
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.519     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.026        8.0018        .87307E-04   -1.4791    
   2  alpha         2.4252        .33624        .78371E-02   -.29915E-01
   3  Normalizat    1.2812        .21555        .24120E-03   -.84131    
   4  Prefactor     .93102        .25400        .33135E-03   -.95066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39187e-12
Minuit parameter uncertainties:
  1  8.00224
  2  0.337263
  3  0.215697
  4  0.254323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51030': 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) = 6556.51856999
delta logL = 0.20036780229

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.103e+01  8.002e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.425e+00  3.373e-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.310e-01  2.543e-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.281e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.90
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.43 +/- 0.34
Photon Flux (Free Index): 1.57e-07 +/- 5.67e-08
Energy Flux (Free Index): 4.98e-05 +/- 1.65e-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/51030/cmap_HighResolution_651196801_651456001_4FGL_J1257.8+3228_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-07', energy_flux2='4.98e-05', photon_flux_error='4.41e-08', dlogl='2.00e-01', energy_flux='5.43e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-06 12:35:44.844696', photon_index_error2='0.34', photon_index2='2.43', ts='26.54', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='1.31', time_epoch_completed='1630956944.84', return_code='0', job_id='51030', GAL2='0.93', EG2='1.28', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='5.67e-08', ts2='26.90', photon_index='2.22' WHERE bin_id='1589' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:35:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 51030: <4FGL_J1257.8+3228_daily_bin1589> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1589> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 12:20:34 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:20:35 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:20:35 2021
Terminated at Mon Sep  6 12:35:45 2021
Results reported at Mon Sep  6 12:35:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1589 194.473 32.4721 651196801 651456001 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 :                                   720.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            911 sec.

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

