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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin476
RA = 194.042, Dec = -5.7887
tmin = 362707201, tmax = 362966401
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='20835', job_status='RUN', time_executed='2021-09-06 10:58:49.580464', time_epoch_executed='1630951129.58' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20835

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20835/ft1_4FGL_J1256.1-0547_daily_bin476.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20835/ft2_4FGL_J1256.1-0547_daily_bin476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20835/ft1_4FGL_J1256.1-0547_daily_bin476.fits outfile=/scratch/kocevski/20835/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin476.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=362707201.0 tmax=362966401.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 5.95
user 5.68
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20835/ft1_filtered_4FGL_J1256.1-0547_daily_bin476.fits" evtable="EVENTS" scfile=/scratch/kocevski/20835/ft2_4FGL_J1256.1-0547_daily_bin476.fits sctable="SC_DATA" outfile=/scratch/kocevski/20835/ltcube_362707201_362966401_4FGL_J1256.1-0547_daily_bin476.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/20835/ft2_4FGL_J1256.1-0547_daily_bin476.fits
.....................!
real 11.45
user 11.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20835/ft1_filtered_4FGL_J1256.1-0547_daily_bin476.fits evtable="EVENTS" scfile=/scratch/kocevski/20835/ft2_4FGL_J1256.1-0547_daily_bin476.fits sctable="SC_DATA" expcube=/scratch/kocevski/20835/ltcube_362707201_362966401_4FGL_J1256.1-0547_daily_bin476.fits outfile=/scratch/kocevski/20835/expmap_362707201_362966401_4FGL_J1256.1-0547_daily_bin476.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/20835/ltcube_362707201_362966401_4FGL_J1256.1-0547_daily_bin476.fits
.....................!
real 190.16
user 185.42
sys 4.38

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/20835/ft1_filtered_4FGL_J1256.1-0547_daily_bin476.fits scfile=/scratch/kocevski/20835/ft2_4FGL_J1256.1-0547_daily_bin476.fits outfile=/scratch/kocevski/20835/cmap_362707201_362966401_4FGL_J1256.1-0547_daily_bin476.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20835/ft1_filtered_4FGL_J1256.1-0547_daily_bin476.fits scfile=/scratch/kocevski/20835/ft2_4FGL_J1256.1-0547_daily_bin476.fits outfile=/scratch/kocevski/20835/cmap_HighResolution_362707201_362966401_4FGL_J1256.1-0547_daily_bin476.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/20835/ft1_filtered_4FGL_J1256.1-0547_daily_bin476.fits evtable="EVENTS" scfile=/scratch/kocevski/20835/ft2_4FGL_J1256.1-0547_daily_bin476.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/20835/Model_4FGL_J1256.1-0547_daily_bin476.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/20835/ft1_filtered_4FGL_J1256.1-0547_daily_bin476.fits.....................!
real 59.12
user 57.72
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0864       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.4741       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38962E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2113       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.8475       1.0000         .10000E-03   10000.    
    13 'norm      '    .44319       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.947       1.0000         .10000E-03   10000.    
    15 'norm      '    33.091       1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29357E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4287       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6679       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.8221       1.0000         .10000E-03   10000.    
    23 'norm      '    32.568       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4495       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73296       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=   7510.946     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2903 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.897       -.15205E-05** at limit **
   2  norm          3.0868        2.1680        .27362E-07    .25815E-03
   3  Prefactor     .10000E-03    1.4616       -.38142E-07** at limit **
   4  norm          4.4735        .88072        .46211E-07    .81618E-03
   5  Prefactor     6.3087        2.0477       -.10675E-07   -.90529E-04
   6  Prefactor     .10003E-03    22.943        .13447E-04** at limit **
   7  Prefactor     .10000E-03    14.823        .64290E-06** at limit **
   8  norm          4.2114        1.8887       -.23532E-08    .57210E-04
   9  Prefactor     .10000E-03    2.1300        .57727E-08** at limit **
  10  Prefactor     .10000E-03    9.0933        .86539E-06** at limit **
  11  Prefactor     .10000E-03    14.310        .47384E-06** at limit **
  12  norm          9.8461        15.686        .93300E-07    .17516E-04
  13  norm          .44315        .21039        .28311E-07    .85036E-03
  14  Prefactor     24.984        43.981       -.68053E-05   -.45817E-03
  15  norm          33.088        13.423        .30648E-06    .69300E-04
  16  norm          .10000E-03    7.4288        .38370E-07** at limit **
  17  Prefactor     .10000E-03    1.8026        .63344E-07** at limit **
  18  Prefactor     .10000E-03    26.278       -.13164E-04** at limit **
  19  Prefactor     6.4300        6.8015       -.96292E-06    .71986E-03
  20  Prefactor     5.6736        31.084       -.67698E-06   -.28415E-04
  21  norm          .10000E-03    .50533        .28853E-07** at limit **
  22  norm          5.8220        5.8902        .90023E-07    .93355E-04
  23  norm          32.585        32.366       -.21510E-05   -.35722E-03
  24  Normalizat    1.4495        .21338       -.74323E-06   -.14096E-03
  25  Prefactor     .73285        .13510        .11331E-05    .92069E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 3.08675
  Prefactor  = 0.0001
  norm       = 4.47349
  Prefactor  = 6.30871
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 4.21145
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 9.84612
  norm       = 0.443155
  Prefactor  = 24.9842
  norm       = 33.0875
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 6.43004
  Prefactor  = 5.67359
  norm       = 0.0001
  norm       = 5.82197
  norm       = 32.5849
  Normalizat = 1.44947
  Prefactor  = 0.732847
 **********
 **   18 **HESSE 
 **********

 FCN=   7510.946     FROM HESSE     STATUS=OK           429 CALLS     3332 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0868        2.1657        .10354E-03   -1.5357    
   3  Prefactor     .10000E-03    1.4653        .10231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4735        .87678        .33714E-04   -1.5285    
   5  Prefactor     6.3087        2.0481        .68710E-04   -1.5206    
   6  Prefactor     .10003E-03    33.291        .38333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2114        1.8892        .76914E-04   -1.5298    
   9  Prefactor     .10000E-03    2.1356        .12351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.8461        15.680        .12770E-03   -1.5080    
  13  norm          .44315        .20701        .25825E-04   -1.5575    
  14  Prefactor     24.984        45.905        .80201E-04   -1.4708    
  15  norm          33.088        13.439        .69659E-04   -1.4557    
  16  norm          .10000E-03    7.5215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8040        .11364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    56.274        .53078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4300        6.8749        .79148E-03   -1.5201    
  20  Prefactor     5.6736        30.396        .16873E-03   -1.5232    
  21  norm          .10000E-03    .80769        .11895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.8220        5.8237        .13710E-03   -1.5225    
  23  norm          32.585        32.698        .70214E-04   -1.4566    
  24  Normalizat    1.4495        .24843        .28270E-03   -.79208    
  25  Prefactor     .73285        .15878        .25217E-03   -1.0225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0392e-09
Minuit parameter uncertainties:
  1  0.000291657
  2  2.16575
  3  4.73263e-06
  4  0.876786
  5  2.04811
  6  0.00189688
  7  2.23663e-05
  8  1.88923
  9  1.60391e-06
  10  0.00014699
  11  9.53628e-05
  12  15.6861
  13  0.20701
  14  45.9703
  15  13.4406
  16  6.31495e-06
  17  6.12131e-06
  18  0.000925869
  19  6.87577
  20  26.2848
  21  3.03193e-06
  22  5.8243
  23  32.7161
  24  0.248643
  25  0.158876
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  4.432e-01  2.070e-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:  7.328e-01  1.589e-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.449e+00  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.67
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 4.68e-08
Energy Flux (Fixed Index): 3.77e-05 +/- 1.76e-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) = 7510.60012724
delta logL = 0.345608393312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7510.58452265
delta logL = 0.361212981777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40041       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6951       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75592       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=   7510.585     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40042        2.4481        .50717E-02    .10942E-02
   2  alpha         2.6950        3.7947        .36573        .44806E-04
   3  Normalizat    1.3999        .82155E-01    .64817E-01    .72421E-05
   4  Prefactor     .75593        .53374E-01    .43141E-01    .18685E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.400421
  alpha      = 2.69502
  Normalizat = 1.3999
  Prefactor  = 0.755929
 **********
 **   18 **HESSE 
 **********

 FCN=   7510.585     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40042        .22080        .22718E-04   -1.5581    
   2  alpha         2.6950        .63139        .14073E-01    .78087E-01
   3  Normalizat    1.3999        .24837        .28671E-03   -.80632    
   4  Prefactor     .75593        .16080        .24873E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04744e-12
Minuit parameter uncertainties:
  1  0.220804
  2  0.638342
  3  0.248581
  4  0.160902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20835': 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) = 7510.58452263
delta logL = 0.361213003099

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  4.004e-01  2.208e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.695e+00  6.383e-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:  7.559e-01  1.609e-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.400e+00  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.41
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.70 +/- 0.64
Photon Flux (Free Index): 1.37e-07 +/- 6.88e-08
Energy Flux (Free Index): 3.25e-05 +/- 1.51e-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/20835/cmap_HighResolution_362707201_362966401_4FGL_J1256.1-0547_daily_bin476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='3.25e-05', photon_flux_error='4.68e-08', dlogl='3.61e-01', energy_flux='3.77e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-06 11:11:22.166089', photon_index_error2='0.64', photon_index2='2.70', ts='7.67', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.45', time_epoch_completed='1630951882.17', return_code='0', job_id='20835', GAL2='0.76', EG2='1.40', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='6.88e-08', ts2='8.41', photon_index='2.20' WHERE bin_id='476' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:11:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 20835: <4FGL_J1256.1-0547_daily_bin476> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin476> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 10:55:50 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 10:55:51 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:51 2021
Terminated at Mon Sep  6 11:11:22 2021
Results reported at Mon Sep  6 11:11:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin476 194.042 -5.7887 362707201 362966401 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 :                                   748.19 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             291.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

