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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin959
RA = 194.042, Dec = -5.7887
tmin = 487900801, tmax = 488160001
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='26921', job_status='RUN', time_executed='2021-09-06 11:12:45.164232', time_epoch_executed='1630951965.16' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/26921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/26921/ft1_4FGL_J1256.1-0547_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/26921/ft2_4FGL_J1256.1-0547_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/26921/ft1_4FGL_J1256.1-0547_daily_bin959.fits outfile=/scratch/kocevski/26921/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin959.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.06
user 5.81
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/26921/ft1_filtered_4FGL_J1256.1-0547_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/26921/ft2_4FGL_J1256.1-0547_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/26921/ltcube_487900801_488160001_4FGL_J1256.1-0547_daily_bin959.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/26921/ft2_4FGL_J1256.1-0547_daily_bin959.fits
.....................!
real 12.01
user 11.69
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/26921/ft1_filtered_4FGL_J1256.1-0547_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/26921/ft2_4FGL_J1256.1-0547_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/26921/ltcube_487900801_488160001_4FGL_J1256.1-0547_daily_bin959.fits outfile=/scratch/kocevski/26921/expmap_487900801_488160001_4FGL_J1256.1-0547_daily_bin959.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/26921/ltcube_487900801_488160001_4FGL_J1256.1-0547_daily_bin959.fits
.....................!
real 189.44
user 184.80
sys 4.29

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/26921/ft1_filtered_4FGL_J1256.1-0547_daily_bin959.fits scfile=/scratch/kocevski/26921/ft2_4FGL_J1256.1-0547_daily_bin959.fits outfile=/scratch/kocevski/26921/cmap_487900801_488160001_4FGL_J1256.1-0547_daily_bin959.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/26921/ft1_filtered_4FGL_J1256.1-0547_daily_bin959.fits scfile=/scratch/kocevski/26921/ft2_4FGL_J1256.1-0547_daily_bin959.fits outfile=/scratch/kocevski/26921/cmap_HighResolution_487900801_488160001_4FGL_J1256.1-0547_daily_bin959.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2957       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7542       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8753       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.648       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.5994       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.938       1.0000         .10000E-03   10000.    
    12 'norm      '    50.222       1.0000         .10000E-03   10000.    
    13 'norm      '    .77283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3529       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.868       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .60506E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    29.210       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2963       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96974       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=   6449.831     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2922 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2956        8.3026        .55070E-05   -.10647E-03
   2  norm          5.7542        3.5020       -.23218E-06   -.13595E-04
   3  Prefactor     .10000E-03    7.0788        .90030E-07** at limit **
   4  norm          1.8756        .82755       -.38182E-07   -.10445E-03
   5  Prefactor     11.648        3.7207        .21299E-07   -.33474E-04
   6  Prefactor     .10000E-03    5.3433        .68149E-07** at limit **
   7  Prefactor     .10000E-03    6.5920        .10665E-06** at limit **
   8  norm          6.5998        2.9624       -.85370E-08   -.29997E-04
   9  Prefactor     .10000E-03    9.7172        .27191E-06** at limit **
  10  Prefactor     .10000E-03    20.388        .45792E-07** at limit **
  11  Prefactor     69.949        56.005       -.19248E-06    .59512E-04
  12  norm          50.215        35.908       -.61616E-07    .27804E-04
  13  norm          .77290        .30126       -.13661E-07   -.35473E-03
  14  Prefactor     .10000E-03    31.682       -.90617E-07** at limit **
  15  norm          2.3525        5.2680        .30678E-06   -.11710E-03
  16  norm          .10000E-03    14.831        .90159E-07** at limit **
  17  Prefactor     6.0279        10.996        .33618E-06    .27042E-03
  18  Prefactor     37.881        23.945        .43475E-06   -.35403E-03
  19  Prefactor     .10000E-03    13.426        .12702E-06** at limit **
  20  Prefactor     .10069E-03    45.907       -.63702E-05** at limit **
  21  norm          .10000E-03    .57566       -.23281E-07** at limit **
  22  norm          29.178        8.3397        .43520E-06    .28104E-02
  23  norm          .10000E-03    15.459       -.22648E-07** at limit **
  24  Normalizat    1.2959        .26343        .17229E-05    .29316E-03
  25  Prefactor     .96992        .17148       -.14535E-05    .25850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.29556
  norm       = 5.7542
  Prefactor  = 0.0001
  norm       = 1.87562
  Prefactor  = 11.6482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.5998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.9489
  norm       = 50.215
  norm       = 0.772902
  Prefactor  = 0.0001
  norm       = 2.35253
  norm       = 0.0001
  Prefactor  = 6.02793
  Prefactor  = 37.8808
  Prefactor  = 0.0001
  Prefactor  = 0.000100692
  norm       = 0.0001
  norm       = 29.1779
  norm       = 0.0001
  Normalizat = 1.29589
  Prefactor  = 0.969917
 **********
 **   18 **HESSE 
 **********

 FCN=   6449.831     FROM HESSE     STATUS=OK           427 CALLS     3349 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2956        8.0436        .13544E-02   -1.5405    
   2  norm          5.7542        3.5031        .11252E-03   -1.5228    
   3  Prefactor     .10000E-03    7.1473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8756        .82557        .46311E-04   -1.5434    
   5  Prefactor     11.648        3.7215        .84611E-04   -1.5025    
   6  Prefactor     .10000E-03    5.3575        .18130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.5998        2.9633        .89004E-04   -1.5194    
   9  Prefactor     .10000E-03    9.8241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     69.949        56.165        .48000E-04   -1.4033    
  12  norm          50.215        35.897        .56589E-04   -1.4290    
  13  norm          .77290        .30244        .25292E-04   -1.5532    
  14  Prefactor     .10000E-03    31.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3525        5.2380        .26722E-03   -1.5401    
  16  norm          .10000E-03    15.376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0279        11.002        .16346E-03   -1.5217    
  18  Prefactor     37.881        24.089        .65131E-04   -1.4476    
  19  Prefactor     .10000E-03    13.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10069E-03    56.437        .10202       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .59380        .11884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          29.178        9.0133        .74130E-04   -1.4627    
  23  norm          .10000E-03    15.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2959        .31440        .33645E-03   -.83689    
  25  Prefactor     .96992        .20294        .25301E-03   -.93739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94996e-09
Minuit parameter uncertainties:
  1  8.04741
  2  3.50322
  3  1.29998e-05
  4  0.825574
  5  3.72158
  6  8.66611e-06
  7  1.5977e-05
  8  2.96334
  9  6.16429e-05
  10  1.75502e-05
  11  56.2076
  12  35.9129
  13  0.302443
  14  5.07741e-05
  15  5.23902
  16  2.56687e-05
  17  11.0056
  18  24.0957
  19  1.06764e-05
  20  0.012508
  21  1.10599e-06
  22  9.01369
  23  9.35151e-06
  24  0.314862
  25  0.203104
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  7.729e-01  3.024e-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:  9.699e-01  2.031e-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.296e+00  3.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.15
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.75e-07 +/- 6.83e-08
Energy Flux (Fixed Index): 6.58e-05 +/- 2.57e-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) = 6449.43067435
delta logL = 0.400493774143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6449.42909477
delta logL = 0.402073352478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79705       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5754       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0063       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=   6449.429     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      229 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79714        3.9829        .51805E-02    .52571E-03
   2  alpha         2.5754        3.7118        .27335       -.17881E-04
   3  Normalizat    1.2105        .20260        .78138E-01    .25254E-04
   4  Prefactor     1.0062        .12296        .43942E-01    .43991E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.797143
  alpha      = 2.57538
  Normalizat = 1.21048
  Prefactor  = 1.00625
 **********
 **   18 **HESSE 
 **********

 FCN=   6449.429     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79714        .28008        .22960E-04   -1.5529    
   2  alpha         2.5754        .42399        .11147E-01    .30157E-01
   3  Normalizat    1.2105        .31772        .34586E-03   -.86280    
   4  Prefactor     1.0062        .20433        .24882E-03   -.92521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58635e-11
Minuit parameter uncertainties:
  1  0.280077
  2  0.426056
  3  0.318233
  4  0.204484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/26921': 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) = 6449.42909465
delta logL = 0.402073469789

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  7.971e-01  2.801e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.575e+00  4.261e-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:  1.006e+00  2.045e-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.210e+00  3.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.05
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.58 +/- 0.43
Photon Flux (Free Index): 2.44e-07 +/- 1.09e-07
Energy Flux (Free Index): 6.32e-05 +/- 2.16e-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/26921/cmap_HighResolution_487900801_488160001_4FGL_J1256.1-0547_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.75e-07', energy_flux2='6.32e-05', photon_flux_error='6.83e-08', dlogl='4.02e-01', energy_flux='6.58e-05', photon_flux2='2.44e-07', job_status='DONE', time_completed='2021-09-06 11:24:06.723413', photon_index_error2='0.43', photon_index2='2.58', ts='21.15', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='1.30', time_epoch_completed='1630952646.72', return_code='0', job_id='26921', GAL2='1.01', EG2='1.21', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='1.09e-07', ts2='22.05', photon_index='2.20' WHERE bin_id='959' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:24:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 26921: <4FGL_J1256.1-0547_daily_bin959> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin959> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 11:10:31 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:10:33 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:10:33 2021
Terminated at Mon Sep  6 11:24:07 2021
Results reported at Mon Sep  6 11:24:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin959 194.042 -5.7887 487900801 488160001 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 :                                   677.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            816 sec.

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

