/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 91 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin18
RA = 194.473, Dec = 32.4721
tmin = 243993601, tmax = 244252801
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='41004', job_status='RUN', time_executed='2021-09-06 11:54:03.792631', time_epoch_executed='1630954443.79' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41004/ft1_4FGL_J1257.8+3228_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41004/ft2_4FGL_J1257.8+3228_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41004/ft1_4FGL_J1257.8+3228_daily_bin18.fits outfile=/scratch/kocevski/41004/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin18.fits ra=194.473 dec=32.4721 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.40
user 1.20
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/41004/ft2_4FGL_J1257.8+3228_daily_bin18.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/41004/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/41004/ft1_filtered_4FGL_J1257.8+3228_daily_bin18.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.52
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41004/ft1_filtered_4FGL_J1257.8+3228_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/41004/ft2_4FGL_J1257.8+3228_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/41004/ltcube_243993601_244252801_4FGL_J1257.8+3228_daily_bin18.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/41004/ft2_4FGL_J1257.8+3228_daily_bin18.fits
.....................!
real 13.08
user 12.57
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41004/ft1_filtered_4FGL_J1257.8+3228_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/41004/ft2_4FGL_J1257.8+3228_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/41004/ltcube_243993601_244252801_4FGL_J1257.8+3228_daily_bin18.fits outfile=/scratch/kocevski/41004/expmap_243993601_244252801_4FGL_J1257.8+3228_daily_bin18.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/41004/ltcube_243993601_244252801_4FGL_J1257.8+3228_daily_bin18.fits
.....................!
real 196.22
user 187.70
sys 6.57

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/41004/ft1_filtered_4FGL_J1257.8+3228_daily_bin18.fits scfile=/scratch/kocevski/41004/ft2_4FGL_J1257.8+3228_daily_bin18.fits outfile=/scratch/kocevski/41004/cmap_243993601_244252801_4FGL_J1257.8+3228_daily_bin18.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.65
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41004/ft1_filtered_4FGL_J1257.8+3228_daily_bin18.fits scfile=/scratch/kocevski/41004/ft2_4FGL_J1257.8+3228_daily_bin18.fits outfile=/scratch/kocevski/41004/cmap_HighResolution_243993601_244252801_4FGL_J1257.8+3228_daily_bin18.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.65
user 0.38
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.879       1.0000         .10000E-03   10000.    
     2 'norm      '    13.808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.169       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0543       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9009       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23226E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8965       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.8775       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3557       1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    19.223       1.0000         .10000E-03   10000.    
    20 'norm      '    14.910       1.0000         .10000E-03   10000.    
    21 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6947       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.9932       1.0000         .10000E-03   10000.    
    25 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    70.542       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.005       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0899       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73230       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=   5343.264     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     4318 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.876        26.769       -.21645E-05   -.44469E-05
   2  norm          13.807        4.3304        .11877E-06   -.10435E-04
   3  Prefactor     11.168        9.2787       -.20244E-06   -.43093E-04
   4  Prefactor     2.0542        1.9364       -.38296E-07    .83564E-04
   5  Prefactor     4.9006        2.5068       -.10916E-06   -.15665E-03
   6  Prefactor     .10000E-03    6.7237        .22284E-05** at limit **
   7  norm          .10000E-03    1.7635       -.39914E-07** at limit **
   8  Prefactor     .10000E-03    2.7082        .20859E-07** at limit **
   9  Prefactor     .10000E-03    13.885       -.11131E-05** at limit **
  10  Prefactor     .10000E-03    29.906        .82028E-06** at limit **
  11  Prefactor     .10001E-03    5.1293       -.11613E-05** at limit **
  12  Prefactor     .10000E-03    4.0278       -.41947E-07** at limit **
  13  norm          2.8961        3.8245        .28537E-07   -.26880E-03
  14  Prefactor     .10000E-03    64.391        .10637E-05** at limit **
  15  Prefactor     .10000E-03    10.713        .20701E-05** at limit **
  16  norm          6.8789        4.3353       -.15715E-06    .50015E-04
  17  Prefactor     6.3485        15.034        .38192E-06   -.51255E-04
  18  norm          .10000E-03    2.0927        .72922E-08** at limit **
  19  norm          19.220        18.372       -.41856E-06   -.13335E-03
  20  norm          14.909        5.1635       -.20875E-06    .14211E-03
  21  norm          .10000E-03    6.5280       -.15374E-05** at limit **
  22  norm          .10000E-03    9.0317       -.16775E-05** at limit **
  23  Prefactor     5.6918        4.7784        .85848E-07   -.24064E-03
  24  Prefactor     2.9996        31.111        .43071E-05   -.25899E-04
  25  norm          .10000E-03    12.716        .30838E-05** at limit **
  26  Prefactor     70.523        78.452       -.21062E-04   -.92822E-05
  27  Prefactor     .10000E-03    5.1987        .72118E-07** at limit **
  28  Prefactor     .10000E-03    9.6060       -.12472E-05** at limit **
  29  Prefactor     .10000E-03    64.796       -.14057E-05** at limit **
  30  Prefactor     13.004        5.6492        .14553E-07    .34900E-04
  31  Normalizat    1.0900        .18709        .12226E-05   -.14558E-04
  32  Prefactor     .73227        .22176        .45772E-06    .30113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8761
  norm       = 13.8074
  Prefactor  = 11.168
  Prefactor  = 2.05415
  Prefactor  = 4.90064
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 2.89611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.87892
  Prefactor  = 6.34851
  norm       = 0.0001
  norm       = 19.2196
  norm       = 14.9088
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.69177
  Prefactor  = 2.99956
  norm       = 0.0001
  Prefactor  = 70.5228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0044
  Normalizat = 1.09003
  Prefactor  = 0.732274
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.264     FROM HESSE     STATUS=OK           657 CALLS     4975 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.876        26.766        .89833E-04   -1.4816    
   2  norm          13.807        4.3236        .78229E-04   -1.4965    
   3  Prefactor     11.168        9.2763        .11987E-03   -1.5039    
   4  Prefactor     2.0542        1.9410        .92495E-04   -1.5421    
   5  Prefactor     4.9006        2.5056        .78314E-04   -1.5265    
   6  Prefactor     .10000E-03    6.9699        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7792        .94780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7103        .11747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    14.099        .31752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0419        .14298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8961        3.8093        .15785E-03   -1.5368    
  14  Prefactor     .10000E-03    64.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.8789        4.3248        .11585E-03   -1.5183    
  17  Prefactor     6.3485        14.982        .15921E-03   -1.5204    
  18  norm          .10000E-03    2.0980        .10312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.220        18.387        .45676E-03   -1.4831    
  20  norm          14.909        5.1200        .89136E-04   -1.4936    
  21  norm          .10000E-03    6.5411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.0396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.6918        4.6897        .11824E-03   -1.5231    
  24  Prefactor     2.9996        29.367        .23464E-03   -1.5362    
  25  norm          .10000E-03    12.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     70.523        78.106        .47795E-04   -1.4026    
  27  Prefactor     .10000E-03    5.2042        .16277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.6218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    64.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     13.004        5.6505        .11107E-03   -1.4987    
  31  Normalizat    1.0900        .21774        .22671E-03   -.90073    
  32  Prefactor     .73227        .25627        .32817E-03   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36588e-10
Minuit parameter uncertainties:
  1  26.7818
  2  4.32374
  3  9.27753
  4  1.94109
  5  2.5057
  6  4.6065e-05
  7  3.50241e-06
  8  1.29757e-06
  9  1.03216e-05
  10  1.15471e-05
  11  0.000562112
  12  7.12292e-06
  13  3.80966
  14  2.17085e-05
  15  2.3289e-06
  16  4.32503
  17  14.9912
  18  8.72592e-07
  19  18.3927
  20  5.12013
  21  1.69593e-05
  22  5.65218e-06
  23  4.69002
  24  18.7829
  25  5.98433e-05
  26  78.2194
  27  8.59056e-07
  28  6.04445e-06
  29  5.33746e-05
  30  5.65076
  31  0.21792
  32  0.256689
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.896e+00  3.810e+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:  7.323e-01  2.567e-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.090e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/41004/likelihoodResults_243993601_244252801_4FGL_J1257.8+3228_daily_bin18.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5343.26027699
delta logL = 0.0041444261833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5343.26003528
delta logL = 0.00438613757615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8338       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3270       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73423       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=   5343.260     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      232 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8335        3.8623        .15422E-03    .12271E-02
   2  alpha         2.3268        1.1372        .25839E-01    .77940E-04
   3  Normalizat    1.0876        .21241        .22693E-03   -.14675E-03
   4  Prefactor     .73405        .25580        .32781E-03   -.13796E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.8335
  alpha      = 2.32676
  Normalizat = 1.08762
  Prefactor  = 0.734053
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.260     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8335        3.7932        .61690E-05   -1.5371    
   2  alpha         2.3268        1.1179        .10336E-02   -.69352E-01
   3  Normalizat    1.0876        .21243        .45385E-04   -.90150    
   4  Prefactor     .73405        .25589        .13112E-04   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60586e-09
Minuit parameter uncertainties:
  1  3.79356
  2  1.15915
  3  0.212599
  4  0.256299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41004': 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) = 5343.26003493
delta logL = 0.00438648874479

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.834e+00  3.794e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.327e+00  1.159e+00  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:  7.341e-01  2.563e-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.088e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.95
Ra Dec: 194.473 32.472

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/41004/cmap_HighResolution_243993601_244252801_4FGL_J1257.8+3228_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-09-06 12:08:02.245091', job_id='41004', GAL2='0.73', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630955282.25', return_code2='0', ts='0.95', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.39e-03', ts2='0.96', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='18' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:08:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 41004: <4FGL_J1257.8+3228_daily_bin18> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin18> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 11:51:41 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:51:42 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:51:42 2021
Terminated at Mon Sep  6 12:08:03 2021
Results reported at Mon Sep  6 12:08:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin18 194.473 32.4721 243993601 244252801 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 :                                   829.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

