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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1044
RA = 194.473, Dec = 32.4721
tmin = 509932801, tmax = 510192001
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='47754', job_status='RUN', time_executed='2021-09-06 12:13:29.757398', time_epoch_executed='1630955609.76' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47754/ft1_4FGL_J1257.8+3228_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47754/ft2_4FGL_J1257.8+3228_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47754/ft1_4FGL_J1257.8+3228_daily_bin1044.fits outfile=/scratch/kocevski/47754/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1044.fits ra=194.473 dec=32.4721 rad=12.0 tmin=509932801.0 tmax=510192001.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.55
user 3.28
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47754/ft1_filtered_4FGL_J1257.8+3228_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/47754/ft2_4FGL_J1257.8+3228_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/47754/ltcube_509932801_510192001_4FGL_J1257.8+3228_daily_bin1044.fits outfile=/scratch/kocevski/47754/expmap_509932801_510192001_4FGL_J1257.8+3228_daily_bin1044.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/47754/ltcube_509932801_510192001_4FGL_J1257.8+3228_daily_bin1044.fits
.....................!
real 189.55
user 184.98
sys 4.00

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/47754/ft1_filtered_4FGL_J1257.8+3228_daily_bin1044.fits scfile=/scratch/kocevski/47754/ft2_4FGL_J1257.8+3228_daily_bin1044.fits outfile=/scratch/kocevski/47754/cmap_509932801_510192001_4FGL_J1257.8+3228_daily_bin1044.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 1.04
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47754/ft1_filtered_4FGL_J1257.8+3228_daily_bin1044.fits scfile=/scratch/kocevski/47754/ft2_4FGL_J1257.8+3228_daily_bin1044.fits outfile=/scratch/kocevski/47754/cmap_HighResolution_509932801_510192001_4FGL_J1257.8+3228_daily_bin1044.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.70
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5789       1.0000         .10000E-03   10000.    
     2 'norm      '    11.538       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7899       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0452       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72247       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.5866       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.991       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50043       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9023       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.333       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.968       1.0000         .10000E-03   10000.    
    16 'norm      '    7.2918       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6588       1.0000         .10000E-03   10000.    
    19 'norm      '    10.621       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0199       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0512       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.4770       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .57319       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .72188       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1301       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=   5653.655     FROM MIGRAD    STATUS=CONVERGED    939 CALLS     4444 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6746        49.931        .57317E-05   -.54376E-06
   2  norm          11.540        4.0866       -.23382E-06   -.17645E-03
   3  Prefactor     4.7762        9.8955       -.86364E-07   -.72839E-04
   4  Prefactor     1.0418        2.2199        .51743E-06    .32000E-03
   5  Prefactor     .72113        2.1449        .86552E-06   -.28002E-05
   6  Prefactor     .10000E-03    6.3973       -.60109E-07** at limit **
   7  norm          9.5863        5.1439       -.90537E-07   -.19101E-03
   8  Prefactor     10.991        11.105        .27417E-06    .13794E-03
   9  Prefactor     11.330        11.055        .37784E-06    .20681E-03
  10  Prefactor     .10000E-03    24.556        .10398E-06** at limit **
  11  Prefactor     .10000E-03    2.3273        .36819E-07** at limit **
  12  Prefactor     .50044        4.2170        .20815E-05   -.92711E-03
  13  norm          4.9018        4.0216        .50945E-07   -.11806E-03
  14  Prefactor     16.302        70.010       -.82564E-06   -.47464E-04
  15  Prefactor     22.955        25.078       -.32009E-06   -.15234E-03
  16  norm          7.2913        3.8128        .69379E-07    .61805E-04
  17  Prefactor     .10000E-03    7.5531        .10238E-06** at limit **
  18  norm          2.6579        4.7936        .64887E-06    .15250E-04
  19  norm          10.621        17.340       -.28115E-06   -.14731E-03
  20  norm          .10000E-03    1.2119        .12499E-07** at limit **
  21  norm          .10000E-03    1.5856       -.44327E-08** at limit **
  22  norm          .10000E-03    8.6338       -.87335E-07** at limit **
  23  Prefactor     6.0201        3.5251        .12402E-06   -.31298E-03
  24  Prefactor     .10000E-03    4.6248       -.59082E-07** at limit **
  25  norm          1.0491        5.8586        .27505E-05    .74614E-04
  26  Prefactor     6.4920        56.945       -.58264E-05   -.14103E-03
  27  Prefactor     .10000E-03    5.0573       -.15221E-07** at limit **
  28  Prefactor     .10000E-03    4.2129        .15793E-07** at limit **
  29  Prefactor     .16324E-03    92.004        .10866E-05** at limit **
  30  Prefactor     .10000E-03    1.8184        .19651E-07** at limit **
  31  Normalizat    .72218        .17233       -.85887E-06   -.34787E-03
  32  Prefactor     1.1300        .20330       -.51424E-06   -.28317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.67461
  norm       = 11.5396
  Prefactor  = 4.77617
  Prefactor  = 1.04178
  Prefactor  = 0.721126
  Prefactor  = 0.0001
  norm       = 9.5863
  Prefactor  = 10.991
  Prefactor  = 11.3297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.500439
  norm       = 4.90176
  Prefactor  = 16.3017
  Prefactor  = 22.9548
  norm       = 7.29131
  Prefactor  = 0.0001
  norm       = 2.65789
  norm       = 10.6213
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.02006
  Prefactor  = 0.0001
  norm       = 1.0491
  Prefactor  = 6.492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000163244
  Prefactor  = 0.0001
  Normalizat = 0.722179
  Prefactor  = 1.13002
 **********
 **   18 **HESSE 
 **********

 FCN=   5653.655     FROM HESSE     STATUS=OK           673 CALLS     5117 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6746        50.686        .78229E-03   -1.5191    
   2  norm          11.540        4.0242        .79712E-04   -1.5028    
   3  Prefactor     4.7762        9.8440        .18383E-03   -1.5271    
   4  Prefactor     1.0418        1.9048        .14628E-02   -1.5504    
   5  Prefactor     .72113        2.1108        .17478E-03   -1.5538    
   6  Prefactor     .10000E-03    6.5102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.5863        5.1287        .11981E-03   -1.5089    
   8  Prefactor     10.991        11.071        .12085E-03   -1.5045    
   9  Prefactor     11.330        11.373        .11902E-03   -1.5035    
  10  Prefactor     .10000E-03    24.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3315        .11202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .50044        11.205        .25660E-02   -1.5566    
  13  norm          4.9018        4.0170        .12796E-03   -1.5265    
  14  Prefactor     16.302        70.218        .99104E-04   -1.4900    
  15  Prefactor     22.955        25.002        .83581E-04   -1.4749    
  16  norm          7.2913        3.8126        .10262E-03   -1.5168    
  17  Prefactor     .10000E-03    7.5703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6579        4.7701        .20647E-03   -1.5382    
  19  norm          10.621        17.351        .12294E-03   -1.5056    
  20  norm          .10000E-03    1.2177        .80758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.5864        .92458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.6647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.0201        3.5213        .96943E-04   -1.5217    
  24  Prefactor     .10000E-03    4.6306        .15785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0491        6.0070        .35716E-03   -1.5503    
  26  Prefactor     6.4920        62.091        .15770E-03   -1.5198    
  27  Prefactor     .10000E-03    5.0688        .16514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.2146        .15073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .16324E-03    82.402        .17320       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.8391        .98998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .72218        .20560        .25257E-03   -1.0302    
  32  Prefactor     1.1300        .24234        .25897E-03   -.88513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08519e-09
Minuit parameter uncertainties:
  1  36.8295
  2  4.02429
  3  9.84732
  4  1.90488
  5  2.11105
  6  3.27963e-06
  7  5.12893
  8  11.0729
  9  11.3749
  10  2.02576e-05
  11  1.81673e-06
  12  4.73661
  13  4.01722
  14  67.801
  15  25.0133
  16  3.81269
  17  1.73242e-05
  18  4.77073
  19  17.3589
  20  6.31737e-07
  21  4.13634e-07
  22  1.67668e-05
  23  3.52143
  24  4.35813e-06
  25  5.02125
  26  40.2089
  27  1.24366e-06
  28  1.34917e-06
  29  0.14458
  30  1.55564e-06
  31  0.205823
  32  0.242576
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  4.902e+00  4.017e+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:  1.130e+00  2.426e-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:  7.222e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.24
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 2.87e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 9.33e-06

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) = 5652.80643665
delta logL = 0.848357614524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5652.33226776
delta logL = 1.32252650452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94794       1.0000         .10000E-03   10000.    
     2 'alpha     '    .71422       1.0000          .0000       5.0000    
     3 'Normalizat'    .74514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5652.332     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94271        1.0514        .12980E-01   -.99081E-03
   2  alpha         .71260        .47404        .37265       -.75513E-06
   3  Normalizat    .74512        .15883        .42890E-01    .21757E-04
   4  Prefactor     1.1224        .20055        .58773E-01   -.24460E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.942711
  alpha      = 0.712605
  Normalizat = 0.745123
  Prefactor  = 1.12238
 **********
 **   18 **HESSE 
 **********

 FCN=   5652.332     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94271        2.0416        .65937E-03   -1.5514    
   2  alpha         .71260        .81947        .16723E-02   -.79656    
   3  Normalizat    .74512        .18783        .24910E-03   -1.0214    
   4  Prefactor     1.1224        .23716        .25991E-03   -.88754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27876e-11
Minuit parameter uncertainties:
  1  2.04175
  2  0.85292
  3  0.187995
  4  0.237383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47754': 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) = 5652.33226277
delta logL = 1.32253148877

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.122e+00  2.374e-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:  7.451e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.88
Ra Dec: 194.473 32.472
Photon Index (Free Index): 0.71 +/- 0.85
Photon Flux (Free Index): 4.22e-09 +/- 5.18e-09
Energy Flux (Free Index): 4.42e-05 +/- 6.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/47754/cmap_HighResolution_509932801_510192001_4FGL_J1257.8+3228_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.87e-08', energy_flux2='4.42e-05', photon_flux_error='2.35e-08', dlogl='1.32e+00', energy_flux='1.14e-05', photon_flux2='4.22e-09', job_status='DONE', time_completed='2021-09-06 12:26:11.813835', photon_index_error2='0.85', photon_index2='0.71', ts='9.24', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='6.56e-05', EG='0.72', time_epoch_completed='1630956371.81', return_code='0', job_id='47754', GAL2='1.12', EG2='0.75', return_code2='0', energy_flux_error='9.33e-06', photon_flux_error2='5.18e-09', ts2='11.88', photon_index='2.22' WHERE bin_id='1044' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:26:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 47754: <4FGL_J1257.8+3228_daily_bin1044> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1044> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 12:10:52 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:10:53 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:10:53 2021
Terminated at Mon Sep  6 12:26:12 2021
Results reported at Mon Sep  6 12:26:12 2021

Your job looked like:

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

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

