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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1075
RA = 194.473, Dec = 32.4721
tmin = 517968001, tmax = 518227201
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='47797', job_status='RUN', time_executed='2021-09-06 12:14:26.919761', time_epoch_executed='1630955666.92' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47797

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47797/ft1_4FGL_J1257.8+3228_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47797/ft2_4FGL_J1257.8+3228_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47797/ft1_4FGL_J1257.8+3228_daily_bin1075.fits outfile=/scratch/kocevski/47797/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1075.fits ra=194.473 dec=32.4721 rad=12.0 tmin=517968001.0 tmax=518227201.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.82
user 3.50
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47797/ft1_filtered_4FGL_J1257.8+3228_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/47797/ft2_4FGL_J1257.8+3228_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/47797/ltcube_517968001_518227201_4FGL_J1257.8+3228_daily_bin1075.fits outfile=/scratch/kocevski/47797/expmap_517968001_518227201_4FGL_J1257.8+3228_daily_bin1075.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/47797/ltcube_517968001_518227201_4FGL_J1257.8+3228_daily_bin1075.fits
.....................!
real 190.13
user 185.32
sys 4.45

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/47797/ft1_filtered_4FGL_J1257.8+3228_daily_bin1075.fits scfile=/scratch/kocevski/47797/ft2_4FGL_J1257.8+3228_daily_bin1075.fits outfile=/scratch/kocevski/47797/cmap_517968001_518227201_4FGL_J1257.8+3228_daily_bin1075.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.59
user 0.37
sys 0.17

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    11.852       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85038       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8306       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.378       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9191       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .68852E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.2347       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.717       1.0000         .10000E-03   10000.    
    18 'norm      '    .65177       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.7566       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    99.477       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2927       1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.500       1.0000         .10000E-03   10000.    
    29 'Prefactor '    153.38       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2933       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .56361       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=   5644.270     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     4405 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.084        .21164E-05** at limit **
   2  norm          11.853        4.0035        .82562E-07    .91588E-04
   3  Prefactor     .84956        5.4128        .74319E-06   -.18136E-03
   4  Prefactor     .10000E-03    1.3642       -.35581E-07** at limit **
   5  Prefactor     1.8307        2.0014        .20135E-07   -.68133E-04
   6  Prefactor     .10000E-03    1.9220       -.85850E-08** at limit **
   7  norm          11.378        5.2401        .52988E-07   -.34862E-04
   8  Prefactor     4.1671        6.9686        .26773E-05   -.53516E-03
   9  Prefactor     3.9224        12.296       -.86842E-06   -.20284E-03
  10  Prefactor     .10001E-03    61.082       -.10897E-04** at limit **
  11  Prefactor     .10000E-03    3.9905        .11639E-06** at limit **
  12  Prefactor     .10093E-03    9.3332        .36970E-05** at limit **
  13  norm          6.2349        4.4694        .13663E-06   -.28727E-03
  14  Prefactor     .10001E-03    50.497        .85741E-05** at limit **
  15  Prefactor     .10000E-03    8.9822       -.12477E-05** at limit **
  16  norm          .10000E-03    1.9142       -.46643E-08** at limit **
  17  Prefactor     32.734        27.335       -.22077E-05   -.70577E-03
  18  norm          .65110        7.5818        .35497E-05   -.36442E-03
  19  norm          .10000E-03    15.735       -.17382E-05** at limit **
  20  norm          .10000E-03    3.3276       -.60004E-06** at limit **
  21  norm          .10000E-03    5.2580        .32437E-06** at limit **
  22  norm          .10000E-03    13.980       -.50276E-07** at limit **
  23  Prefactor     .10000E-03    2.2615       -.57711E-06** at limit **
  24  Prefactor     7.7496        15.698        .22985E-05   -.12880E-03
  25  norm          .10000E-03    2.3730       -.24436E-07** at limit **
  26  Prefactor     99.506        67.310        .48393E-05    .24894E-03
  27  Prefactor     3.2868        13.894        .82748E-06   -.27020E-05
  28  Prefactor     31.500        24.131        .36704E-06    .14689E-04
  29  Prefactor     153.38        101.24        .10429E-05    .96265E-05
  30  Prefactor     .10000E-03    4.6505       -.59678E-06** at limit **
  31  Normalizat    1.2934        .18689       -.19126E-05   -.28822E-03
  32  Prefactor     .56348        .20828       -.41204E-07   -.29321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 11.8529
  Prefactor  = 0.849556
  Prefactor  = 0.0001
  Prefactor  = 1.83073
  Prefactor  = 0.0001
  norm       = 11.378
  Prefactor  = 4.16714
  Prefactor  = 3.92239
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.000100926
  norm       = 6.23493
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.7337
  norm       = 0.651097
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.74959
  norm       = 0.0001
  Prefactor  = 99.5061
  Prefactor  = 3.28676
  Prefactor  = 31.4999
  Prefactor  = 153.38
  Prefactor  = 0.0001
  Normalizat = 1.29341
  Prefactor  = 0.563475
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.270     FROM HESSE     STATUS=OK           659 CALLS     5064 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.853        3.8612        .80421E-04   -1.5019    
   3  Prefactor     .84956        18.595        .32770E-02   -1.5524    
   4  Prefactor     .10000E-03    2.1433        .16402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8307        1.9789        .10530E-03   -1.5437    
   6  Prefactor     .10000E-03    1.9260        .10170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.378        5.2371        .11269E-03   -1.5033    
   8  Prefactor     4.1671        7.0267        .98720E-03   -1.5300    
   9  Prefactor     3.9224        12.203        .20379E-03   -1.5312    
  10  Prefactor     .10001E-03    62.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0139        .14656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10093E-03    58.005        .37110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.2349        4.4646        .64762E-03   -1.5209    
  14  Prefactor     .10001E-03    51.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.0045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9450        .10147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.734        25.104        .70055E-04   -1.4563    
  18  norm          .65110        7.7615        .38030E-03   -1.5547    
  19  norm          .10000E-03    15.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.4625        .26672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.3276        .16810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    14.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4729        .20458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.7496        15.082        .71990E-03   -1.5151    
  25  norm          .10000E-03    2.3774        .11302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     99.506        68.979        .20153E-03   -1.3710    
  27  Prefactor     3.2868        13.729        .22313E-03   -1.5345    
  28  Prefactor     31.500        24.046        .71392E-04   -1.4585    
  29  Prefactor     153.38        101.40        .32549E-04   -1.3225    
  30  Prefactor     .10000E-03    4.8389        .31611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2934        .21559        .21733E-03   -.83763    
  32  Prefactor     .56348        .23841        .36028E-03   -1.0915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73113e-08
Minuit parameter uncertainties:
  1  0.000156588
  2  3.86124
  3  7.95153
  4  1.747e-05
  5  1.97901
  6  7.18952e-07
  7  5.23732
  8  7.02805
  9  12.2105
  10  0.00180796
  11  1.40226e-05
  12  0.0146715
  13  4.46487
  14  0.00136553
  15  8.48995e-05
  16  6.23448e-06
  17  25.1121
  18  4.49639
  19  0.000119194
  20  2.22521e-05
  21  1.69054e-05
  22  1.53399e-05
  23  0.000176499
  24  15.0894
  25  2.23852e-06
  26  69.0347
  27  13.4398
  28  24.0531
  29  101.518
  30  8.48507e-06
  31  0.21574
  32  0.238842
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.235e+00  4.465e+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:  5.635e-01  2.388e-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.293e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.61
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.65e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.04e-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) = 5644.12764129
delta logL = 0.142556631583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5644.12686034
delta logL = 0.143337584964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3399       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8940       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55748       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=   5644.127     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3399        6.3902        .39853E-02    .12677E-02
   2  alpha         1.8939        .70491        .40247       -.79705E-05
   3  Normalizat    1.3036        .18137        .48996E-01    .78310E-06
   4  Prefactor     .55742        .20652        .81744E-01    .30702E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33991
  alpha      = 1.89393
  Normalizat = 1.30358
  Prefactor  = 0.557425
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.127     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3399        4.6888        .13409E-03   -1.5204    
   2  alpha         1.8939        .59237        .15511E-01   -.24487    
   3  Normalizat    1.3036        .20735        .21660E-03   -.83460    
   4  Prefactor     .55742        .23573        .36208E-03   -1.0941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46571e-10
Minuit parameter uncertainties:
  1  4.68903
  2  0.598418
  3  0.207483
  4  0.236146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47797': 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) = 5644.12686029
delta logL = 0.143337637746

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.340e+00  4.689e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.894e+00  5.984e-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:  5.574e-01  2.361e-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.304e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.90
Ra Dec: 194.473 32.472
Photon Index (Free Index): 1.89 +/- 0.60
Photon Flux (Free Index): 2.67e-08 +/- 2.59e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.47e-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/47797/cmap_HighResolution_517968001_518227201_4FGL_J1257.8+3228_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.65e-08', energy_flux2='1.73e-05', photon_flux_error='2.61e-08', dlogl='1.43e-01', energy_flux='1.45e-05', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-09-06 12:26:46.471292', photon_index_error2='0.60', photon_index2='1.89', ts='5.61', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='1.29', time_epoch_completed='1630956406.47', return_code='0', job_id='47797', GAL2='0.56', EG2='1.30', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.59e-08', ts2='5.90', photon_index='2.22' WHERE bin_id='1075' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:26:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 47797: <4FGL_J1257.8+3228_daily_bin1075> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1075 194.473 32.4721 517968001 518227201 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.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

