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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1403
RA = 194.473, Dec = 32.4721
tmin = 602985601, tmax = 603244801
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='49661', job_status='RUN', time_executed='2021-09-06 12:17:02.277338', time_epoch_executed='1630955822.28' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49661/ft1_4FGL_J1257.8+3228_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49661/ft2_4FGL_J1257.8+3228_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49661/ft1_4FGL_J1257.8+3228_daily_bin1403.fits outfile=/scratch/kocevski/49661/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1403.fits ra=194.473 dec=32.4721 rad=12.0 tmin=602985601.0 tmax=603244801.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.29
user 2.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49661/ft1_filtered_4FGL_J1257.8+3228_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/49661/ft2_4FGL_J1257.8+3228_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/49661/ltcube_602985601_603244801_4FGL_J1257.8+3228_daily_bin1403.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/49661/ft2_4FGL_J1257.8+3228_daily_bin1403.fits
.....................!
real 13.29
user 12.31
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49661/ft1_filtered_4FGL_J1257.8+3228_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/49661/ft2_4FGL_J1257.8+3228_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/49661/ltcube_602985601_603244801_4FGL_J1257.8+3228_daily_bin1403.fits outfile=/scratch/kocevski/49661/expmap_602985601_603244801_4FGL_J1257.8+3228_daily_bin1403.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/49661/ltcube_602985601_603244801_4FGL_J1257.8+3228_daily_bin1403.fits
.....................!
real 192.52
user 186.91
sys 4.45

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/49661/ft1_filtered_4FGL_J1257.8+3228_daily_bin1403.fits scfile=/scratch/kocevski/49661/ft2_4FGL_J1257.8+3228_daily_bin1403.fits outfile=/scratch/kocevski/49661/cmap_602985601_603244801_4FGL_J1257.8+3228_daily_bin1403.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49661/ft1_filtered_4FGL_J1257.8+3228_daily_bin1403.fits scfile=/scratch/kocevski/49661/ft2_4FGL_J1257.8+3228_daily_bin1403.fits outfile=/scratch/kocevski/49661/cmap_HighResolution_602985601_603244801_4FGL_J1257.8+3228_daily_bin1403.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11763E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.091       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7299       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3531       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.0996       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8397       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.3458       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    46.690       1.0000         .10000E-03   10000.    
    20 'norm      '    30.250       1.0000         .10000E-03   10000.    
    21 'norm      '    .19028E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.704       1.0000         .10000E-03   10000.    
    25 'norm      '    3.7315       1.0000         .10000E-03   10000.    
    26 'Prefactor '    42.428       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11920E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    84.530       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.7200       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .68022       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3977       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=   4885.140     FROM MIGRAD    STATUS=CONVERGED    850 CALLS     4335 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    133.36       -.36083E-05** at limit **
   2  norm          .10000E-03    1.8512        .26957E-08** at limit **
   3  Prefactor     18.088        15.443        .23762E-07    .46457E-04
   4  Prefactor     3.7294        3.3326        .17151E-07   -.22752E-05
   5  Prefactor     5.3527        4.0440       -.27859E-06   -.87061E-04
   6  Prefactor     .10000E-03    4.6109        .20229E-06** at limit **
   7  norm          5.1003        6.4371        .17468E-05    .13857E-02
   8  Prefactor     .10000E-03    7.3637        .46504E-06** at limit **
   9  Prefactor     .10000E-03    9.2497       -.52143E-06** at limit **
  10  Prefactor     .10001E-03    45.018        .63803E-05** at limit **
  11  Prefactor     .10000E-03    5.7914        .67229E-06** at limit **
  12  Prefactor     2.8400        5.0731        .16017E-06    .15585E-03
  13  norm          .10000E-03    2.2247       -.16433E-07** at limit **
  14  Prefactor     .10000E-03    24.388        .35806E-05** at limit **
  15  Prefactor     .10000E-03    19.767       -.53677E-05** at limit **
  16  norm          5.3461        3.9431        .47795E-07    .34821E-04
  17  Prefactor     .10000E-03    6.0851       -.10668E-05** at limit **
  18  norm          .10000E-03    1.5864       -.13858E-07** at limit **
  19  norm          46.688        21.018       -.10774E-06   -.29852E-04
  20  norm          30.245        8.9245       -.28379E-07    .10278E-02
  21  norm          .10102E-03    14.438       -.35123E-05** at limit **
  22  norm          .10000E-03    7.0404        .20118E-06** at limit **
  23  Prefactor     .10000E-03    1.2814       -.37128E-07** at limit **
  24  Prefactor     19.703        13.392       -.28780E-07    .51240E-04
  25  norm          3.7317        5.8437        .82262E-07    .59656E-04
  26  Prefactor     42.423        48.743        .15207E-05    .72382E-04
  27  Prefactor     .10010E-03    35.044        .11343E-04** at limit **
  28  Prefactor     .10000E-03    15.985        .22569E-05** at limit **
  29  Prefactor     84.535        81.606       -.13865E-05   -.29319E-04
  30  Prefactor     4.7203        4.4488       -.20962E-06   -.15928E-03
  31  Normalizat    .68033        .21398        .62793E-06   -.92592E-05
  32  Prefactor     1.3975        .25417       -.64080E-07    .66408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 18.088
  Prefactor  = 3.72943
  Prefactor  = 5.35274
  Prefactor  = 0.0001
  norm       = 5.10026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 2.83998
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  norm       = 5.34606
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 46.6879
  norm       = 30.2454
  norm       = 0.000101024
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.703
  norm       = 3.73167
  Prefactor  = 42.4229
  Prefactor  = 0.000100103
  Prefactor  = 0.0001
  Prefactor  = 84.5354
  Prefactor  = 4.72033
  Normalizat = 0.680326
  Prefactor  = 1.39751
 **********
 **   18 **HESSE 
 **********

 FCN=   4885.140     FROM HESSE     STATUS=OK           651 CALLS     4986 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    134.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8595        .92811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.088        15.448        .94164E-04   -1.4857    
   4  Prefactor     3.7294        3.3341        .11573E-03   -1.5322    
   5  Prefactor     5.3527        4.0460        .11569E-03   -1.5245    
   6  Prefactor     .10000E-03    4.6286        .14663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1003        7.1512        .89022E-03   -1.5256    
   8  Prefactor     .10000E-03    7.3815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    45.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8230        .16423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8400        5.0581        .20387E-03   -1.5371    
  13  norm          .10000E-03    2.2322        .10178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.3461        3.9427        .11540E-03   -1.5245    
  17  Prefactor     .10000E-03    6.1092        .16861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5897        .85967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          46.688        21.022        .58680E-04   -1.4340    
  20  norm          30.245        7.0131        .72848E-04   -1.4607    
  21  norm          .10102E-03    141.06        .36036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.0419        .18113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.2895        .77195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.703        13.382        .90231E-04   -1.4820    
  25  norm          3.7317        5.8343        .20493E-03   -1.5322    
  26  Prefactor     42.423        48.818        .61544E-04   -1.4404    
  27  Prefactor     .10010E-03    51.750        .45158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     84.535        81.820        .43692E-04   -1.3867    
  30  Prefactor     4.7203        4.4453        .13659E-03   -1.5273    
  31  Normalizat    .68033        .25426        .30039E-03   -1.0467    
  32  Prefactor     1.3975        .30643        .27113E-03   -.80452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13241e-08
Minuit parameter uncertainties:
  1  0.00102224
  2  5.29059e-07
  3  15.4518
  4  3.33428
  5  4.04621
  6  1.37715e-05
  7  7.15239
  8  2.98444e-05
  9  3.98556e-05
  10  0.00100921
  11  2.91663e-05
  12  5.05887
  13  8.16632e-07
  14  0.000417685
  15  0.000561549
  16  3.94289
  17  6.47772e-05
  18  9.05411e-07
  19  21.0254
  20  7.01332
  21  0.0240979
  22  1.02983e-05
  23  3.58214e-06
  24  13.3841
  25  5.83518
  26  48.8642
  27  0.0046115
  28  0.000177683
  29  81.9294
  30  4.44559
  31  0.254705
  32  0.306828
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  8.166e-07  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.398e+00  3.068e-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.803e-01  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/49661/likelihoodResults_602985601_603244801_4FGL_J1257.8+3228_daily_bin1403.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) = 4885.14168264
delta logL = -0.00208082298013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4885.1396018
delta logL = 1.29139152705e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2258       1.0000          .0000       5.0000    
     3 'Normalizat'    .68033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3975       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4885.029     FROM MIGRAD    STATUS=FAILED       146 CALLS      293 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85522E-01    7.3141        .90194E-02    .34721E-02
   2  alpha         5.0000        2.9368        .50000    ** at limit **
   3  Normalizat    .63148        .71476E-01    .30040E-02   -.28672E-04
   4  Prefactor     1.4374        .75236E-01    .27113E-03   -.61654E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4885.029     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      454 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85522E-01    7.3141        .54027E-07    .34721E-02
   2  alpha         5.0000        2.9368        .15947E-01** at limit **
   3  Normalizat    .63148        .71476E-01    .36422E-07   -.28672E-04
   4  Prefactor     1.4374        .75236E-01    .21371E-08   -.61654E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4885.029     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      498 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85521E-01    .20186        .37051E-03    .46464E-03
   2  alpha         5.0000        4.3163        .50000    ** at limit **
   3  Normalizat    .63148        .26745        .12016E-03   -.54214E-04
   4  Prefactor     1.4374        .31814        .54227E-04   -.74174E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0855211
  alpha      = 5
  Normalizat = 0.631481
  Prefactor  = 1.43739
 **********
 **   18 **HESSE 
 **********

 FCN=   4885.029     FROM HESSE     STATUS=OK            31 CALLS      529 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85521E-01    .19498        .14821E-04   -1.5650    
   2  alpha         5.0000        4.2485        .50000        7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .63148        .26811        .48063E-05   -1.0666    
   4  Prefactor     1.4374        .31856        .10845E-04   -.79309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74882e-11
Minuit parameter uncertainties:
  1  0.194978
  2  3.81997e-05
  3  0.268665
  4  0.319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49661': 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) = 4885.02924942
delta logL = 0.110352399293

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  8.552e-02  1.950e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.000e+00  3.820e-05  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.437e+00  3.190e-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.315e-01  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/49661/cmap_HighResolution_602985601_603244801_4FGL_J1257.8+3228_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-06 12:30:34.502383', job_id='49661', GAL2='1.44', fit_tolerance='1e-08', EG2='0.63', EG='0.68', time_epoch_completed='1630956634.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='1.10e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1403' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:30:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 49661: <4FGL_J1257.8+3228_daily_bin1403> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1403> 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) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:16:04 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:04 2021
Terminated at Mon Sep  6 12:30:35 2021
Results reported at Mon Sep  6 12:30:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1403 194.473 32.4721 602985601 603244801 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 :                                   797.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

