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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin893
RA = 194.042, Dec = -5.7887
tmin = 470793601, tmax = 471052801
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='25507', job_status='RUN', time_executed='2021-09-06 11:08:01.935345', time_epoch_executed='1630951681.94' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25507

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25507/ft1_4FGL_J1256.1-0547_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25507/ft2_4FGL_J1256.1-0547_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25507/ft1_4FGL_J1256.1-0547_daily_bin893.fits outfile=/scratch/kocevski/25507/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin893.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=470793601.0 tmax=471052801.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.58
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25507/ft2_4FGL_J1256.1-0547_daily_bin893.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/25507/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin893.fits evtable="EVENTS" outfile="/scratch/kocevski/25507/ft1_filtered_4FGL_J1256.1-0547_daily_bin893.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.66
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25507/ft1_filtered_4FGL_J1256.1-0547_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/25507/ft2_4FGL_J1256.1-0547_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/25507/ltcube_470793601_471052801_4FGL_J1256.1-0547_daily_bin893.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/25507/ft2_4FGL_J1256.1-0547_daily_bin893.fits
.....................!
real 12.52
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25507/ft1_filtered_4FGL_J1256.1-0547_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/25507/ft2_4FGL_J1256.1-0547_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/25507/ltcube_470793601_471052801_4FGL_J1256.1-0547_daily_bin893.fits outfile=/scratch/kocevski/25507/expmap_470793601_471052801_4FGL_J1256.1-0547_daily_bin893.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/25507/ltcube_470793601_471052801_4FGL_J1256.1-0547_daily_bin893.fits
.....................!
real 193.93
user 185.87
sys 4.56

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/25507/ft1_filtered_4FGL_J1256.1-0547_daily_bin893.fits scfile=/scratch/kocevski/25507/ft2_4FGL_J1256.1-0547_daily_bin893.fits outfile=/scratch/kocevski/25507/cmap_470793601_471052801_4FGL_J1256.1-0547_daily_bin893.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25507/ft1_filtered_4FGL_J1256.1-0547_daily_bin893.fits scfile=/scratch/kocevski/25507/ft2_4FGL_J1256.1-0547_daily_bin893.fits outfile=/scratch/kocevski/25507/cmap_HighResolution_470793601_471052801_4FGL_J1256.1-0547_daily_bin893.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/25507/ft1_filtered_4FGL_J1256.1-0547_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/25507/ft2_4FGL_J1256.1-0547_daily_bin893.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/25507/Model_4FGL_J1256.1-0547_daily_bin893.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/25507/ft1_filtered_4FGL_J1256.1-0547_daily_bin893.fits.....................!
real 60.66
user 59.04
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.296       1.0000         .10000E-03   10000.    
     2 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.0388       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4811       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4405       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4716       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6890       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8764       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9311       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20042E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.2827       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6735       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64614       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=   7435.439     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2946 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.294        16.061        .41940E-06   -.41510E-04
   2  norm          .10000E-03    1.4781       -.35017E-08** at limit **
   3  Prefactor     .10000E-03    2.1193        .17315E-07** at limit **
   4  norm          3.0389        .82174       -.18824E-07   -.42544E-03
   5  Prefactor     8.4813        2.6680        .13790E-08   -.93521E-05
   6  Prefactor     .10000E-03    12.582        .51318E-05** at limit **
   7  Prefactor     .10000E-03    7.2086        .62017E-06** at limit **
   8  norm          3.4405        1.9826       -.16920E-08   -.50021E-04
   9  Prefactor     1.4700        1.7359        .23939E-06   -.12646E-02
  10  Prefactor     8.6921        27.481        .13740E-05   -.66921E-05
  11  Prefactor     .10000E-03    26.412       -.16723E-04** at limit **
  12  norm          3.8753        30.600       -.21191E-06   -.68031E-04
  13  norm          2.3121        .35923        .13787E-08    .35285E-03
  14  Prefactor     .10000E-03    29.096        .17037E-04** at limit **
  15  norm          .10000E-03    5.6773       -.43831E-06** at limit **
  16  norm          .10000E-03    2.6295        .22029E-08** at limit **
  17  Prefactor     4.9293        8.3449        .42330E-07    .76533E-05
  18  Prefactor     .10000E-03    5.1357        .20076E-06** at limit **
  19  Prefactor     .10000E-03    2.0103        .21101E-07** at limit **
  20  Prefactor     .10000E-03    106.95       -.42113E-05** at limit **
  21  norm          .10000E-03    .41821        .17529E-07** at limit **
  22  norm          9.2775        4.6321       -.25646E-06    .19589E-03
  23  norm          .10000E-03    11.396       -.44107E-05** at limit **
  24  Normalizat    1.6734        .23011       -.25601E-06   -.40623E-04
  25  Prefactor     .64620        .14467       -.57249E-08   -.44205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2939
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.03887
  Prefactor  = 8.48127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.4405
  Prefactor  = 1.46999
  Prefactor  = 8.69206
  Prefactor  = 0.0001
  norm       = 3.87532
  norm       = 2.31206
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.9293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 9.27755
  norm       = 0.0001
  Normalizat = 1.6734
  Prefactor  = 0.646202
 **********
 **   18 **HESSE 
 **********

 FCN=   7435.439     FROM HESSE     STATUS=OK           425 CALLS     3371 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.294        16.037        .91178E-04   -1.4829    
   2  norm          .10000E-03    1.4844        .10197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1273        .12257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0389        .82424        .37738E-04   -1.5359    
   5  Prefactor     8.4813        2.6709        .76594E-04   -1.5125    
   6  Prefactor     .10000E-03    12.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4405        1.9809        .88293E-04   -1.5337    
   9  Prefactor     1.4700        6.7122        .17710E-02   -1.5465    
  10  Prefactor     8.6921        27.499        .13598E-03   -1.5118    
  11  Prefactor     .10000E-03    26.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8753        30.513        .10247E-02   -1.5314    
  13  norm          2.3121        .36115        .19317E-04   -1.5404    
  14  Prefactor     .10000E-03    29.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.7499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6304        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9293        8.3357        .18112E-03   -1.5264    
  18  Prefactor     .10000E-03    5.1422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0134        .11939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    108.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .71901        .10829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.2775        4.5780        .12493E-03   -1.5099    
  23  norm          .10000E-03    11.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6734        .27666        .29052E-03   -.73016    
  25  Prefactor     .64620        .17220        .28368E-03   -1.0567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99765e-09
Minuit parameter uncertainties:
  1  16.0409
  2  3.13409e-06
  3  2.87706e-07
  4  0.824245
  5  2.67095
  6  1.56694e-05
  7  1.9684e-06
  8  1.98093
  9  6.28329
  10  27.5394
  11  2.55992e-05
  12  21.7633
  13  0.361148
  14  3.45436e-05
  15  1.18071e-06
  16  1.58956e-07
  17  8.33766
  18  5.90765e-07
  19  9.05862e-07
  20  0.000820071
  21  7.00079e-07
  22  4.57819
  23  6.21117e-06
  24  0.276919
  25  0.172339
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  2.312e+00  3.611e-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.462e-01  1.723e-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.673e+00  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 128.94
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 5.22e-07 +/- 8.16e-08
Energy Flux (Fixed Index): 1.97e-04 +/- 3.07e-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) = 7435.41101783
delta logL = 0.0278989371645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7435.40954416
delta logL = 0.0293726002128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3172       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1577       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64009       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=   7435.410     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3172        .38144        .43972E-02    .75485E-03
   2  alpha         2.1578        .16503        .11866       -.50436E-05
   3  Normalizat    1.6874        .22640        .65489E-01   -.15622E-05
   4  Prefactor     .64008        .14368        .64395E-01    .28939E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.31717
  alpha      = 2.15776
  Normalizat = 1.68737
  Prefactor  = 0.640077
 **********
 **   18 **HESSE 
 **********

 FCN=   7435.410     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3172        .36229        .19438E-04   -1.5404    
   2  alpha         2.1578        .15899        .51853E-03   -.13733    
   3  Normalizat    1.6874        .27162        .28964E-03   -.72641    
   4  Prefactor     .64008        .17089        .28492E-03   -1.0592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41414e-12
Minuit parameter uncertainties:
  1  0.362286
  2  0.159102
  3  0.271855
  4  0.171031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25507': 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) = 7435.40954415
delta logL = 0.0293726125783

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  2.317e+00  3.623e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.158e+00  1.591e-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.401e-01  1.710e-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.687e+00  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 126.96
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.16 +/- 0.16
Photon Flux (Free Index): 5.10e-07 +/- 9.54e-08
Energy Flux (Free Index): 2.02e-04 +/- 3.85e-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/25507/cmap_HighResolution_470793601_471052801_4FGL_J1256.1-0547_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.22e-07', energy_flux2='2.02e-04', photon_flux_error='8.16e-08', dlogl='2.94e-02', energy_flux='1.97e-04', photon_flux2='5.10e-07', job_status='DONE', time_completed='2021-09-06 11:20:32.241747', photon_index_error2='0.16', photon_index2='2.16', ts='128.94', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='3.85e-05', EG='1.67', time_epoch_completed='1630952432.24', return_code='0', job_id='25507', GAL2='0.64', EG2='1.69', return_code2='0', energy_flux_error='3.07e-05', photon_flux_error2='9.54e-08', ts2='126.96', photon_index='2.20' WHERE bin_id='893' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:20:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 25507: <4FGL_J1256.1-0547_daily_bin893> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin893> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:05:41 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:05:43 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:43 2021
Terminated at Mon Sep  6 11:20:33 2021
Results reported at Mon Sep  6 11:20:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin893 194.042 -5.7887 470793601 471052801 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 :                                   740.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             298.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

