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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin819
RA = 194.473, Dec = 32.4721
tmin = 451612801, tmax = 451872001
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='46198', job_status='RUN', time_executed='2021-09-06 12:06:45.412768', time_epoch_executed='1630955205.41' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='819'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46198/ft1_4FGL_J1257.8+3228_daily_bin819.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46198/ft2_4FGL_J1257.8+3228_daily_bin819.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46198/ft1_4FGL_J1257.8+3228_daily_bin819.fits outfile=/scratch/kocevski/46198/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin819.fits ra=194.473 dec=32.4721 rad=12.0 tmin=451612801.0 tmax=451872001.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.39
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46198/ft1_filtered_4FGL_J1257.8+3228_daily_bin819.fits" evtable="EVENTS" scfile=/scratch/kocevski/46198/ft2_4FGL_J1257.8+3228_daily_bin819.fits sctable="SC_DATA" outfile=/scratch/kocevski/46198/ltcube_451612801_451872001_4FGL_J1257.8+3228_daily_bin819.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/46198/ft2_4FGL_J1257.8+3228_daily_bin819.fits
.....................!
real 12.20
user 11.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46198/ft1_filtered_4FGL_J1257.8+3228_daily_bin819.fits evtable="EVENTS" scfile=/scratch/kocevski/46198/ft2_4FGL_J1257.8+3228_daily_bin819.fits sctable="SC_DATA" expcube=/scratch/kocevski/46198/ltcube_451612801_451872001_4FGL_J1257.8+3228_daily_bin819.fits outfile=/scratch/kocevski/46198/expmap_451612801_451872001_4FGL_J1257.8+3228_daily_bin819.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/46198/ltcube_451612801_451872001_4FGL_J1257.8+3228_daily_bin819.fits
.....................!
real 192.02
user 186.33
sys 5.24

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/46198/ft1_filtered_4FGL_J1257.8+3228_daily_bin819.fits scfile=/scratch/kocevski/46198/ft2_4FGL_J1257.8+3228_daily_bin819.fits outfile=/scratch/kocevski/46198/cmap_451612801_451872001_4FGL_J1257.8+3228_daily_bin819.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46198/ft1_filtered_4FGL_J1257.8+3228_daily_bin819.fits scfile=/scratch/kocevski/46198/ft2_4FGL_J1257.8+3228_daily_bin819.fits outfile=/scratch/kocevski/46198/cmap_HighResolution_451612801_451872001_4FGL_J1257.8+3228_daily_bin819.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=194.473 yref=32.4721 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.8799       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1772       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1273       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.808       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1484       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.986       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.899       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6839       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .65355       1.0000         .10000E-03   10000.    
    21 'norm      '    13.926       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6222       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11361E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.9040       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.711       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    164.41       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .90734       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .87245       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0762       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=   5663.965     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4375 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.815        .21351E-05** at limit **
   2  norm          8.8798        3.5359       -.72487E-08   -.57540E-05
   3  Prefactor     .10000E-03    2.6597       -.78339E-07** at limit **
   4  Prefactor     2.1775        2.1431       -.15033E-09    .14571E-05
   5  Prefactor     3.1272        2.0091       -.38247E-08    .32112E-04
   6  Prefactor     .10000E-03    2.9143       -.29369E-08** at limit **
   7  norm          20.808        6.3556       -.67607E-09    .19721E-04
   8  Prefactor     .10000E-03    4.9567       -.31458E-06** at limit **
   9  Prefactor     .10000E-03    6.3730        .43025E-06** at limit **
  10  Prefactor     .10000E-03    40.299       -.24760E-05** at limit **
  11  Prefactor     9.1488        7.0800       -.20154E-07    .52452E-05
  12  Prefactor     .10000E-03    2.5126        .58685E-07** at limit **
  13  norm          .10000E-03    1.9310        .34714E-07** at limit **
  14  Prefactor     29.995        39.927       -.11021E-05    .83712E-04
  15  Prefactor     .10000E-03    11.163        .43004E-06** at limit **
  16  norm          .10000E-03    1.2071       -.14758E-07** at limit **
  17  Prefactor     23.910        16.391       -.69192E-07    .10246E-03
  18  norm          2.6840        3.9418        .11803E-06    .64407E-04
  19  norm          .10000E-03    5.2586        .20057E-06** at limit **
  20  norm          .67158        13.241       -.10954E-05   -.57974E-04
  21  norm          13.905        14.971        .14843E-05    .65419E-03
  22  norm          2.6171        19.548        .50732E-05   -.99202E-04
  23  Prefactor     .10000E-03    1.8996        .14046E-06** at limit **
  24  Prefactor     .10000E-03    10.483       -.26613E-07** at limit **
  25  norm          1.9047        5.5219        .43900E-07   -.38146E-04
  26  Prefactor     .10000E-03    15.697       -.66332E-07** at limit **
  27  Prefactor     13.708        15.962        .34841E-06    .53001E-04
  28  Prefactor     .10000E-03    7.4146       -.61753E-06** at limit **
  29  Prefactor     164.42        90.076       -.92618E-06    .86934E-04
  30  Prefactor     .90814        4.1195        .13778E-06    .46943E-04
  31  Normalizat    .87245        .17766        .36656E-06    .18344E-03
  32  Prefactor     1.0761        .21319       -.52282E-07    .16619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 8.87985
  Prefactor  = 0.0001
  Prefactor  = 2.17747
  Prefactor  = 3.12724
  Prefactor  = 0.0001
  norm       = 20.8079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 9.14877
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.9951
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.9096
  norm       = 2.68404
  norm       = 0.0001
  norm       = 0.67158
  norm       = 13.9047
  norm       = 2.61706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90467
  Prefactor  = 0.0001
  Prefactor  = 13.7084
  Prefactor  = 0.0001
  Prefactor  = 164.421
  Prefactor  = 0.908139
  Normalizat = 0.872448
  Prefactor  = 1.07613
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.965     FROM HESSE     STATUS=OK           657 CALLS     5032 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.8798        3.5331        .81995E-04   -1.5112    
   3  Prefactor     .10000E-03    2.6674        .11986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1775        2.1376        .10076E-03   -1.5413    
   5  Prefactor     3.1272        2.0060        .81391E-04   -1.5354    
   6  Prefactor     .10000E-03    2.9365        .12540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.808        6.3502        .87807E-04   -1.4795    
   8  Prefactor     .10000E-03    4.9883        .16334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1488        7.0788        .13251E-03   -1.5103    
  12  Prefactor     .10000E-03    2.5206        .11641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9619        .10203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.995        39.635        .73166E-04   -1.4612    
  15  Prefactor     .10000E-03    11.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2168        .80740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.910        16.364        .81938E-04   -1.4730    
  18  norm          2.6840        3.9038        .17199E-03   -1.5380    
  19  norm          .10000E-03    5.2539        .16844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .67158        26.522        .23546E-02   -1.5544    
  21  norm          13.905        17.541        .10733E-03   -1.4962    
  22  norm          2.6171        19.299        .12593E-02   -1.5384    
  23  Prefactor     .10000E-03    3.1854        .19220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.9047        5.4826        .28905E-03   -1.5432    
  26  Prefactor     .10000E-03    15.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.708        15.966        .10817E-03   -1.4967    
  28  Prefactor     .10000E-03    7.3550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     164.42        89.858        .15728E-03   -1.3136    
  30  Prefactor     .90814        4.1613        .29209E-03   -1.5517    
  31  Normalizat    .87245        .21177        .24283E-03   -.97435    
  32  Prefactor     1.0761        .25604        .27772E-03   -.90233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29431e-08
Minuit parameter uncertainties:
  1  0.000777113
  2  3.53317
  3  1.28742e-06
  4  2.13771
  5  2.00604
  6  1.73084e-06
  7  6.35043
  8  2.65792e-05
  9  4.49177e-05
  10  0.000626635
  11  7.07948
  12  2.69847e-06
  13  1.15845e-06
  14  39.6695
  15  4.37609e-05
  16  1.2563e-06
  17  16.3674
  18  3.90421
  19  1.7033e-05
  20  8.44415
  21  17.5474
  22  14.2196
  23  3.995e-05
  24  3.42183e-06
  25  5.48404
  26  1.10489e-05
  27  15.9713
  28  6.24548e-05
  29  89.9331
  30  3.88819
  31  0.211971
  32  0.256329
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.158e-06  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.076e+00  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:  8.724e-01  2.120e-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: 4.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46198/likelihoodResults_451612801_451872001_4FGL_J1257.8+3228_daily_bin819.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) = 5663.96739174
delta logL = -0.00241849956728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5663.96497326
delta logL = -1.90257196664e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2279       1.0000          .0000       5.0000    
     3 'Normalizat'    .87247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0761       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=   5663.965     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      247 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1256        .34494E-01** at limit **
   2  alpha         2.6819        3.1065        .50000        .45293E-07
   3  Normalizat    .87245        .38520E-02    .24283E-03   -.39159E-03
   4  Prefactor     1.0761        .48637E-02    .27772E-03   -.36073E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.6819
  Normalizat = 0.872447
  Prefactor  = 1.07612
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.965     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    131.88        .16773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6819        3.6285        .50000        .72825E-01
   3  Normalizat    .87245        .35002E-01    .48566E-04   -.97435    
   4  Prefactor     1.0761        .44194E-01    .55544E-04   -.90233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.46499e-10
Minuit parameter uncertainties:
  1  2.47e-05
  2  1250.12
  3  0.035003
  4  0.0441952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46198': 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): 102
logL (Free Index) = 5663.96497101
delta logL = 2.22930430027e-06

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.470e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.682e+00  1.250e+03  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.076e+00  4.420e-02  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:  8.724e-01  3.500e-02  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/46198/cmap_HighResolution_451612801_451872001_4FGL_J1257.8+3228_daily_bin819.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-05', job_status='DONE', photon_flux_upper_limit='4.30e-08', time_completed='2021-09-06 12:21:34.317496', job_id='46198', GAL2='1.08', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630956094.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='819' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:21:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 46198: <4FGL_J1257.8+3228_daily_bin819> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin819> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 12:06:13 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:06:15 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:06:15 2021
Terminated at Mon Sep  6 12:21:35 2021
Results reported at Mon Sep  6 12:21:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin819 194.473 32.4721 451612801 451872001 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 :                                   885.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            922 sec.

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

