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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1161
RA = 194.473, Dec = 32.4721
tmin = 540259201, tmax = 540518401
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='49277', job_status='RUN', time_executed='2021-09-06 12:17:36.123945', time_epoch_executed='1630955856.12' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49277

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49277/ft1_4FGL_J1257.8+3228_daily_bin1161.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49277/ft2_4FGL_J1257.8+3228_daily_bin1161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49277/ft1_4FGL_J1257.8+3228_daily_bin1161.fits outfile=/scratch/kocevski/49277/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1161.fits ra=194.473 dec=32.4721 rad=12.0 tmin=540259201.0 tmax=540518401.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.55
user 3.32
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49277/ft1_filtered_4FGL_J1257.8+3228_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/49277/ft2_4FGL_J1257.8+3228_daily_bin1161.fits sctable="SC_DATA" expcube=/scratch/kocevski/49277/ltcube_540259201_540518401_4FGL_J1257.8+3228_daily_bin1161.fits outfile=/scratch/kocevski/49277/expmap_540259201_540518401_4FGL_J1257.8+3228_daily_bin1161.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/49277/ltcube_540259201_540518401_4FGL_J1257.8+3228_daily_bin1161.fits
.....................!
real 190.83
user 185.10
sys 4.77

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/49277/ft1_filtered_4FGL_J1257.8+3228_daily_bin1161.fits scfile=/scratch/kocevski/49277/ft2_4FGL_J1257.8+3228_daily_bin1161.fits outfile=/scratch/kocevski/49277/cmap_540259201_540518401_4FGL_J1257.8+3228_daily_bin1161.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49277/ft1_filtered_4FGL_J1257.8+3228_daily_bin1161.fits scfile=/scratch/kocevski/49277/ft2_4FGL_J1257.8+3228_daily_bin1161.fits outfile=/scratch/kocevski/49277/cmap_HighResolution_540259201_540518401_4FGL_J1257.8+3228_daily_bin1161.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=194.473 yref=32.4721 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1360       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4090       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14581       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6360       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.162       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1641       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.9283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .90086       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6094       1.0000         .10000E-03   10000.    
    19 'norm      '    25.343       1.0000         .10000E-03   10000.    
    20 'norm      '    .10794E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9850       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6897       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.634       1.0000         .10000E-03   10000.    
    26 'Prefactor '    54.000       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.602       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.9717       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0449       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95911       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=   6269.851     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     3762 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.563       -.67826E-07** at limit **
   2  norm          1.2072        1.6006        .19821E-07   -.53267E-06
   3  Prefactor     1.1343        13.065        .12728E-05   -.24974E-04
   4  Prefactor     .10000E-03    .87251       -.74034E-08** at limit **
   5  Prefactor     6.4090        2.9951        .46564E-07    .60526E-04
   6  Prefactor     .13918        3.0500       -.13516E-06   -.12764E-03
   7  norm          3.6369        3.3891        .72486E-07    .12119E-04
   8  Prefactor     5.9891        7.7471        .88007E-07    .18004E-04
   9  Prefactor     14.162        13.485       -.60543E-07    .25898E-04
  10  Prefactor     .10000E-03    35.481       -.46826E-06** at limit **
  11  Prefactor     2.1644        5.5318        .52975E-05    .16923E-04
  12  Prefactor     .10000E-03    1.6906       -.11336E-07** at limit **
  13  norm          9.9279        4.7223        .39443E-07    .53178E-03
  14  Prefactor     .10000E-03    41.286        .12543E-05** at limit **
  15  Prefactor     .10000E-03    10.915       -.40881E-06** at limit **
  16  norm          .90103        2.7133        .59662E-06    .51365E-03
  17  Prefactor     .10000E-03    4.3561        .51917E-08** at limit **
  18  norm          4.6090        5.6277        .17695E-05    .25855E-03
  19  norm          25.344        15.573       -.58677E-07   -.97147E-04
  20  norm          .10000E-03    1.9571       -.22303E-05** at limit **
  21  norm          .10000E-03    2.4623       -.30600E-07** at limit **
  22  norm          1.9945        62.734       -.25946E-05   -.28886E-04
  23  Prefactor     1.6898        2.6255       -.38294E-07    .39175E-03
  24  Prefactor     .10000E-03    4.6072        .30987E-07** at limit **
  25  norm          11.633        8.5732        .48114E-06    .44924E-03
  26  Prefactor     54.004        45.034       -.11886E-06    .48612E-04
  27  Prefactor     19.602        16.303       -.14611E-06   -.10742E-03
  28  Prefactor     .10000E-03    14.596        .38469E-06** at limit **
  29  Prefactor     .10000E-03    32.887       -.95635E-06** at limit **
  30  Prefactor     1.9718        3.9610        .11755E-06   -.50694E-04
  31  Normalizat    1.0449        .17428        .11205E-06    .25086E-03
  32  Prefactor     .95908        .20778       -.14769E-05    .21427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.20716
  Prefactor  = 1.13435
  Prefactor  = 0.0001
  Prefactor  = 6.40898
  Prefactor  = 0.139182
  norm       = 3.63687
  Prefactor  = 5.98909
  Prefactor  = 14.1622
  Prefactor  = 0.0001
  Prefactor  = 2.16441
  Prefactor  = 0.0001
  norm       = 9.9279
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.901027
  Prefactor  = 0.0001
  norm       = 4.60901
  norm       = 25.3443
  norm       = 0.000100004
  norm       = 0.0001
  norm       = 1.99453
  Prefactor  = 1.68976
  Prefactor  = 0.0001
  norm       = 11.6333
  Prefactor  = 54.0036
  Prefactor  = 19.6016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97179
  Normalizat = 1.04491
  Prefactor  = 0.959077
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.851     FROM HESSE     STATUS=OK           663 CALLS     4425 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2072        1.5712        .11134E-03   -1.5488    
   3  Prefactor     1.1343        13.282        .43717E-03   -1.5495    
   4  Prefactor     .10000E-03    .87806        .72117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4090        2.9835        .87473E-04   -1.5202    
   6  Prefactor     .13918        14.057        .26658E-02   -1.5633    
   7  norm          3.6369        3.3944        .13500E-03   -1.5327    
   8  Prefactor     5.9891        7.7366        .16407E-03   -1.5218    
   9  Prefactor     14.162        13.487        .53216E-03   -1.4955    
  10  Prefactor     .10000E-03    35.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1644        5.6166        .13999E-02   -1.5414    
  12  Prefactor     .10000E-03    1.6931        .10054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.9279        4.7053        .56996E-03   -1.5078    
  14  Prefactor     .10000E-03    41.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .90103        2.6334        .21624E-03   -1.5518    
  17  Prefactor     .10000E-03    4.3587        .16138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.6090        5.6305        .93738E-03   -1.5279    
  19  norm          25.344        15.579        .79573E-04   -1.4701    
  20  norm          .10000E-03    9.1201        .18620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4779        .12122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9945        61.785        .29413E-03   -1.5426    
  23  Prefactor     1.6898        2.5743        .14752E-03   -1.5448    
  24  Prefactor     .10000E-03    4.6149        .16594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.633        8.5200        .11745E-03   -1.5026    
  26  Prefactor     54.004        44.953        .27292E-03   -1.4237    
  27  Prefactor     19.602        16.344        .90466E-04   -1.4822    
  28  Prefactor     .10000E-03    14.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    32.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.9718        3.9374        .21459E-03   -1.5427    
  31  Normalizat    1.0449        .20460        .23774E-03   -.91541    
  32  Prefactor     .95908        .24410        .29611E-03   -.94106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45913e-08
Minuit parameter uncertainties:
  1  1.95863e-05
  2  1.57126
  3  7.76485
  4  6.72518e-07
  5  2.98357
  6  2.79716
  7  3.39462
  8  7.73791
  9  13.4903
  10  8.5694e-05
  11  5.61801
  12  1.06946e-06
  13  4.70552
  14  0.000417001
  15  6.15118e-05
  16  2.63373
  17  1.58929e-06
  18  5.63115
  19  15.5817
  20  0.000364164
  21  1.69107e-06
  22  22.2266
  23  2.57449
  24  1.02549e-05
  25  8.52087
  26  44.9812
  27  16.3477
  28  7.73393e-05
  29  0.000229594
  30  3.9379
  31  0.204751
  32  0.24438
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  9.928e+00  4.706e+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.591e-01  2.444e-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.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.75
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.09e-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) = 6268.14256411
delta logL = 1.70818227787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6268.10966099
delta logL = 1.7410853965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5612       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3845       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94314       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=   6268.110     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5573        4.4829        .34250E-02   -.19699E-02
   2  alpha         1.3836        .33416        .27627       -.41760E-04
   3  Normalizat    1.0751        .16906        .39115E-01   -.32325E-05
   4  Prefactor     .94337        .20356        .67467E-01    .15230E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.55726
  alpha      = 1.38361
  Normalizat = 1.07511
  Prefactor  = 0.94337
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.110     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5573        5.3477        .57800E-03   -1.5123    
   2  alpha         1.3836        .42914        .11326E-01   -.46291    
   3  Normalizat    1.0751        .19861        .23480E-03   -.90555    
   4  Prefactor     .94337        .23894        .29844E-03   -.94642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59003e-12
Minuit parameter uncertainties:
  1  5.34803
  2  0.431822
  3  0.198752
  4  0.23921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49277': 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) = 6268.1096578
delta logL = 1.74108859541

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  8.557e+00  5.348e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.384e+00  4.318e-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:  9.434e-01  2.392e-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.075e+00  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.25
Ra Dec: 194.473 32.472
Photon Index (Free Index): 1.38 +/- 0.43
Photon Flux (Free Index): 2.67e-08 +/- 1.82e-08
Energy Flux (Free Index): 5.33e-05 +/- 4.38e-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/49277/cmap_HighResolution_540259201_540518401_4FGL_J1257.8+3228_daily_bin1161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='5.33e-05', photon_flux_error='2.75e-08', dlogl='1.74e+00', energy_flux='2.31e-05', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-09-06 12:29:59.134251', photon_index_error2='0.43', photon_index2='1.38', ts='21.75', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='4.38e-05', EG='1.04', time_epoch_completed='1630956599.13', return_code='0', job_id='49277', GAL2='0.94', EG2='1.08', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='1.82e-08', ts2='25.25', photon_index='2.22' WHERE bin_id='1161' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:29:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 49277: <4FGL_J1257.8+3228_daily_bin1161> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1161 194.473 32.4721 540259201 540518401 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 :                                   734.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            873 sec.

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

