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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin987
RA = 194.473, Dec = 32.4721
tmin = 495158401, tmax = 495417601
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='47628', job_status='RUN', time_executed='2021-09-06 12:11:05.473884', time_epoch_executed='1630955465.47' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='987'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47628/ft1_4FGL_J1257.8+3228_daily_bin987.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47628/ft2_4FGL_J1257.8+3228_daily_bin987.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47628/ft1_4FGL_J1257.8+3228_daily_bin987.fits outfile=/scratch/kocevski/47628/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin987.fits ra=194.473 dec=32.4721 rad=12.0 tmin=495158401.0 tmax=495417601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.04
user 3.80
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47628/ft1_filtered_4FGL_J1257.8+3228_daily_bin987.fits" evtable="EVENTS" scfile=/scratch/kocevski/47628/ft2_4FGL_J1257.8+3228_daily_bin987.fits sctable="SC_DATA" outfile=/scratch/kocevski/47628/ltcube_495158401_495417601_4FGL_J1257.8+3228_daily_bin987.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/47628/ft2_4FGL_J1257.8+3228_daily_bin987.fits
.....................!
real 11.63
user 11.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47628/ft1_filtered_4FGL_J1257.8+3228_daily_bin987.fits evtable="EVENTS" scfile=/scratch/kocevski/47628/ft2_4FGL_J1257.8+3228_daily_bin987.fits sctable="SC_DATA" expcube=/scratch/kocevski/47628/ltcube_495158401_495417601_4FGL_J1257.8+3228_daily_bin987.fits outfile=/scratch/kocevski/47628/expmap_495158401_495417601_4FGL_J1257.8+3228_daily_bin987.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/47628/ltcube_495158401_495417601_4FGL_J1257.8+3228_daily_bin987.fits
.....................!
real 191.29
user 185.92
sys 4.99

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/47628/ft1_filtered_4FGL_J1257.8+3228_daily_bin987.fits scfile=/scratch/kocevski/47628/ft2_4FGL_J1257.8+3228_daily_bin987.fits outfile=/scratch/kocevski/47628/cmap_495158401_495417601_4FGL_J1257.8+3228_daily_bin987.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=194.473 yref=32.4721 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9814       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4533       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9548       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16758E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.989       1.0000         .10000E-03   10000.    
    15 'Prefactor '    76.097       1.0000         .10000E-03   10000.    
    16 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.3338       1.0000         .10000E-03   10000.    
    20 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.286       1.0000         .10000E-03   10000.    
    25 'norm      '    12.295       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.924       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.8541       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .83963       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4253       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=   6587.614     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     4399 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.079       -.57409E-08** at limit **
   2  norm          14.662        4.0377       -.11493E-07    .44321E-04
   3  Prefactor     7.9801        6.7404        .97561E-07    .15370E-03
   4  Prefactor     .10000E-03    .81340       -.17908E-07** at limit **
   5  Prefactor     2.4241        1.9825        .80928E-08   -.45419E-04
   6  Prefactor     .10000E-03    2.2945       -.33704E-07** at limit **
   7  norm          2.4521        3.8158        .21722E-06   -.17003E-03
   8  Prefactor     .10000E-03    2.2547       -.41039E-07** at limit **
   9  Prefactor     2.9509        27.954        .63604E-06    .69275E-05
  10  Prefactor     1.3288        1637.5        .59576E-04    .16261E-04
  11  Prefactor     .10000E-03    4.3295       -.27557E-06** at limit **
  12  Prefactor     .10000E-03    2.6088        .31398E-07** at limit **
  13  norm          .10002E-03    5.8061       -.40997E-05** at limit **
  14  Prefactor     29.908        63.302        .14291E-05    .10976E-03
  15  Prefactor     76.252        35.343        .20589E-05    .52433E-03
  16  norm          .10000E-03    2.3215       -.18289E-06** at limit **
  17  Prefactor     .10000E-03    11.004        .11623E-07** at limit **
  18  norm          .10000E-03    2.3430       -.44814E-09** at limit **
  19  norm          8.3322        13.584        .22917E-06    .67928E-04
  20  norm          .10000E-03    2.2154       -.10196E-07** at limit **
  21  norm          .10000E-03    2.5324        .22512E-07** at limit **
  22  norm          .10000E-03    14.953       -.86509E-07** at limit **
  23  Prefactor     .10000E-03    1.2631        .48134E-07** at limit **
  24  Prefactor     26.285        15.608        .14263E-06    .15039E-03
  25  norm          12.291        8.6616        .56435E-07    .43260E-05
  26  Prefactor     .10000E-03    17.490        .54388E-07** at limit **
  27  Prefactor     .10000E-03    7.7879       -.37600E-07** at limit **
  28  Prefactor     11.924        13.342        .16961E-07    .33832E-05
  29  Prefactor     8.8433        43.015       -.24864E-07   -.11143E-04
  30  Prefactor     .10000E-03    4.8627       -.10120E-06** at limit **
  31  Normalizat    .83979        .18001       -.49648E-06    .34774E-03
  32  Prefactor     1.4255        .21420        .40234E-06    .25218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.6621
  Prefactor  = 7.98014
  Prefactor  = 0.0001
  Prefactor  = 2.42408
  Prefactor  = 0.0001
  norm       = 2.45213
  Prefactor  = 0.0001
  Prefactor  = 2.95085
  Prefactor  = 1.32882
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.000100015
  Prefactor  = 29.9077
  Prefactor  = 76.2517
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.33219
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2846
  norm       = 12.2914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9237
  Prefactor  = 8.84326
  Prefactor  = 0.0001
  Normalizat = 0.839789
  Prefactor  = 1.42545
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.614     FROM HESSE     STATUS=OK           657 CALLS     5056 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.662        4.0307        .82123E-04   -1.4942    
   3  Prefactor     7.9801        6.7304        .14192E-03   -1.5143    
   4  Prefactor     .10000E-03    .81817        .71399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4241        1.9723        .99103E-04   -1.5397    
   6  Prefactor     .10000E-03    2.2997        .12000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4521        3.7966        .19057E-03   -1.5395    
   8  Prefactor     .10000E-03    2.2556        .11902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9509        27.799        .23625E-03   -1.5364    
  10  Prefactor     1.3288        1721.4        .31122E-02   -1.5477    
  11  Prefactor     .10000E-03    18.932        .32330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6148        .12796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    12.318        .33019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.908        62.804        .73164E-04   -1.4614    
  15  Prefactor     76.252        35.858        .46030E-04   -1.3959    
  16  norm          .10000E-03    4.8357        .23823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3745        .12130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.3322        13.566        .13887E-03   -1.5131    
  20  norm          .10000E-03    2.2466        .11776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5407        .12609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    14.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.2756        .88920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.285        15.570        .78136E-04   -1.4682    
  25  norm          12.291        8.6557        .11424E-03   -1.5007    
  26  Prefactor     .10000E-03    17.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.8436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.924        13.342        .11601E-03   -1.5017    
  29  Prefactor     8.8433        43.005        .13470E-03   -1.5113    
  30  Prefactor     .10000E-03    4.9875        .34933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .83979        .21425        .28433E-03   -.98609    
  32  Prefactor     1.4255        .25520        .27449E-03   -.79649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15491e-09
Minuit parameter uncertainties:
  1  7.08139e-06
  2  4.0308
  3  6.731
  4  2.99114e-07
  5  1.97234
  6  2.69513e-08
  7  3.79693
  8  1.22495e-06
  9  18.125
  10  98.6398
  11  0.000613402
  12  7.95627e-06
  13  0.000870854
  14  62.9431
  15  35.8683
  16  7.62698e-05
  17  2.73703e-05
  18  6.82867e-06
  19  13.5708
  20  9.01848e-06
  21  4.50992e-06
  22  3.5015e-06
  23  6.06942e-06
  24  15.5724
  25  8.65656
  26  1.3569e-05
  27  3.30779e-06
  28  13.3455
  29  39.048
  30  1.11496e-05
  31  0.214468
  32  0.255424
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  8.709e-04  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.425e+00  2.554e-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.398e-01  2.145e-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: 8.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47628/likelihoodResults_495158401_495417601_4FGL_J1257.8+3228_daily_bin987.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) = 6587.61392087
delta logL = -0.000386459616493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6586.44448884
delta logL = 1.16904557352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23505       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .72407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5134       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=   6586.444     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      279 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23543        4.9356        .59580E-02    .20409E-02
   2  alpha         5.0000        4.8026        .46267    ** at limit **
   3  Normalizat    .72440        .93075E-01    .68561E-01    .28687E-04
   4  Prefactor     1.5128        .10575        .60508E-01   -.45311E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.235432
  alpha      = 5
  Normalizat = 0.724401
  Prefactor  = 1.51277
 **********
 **   18 **HESSE 
 **********

 FCN=   6586.444     FROM HESSE     STATUS=OK            35 CALLS      314 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23543        .20183        .26946E-04   -1.5611    
   2  alpha         5.0000        .99262        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .72440        .22174        .30339E-03   -1.0294    
   4  Prefactor     1.5128        .26142        .26756E-03   -.77183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49288e-13
Minuit parameter uncertainties:
  1  0.201833
  2  4.37749e-06
  3  0.222015
  4  0.261652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47628': 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) = 6586.4444809
delta logL = 1.1690535126

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.354e-01  2.018e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.000e+00  4.377e-06  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.513e+00  2.617e-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.244e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 194.473 32.472
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.02e-07 +/- 8.71e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.19e-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/47628/cmap_HighResolution_495158401_495417601_4FGL_J1257.8+3228_daily_bin987.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='1.17e+00', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-06 12:26:58.629934', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.43', photon_index_error='0.00', photon_flux_upper_limit='8.46e-08', energy_flux_error2='1.19e-05', EG='0.84', time_epoch_completed='1630956418.63', return_code='0', job_id='47628', GAL2='1.51', EG2='0.72', return_code2='0', photon_flux_error2='8.71e-08', ts2='2.58', photon_index='2.22' WHERE bin_id='987' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:26:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 47628: <4FGL_J1257.8+3228_daily_bin987> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin987 194.473 32.4721 495158401 495417601 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 :                                   948.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

