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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin435
RA = 194.042, Dec = -5.7887
tmin = 352080001, tmax = 352339201
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='20761', job_status='RUN', time_executed='2021-09-06 10:56:03.939205', time_epoch_executed='1630950963.94' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20761

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20761/ft1_4FGL_J1256.1-0547_daily_bin435.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20761/ft2_4FGL_J1256.1-0547_daily_bin435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20761/ft1_4FGL_J1256.1-0547_daily_bin435.fits outfile=/scratch/kocevski/20761/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin435.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=352080001.0 tmax=352339201.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.43
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20761/ft2_4FGL_J1256.1-0547_daily_bin435.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/20761/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin435.fits evtable="EVENTS" outfile="/scratch/kocevski/20761/ft1_filtered_4FGL_J1256.1-0547_daily_bin435.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20761/ft1_filtered_4FGL_J1256.1-0547_daily_bin435.fits" evtable="EVENTS" scfile=/scratch/kocevski/20761/ft2_4FGL_J1256.1-0547_daily_bin435.fits sctable="SC_DATA" outfile=/scratch/kocevski/20761/ltcube_352080001_352339201_4FGL_J1256.1-0547_daily_bin435.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/20761/ft2_4FGL_J1256.1-0547_daily_bin435.fits
.....................!
real 12.46
user 12.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20761/ft1_filtered_4FGL_J1256.1-0547_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/20761/ft2_4FGL_J1256.1-0547_daily_bin435.fits sctable="SC_DATA" expcube=/scratch/kocevski/20761/ltcube_352080001_352339201_4FGL_J1256.1-0547_daily_bin435.fits outfile=/scratch/kocevski/20761/expmap_352080001_352339201_4FGL_J1256.1-0547_daily_bin435.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/20761/ltcube_352080001_352339201_4FGL_J1256.1-0547_daily_bin435.fits
.....................!
real 191.05
user 185.16
sys 5.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/20761/ft1_filtered_4FGL_J1256.1-0547_daily_bin435.fits scfile=/scratch/kocevski/20761/ft2_4FGL_J1256.1-0547_daily_bin435.fits outfile=/scratch/kocevski/20761/cmap_352080001_352339201_4FGL_J1256.1-0547_daily_bin435.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.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20761/ft1_filtered_4FGL_J1256.1-0547_daily_bin435.fits scfile=/scratch/kocevski/20761/ft2_4FGL_J1256.1-0547_daily_bin435.fits outfile=/scratch/kocevski/20761/cmap_HighResolution_352080001_352339201_4FGL_J1256.1-0547_daily_bin435.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.94
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1025       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7950       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.497       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .81637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .19170       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.427       1.0000         .10000E-03   10000.    
    15 'norm      '    .10357E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.6907       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45532E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.671       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7544       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21774E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .77858       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5238       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72232       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=   7291.305     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2952 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7525       -.40678E-07** at limit **
   2  norm          .10000E-03    .70828        .49967E-08** at limit **
   3  Prefactor     .10000E-03    1.8928        .11609E-07** at limit **
   4  norm          1.1027        .64432       -.22648E-07   -.30474E-03
   5  Prefactor     6.7949        2.2999        .28243E-08    .11277E-04
   6  Prefactor     12.495        12.072        .12842E-08    .20091E-04
   7  Prefactor     .10000E-03    3.5205        .44900E-07** at limit **
   8  norm          .81604        1.9750        .45958E-06   -.55937E-03
   9  Prefactor     .10000E-03    7.4082       -.60457E-06** at limit **
  10  Prefactor     .10000E-03    80.578        .23557E-05** at limit **
  11  Prefactor     .10000E-03    39.556        .93402E-07** at limit **
  12  norm          .10000E-03    7.7029        .69964E-06** at limit **
  13  norm          .19182        .15525        .12206E-07    .95553E-03
  14  Prefactor     11.394        38.349       -.63607E-05   -.79421E-04
  15  norm          .10000E-03    9.6495        .27538E-06** at limit **
  16  norm          7.6908        7.6738       -.88915E-08   -.50754E-04
  17  Prefactor     .10003E-03    4.3642       -.59350E-06** at limit **
  18  Prefactor     35.676        21.330        .15125E-06    .73221E-05
  19  Prefactor     6.7557        6.6642        .14611E-05   -.11993E-02
  20  Prefactor     .10023E-03    15.283       -.46467E-05** at limit **
  21  norm          .10000E-03    .52831        .25091E-07** at limit **
  22  norm          .77605        2.8998        .23707E-05    .12464E-02
  23  norm          .10000E-03    9.1628       -.83284E-06** at limit **
  24  Normalizat    1.5236        .21043        .25634E-07    .24183E-03
  25  Prefactor     .72250        .13338       -.35850E-06    .32349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10269
  Prefactor  = 6.79494
  Prefactor  = 12.4949
  Prefactor  = 0.0001
  norm       = 0.816044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.191816
  Prefactor  = 11.394
  norm       = 0.0001
  norm       = 7.69085
  Prefactor  = 0.00010003
  Prefactor  = 35.6759
  Prefactor  = 6.75574
  Prefactor  = 0.000100229
  norm       = 0.0001
  norm       = 0.776045
  norm       = 0.0001
  Normalizat = 1.52359
  Prefactor  = 0.7225
 **********
 **   18 **HESSE 
 **********

 FCN=   7291.305     FROM HESSE     STATUS=OK           435 CALLS     3387 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7578        .16153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .71466        .70167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9067        .11466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1027        .62541        .47616E-04   -1.5498    
   5  Prefactor     6.7949        2.2999        .73104E-04   -1.5187    
   6  Prefactor     12.495        12.038        .11331E-03   -1.5001    
   7  Prefactor     .10000E-03    3.5454        .15644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .81604        1.9506        .17218E-03   -1.5527    
   9  Prefactor     .10000E-03    7.4884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    81.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.7138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .19182        .14896        .28677E-03   -1.5620    
  14  Prefactor     11.394        38.859        .11851E-03   -1.5033    
  15  norm          .10000E-03    9.8722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.6908        7.6726        .72300E-03   -1.5153    
  17  Prefactor     .10003E-03    27.419        .34295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.676        21.468        .67100E-04   -1.4513    
  19  Prefactor     6.7557        6.6648        .77195E-03   -1.5188    
  20  Prefactor     .10023E-03    85.943        .50735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .92537        .12014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .77605        2.7360        .24970E-03   -1.5532    
  23  norm          .10000E-03    9.1681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5236        .24973        .26465E-03   -.77117    
  25  Prefactor     .72250        .15772        .24432E-03   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9717e-09
Minuit parameter uncertainties:
  1  2.04106e-06
  2  2.5093e-07
  3  3.73809e-07
  4  0.625416
  5  2.29995
  6  12.0403
  7  1.86795e-06
  8  1.95077
  9  1.23108e-05
  10  0.00021112
  11  1.08568e-05
  12  3.33859e-05
  13  0.148963
  14  38.9451
  15  0.000102872
  16  7.67355
  17  0.00181691
  18  21.4723
  19  6.66556
  20  0.0088949
  21  6.76585e-06
  22  2.73646
  23  3.6393e-05
  24  0.249928
  25  0.157817
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  1.918e-01  1.490e-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.225e-01  1.578e-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.524e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.16
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.27e-05

TS (Fixed Index): 3.16
Ra Dec: 194.042 -5.789
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20761/likelihoodResults_352080001_352339201_4FGL_J1256.1-0547_daily_bin435.txt

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) = 7291.29471837
delta logL = 0.00980596407589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7291.29442125
delta logL = 0.0101030820515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19317       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3008       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72484       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=   7291.294     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19317        5.0450        .62117E-02    .12905E-02
   2  alpha         2.3004        2.7601        .41318       -.10438E-04
   3  Normalizat    1.5184        .96762E-01    .59930E-01    .31091E-05
   4  Prefactor     .72484        .78891E-01    .42731E-01    .20787E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.193173
  alpha      = 2.30044
  Normalizat = 1.51836
  Prefactor  = 0.724838
 **********
 **   18 **HESSE 
 **********

 FCN=   7291.294     FROM HESSE     STATUS=OK            35 CALLS      233 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19317        .14747        .28368E-03   -1.5620    
   2  alpha         2.3004        .73109        .20206E-01   -.79909E-01
   3  Normalizat    1.5184        .23642        .26503E-03   -.77264    
   4  Prefactor     .72484        .15597        .24396E-03   -1.0256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79155e-10
Minuit parameter uncertainties:
  1  0.147471
  2  0.742001
  3  0.236589
  4  0.156063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20761': 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) = 7291.29442114
delta logL = 0.0101031894583

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  1.932e-01  1.475e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.300e+00  7.420e-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.248e-01  1.561e-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.518e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.30 +/- 0.74
Photon Flux (Free Index): 4.71e-08 +/- 4.36e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.28e-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/20761/cmap_HighResolution_352080001_352339201_4FGL_J1256.1-0547_daily_bin435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-05', comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='1.57e-05', photon_flux_error='3.36e-08', dlogl='1.01e-02', energy_flux='1.63e-05', photon_flux2='4.71e-08', job_status='DONE', time_completed='2021-09-06 11:09:50.247050', photon_index_error2='0.74', photon_index2='2.30', ts='3.16', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.28e-05', EG='1.52', time_epoch_completed='1630951790.25', return_code='0', job_id='20761', GAL2='0.72', EG2='1.52', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.36e-08', ts2='3.17', photon_index='2.20' WHERE bin_id='435' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:09:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 20761: <4FGL_J1256.1-0547_daily_bin435> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin435 194.042 -5.7887 352080001 352339201 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 :                                   821.23 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

