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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin839
RA = 194.042, Dec = -5.7887
tmin = 456796801, tmax = 457056001
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='25428', job_status='RUN', time_executed='2021-09-06 11:05:59.047564', time_epoch_executed='1630951559.05' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='839'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25428

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25428/ft1_4FGL_J1256.1-0547_daily_bin839.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25428/ft2_4FGL_J1256.1-0547_daily_bin839.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25428/ft1_4FGL_J1256.1-0547_daily_bin839.fits outfile=/scratch/kocevski/25428/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin839.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=456796801.0 tmax=457056001.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.30
user 3.09
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25428/ft2_4FGL_J1256.1-0547_daily_bin839.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/25428/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin839.fits evtable="EVENTS" outfile="/scratch/kocevski/25428/ft1_filtered_4FGL_J1256.1-0547_daily_bin839.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25428/ft1_filtered_4FGL_J1256.1-0547_daily_bin839.fits" evtable="EVENTS" scfile=/scratch/kocevski/25428/ft2_4FGL_J1256.1-0547_daily_bin839.fits sctable="SC_DATA" outfile=/scratch/kocevski/25428/ltcube_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.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/25428/ft2_4FGL_J1256.1-0547_daily_bin839.fits
.....................!
real 12.04
user 11.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25428/ft1_filtered_4FGL_J1256.1-0547_daily_bin839.fits evtable="EVENTS" scfile=/scratch/kocevski/25428/ft2_4FGL_J1256.1-0547_daily_bin839.fits sctable="SC_DATA" expcube=/scratch/kocevski/25428/ltcube_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.fits outfile=/scratch/kocevski/25428/expmap_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.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/25428/ltcube_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.fits
.....................!
real 191.30
user 185.80
sys 5.15

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/25428/ft1_filtered_4FGL_J1256.1-0547_daily_bin839.fits scfile=/scratch/kocevski/25428/ft2_4FGL_J1256.1-0547_daily_bin839.fits outfile=/scratch/kocevski/25428/cmap_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25428/ft1_filtered_4FGL_J1256.1-0547_daily_bin839.fits scfile=/scratch/kocevski/25428/ft2_4FGL_J1256.1-0547_daily_bin839.fits outfile=/scratch/kocevski/25428/cmap_HighResolution_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/25428/ft1_filtered_4FGL_J1256.1-0547_daily_bin839.fits evtable="EVENTS" scfile=/scratch/kocevski/25428/ft2_4FGL_J1256.1-0547_daily_bin839.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/25428/Model_4FGL_J1256.1-0547_daily_bin839.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/25428/ft1_filtered_4FGL_J1256.1-0547_daily_bin839.fits.....................!
real 65.05
user 63.70
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/25428/ft1_filtered_4FGL_J1256.1-0547_daily_bin839.fits', '/scratch/kocevski/25428/ft2_4FGL_J1256.1-0547_daily_bin839.fits', expMap='/scratch/kocevski/25428/expmap_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.fits', expCube='/scratch/kocevski/25428/ltcube_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/25428/Model_4FGL_J1256.1-0547_daily_bin839.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/25428/ft1_filtered_4FGL_J1256.1-0547_daily_bin839.fits
Spacecraft file(s): /scratch/kocevski/25428/ft2_4FGL_J1256.1-0547_daily_bin839.fits
Exposure map: /scratch/kocevski/25428/expmap_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.fits
Exposure cube: /scratch/kocevski/25428/ltcube_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/25428/Model_4FGL_J1256.1-0547_daily_bin839.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) = 7856.0114768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1444       1.0000         .10000E-03   10000.    
     4 'norm      '    .55831E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9822       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93007E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.446       1.0000         .10000E-03   10000.    
    13 'norm      '    6.7312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18961E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6485       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6620       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0006       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.525       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .16726E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8918       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89965       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=   7855.986     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3016 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9610        .67521E-07** at limit **
   2  norm          .10000E-03    1.9486        .95889E-07** at limit **
   3  Prefactor     3.1454        6.2551        .62226E-06    .30031E-04
   4  norm          .55942E-01    .29629        .13485E-06   -.37809E-03
   5  Prefactor     7.9820        3.2372       -.86295E-07    .17203E-04
   6  Prefactor     .10072E-03    6.1195       -.16650E-05** at limit **
   7  Prefactor     .10000E-03    18.248       -.78034E-06** at limit **
   8  norm          1.9817        1.5735       -.30973E-07    .11021E-04
   9  Prefactor     .10000E-03    5.7803       -.42791E-06** at limit **
  10  Prefactor     .10000E-03    14.861       -.37353E-07** at limit **
  11  Prefactor     .10000E-03    39.381        .29732E-05** at limit **
  12  norm          25.490        31.233       -.73758E-05   -.47703E-03
  13  norm          6.7312        .62652       -.22170E-07    .35230E-02
  14  Prefactor     .10050E-03    868.03       -.73270E-04** at limit **
  15  norm          1.6530        30.694       -.25162E-05    .11883E-03
  16  norm          .10000E-03    4.0874        .14369E-07** at limit **
  17  Prefactor     2.6623        4.9879        .62306E-05   -.81878E-03
  18  Prefactor     .10000E-03    30.405       -.14354E-05** at limit **
  19  Prefactor     7.0059        11.054        .37875E-06    .10187E-03
  20  Prefactor     58.543        30.889        .28155E-05    .14471E-03
  21  norm          .10000E-03    .63116        .58078E-07** at limit **
  22  norm          .10002E-03    3.5515       -.17836E-05** at limit **
  23  norm          .10000E-03    19.549        .13767E-05** at limit **
  24  Normalizat    1.8920        .27393       -.48696E-06    .40120E-03
  25  Prefactor     .89967        .17385        .40828E-06    .36979E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.14536
  norm       = 0.0559424
  Prefactor  = 7.98197
  Prefactor  = 0.000100724
  Prefactor  = 0.0001
  norm       = 1.98171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 25.4899
  norm       = 6.73117
  Prefactor  = 0.000100496
  norm       = 1.65299
  norm       = 0.0001
  Prefactor  = 2.66228
  Prefactor  = 0.0001
  Prefactor  = 7.0059
  Prefactor  = 58.5427
  norm       = 0.0001
  norm       = 0.000100019
  norm       = 0.0001
  Normalizat = 1.89196
  Prefactor  = 0.899667
 **********
 **   18 **HESSE 
 **********

 FCN=   7855.986     FROM HESSE     STATUS=OK           425 CALLS     3441 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.9966        .24151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1454        6.2363        .22860E-03   -1.5353    
   4  norm          .55942E-01    .60493        .91474E-03   -1.5661    
   5  Prefactor     7.9820        3.2374        .95571E-04   -1.5143    
   6  Prefactor     .10072E-03    56.435        .41936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9817        1.5728        .95622E-04   -1.5426    
   9  Prefactor     .10000E-03    5.8005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.490        32.161        .79413E-04   -1.4698    
  13  norm          6.7312        .62900        .20114E-04   -1.5189    
  14  Prefactor     .10050E-03    908.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6530        30.562        .32889E-03   -1.5451    
  16  norm          .10000E-03    4.0892        .17501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6623        5.0472        .12491E-02   -1.5382    
  18  Prefactor     .10000E-03    30.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0059        11.052        .15162E-03   -1.5179    
  20  Prefactor     58.543        27.988        .52442E-04   -1.4176    
  21  norm          .10000E-03    .65318        .13740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    53.548        .28077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    19.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8920        .32717        .34571E-03   -.67287    
  25  Prefactor     .89967        .20817        .30824E-03   -.96153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17755e-08
Minuit parameter uncertainties:
  1  5.32119e-07
  2  1.16929e-07
  3  6.23755
  4  0.367594
  5  3.2375
  6  0.0127995
  7  0.00014581
  8  1.57283
  9  4.6169e-05
  10  2.62602e-05
  11  0.000557625
  12  32.1825
  13  0.629001
  14  0.0431188
  15  14.2233
  16  6.63145e-07
  17  5.04805
  18  0.000221314
  19  11.0555
  20  27.9945
  21  5.31528e-07
  22  0.0020455
  23  0.000167892
  24  0.327553
  25  0.208352
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  6.731e+00  6.290e-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:  8.997e-01  2.084e-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.892e+00  3.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 443.72
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.52e-06 +/- 1.42e-07
Energy Flux (Fixed Index): 5.73e-04 +/- 5.35e-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) = 7855.94528958
delta logL = 0.0411580172249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7855.94208493
delta logL = 0.0443626660008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7022       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2257       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90903       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=   7855.942     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7022        .65843        .38749E-02    .32476E-02
   2  alpha         2.2257        .10208        .73306E-01    .17622E-04
   3  Normalizat    1.8703        .26981        .78421E-01    .16487E-05
   4  Prefactor     .90902        .17249        .69346E-01    .15420E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.70223
  alpha      = 2.22571
  Normalizat = 1.87026
  Prefactor  = 0.909023
 **********
 **   18 **HESSE 
 **********

 FCN=   7855.942     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7022        .63007        .19996E-04   -1.5190    
   2  alpha         2.2257        .98403E-01    .32309E-03   -.10994    
   3  Normalizat    1.8703        .32732        .34698E-03   -.67844    
   4  Prefactor     .90902        .20779        .30679E-03   -.95827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40348e-11
Minuit parameter uncertainties:
  1  0.630073
  2  0.0984283
  3  0.327712
  4  0.207971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25428': 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) = 7855.94208493
delta logL = 0.0443626693232

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  6.702e+00  6.301e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.226e+00  9.843e-02  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:  9.090e-01  2.080e-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.870e+00  3.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 439.53
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.23 +/- 0.10
Photon Flux (Free Index): 1.55e-06 +/- 1.66e-07
Energy Flux (Free Index): 5.62e-04 +/- 6.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/25428/cmap_HighResolution_456796801_457056001_4FGL_J1256.1-0547_daily_bin839.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.52e-06', energy_flux2='5.62e-04', photon_flux_error='1.42e-07', dlogl='4.44e-02', energy_flux='5.73e-04', photon_flux2='1.55e-06', job_status='DONE', time_completed='2021-09-06 11:18:54.624025', photon_index_error2='0.10', photon_index2='2.23', ts='443.72', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='6.36e-05', EG='1.89', time_epoch_completed='1630952334.62', return_code='0', job_id='25428', GAL2='0.91', EG2='1.87', return_code2='0', energy_flux_error='5.35e-05', photon_flux_error2='1.66e-07', ts2='439.53', photon_index='2.20' WHERE bin_id='839' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:18:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 25428: <4FGL_J1256.1-0547_daily_bin839> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin839 194.042 -5.7887 456796801 457056001 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 :                                   772.00 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             308.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

