/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 229 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1256.1-0547_daily_bin373
RA = 194.042, Dec = -5.7887
tmin = 336009601, tmax = 336268801
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='20656', job_status='RUN', time_executed='2021-09-06 10:59:35.578183', time_epoch_executed='1630951175.58' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20656/ft1_4FGL_J1256.1-0547_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20656/ft2_4FGL_J1256.1-0547_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20656/ft1_4FGL_J1256.1-0547_daily_bin373.fits outfile=/scratch/kocevski/20656/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin373.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=336009601.0 tmax=336268801.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.28
user 3.09
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/20656/ft2_4FGL_J1256.1-0547_daily_bin373.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20656/ft2_4FGL_J1256.1-0547_daily_bin373.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/20656/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin373.fits evtable="EVENTS" outfile="/scratch/kocevski/20656/ft1_filtered_4FGL_J1256.1-0547_daily_bin373.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20656/ft1_filtered_4FGL_J1256.1-0547_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/20656/ft2_4FGL_J1256.1-0547_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/20656/ltcube_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.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/20656/ft2_4FGL_J1256.1-0547_daily_bin373.fits
.....................!
real 11.99
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20656/ft1_filtered_4FGL_J1256.1-0547_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/20656/ft2_4FGL_J1256.1-0547_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/20656/ltcube_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.fits outfile=/scratch/kocevski/20656/expmap_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.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/20656/ltcube_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.fits
.....................!
real 191.58
user 186.14
sys 4.79

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1256.1-0547 @ 194.042 -5.7887

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/20656/ft1_filtered_4FGL_J1256.1-0547_daily_bin373.fits scfile=/scratch/kocevski/20656/ft2_4FGL_J1256.1-0547_daily_bin373.fits outfile=/scratch/kocevski/20656/cmap_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.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.042 yref=-5.7887 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20656/ft1_filtered_4FGL_J1256.1-0547_daily_bin373.fits scfile=/scratch/kocevski/20656/ft2_4FGL_J1256.1-0547_daily_bin373.fits outfile=/scratch/kocevski/20656/cmap_HighResolution_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.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.042 yref=-5.7887 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/20656/ft1_filtered_4FGL_J1256.1-0547_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/20656/ft2_4FGL_J1256.1-0547_daily_bin373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/20656/Model_4FGL_J1256.1-0547_daily_bin373.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/20656/ft1_filtered_4FGL_J1256.1-0547_daily_bin373.fits....................!
real 53.59
user 52.25
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/20656/ft1_filtered_4FGL_J1256.1-0547_daily_bin373.fits', '/scratch/kocevski/20656/ft2_4FGL_J1256.1-0547_daily_bin373.fits', expMap='/scratch/kocevski/20656/expmap_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.fits', expCube='/scratch/kocevski/20656/ltcube_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/20656/Model_4FGL_J1256.1-0547_daily_bin373.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1256.1-0547'

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  3.298e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.366e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  4.660e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/20656/ft1_filtered_4FGL_J1256.1-0547_daily_bin373.fits
Spacecraft file(s): /scratch/kocevski/20656/ft2_4FGL_J1256.1-0547_daily_bin373.fits
Exposure map: /scratch/kocevski/20656/expmap_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.fits
Exposure cube: /scratch/kocevski/20656/ltcube_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/20656/Model_4FGL_J1256.1-0547_daily_bin373.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) = 6384.26682868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.0295       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .16799E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8624       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.037       1.0000         .10000E-03   10000.    
     8 'norm      '    9.7040       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2034       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.466       1.0000         .10000E-03   10000.    
    11 'Prefactor '    103.75       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1735       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1235       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9197       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.716       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    24.703       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7935       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6384.233     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2908 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2255        .32580E-06** at limit **
   2  norm          1.0301        1.8451       -.38193E-07   -.16247E-03
   3  Prefactor     .10000E-03    4.9289       -.29884E-06** at limit **
   4  norm          .10000E-03    .28054        .21293E-08** at limit **
   5  Prefactor     7.8619        2.8777        .19744E-07    .42350E-04
   6  Prefactor     .10000E-03    14.834        .66730E-06** at limit **
   7  Prefactor     30.034        15.373        .17928E-06    .10549E-04
   8  norm          9.7039        2.8014       -.65968E-09   -.42263E-04
   9  Prefactor     3.2055        7.1883        .23686E-05   -.53079E-04
  10  Prefactor     39.464        46.872       -.22433E-06   -.12495E-04
  11  Prefactor     103.76        72.209       -.44850E-06   -.45682E-05
  12  norm          .10000E-03    42.058        .44511E-05** at limit **
  13  norm          1.1734        .37301        .73406E-08   -.62795E-04
  14  Prefactor     .10000E-03    35.280       -.44114E-05** at limit **
  15  norm          .10000E-03    8.4276       -.24043E-06** at limit **
  16  norm          .10000E-03    3.9323        .22217E-07** at limit **
  17  Prefactor     2.1172        14.839       -.65268E-06   -.19338E-04
  18  Prefactor     .10000E-03    6.5816        .12037E-06** at limit **
  19  Prefactor     6.9190        8.1904        .23519E-07    .76348E-05
  20  Prefactor     11.702        25.743        .23807E-05    .21567E-04
  21  norm          .10000E-03    .45301       -.60386E-09** at limit **
  22  norm          .10000E-03    2.0571       -.28923E-06** at limit **
  23  norm          24.707        27.361       -.48099E-06   -.27991E-05
  24  Normalizat    1.7938        .25194       -.65152E-07   -.87533E-05
  25  Prefactor     .64139        .15599       -.51447E-06   -.28689E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.0301
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.86191
  Prefactor  = 0.0001
  Prefactor  = 30.0336
  norm       = 9.70392
  Prefactor  = 3.20547
  Prefactor  = 39.4644
  Prefactor  = 103.756
  norm       = 0.0001
  norm       = 1.17344
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.11723
  Prefactor  = 0.0001
  Prefactor  = 6.91901
  Prefactor  = 11.7023
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.7069
  Normalizat = 1.79379
  Prefactor  = 0.641395
 **********
 **   18 **HESSE 
 **********

 FCN=   6384.233     FROM HESSE     STATUS=OK           429 CALLS     3337 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2405        .17836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0301        1.4727        .14094E-02   -1.5505    
   3  Prefactor     .10000E-03    4.9985        .17306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.5289        .80201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8619        2.8782        .79142E-04   -1.5147    
   6  Prefactor     .10000E-03    15.270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.034        15.391        .73104E-04   -1.4611    
   8  norm          9.7039        2.7952        .68718E-04   -1.5085    
   9  Prefactor     3.2055        7.2010        .11319E-02   -1.5350    
  10  Prefactor     39.464        46.905        .63803E-04   -1.4451    
  11  Prefactor     103.76        72.972        .39476E-04   -1.3667    
  12  norm          .10000E-03    42.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1734        .37651        .24014E-04   -1.5491    
  14  Prefactor     .10000E-03    35.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.4724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9337        .15474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1172        14.665        .28299E-03   -1.5417    
  18  Prefactor     .10000E-03    6.5870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9190        8.1792        .15252E-03   -1.5182    
  20  Prefactor     11.702        25.748        .11704E-03   -1.5024    
  21  norm          .10000E-03    .46058        .52489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0701        .11192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          24.707        27.362        .80596E-04   -1.4713    
  24  Normalizat    1.7938        .29560        .28723E-03   -.69826    
  25  Prefactor     .64139        .18184        .28834E-03   -1.0587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89501e-11
Minuit parameter uncertainties:
  1  2.21758e-06
  2  1.4728
  3  1.33831e-06
  4  4.45081e-06
  5  2.87827
  6  8.08275e-06
  7  15.3933
  8  2.79528
  9  7.20299
  10  46.9484
  11  73.0348
  12  5.75554e-05
  13  0.376511
  14  3.58594e-05
  15  2.57562e-06
  16  3.34193e-07
  17  11.1479
  18  1.43743e-06
  19  8.18053
  20  25.7719
  21  1.36755e-07
  22  1.51271e-05
  23  27.376
  24  0.295891
  25  0.182006
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  1.173e+00  3.765e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.366e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  4.660e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
636    Prefactor:  6.414e-01  1.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
637        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
638        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  1.794e+00  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.19
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 2.65e-07 +/- 8.51e-08
Energy Flux (Fixed Index): 9.99e-05 +/- 3.20e-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) = 6383.35096307
delta logL = 0.882460527941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6383.35042012
delta logL = 0.88300347425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1255       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6310       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6383.350     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      219 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1255        4.0343        .48442E-02   -.32586E-03
   2  alpha         2.6310        3.8116        .20466        .45666E-04
   3  Normalizat    1.6829        .21064        .66448E-01   -.19465E-04
   4  Prefactor     .68994        .14714        .63059E-01    .12063E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12554
  alpha      = 2.63097
  Normalizat = 1.68294
  Prefactor  = 0.689942
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.350     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1255        .34420        .21486E-04   -1.5496    
   2  alpha         2.6310        .34872        .86909E-02    .52411E-01
   3  Normalizat    1.6829        .29814        .29390E-03   -.72760    
   4  Prefactor     .68994        .18555        .27896E-03   -1.0392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32937e-11
Minuit parameter uncertainties:
  1  0.344201
  2  0.349861
  3  0.298456
  4  0.185715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20656': 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) = 6383.35042012
delta logL = 0.883003474251

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  1.126e+00  3.442e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.631e+00  3.499e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.366e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  4.660e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
636    Prefactor:  6.899e-01  1.857e-01  0.000e+00  1.000e+01 ( 1.000e+00)
637        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
638        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  1.683e+00  2.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.39
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.63 +/- 0.35
Photon Flux (Free Index): 3.62e-07 +/- 1.17e-07
Energy Flux (Free Index): 9.01e-05 +/- 2.52e-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/20656/cmap_HighResolution_336009601_336268801_4FGL_J1256.1-0547_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.65e-07', energy_flux2='9.01e-05', photon_flux_error='8.51e-08', dlogl='8.83e-01', energy_flux='9.99e-05', photon_flux2='3.62e-07', job_status='DONE', time_completed='2021-09-06 11:10:43.680215', photon_index_error2='0.35', photon_index2='2.63', ts='23.19', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='2.52e-05', EG='1.79', time_epoch_completed='1630951843.68', return_code='0', job_id='20656', GAL2='0.69', EG2='1.68', return_code2='0', energy_flux_error='3.20e-05', photon_flux_error2='1.17e-07', ts2='25.39', photon_index='2.20' WHERE bin_id='373' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:10:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 20656: <4FGL_J1256.1-0547_daily_bin373> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin373> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 10:55:35 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 10:55:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 10:55:36 2021
Terminated at Mon Sep  6 11:10:44 2021
Results reported at Mon Sep  6 11:10:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin373 194.042 -5.7887 336009601 336268801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1256.1-0547 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   666.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             248.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

