/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 71 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 = 7365
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1465
RA = 194.473, Dec = 32.4721
tmin = 619056001, tmax = 619315201
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='49752', job_status='RUN', time_executed='2021-09-06 12:17:54.289762', time_epoch_executed='1630955874.29' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49752

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49752/ft1_4FGL_J1257.8+3228_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49752/ft2_4FGL_J1257.8+3228_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49752/ft1_4FGL_J1257.8+3228_daily_bin1465.fits outfile=/scratch/kocevski/49752/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1465.fits ra=194.473 dec=32.4721 rad=12.0 tmin=619056001.0 tmax=619315201.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.58
user 3.34
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49752/ft1_filtered_4FGL_J1257.8+3228_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/49752/ft2_4FGL_J1257.8+3228_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/49752/ltcube_619056001_619315201_4FGL_J1257.8+3228_daily_bin1465.fits outfile=/scratch/kocevski/49752/expmap_619056001_619315201_4FGL_J1257.8+3228_daily_bin1465.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/49752/ltcube_619056001_619315201_4FGL_J1257.8+3228_daily_bin1465.fits
.....................!
real 192.52
user 187.41
sys 4.75

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/49752/ft1_filtered_4FGL_J1257.8+3228_daily_bin1465.fits scfile=/scratch/kocevski/49752/ft2_4FGL_J1257.8+3228_daily_bin1465.fits outfile=/scratch/kocevski/49752/cmap_619056001_619315201_4FGL_J1257.8+3228_daily_bin1465.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49752/ft1_filtered_4FGL_J1257.8+3228_daily_bin1465.fits scfile=/scratch/kocevski/49752/ft2_4FGL_J1257.8+3228_daily_bin1465.fits outfile=/scratch/kocevski/49752/cmap_HighResolution_619056001_619315201_4FGL_J1257.8+3228_daily_bin1465.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10816E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.508       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4496       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2440       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.220       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .72702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.574       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7817       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9659       1.0000         .10000E-03   10000.    
    13 'norm      '    11.889       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8669       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1555       1.0000         .10000E-03   10000.    
    21 'norm      '    7.2308       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3767       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    23.367       1.0000         .10000E-03   10000.    
    26 'Prefactor '    36.092       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.5430       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    17.585       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12918E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .84708       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2137       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=   5955.707     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     4349 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.200       -.39144E-06** at limit **
   2  norm          .10000E-03    1.7265        .31511E-06** at limit **
   3  Prefactor     10.507        8.6928        .15144E-07    .40345E-04
   4  Prefactor     3.4492        2.3038       -.94886E-07    .31559E-03
   5  Prefactor     1.2440        1.3115       -.31791E-07    .15371E-03
   6  Prefactor     12.221        6.1438       -.55224E-07    .18455E-04
   7  norm          .10000E-03    1.4532       -.67152E-08** at limit **
   8  Prefactor     .10000E-03    3.9634        .36433E-07** at limit **
   9  Prefactor     .65539        124.85       -.12860E-04    .42324E-04
  10  Prefactor     52.565        74.757       -.50966E-06   -.16052E-04
  11  Prefactor     5.7820        7.1000       -.12273E-05   -.49804E-03
  12  Prefactor     6.9689        6.2466        .26652E-06    .15270E-04
  13  norm          11.886        6.7469       -.48103E-06   -.41450E-03
  14  Prefactor     .10000E-03    45.552       -.18786E-06** at limit **
  15  Prefactor     .10000E-03    39.444        .55868E-06** at limit **
  16  norm          2.5243        2.9269       -.30615E-07   -.10676E-04
  17  Prefactor     .10000E-03    21.099       -.85816E-07** at limit **
  18  norm          1.8675        3.8927        .56690E-07   -.70249E-04
  19  norm          .10000E-03    13.829        .39637E-06** at limit **
  20  norm          1.1564        6.6671        .21946E-05    .72839E-04
  21  norm          7.2294        10.561       -.15177E-05   -.12995E-03
  22  norm          .10000E-03    6.6202       -.27009E-06** at limit **
  23  Prefactor     3.3738        4.1749       -.66394E-06   -.44712E-03
  24  Prefactor     .10000E-03    6.1534        .22539E-06** at limit **
  25  norm          23.367        9.5384        .22332E-07    .65348E-05
  26  Prefactor     36.096        60.374        .79615E-06   -.13008E-04
  27  Prefactor     2.5367        32.666       -.13987E-05   -.45570E-04
  28  Prefactor     .10000E-03    10.483        .76839E-07** at limit **
  29  Prefactor     17.504        95.230       -.52390E-05    .11168E-04
  30  Prefactor     .10000E-03    2.4907        .49237E-06** at limit **
  31  Normalizat    .84738        .21155       -.49818E-05   -.16461E-04
  32  Prefactor     1.2134        .24896        .53397E-05   -.20141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 10.507
  Prefactor  = 3.44918
  Prefactor  = 1.24401
  Prefactor  = 12.2205
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.655386
  Prefactor  = 52.5647
  Prefactor  = 5.78201
  Prefactor  = 6.96893
  norm       = 11.8858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.52426
  Prefactor  = 0.0001
  norm       = 1.86754
  norm       = 0.0001
  norm       = 1.15639
  norm       = 7.22941
  norm       = 0.0001
  Prefactor  = 3.37376
  Prefactor  = 0.0001
  norm       = 23.3669
  Prefactor  = 36.0956
  Prefactor  = 2.53666
  Prefactor  = 0.0001
  Prefactor  = 17.504
  Prefactor  = 0.0001
  Normalizat = 0.847377
  Prefactor  = 1.2134
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.707     FROM HESSE     STATUS=OK           665 CALLS     5014 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.0178        .17602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.507        8.6926        .12360E-03   -1.5060    
   4  Prefactor     3.4492        2.2480        .90153E-04   -1.5337    
   5  Prefactor     1.2440        1.3107        .87708E-04   -1.5485    
   6  Prefactor     12.221        6.1415        .11459E-03   -1.5009    
   7  norm          .10000E-03    1.4609        .90833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9742        .15004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .65539        130.85        .58837E-02   -1.5546    
  10  Prefactor     52.565        74.759        .55315E-04   -1.4257    
  11  Prefactor     5.7820        7.2691        .83517E-03   -1.5227    
  12  Prefactor     6.9689        6.2336        .15200E-03   -1.5180    
  13  norm          11.886        6.7624        .11618E-03   -1.5018    
  14  Prefactor     .10000E-03    45.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5243        2.9199        .13716E-03   -1.5390    
  17  Prefactor     .10000E-03    21.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8675        3.8398        .20864E-03   -1.5435    
  19  norm          .10000E-03    13.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1564        6.5073        .22263E-03   -1.5493    
  21  norm          7.2294        10.455        .14917E-03   -1.5170    
  22  norm          .10000E-03    6.6227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3738        4.1853        .15319E-03   -1.5341    
  24  Prefactor     .10000E-03    6.1684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          23.367        9.5374        .82864E-04   -1.4741    
  26  Prefactor     36.096        60.268        .66709E-04   -1.4506    
  27  Prefactor     2.5367        32.635        .25608E-03   -1.5389    
  28  Prefactor     .10000E-03    10.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     17.504        97.463        .95511E-04   -1.4871    
  30  Prefactor     .10000E-03    4.8045        .23424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .84738        .22254        .26485E-03   -.98335    
  32  Prefactor     1.2134        .25897        .27613E-03   -.85920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8047e-09
Minuit parameter uncertainties:
  1  1.09983e-05
  2  0.000329319
  3  8.69364
  4  2.24803
  5  1.31076
  6  6.1418
  7  9.17088e-07
  8  9.92795e-08
  9  18.561
  10  74.8931
  11  7.27018
  12  6.23413
  13  6.76282
  14  1.37479e-05
  15  4.0441e-05
  16  2.92009
  17  6.33355e-05
  18  3.84035
  19  2.09373e-05
  20  5.48703
  21  10.4574
  22  1.58436e-06
  23  4.18564
  24  2.65024e-05
  25  9.53805
  26  60.3701
  27  18.209
  28  1.45651e-05
  29  82.8149
  30  6.51527e-05
  31  0.222784
  32  0.259242
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.213e+00  2.592e-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.474e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 6.96e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.57e-05

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) = 5955.33405187
delta logL = 0.372951654233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5955.31258255
delta logL = 0.394420966102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9046       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6795       1.0000          .0000       5.0000    
     3 'Normalizat'    .81565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2416       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=   5955.313     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      269 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9037        7.0300        .11037E-03    .21918E-02
   2  alpha         2.6798        .59105        .10248E-01    .22972E-03
   3  Normalizat    .81550        .21052        .26926E-03   -.20026E-03
   4  Prefactor     1.2418        .25627        .27343E-03   -.34747E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.90373
  alpha      = 2.67976
  Normalizat = 0.815496
  Prefactor  = 1.24179
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.313     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9037        6.6208        .44146E-05   -1.5111    
   2  alpha         2.6798        .55692        .40992E-03    .71965E-01
   3  Normalizat    .81550        .21048        .10771E-04   -.99496    
   4  Prefactor     1.2418        .25615        .54686E-04   -.85055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58082e-09
Minuit parameter uncertainties:
  1  6.62139
  2  0.561655
  3  0.210695
  4  0.256408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49752': 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) = 5955.3125822
delta logL = 0.394421318158

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.242e+00  2.564e-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.155e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.23
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.68 +/- 0.56
Photon Flux (Free Index): 9.30e-08 +/- 5.10e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.28e-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/49752/cmap_HighResolution_619056001_619315201_4FGL_J1257.8+3228_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.96e-08', energy_flux2='2.38e-05', photon_flux_error='3.96e-08', dlogl='3.94e-01', energy_flux='2.76e-05', photon_flux2='9.30e-08', job_status='DONE', time_completed='2021-09-06 12:32:43.646532', photon_index_error2='0.56', photon_index2='2.68', ts='5.40', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='0.85', time_epoch_completed='1630956763.65', return_code='0', job_id='49752', GAL2='1.24', EG2='0.82', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='5.10e-08', ts2='6.23', photon_index='2.22' WHERE bin_id='1465' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:32:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 49752: <4FGL_J1257.8+3228_daily_bin1465> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1465 194.473 32.4721 619056001 619315201 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 :                                   758.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

