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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin229
RA = 194.042, Dec = -5.7887
tmin = 298684801, tmax = 298944001
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='19054', job_status='RUN', time_executed='2021-09-06 10:50:43.924702', time_epoch_executed='1630950643.92' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19054/ft1_4FGL_J1256.1-0547_daily_bin229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19054/ft2_4FGL_J1256.1-0547_daily_bin229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19054/ft1_4FGL_J1256.1-0547_daily_bin229.fits outfile=/scratch/kocevski/19054/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin229.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=298684801.0 tmax=298944001.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.64
user 3.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19054/ft1_filtered_4FGL_J1256.1-0547_daily_bin229.fits" evtable="EVENTS" scfile=/scratch/kocevski/19054/ft2_4FGL_J1256.1-0547_daily_bin229.fits sctable="SC_DATA" outfile=/scratch/kocevski/19054/ltcube_298684801_298944001_4FGL_J1256.1-0547_daily_bin229.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/19054/ft2_4FGL_J1256.1-0547_daily_bin229.fits
.....................!
real 12.00
user 11.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19054/ft1_filtered_4FGL_J1256.1-0547_daily_bin229.fits evtable="EVENTS" scfile=/scratch/kocevski/19054/ft2_4FGL_J1256.1-0547_daily_bin229.fits sctable="SC_DATA" expcube=/scratch/kocevski/19054/ltcube_298684801_298944001_4FGL_J1256.1-0547_daily_bin229.fits outfile=/scratch/kocevski/19054/expmap_298684801_298944001_4FGL_J1256.1-0547_daily_bin229.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/19054/ltcube_298684801_298944001_4FGL_J1256.1-0547_daily_bin229.fits
.....................!
real 191.19
user 185.61
sys 5.18

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/19054/ft1_filtered_4FGL_J1256.1-0547_daily_bin229.fits scfile=/scratch/kocevski/19054/ft2_4FGL_J1256.1-0547_daily_bin229.fits outfile=/scratch/kocevski/19054/cmap_298684801_298944001_4FGL_J1256.1-0547_daily_bin229.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=194.042 yref=-5.7887 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19054/ft1_filtered_4FGL_J1256.1-0547_daily_bin229.fits scfile=/scratch/kocevski/19054/ft2_4FGL_J1256.1-0547_daily_bin229.fits outfile=/scratch/kocevski/19054/cmap_HighResolution_298684801_298944001_4FGL_J1256.1-0547_daily_bin229.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/19054/ft1_filtered_4FGL_J1256.1-0547_daily_bin229.fits evtable="EVENTS" scfile=/scratch/kocevski/19054/ft2_4FGL_J1256.1-0547_daily_bin229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19054/Model_4FGL_J1256.1-0547_daily_bin229.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/19054/ft1_filtered_4FGL_J1256.1-0547_daily_bin229.fits.....................!
real 67.70
user 66.36
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6772       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.330       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5967       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .70744       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6590       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.679       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.553       1.0000         .10000E-03   10000.    
    21 'norm      '    3.5560       1.0000         .10000E-03   10000.    
    22 'norm      '    .11696E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    31.631       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6625       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83594       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=   8564.741     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2493 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.044        .29911E-05** at limit **
   2  norm          .10000E-03    1.7438       -.59228E-07** at limit **
   3  Prefactor     .10000E-03    1.5202        .77039E-08** at limit **
   4  norm          3.5440        .75562       -.19839E-07   -.25791E-03
   5  Prefactor     6.6770        2.1516       -.44022E-08    .15852E-04
   6  Prefactor     1.4271        3.4067        .12345E-05   -.13815E-02
   7  Prefactor     14.329        12.217        .51039E-07   -.14453E-03
   8  norm          3.5967        1.8392       -.42819E-08   -.37014E-04
   9  Prefactor     .10000E-03    2.9046       -.95791E-07** at limit **
  10  Prefactor     .10000E-03    6.4068        .12423E-06** at limit **
  11  Prefactor     .10000E-03    51.370       -.56910E-06** at limit **
  12  norm          .10000E-03    11.501       -.19038E-05** at limit **
  13  norm          .70742        .23340       -.43592E-08    .12152E-03
  14  Prefactor     .10000E-03    23.134       -.89121E-05** at limit **
  15  norm          .10000E-03    2.8935        .41527E-07** at limit **
  16  norm          .10000E-03    5.3799       -.19722E-07** at limit **
  17  Prefactor     9.6601        10.836        .66930E-07   -.21027E-03
  18  Prefactor     .10000E-03    26.122        .86750E-05** at limit **
  19  Prefactor     12.680        10.250        .60080E-07   -.72922E-05
  20  Prefactor     16.580        17.061        .88076E-07    .87451E-05
  21  norm          3.5560        1.6045        .39647E-07   -.69457E-04
  22  norm          .10000E-03    1.9260       -.23973E-07** at limit **
  23  norm          31.611        30.843       -.14924E-04   -.94961E-04
  24  Normalizat    1.6626        .22775       -.24654E-06   -.60108E-04
  25  Prefactor     .83594        .14459        .29918E-06   -.88663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.544
  Prefactor  = 6.67704
  Prefactor  = 1.42706
  Prefactor  = 14.3288
  norm       = 3.59665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.707425
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.66006
  Prefactor  = 0.0001
  Prefactor  = 12.6803
  Prefactor  = 16.5799
  norm       = 3.55598
  norm       = 0.0001
  norm       = 31.6107
  Normalizat = 1.66258
  Prefactor  = 0.835938
 **********
 **   18 **HESSE 
 **********

 FCN=   8564.741     FROM HESSE     STATUS=OK           429 CALLS     2922 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8147        .23847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5245        .11141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5440        .76096        .35258E-04   -1.5331    
   5  Prefactor     6.6770        2.1526        .74859E-04   -1.5191    
   6  Prefactor     1.4271        14.829        .18070E-02   -1.5469    
   7  Prefactor     14.329        12.319        .52904E-03   -1.4951    
   8  norm          3.5967        1.8384        .86471E-04   -1.5329    
   9  Prefactor     .10000E-03    2.9165        .15401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .70742        .23248        .24429E-04   -1.5540    
  14  Prefactor     .10000E-03    23.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8970        .15373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.6601        10.875        .64470E-03   -1.5086    
  18  Prefactor     .10000E-03    26.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.680        10.275        .11249E-03   -1.4996    
  20  Prefactor     16.580        15.941        .98443E-04   -1.4893    
  21  norm          3.5560        1.6060        .75452E-04   -1.5331    
  22  norm          .10000E-03    3.3702        .23287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          31.611        30.921        .35622E-03   -1.4583    
  24  Normalizat    1.6626        .27174        .30277E-03   -.73307    
  25  Prefactor     .83594        .17040        .26863E-03   -.98417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11382e-08
Minuit parameter uncertainties:
  1  6.25555e-07
  2  3.18484e-06
  3  2.17471e-07
  4  0.76096
  5  2.1526
  6  9.203
  7  12.3209
  8  1.8384
  9  2.56999e-07
  10  5.54331e-07
  11  9.633e-06
  12  8.9145e-06
  13  0.232475
  14  7.79258e-05
  15  1.43019e-08
  16  9.67887e-07
  17  10.8775
  18  6.90994e-05
  19  10.2761
  20  15.9454
  21  1.60604
  22  9.04329e-06
  23  30.9364
  24  0.271983
  25  0.170509
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  7.074e-01  2.325e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.366e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  4.660e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
636    Prefactor:  8.359e-01  1.705e-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.663e+00  2.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.89
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.60e-07 +/- 5.25e-08
Energy Flux (Fixed Index): 6.02e-05 +/- 1.98e-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) = 8564.65585478
delta logL = 0.0851046789812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8564.65273106
delta logL = 0.0882283992687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70267       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3291       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84552       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=   8564.653     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70316        1.1122        .53851E-02    .50544E-03
   2  alpha         2.3289        1.3754        .25286        .14751E-05
   3  Normalizat    1.6423        .23257        .68774E-01    .36669E-04
   4  Prefactor     .84510        .16208        .44307E-01    .49855E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.703157
  alpha      = 2.32887
  Normalizat = 1.64225
  Prefactor  = 0.845096
 **********
 **   18 **HESSE 
 **********

 FCN=   8564.653     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70316        .23018        .23927E-04   -1.5540    
   2  alpha         2.3289        .32006        .10550E-01   -.68507E-01
   3  Normalizat    1.6423        .26182        .30423E-03   -.73856    
   4  Prefactor     .84510        .17045        .26735E-03   -.98087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26275e-12
Minuit parameter uncertainties:
  1  0.230176
  2  0.32094
  3  0.262037
  4  0.170554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19054': 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) = 8564.65272337
delta logL = 0.0882360974792

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  7.032e-01  2.302e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.329e+00  3.209e-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:  8.451e-01  1.706e-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.642e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.86
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.33 +/- 0.32
Photon Flux (Free Index): 1.75e-07 +/- 6.63e-08
Energy Flux (Free Index): 5.66e-05 +/- 2.00e-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/19054/cmap_HighResolution_298684801_298944001_4FGL_J1256.1-0547_daily_bin229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.60e-07', energy_flux2='5.66e-05', photon_flux_error='5.25e-08', dlogl='8.82e-02', energy_flux='6.02e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-06 11:03:20.691123', photon_index_error2='0.32', photon_index2='2.33', ts='20.89', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.66', time_epoch_completed='1630951400.69', return_code='0', job_id='19054', GAL2='0.85', EG2='1.64', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='6.63e-08', ts2='20.86', photon_index='2.20' WHERE bin_id='229' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:03:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 19054: <4FGL_J1256.1-0547_daily_bin229> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin229> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 10:50:27 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 10:50:28 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:50:28 2021
Terminated at Mon Sep  6 11:03:21 2021
Results reported at Mon Sep  6 11:03:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin229 194.042 -5.7887 298684801 298944001 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 :                                   750.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            774 sec.

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

