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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1324
RA = 194.473, Dec = 32.4721
tmin = 582508801, tmax = 582768001
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='49544', job_status='RUN', time_executed='2021-09-06 12:17:21.247490', time_epoch_executed='1630955841.25' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49544

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49544/ft1_4FGL_J1257.8+3228_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49544/ft2_4FGL_J1257.8+3228_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49544/ft1_4FGL_J1257.8+3228_daily_bin1324.fits outfile=/scratch/kocevski/49544/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1324.fits ra=194.473 dec=32.4721 rad=12.0 tmin=582508801.0 tmax=582768001.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.67
user 3.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49544/ft2_4FGL_J1257.8+3228_daily_bin1324.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/49544/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/49544/ft1_filtered_4FGL_J1257.8+3228_daily_bin1324.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/49544/ft1_filtered_4FGL_J1257.8+3228_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/49544/ft2_4FGL_J1257.8+3228_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/49544/ltcube_582508801_582768001_4FGL_J1257.8+3228_daily_bin1324.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/49544/ft2_4FGL_J1257.8+3228_daily_bin1324.fits
.....................!
real 12.27
user 11.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49544/ft1_filtered_4FGL_J1257.8+3228_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/49544/ft2_4FGL_J1257.8+3228_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/49544/ltcube_582508801_582768001_4FGL_J1257.8+3228_daily_bin1324.fits outfile=/scratch/kocevski/49544/expmap_582508801_582768001_4FGL_J1257.8+3228_daily_bin1324.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/49544/ltcube_582508801_582768001_4FGL_J1257.8+3228_daily_bin1324.fits
.....................!
real 191.31
user 186.48
sys 4.34

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/49544/ft1_filtered_4FGL_J1257.8+3228_daily_bin1324.fits scfile=/scratch/kocevski/49544/ft2_4FGL_J1257.8+3228_daily_bin1324.fits outfile=/scratch/kocevski/49544/cmap_582508801_582768001_4FGL_J1257.8+3228_daily_bin1324.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49544/ft1_filtered_4FGL_J1257.8+3228_daily_bin1324.fits scfile=/scratch/kocevski/49544/ft2_4FGL_J1257.8+3228_daily_bin1324.fits outfile=/scratch/kocevski/49544/cmap_HighResolution_582508801_582768001_4FGL_J1257.8+3228_daily_bin1324.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.6248       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2854       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17177E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    24.307       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.124       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2763       1.0000         .10000E-03   10000.    
    13 'norm      '    9.2611       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.372       1.0000         .10000E-03   10000.    
    18 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    24.334       1.0000         .10000E-03   10000.    
    21 'norm      '    .57221       1.0000         .10000E-03   10000.    
    22 'norm      '    34.423       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    27.692       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    32.135       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .31614E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.9061       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0333       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97889       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=   6380.763     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4357 TOTAL
                     EDM=   .95E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.971       -.19038E-06** at limit **
   2  norm          8.6255        3.5630        .80310E-08    .15085E-05
   3  Prefactor     .10000E-03    2.4074       -.47391E-08** at limit **
   4  Prefactor     .10000E-03    .96773       -.69740E-08** at limit **
   5  Prefactor     2.2863        2.4161        .24615E-07   -.15534E-05
   6  Prefactor     .10000E-03    3.5511       -.75951E-07** at limit **
   7  norm          24.312        7.5189        .15054E-07    .26483E-04
   8  Prefactor     .10000E-03    4.6195       -.60725E-07** at limit **
   9  Prefactor     .10000E-03    16.069        .42115E-06** at limit **
  10  Prefactor     21.015        86.230        .11267E-04    .58664E-06
  11  Prefactor     .10000E-03    4.8514        .29862E-07** at limit **
  12  Prefactor     2.2775        4.3473        .84164E-06   -.10340E-04
  13  norm          9.2644        6.7057       -.42213E-06   -.49753E-05
  14  Prefactor     .10000E-03    26.550       -.88439E-07** at limit **
  15  Prefactor     .10000E-03    16.661       -.21200E-06** at limit **
  16  norm          3.8606        3.6218        .92446E-07   -.47875E-05
  17  Prefactor     22.367        16.666       -.11169E-06    .42882E-05
  18  norm          .10000E-03    6.3197       -.28836E-07** at limit **
  19  norm          .10000E-03    6.5059        .53426E-07** at limit **
  20  norm          24.334        8.7228        .98838E-07    .95903E-04
  21  norm          .59151        11.339       -.43871E-07   -.33707E-04
  22  norm          34.427        25.764        .80859E-08   -.54514E-06
  23  Prefactor     .10000E-03    4.2364       -.48434E-07** at limit **
  24  Prefactor     .10000E-03    37.810        .10263E-06** at limit **
  25  norm          27.693        11.236        .21468E-07   -.71098E-06
  26  Prefactor     .10000E-03    90.349       -.67923E-06** at limit **
  27  Prefactor     .10000E-03    13.889        .31566E-06** at limit **
  28  Prefactor     32.140        27.172       -.31215E-07   -.41163E-05
  29  Prefactor     .10000E-03    269.73        .38255E-05** at limit **
  30  Prefactor     1.9065        5.1844        .21367E-06   -.11254E-05
  31  Normalizat    1.0336        .19262        .19725E-06   -.10562E-04
  32  Prefactor     .97838        .22717       -.77665E-06    .91037E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.62551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.28627
  Prefactor  = 0.0001
  norm       = 24.3123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0146
  Prefactor  = 0.0001
  Prefactor  = 2.27745
  norm       = 9.26437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.86059
  Prefactor  = 22.3671
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.3335
  norm       = 0.591507
  norm       = 34.4268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.1404
  Prefactor  = 0.0001
  Prefactor  = 1.90649
  Normalizat = 1.03364
  Prefactor  = 0.978379
 **********
 **   18 **HESSE 
 **********

 FCN=   6380.763     FROM HESSE     STATUS=OK           659 CALLS     5016 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.6255        3.5538        .91493E-04   -1.5120    
   3  Prefactor     .10000E-03    2.4138        .12103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .97388        .76616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2863        2.3988        .11939E-03   -1.5406    
   6  Prefactor     .10000E-03    8.9038        .28631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          24.312        7.3414        .81248E-04   -1.4721    
   8  Prefactor     .10000E-03    4.6346        .16765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.015        85.942        .87147E-04   -1.4791    
  11  Prefactor     .10000E-03    4.8751        .17179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2775        4.3493        .11073E-02   -1.5406    
  13  norm          9.2644        6.7200        .13169E-03   -1.5099    
  14  Prefactor     .10000E-03    26.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8606        3.6186        .70972E-03   -1.5315    
  17  Prefactor     22.367        16.668        .84685E-04   -1.4762    
  18  norm          .10000E-03    6.4697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.5172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          24.334        8.9511        .81204E-04   -1.4721    
  21  norm          .59151        38.198        .39028E-02   -1.5554    
  22  norm          34.427        25.762        .68301E-04   -1.4534    
  23  Prefactor     .10000E-03    4.3921        .32002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          27.693        11.235        .76130E-04   -1.4655    
  26  Prefactor     .10000E-03    90.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     32.140        27.163        .70684E-04   -1.4574    
  29  Prefactor     .10000E-03    273.59        .21368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.9065        5.1749        .28563E-03   -1.5432    
  31  Normalizat    1.0336        .22905        .26031E-03   -.91912    
  32  Prefactor     .97838        .26761        .31904E-03   -.93454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30458e-08
Minuit parameter uncertainties:
  1  1.91146e-07
  2  3.55393
  3  4.04744e-08
  4  3.37273e-08
  5  2.39893
  6  3.56745e-05
  7  7.3417
  8  1.49362e-06
  9  2.4279e-07
  10  85.2071
  11  8.33203e-07
  12  4.34988
  13  6.72058
  14  1.02337e-06
  15  1.28838e-05
  16  3.61876
  17  16.6719
  18  1.8364e-06
  19  8.71587e-07
  20  8.95156
  21  9.5123
  22  25.7706
  23  3.59346e-06
  24  2.26368e-05
  25  11.2357
  26  6.58309e-06
  27  2.80953e-07
  28  27.1738
  29  2.75307e-06
  30  5.1761
  31  0.229266
  32  0.267974
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  9.264e+00  6.721e+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:  9.784e-01  2.680e-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.034e+00  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.43
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.43e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.56e-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) = 6380.75359861
delta logL = 0.0089476155872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6380.75048123
delta logL = 0.0120649866039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6368       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0705       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97236       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=   6380.750     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      242 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6363        8.2330        .13640E-03    .12419E-04
   2  alpha         2.0707        .99993        .17786E-01   -.27089E-05
   3  Normalizat    1.0447        .23126        .25938E-03   -.33574E-04
   4  Prefactor     .97238        .26559        .32005E-03   -.35699E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.63627
  alpha      = 2.07075
  Normalizat = 1.04466
  Prefactor  = 0.972381
 **********
 **   18 **HESSE 
 **********

 FCN=   6380.750     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6363        8.6217        .54559E-05   -1.5120    
   2  alpha         2.0707        1.0432        .71145E-03   -.17256    
   3  Normalizat    1.0447        .23232        .10375E-04   -.91549    
   4  Prefactor     .97238        .26597        .12802E-04   -.93656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49723e-12
Minuit parameter uncertainties:
  1  8.62289
  2  1.07724
  3  0.232542
  4  0.266331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49544': 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) = 6380.75048115
delta logL = 0.0120650694535

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  8.636e+00  8.623e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.071e+00  1.077e+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:  9.724e-01  2.663e-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.045e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.47
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.07 +/- 1.08
Photon Flux (Free Index): 4.31e-08 +/- 8.34e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.57e-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/49544/cmap_HighResolution_582508801_582768001_4FGL_J1257.8+3228_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.43e-08', energy_flux2='2.09e-05', photon_flux_error='3.93e-08', dlogl='1.21e-02', energy_flux='2.15e-05', photon_flux2='4.31e-08', job_status='DONE', time_completed='2021-09-06 12:31:03.824518', photon_index_error2='1.08', photon_index2='2.07', ts='9.43', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.03', time_epoch_completed='1630956663.82', return_code='0', job_id='49544', GAL2='0.97', EG2='1.04', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='8.34e-08', ts2='9.47', photon_index='2.22' WHERE bin_id='1324' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:31:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 49544: <4FGL_J1257.8+3228_daily_bin1324> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1324 194.473 32.4721 582508801 582768001 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 :                                   805.23 sec.
    Max Memory :                                 1019 MB
    Average Memory :                             279.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

