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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1280
RA = 194.473, Dec = 32.4721
tmin = 571104001, tmax = 571363201
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='49474', job_status='RUN', time_executed='2021-09-06 12:18:09.354060', time_epoch_executed='1630955889.35' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49474

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49474/ft1_4FGL_J1257.8+3228_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49474/ft2_4FGL_J1257.8+3228_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49474/ft1_4FGL_J1257.8+3228_daily_bin1280.fits outfile=/scratch/kocevski/49474/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1280.fits ra=194.473 dec=32.4721 rad=12.0 tmin=571104001.0 tmax=571363201.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.20
user 2.77
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49474/ft1_filtered_4FGL_J1257.8+3228_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/49474/ft2_4FGL_J1257.8+3228_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/49474/ltcube_571104001_571363201_4FGL_J1257.8+3228_daily_bin1280.fits outfile=/scratch/kocevski/49474/expmap_571104001_571363201_4FGL_J1257.8+3228_daily_bin1280.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/49474/ltcube_571104001_571363201_4FGL_J1257.8+3228_daily_bin1280.fits
.....................!
real 190.83
user 185.43
sys 4.47

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/49474/ft1_filtered_4FGL_J1257.8+3228_daily_bin1280.fits scfile=/scratch/kocevski/49474/ft2_4FGL_J1257.8+3228_daily_bin1280.fits outfile=/scratch/kocevski/49474/cmap_571104001_571363201_4FGL_J1257.8+3228_daily_bin1280.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49474/ft1_filtered_4FGL_J1257.8+3228_daily_bin1280.fits scfile=/scratch/kocevski/49474/ft2_4FGL_J1257.8+3228_daily_bin1280.fits outfile=/scratch/kocevski/49474/cmap_HighResolution_571104001_571363201_4FGL_J1257.8+3228_daily_bin1280.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9088       1.0000         .10000E-03   10000.    
     7 'norm      '    .97871       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.8030       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.7958       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.001       1.0000         .10000E-03   10000.    
    18 'norm      '    .18906E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.058       1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7530       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3461       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .64644       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0058       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11609E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .15177E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    111.83       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0440       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84660       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=   4767.102     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4364 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.914       -.95425E-06** at limit **
   2  norm          2.6492        2.7337       -.21410E-07   -.22444E-04
   3  Prefactor     .10000E-03    7.7526       -.84755E-07** at limit **
   4  Prefactor     3.9844        3.1972        .10177E-06    .64447E-04
   5  Prefactor     .10000E-03    1.3288       -.50190E-08** at limit **
   6  Prefactor     4.9092        4.7043       -.47455E-07   -.88861E-05
   7  norm          .97853        3.1492        .85332E-06    .33159E-04
   8  Prefactor     .10000E-03    11.904       -.59834E-06** at limit **
   9  Prefactor     .10000E-03    14.176        .39164E-06** at limit **
  10  Prefactor     40.371        100.72        .64619E-05    .79268E-04
  11  Prefactor     .10000E-03    1.9984       -.38874E-08** at limit **
  12  Prefactor     .10000E-03    7.5583        .48785E-07** at limit **
  13  norm          7.8033        5.4779       -.17310E-06   -.10095E-03
  14  Prefactor     .10000E-03    15.375        .41431E-06** at limit **
  15  Prefactor     .10000E-03    8.8302        .89135E-08** at limit **
  16  norm          5.7964        4.2438        .93884E-07    .91464E-04
  17  Prefactor     12.007        11.520        .17224E-06   -.18195E-04
  18  norm          .10000E-03    2.1518       -.99076E-07** at limit **
  19  norm          14.061        13.984        .13699E-06   -.11987E-04
  20  norm          .10000E-03    2.0851        .17118E-06** at limit **
  21  norm          1.7528        4.1309        .47190E-06    .59711E-04
  22  norm          5.3458        17.699        .40693E-05   -.12761E-03
  23  Prefactor     .64840        1.8892        .66450E-06    .51838E-04
  24  Prefactor     .10000E-03    4.9306       -.94315E-08** at limit **
  25  norm          1.0070        12.819        .32879E-05   -.14076E-03
  26  Prefactor     .10000E-03    14.633        .45215E-06** at limit **
  27  Prefactor     .10000E-03    37.674        .36050E-06** at limit **
  28  Prefactor     .10000E-03    61.216       -.81552E-06** at limit **
  29  Prefactor     111.86        73.071        .32715E-05    .21249E-03
  30  Prefactor     .10000E-03    2.2315       -.28451E-07** at limit **
  31  Normalizat    1.0439        .18816       -.23670E-05   -.94627E-04
  32  Prefactor     .84647        .21648        .79268E-06   -.16841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.64921
  Prefactor  = 0.0001
  Prefactor  = 3.98442
  Prefactor  = 0.0001
  Prefactor  = 4.90924
  norm       = 0.978533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.3713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.80327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.79644
  Prefactor  = 12.0067
  norm       = 0.0001
  norm       = 14.0613
  norm       = 0.000100004
  norm       = 1.75284
  norm       = 5.34585
  Prefactor  = 0.648399
  Prefactor  = 0.0001
  norm       = 1.00697
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 111.855
  Prefactor  = 0.0001
  Normalizat = 1.04387
  Prefactor  = 0.84647
 **********
 **   18 **HESSE 
 **********

 FCN=   4767.102     FROM HESSE     STATUS=OK           665 CALLS     5029 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6492        2.7379        .11058E-03   -1.5382    
   3  Prefactor     .10000E-03    7.7901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9844        3.1970        .10512E-03   -1.5309    
   5  Prefactor     .10000E-03    1.3521        .77671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9092        4.7048        .14289E-03   -1.5265    
   7  norm          .97853        3.0073        .21576E-02   -1.5510    
   8  Prefactor     .10000E-03    12.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.371        103.29        .63108E-04   -1.4436    
  11  Prefactor     .10000E-03    1.9994        .95321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8363        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.8033        5.4544        .12212E-03   -1.5149    
  14  Prefactor     .10000E-03    15.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.7964        4.2514        .11708E-03   -1.5226    
  17  Prefactor     12.007        11.442        .11563E-03   -1.5015    
  18  norm          .10000E-03    5.2435        .19599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.061        14.001        .10683E-03   -1.4958    
  20  norm          .10000E-03    8.0748        .17699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7528        3.8695        .19710E-03   -1.5443    
  22  norm          5.3458        17.791        .86907E-03   -1.5246    
  23  Prefactor     .64840        1.7689        .15387E-02   -1.5547    
  24  Prefactor     .10000E-03    4.9415        .14966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0070        13.158        .46223E-02   -1.5507    
  26  Prefactor     .10000E-03    14.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    38.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    62.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     111.86        75.262        .38039E-04   -1.3589    
  30  Prefactor     .10000E-03    2.3119        .20135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0439        .21657        .21754E-03   -.91575    
  32  Prefactor     .84647        .25404        .28964E-03   -.98037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.63041e-08
Minuit parameter uncertainties:
  1  0.00017283
  2  2.738
  3  4.00199e-06
  4  3.19712
  5  1.82114e-06
  6  4.70511
  7  3.00773
  8  7.50136e-05
  9  7.52942e-05
  10  103.752
  11  2.05399e-09
  12  1.35307e-05
  13  5.45477
  14  7.4754e-05
  15  6.44309e-06
  16  4.25158
  17  11.4443
  18  2.05384e-05
  19  14.0038
  20  0.000358007
  21  3.87009
  22  17.8085
  23  1.76907
  24  1.79599e-07
  25  7.28173
  26  7.61944e-05
  27  0.000299995
  28  4.10512e-05
  29  75.3268
  30  5.24905e-06
  31  0.216757
  32  0.254391
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  7.803e+00  5.455e+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:  8.465e-01  2.544e-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.044e+00  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.62
Ra Dec: 194.473 32.472
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.57e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.27e-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) = 4766.91472796
delta logL = 0.187507111946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4766.90590952
delta logL = 0.196325554967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0011       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6548       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86816       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=   4766.906     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9970        83.866        .37904E-02    .11433E-03
   2  alpha         2.6538        3.6469        .32418        .38642E-04
   3  Normalizat    1.0122        .10200        .44870E-01    .45786E-05
   4  Prefactor     .86863        .87688E-01    .64706E-01    .11729E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.99702
  alpha      = 2.65383
  Normalizat = 1.01223
  Prefactor  = 0.868628
 **********
 **   18 **HESSE 
 **********

 FCN=   4766.906     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9970        5.0536        .10149E-03   -1.5179    
   2  alpha         2.6538        .68847        .11931E-01    .61569E-01
   3  Normalizat    1.0122        .21483        .22039E-03   -.92622    
   4  Prefactor     .86863        .25417        .28621E-03   -.97246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69091e-12
Minuit parameter uncertainties:
  1  5.05389
  2  0.697516
  3  0.215018
  4  0.254517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49474': 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) = 4766.90590399
delta logL = 0.196331090295

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  6.997e+00  5.054e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.654e+00  6.975e-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:  8.686e-01  2.545e-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.012e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.03
Ra Dec: 194.473 32.472
Photon Index (Free Index): 2.65 +/- 0.70
Photon Flux (Free Index): 7.05e-08 +/- 5.50e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.08e-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/49474/cmap_HighResolution_571104001_571363201_4FGL_J1257.8+3228_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.57e-08', energy_flux2='1.84e-05', photon_flux_error='3.19e-08', dlogl='1.96e-01', energy_flux='1.81e-05', photon_flux2='7.05e-08', job_status='DONE', time_completed='2021-09-06 12:32:09.429321', photon_index_error2='0.70', photon_index2='2.65', ts='5.62', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='1.04', time_epoch_completed='1630956729.43', return_code='0', job_id='49474', GAL2='0.87', EG2='1.01', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.50e-08', ts2='6.03', photon_index='2.22' WHERE bin_id='1280' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:32:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 49474: <4FGL_J1257.8+3228_daily_bin1280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1280 194.473 32.4721 571104001 571363201 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 :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

