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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1328
RA = 194.473, Dec = 32.4721
tmin = 583545601, tmax = 583804801
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='49551', job_status='RUN', time_executed='2021-09-06 12:16:14.136057', time_epoch_executed='1630955774.14' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49551

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49551/ft1_4FGL_J1257.8+3228_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49551/ft2_4FGL_J1257.8+3228_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49551/ft1_4FGL_J1257.8+3228_daily_bin1328.fits outfile=/scratch/kocevski/49551/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1328.fits ra=194.473 dec=32.4721 rad=12.0 tmin=583545601.0 tmax=583804801.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.97
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49551/ft1_filtered_4FGL_J1257.8+3228_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/49551/ft2_4FGL_J1257.8+3228_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/49551/ltcube_583545601_583804801_4FGL_J1257.8+3228_daily_bin1328.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/49551/ft2_4FGL_J1257.8+3228_daily_bin1328.fits
.....................!
real 12.47
user 11.65
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49551/ft1_filtered_4FGL_J1257.8+3228_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/49551/ft2_4FGL_J1257.8+3228_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/49551/ltcube_583545601_583804801_4FGL_J1257.8+3228_daily_bin1328.fits outfile=/scratch/kocevski/49551/expmap_583545601_583804801_4FGL_J1257.8+3228_daily_bin1328.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/49551/ltcube_583545601_583804801_4FGL_J1257.8+3228_daily_bin1328.fits
.....................!
real 191.69
user 185.20
sys 4.52

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/49551/ft1_filtered_4FGL_J1257.8+3228_daily_bin1328.fits scfile=/scratch/kocevski/49551/ft2_4FGL_J1257.8+3228_daily_bin1328.fits outfile=/scratch/kocevski/49551/cmap_583545601_583804801_4FGL_J1257.8+3228_daily_bin1328.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49551/ft1_filtered_4FGL_J1257.8+3228_daily_bin1328.fits scfile=/scratch/kocevski/49551/ft2_4FGL_J1257.8+3228_daily_bin1328.fits outfile=/scratch/kocevski/49551/cmap_HighResolution_583545601_583804801_4FGL_J1257.8+3228_daily_bin1328.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.9862       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23222       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9801       1.0000         .10000E-03   10000.    
     7 'norm      '    30.550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5135       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.957       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.305       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.236       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.945       1.0000         .10000E-03   10000.    
    19 'norm      '    4.6545       1.0000         .10000E-03   10000.    
    20 'norm      '    18.936       1.0000         .10000E-03   10000.    
    21 'norm      '    8.3488       1.0000         .10000E-03   10000.    
    22 'norm      '    29.033       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8358       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.8455       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    53.929       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2407       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .55570       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=   6401.879     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4269 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.332       -.52839E-06** at limit **
   2  norm          8.9861        3.4240       -.66605E-07   -.13928E-03
   3  Prefactor     .10000E-03    3.2317       -.19843E-06** at limit **
   4  Prefactor     .23292        1.4268        .42961E-06   -.42907E-03
   5  Prefactor     .10000E-03    .50932       -.14935E-07** at limit **
   6  Prefactor     5.9801        5.0301        .34200E-08   -.93996E-05
   7  norm          30.551        7.5316        .59619E-07   -.60621E-04
   8  Prefactor     .10000E-03    3.2714        .14422E-06** at limit **
   9  Prefactor     7.5127        12.006        .92224E-07   -.20793E-04
  10  Prefactor     31.961        37.352        .79334E-06    .83275E-04
  11  Prefactor     15.304        8.3634        .34940E-06   -.10641E-03
  12  Prefactor     .10000E-03    1.4702       -.15958E-08** at limit **
  13  norm          .10000E-03    1.1348        .89051E-08** at limit **
  14  Prefactor     44.237        56.698        .23327E-06   -.98862E-05
  15  Prefactor     .10000E-03    9.3189       -.44590E-06** at limit **
  16  norm          .10000E-03    1.2914       -.33470E-07** at limit **
  17  Prefactor     .10000E-03    3.9110        .17594E-06** at limit **
  18  norm          15.945        5.8577        .12968E-07   -.31519E-04
  19  norm          4.6525        13.469        .28966E-07   -.42080E-04
  20  norm          18.939        7.7966        .38739E-06    .36249E-04
  21  norm          8.3418        13.855       -.10365E-05   -.19385E-03
  22  norm          29.032        19.181       -.68657E-06   -.10869E-03
  23  Prefactor     2.8353        2.6868        .10449E-06   -.91151E-04
  24  Prefactor     .10000E-03    8.3248       -.19129E-06** at limit **
  25  norm          5.8460        6.2939        .26290E-05   -.43818E-03
  26  Prefactor     .10000E-03    13.141        .10984E-05** at limit **
  27  Prefactor     .10000E-03    7.3074        .52985E-06** at limit **
  28  Prefactor     .10000E-03    10.154       -.41776E-06** at limit **
  29  Prefactor     53.959        78.538        .56880E-05    .21334E-03
  30  Prefactor     .10000E-03    3.9865       -.27659E-06** at limit **
  31  Normalizat    1.2403        .17783       -.23496E-05    .11748E-03
  32  Prefactor     .55610        .20853        .23867E-05   -.98830E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.98615
  Prefactor  = 0.0001
  Prefactor  = 0.232921
  Prefactor  = 0.0001
  Prefactor  = 5.98011
  norm       = 30.5511
  Prefactor  = 0.0001
  Prefactor  = 7.5127
  Prefactor  = 31.9612
  Prefactor  = 15.3042
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.2365
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.9448
  norm       = 4.65253
  norm       = 18.9393
  norm       = 8.34181
  norm       = 29.0316
  Prefactor  = 2.83528
  Prefactor  = 0.0001
  norm       = 5.84601
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.9592
  Prefactor  = 0.0001
  Normalizat = 1.24032
  Prefactor  = 0.556103
 **********
 **   18 **HESSE 
 **********

 FCN=   6401.879     FROM HESSE     STATUS=OK           651 CALLS     4920 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.9861        3.4973        .81266E-04   -1.5108    
   3  Prefactor     .10000E-03    3.2463        .14049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23292        2.6570        .16947E-02   -1.5611    
   5  Prefactor     .10000E-03    .51243        .55740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9801        5.0296        .15763E-03   -1.5219    
   7  norm          30.551        7.5306        .72490E-04   -1.4602    
   8  Prefactor     .10000E-03    3.2829        .14141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5127        11.999        .14631E-03   -1.5160    
  10  Prefactor     31.961        37.444        .35440E-03   -1.4577    
  11  Prefactor     15.304        8.3642        .51190E-03   -1.4925    
  12  Prefactor     .10000E-03    1.4727        .94732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1384        .83225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     44.237        56.607        .60279E-04   -1.4377    
  15  Prefactor     .10000E-03    9.3787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3024        .88778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9229        .15461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.945        5.8555        .10030E-03   -1.4909    
  19  norm          4.6525        13.465        .18654E-03   -1.5277    
  20  norm          18.939        7.9646        .90258E-04   -1.4837    
  21  norm          8.3418        14.177        .13874E-03   -1.5130    
  22  norm          29.032        19.184        .74355E-04   -1.4630    
  23  Prefactor     2.8353        2.6732        .12122E-03   -1.5371    
  24  Prefactor     .10000E-03    8.3712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.8460        6.4662        .83053E-03   -1.5224    
  26  Prefactor     .10000E-03    13.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.3787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     53.959        81.985        .54619E-04   -1.4238    
  30  Prefactor     .10000E-03    4.1777        .31184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2403        .20154        .21561E-03   -.85366    
  32  Prefactor     .55610        .23639        .37344E-03   -1.0947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35987e-08
Minuit parameter uncertainties:
  1  0.000110868
  2  3.49742
  3  1.4467e-05
  4  1.57311
  5  5.0395e-09
  6  5.02993
  7  7.53084
  8  1.78715e-05
  9  12.0029
  10  37.472
  11  8.36483
  12  6.6212e-07
  13  4.00682e-07
  14  56.6757
  15  8.90235e-05
  16  8.30199e-08
  17  2.12849e-05
  18  5.85574
  19  13.4733
  20  7.965
  21  14.1823
  22  19.1884
  23  2.67335
  24  3.51608e-05
  25  6.46699
  26  0.000233194
  27  9.05845e-05
  28  6.93511e-05
  29  82.1566
  30  1.74181e-05
  31  0.20167
  32  0.236815
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  4.007e-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:  5.561e-01  2.368e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  1.240e+00  2.017e-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: 3.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49551/likelihoodResults_583545601_583804801_4FGL_J1257.8+3228_daily_bin1328.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): 102
logL (Free Index) = 6401.88319876
delta logL = -0.00385264388115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6401.87934699
delta logL = -8.77386810316e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2107       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55612       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=   6401.879     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      243 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    72.714        .83497E-02** at limit **
   2  alpha         1.9266        4.0362        .16602        .27323E-07
   3  Normalizat    1.2403        .33860E-01    .21561E-03   -.12681E-02
   4  Prefactor     .55610        .40830E-01    .37343E-03   -.73881E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.92663
  Normalizat = 1.24032
  Prefactor  = 0.556105
 **********
 **   18 **HESSE 
 **********

 FCN=   6401.879     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2053        .85671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9266        3.9940        .66408E-02   -.23141    
   3  Normalizat    1.2403        .19034        .43122E-04   -.85366    
   4  Prefactor     .55610        .22929        .74686E-04   -1.0947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31566e-09
Minuit parameter uncertainties:
  1  2.56139e-06
  2  133.856
  3  0.190447
  4  0.22967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49551': 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) = 6401.87934371
delta logL = 2.40341069002e-06

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.561e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.927e+00  1.339e+02  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:  5.561e-01  2.297e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  1.240e+00  1.904e-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/49551/cmap_HighResolution_583545601_583804801_4FGL_J1257.8+3228_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-05', job_status='DONE', photon_flux_upper_limit='3.51e-08', time_completed='2021-09-06 12:32:02.350892', job_id='49551', GAL2='0.56', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630956722.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='2.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1328' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:32:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 49551: <4FGL_J1257.8+3228_daily_bin1328> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1328> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:15:53 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:15:55 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:15:55 2021
Terminated at Mon Sep  6 12:32:03 2021
Results reported at Mon Sep  6 12:32:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1328 194.473 32.4721 583545601 583804801 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 :                                   937.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

