/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 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7419
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1117
RA = 194.473, Dec = 32.4721
tmin = 528854401, tmax = 529113601
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='47854', job_status='RUN', time_executed='2021-09-06 12:11:19.903084', time_epoch_executed='1630955479.9' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47854

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47854/ft1_4FGL_J1257.8+3228_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47854/ft2_4FGL_J1257.8+3228_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47854/ft1_4FGL_J1257.8+3228_daily_bin1117.fits outfile=/scratch/kocevski/47854/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1117.fits ra=194.473 dec=32.4721 rad=12.0 tmin=528854401.0 tmax=529113601.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.42
user 3.21
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47854/ft1_filtered_4FGL_J1257.8+3228_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/47854/ft2_4FGL_J1257.8+3228_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/47854/ltcube_528854401_529113601_4FGL_J1257.8+3228_daily_bin1117.fits outfile=/scratch/kocevski/47854/expmap_528854401_529113601_4FGL_J1257.8+3228_daily_bin1117.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/47854/ltcube_528854401_529113601_4FGL_J1257.8+3228_daily_bin1117.fits
.....................!
real 191.23
user 185.31
sys 5.53

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/47854/ft1_filtered_4FGL_J1257.8+3228_daily_bin1117.fits scfile=/scratch/kocevski/47854/ft2_4FGL_J1257.8+3228_daily_bin1117.fits outfile=/scratch/kocevski/47854/cmap_528854401_529113601_4FGL_J1257.8+3228_daily_bin1117.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47854/ft1_filtered_4FGL_J1257.8+3228_daily_bin1117.fits scfile=/scratch/kocevski/47854/ft2_4FGL_J1257.8+3228_daily_bin1117.fits outfile=/scratch/kocevski/47854/cmap_HighResolution_528854401_529113601_4FGL_J1257.8+3228_daily_bin1117.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9911       1.0000         .10000E-03   10000.    
     2 'norm      '    16.778       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .59046       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1044       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.8029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9183       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1349       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.821       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.369       1.0000         .10000E-03   10000.    
    18 'norm      '    9.6105       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1004       1.0000         .10000E-03   10000.    
    21 'norm      '    .13738E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .51929       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.255       1.0000         .10000E-03   10000.    
    26 'Prefactor '    60.538       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.918       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .86201E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.9729       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .74412       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1812       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5634.159     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     3796 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0077        44.385        .86758E-04   -.22820E-02
   2  norm          16.781        4.2809       -.16328E-05   -.42453E-03
   3  Prefactor     .59820        1.0966       -.35757E-05    .17477E-03
   4  Prefactor     1.1045        1.5493        .15917E-06    .20700E-04
   5  Prefactor     .10000E-03    .70390        .34324E-06** at limit **
   6  Prefactor     .10000E-03    1.7605        .72920E-08** at limit **
   7  norm          6.8059        4.1333       -.10474E-05    .92673E-04
   8  Prefactor     6.9240        1.2365       -.15112E-06   -.33080E-02
   9  Prefactor     .10000E-03    6.5015        .31435E-08** at limit **
  10  Prefactor     .10058E-03    42.921        .21011E-04** at limit **
  11  Prefactor     2.1371        5.0498       -.24660E-04   -.13801E-02
  12  Prefactor     12.825        1.4363        .22702E-05   -.87367E-03
  13  norm          .10000E-03    3.7827       -.63695E-06** at limit **
  14  Prefactor     .10813E-03    20.395       -.26559E-04** at limit **
  15  Prefactor     .10000E-03    14.642        .12094E-04** at limit **
  16  norm          2.0511        3.0695        .14821E-05    .24765E-03
  17  Prefactor     17.377        8.5541       -.12733E-04   -.49412E-02
  18  norm          9.6137        1.6735        .30888E-05   -.14084E-02
  19  norm          .10000E-03    10.361       -.88608E-05** at limit **
  20  norm          1.1049        2.7948        .44618E-05   -.65601E-04
  21  norm          .10000E-03    16.386       -.22649E-04** at limit **
  22  norm          .10460E-03    26.796        .99109E-05** at limit **
  23  Prefactor     .51818        4.2983       -.64481E-06   -.27128E-04
  24  Prefactor     .10000E-03    9.9866        .18509E-05** at limit **
  25  norm          10.260        1.0283        .27095E-06    .35140E-03
  26  Prefactor     60.587        5.6861       -.47763E-05    .98204E-02
  27  Prefactor     .10000E-03    8.7588       -.24430E-05** at limit **
  28  Prefactor     22.950        3.2019        .38830E-05    .91498E-03
  29  Prefactor     1.8302        490.24        .28627E-06   -.25928E-04
  30  Prefactor     3.9751        3.9978        .17436E-05    .42837E-03
  31  Normalizat    .74326        .20309       -.28549E-05   -.75083E-04
  32  Prefactor     1.1815        .25442        .63081E-05   -.40336E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.00768
  norm       = 16.7807
  Prefactor  = 0.5982
  Prefactor  = 1.10449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.80593
  Prefactor  = 6.924
  Prefactor  = 0.0001
  Prefactor  = 0.000100581
  Prefactor  = 2.13706
  Prefactor  = 12.8249
  norm       = 0.0001
  Prefactor  = 0.000108132
  Prefactor  = 0.000100003
  norm       = 2.05106
  Prefactor  = 17.3772
  norm       = 9.61368
  norm       = 0.000100004
  norm       = 1.10486
  norm       = 0.0001
  norm       = 0.000104598
  Prefactor  = 0.518177
  Prefactor  = 0.000100003
  norm       = 10.2595
  Prefactor  = 60.5874
  Prefactor  = 0.0001
  Prefactor  = 22.9502
  Prefactor  = 1.83022
  Prefactor  = 3.97507
  Normalizat = 0.743259
  Prefactor  = 1.18149
 **********
 **   18 **HESSE 
 **********

 FCN=   5634.159     FROM HESSE     STATUS=OK           747 CALLS     4543 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0077        75.614        .58681E-02   -1.5361    
   2  norm          16.781        4.3675        .24445E-02   -1.4888    
   3  Prefactor     .59820        4.4308        .81709E-01   -1.5553    
   4  Prefactor     1.1045        1.8495        .24432E-01   -1.5498    
   5  Prefactor     .10000E-03    .69830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.8059        4.1427        .38458E-02   -1.5186    
   8  Prefactor     6.9240        8.7920        .38133E-02   -1.5182    
   9  Prefactor     .10000E-03    6.4988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10058E-03    44.075        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1371        5.1052        .70534E-02   -1.5416    
  12  Prefactor     12.825        7.5620        .27967E-02   -1.4992    
  13  norm          .10000E-03    3.6877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10813E-03    38.537        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0511        3.0978        .72212E-02   -1.5422    
  17  Prefactor     17.377        21.658        .24025E-02   -1.4874    
  18  norm          9.6137        7.3370        .32317E-02   -1.5088    
  19  norm          .10000E-03    10.331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1049        3.6150        .11326E-01   -1.5498    
  21  norm          .10000E-03    6.1590        .51246E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10460E-03    36.397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .51818        4.2703        .39429E-01   -1.5564    
  24  Prefactor     .10000E-03    9.9674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.260        7.2574        .31281E-02   -1.5067    
  26  Prefactor     60.587        91.541        .12892E-02   -1.4150    
  27  Prefactor     .10000E-03    8.6924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     22.950        22.147        .20918E-02   -1.4749    
  29  Prefactor     1.8302        478.44        .94452E-02   -1.5437    
  30  Prefactor     3.9751        4.0177        .50590E-02   -1.5309    
  31  Normalizat    .74326        .17814        .42877E-01   -1.0221    
  32  Prefactor     1.1815        .21432        .59494E-01   -.86903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85363e-06
Minuit parameter uncertainties:
  1  30.2033
  2  4.36757
  3  3.25615
  4  1.84956
  5  1.68708e-07
  6  6.52208e-07
  7  4.14292
  8  8.79363
  9  1.07994e-07
  10  0.0101277
  11  5.10626
  12  7.56255
  13  1.95889e-07
  14  0.0354285
  15  0.000412818
  16  3.09806
  17  21.6675
  18  7.3377
  19  0.000414756
  20  3.61572
  21  5.90084e-05
  22  0.0258899
  23  2.97508
  24  0.000339757
  25  7.25807
  26  91.7546
  27  7.24304e-05
  28  22.1554
  29  59.6692
  30  4.01801
  31  0.178278
  32  0.214475
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  1.959e-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.181e+00  2.145e-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.433e-01  1.783e-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: 5.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47854/likelihoodResults_528854401_529113601_4FGL_J1257.8+3228_daily_bin1117.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) = 5634.1602824
delta logL = -0.00125696097439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5634.15902365
delta logL = 1.78374193638e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2795       1.0000          .0000       5.0000    
     3 'Normalizat'    .74329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1814       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=   5634.159     FROM MIGRAD    STATUS=FAILED        93 CALLS      239 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    6.2017        .23926E-02** at limit **
   2  alpha         2.3516        3.5443        .16542       -.86516E-04
   3  Normalizat    .74326        .19614        .25525E-03    .36686E-03
   4  Prefactor     1.1815        .25040        .26310E-03    .29925E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5634.159     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      362 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10009E-03    6.2017        .28799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3516        3.5443        .45550E-03   -.59382E-01
   3  Normalizat    .74326        .19614        .49099E-04   -1.0221    
   4  Prefactor     1.1815        .25040        .50292E-04   -.86903    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5633.882     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      503 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32314        .90691        .58876E-04   -.34178E-03
   2  alpha         4.0446        1.4203        .13234E-01    .53485E-05
   3  Normalizat    .70159        .20533        .20420E-04    .89080E-05
   4  Prefactor     1.2126        .25622        .10524E-04   -.36513E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.323141
  alpha      = 4.04459
  Normalizat = 0.701591
  Prefactor  = 1.21263
 **********
 **   18 **HESSE 
 **********

 FCN=   5633.882     FROM HESSE     STATUS=OK            25 CALLS      528 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32314        1.0444        .23550E-05   -1.5594    
   2  alpha         4.0446        1.5769        .52935E-03    2.4756    
   3  Normalizat    .70159        .20533        .40840E-05   -1.0383    
   4  Prefactor     1.2126        .25627        .21048E-05   -.85943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55451e-11
Minuit parameter uncertainties:
  1  1.0445
  2  1.83003
  3  0.205555
  4  0.256534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47854': 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) = 5633.88205759
delta logL = 0.276967845378

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.213e+00  2.565e-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.016e-01  2.056e-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/47854/cmap_HighResolution_528854401_529113601_4FGL_J1257.8+3228_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-06 12:25:47.509063', job_id='47854', GAL2='1.21', fit_tolerance='1e-08', EG2='0.70', EG='0.74', time_epoch_completed='1630956347.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.77e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1117' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:25:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 47854: <4FGL_J1257.8+3228_daily_bin1117> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1117 194.473 32.4721 528854401 529113601 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 :                                   856.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

