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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1431
RA = 344.025, Dec = -27.6739
tmin = 610243201, tmax = 610502401
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='594246', job_status='RUN', time_executed='2021-09-29 02:54:29.274059', time_epoch_executed='1632909269.27' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594246

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594246/ft1_4FGL_J2256.0-2740_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594246/ft1_4FGL_J2256.0-2740_daily_bin1431.fits outfile=/scratch/kocevski/594246/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1431.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=610243201.0 tmax=610502401.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 4.71
user 3.68
sys 1.02

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.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/594246/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1431.fits evtable="EVENTS" outfile="/scratch/kocevski/594246/ft1_filtered_4FGL_J2256.0-2740_daily_bin1431.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594246/ft1_filtered_4FGL_J2256.0-2740_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/594246/ltcube_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.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/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.fits
.....................!
real 11.78
user 11.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594246/ft1_filtered_4FGL_J2256.0-2740_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/594246/ltcube_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.fits outfile=/scratch/kocevski/594246/expmap_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.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/594246/ltcube_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.fits
.....................!
real 189.86
user 184.54
sys 5.01

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2256.0-2740 @ 344.025 -27.6739

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/594246/ft1_filtered_4FGL_J2256.0-2740_daily_bin1431.fits scfile=/scratch/kocevski/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.fits outfile=/scratch/kocevski/594246/cmap_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.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=344.025 yref=-27.6739 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594246/ft1_filtered_4FGL_J2256.0-2740_daily_bin1431.fits scfile=/scratch/kocevski/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.fits outfile=/scratch/kocevski/594246/cmap_HighResolution_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.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=344.025 yref=-27.6739 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.58
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/594246/ft1_filtered_4FGL_J2256.0-2740_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594246/Model_4FGL_J2256.0-2740_daily_bin1431.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/594246/ft1_filtered_4FGL_J2256.0-2740_daily_bin1431.fits.....................!
real 39.53
user 38.30
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/594246/ft1_filtered_4FGL_J2256.0-2740_daily_bin1431.fits', '/scratch/kocevski/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.fits', expMap='/scratch/kocevski/594246/expmap_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.fits', expCube='/scratch/kocevski/594246/ltcube_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/594246/Model_4FGL_J2256.0-2740_daily_bin1431.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2256.0-2740'

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/594246/ft1_filtered_4FGL_J2256.0-2740_daily_bin1431.fits
Spacecraft file(s): /scratch/kocevski/594246/ft2_4FGL_J2256.0-2740_daily_bin1431.fits
Exposure map: /scratch/kocevski/594246/expmap_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.fits
Exposure cube: /scratch/kocevski/594246/ltcube_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/594246/Model_4FGL_J2256.0-2740_daily_bin1431.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) = 4473.03055374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.528       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.975       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.265       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.173       1.0000         .10000E-03   10000.    
     9 'norm      '    .46764E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.153       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1878       1.0000         .10000E-03   10000.    
    13 'Prefactor '    89.843       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    22.363       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14657E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64951       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1207       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4473.011     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2390 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.519        20.443       -.70423E-07   -.14198E-04
   2  Prefactor     .10000E-03    5.8462        .85917E-08** at limit **
   3  norm          .10000E-03    35.206        .64885E-08** at limit **
   4  Prefactor     11.976        12.707        .28439E-07    .14030E-05
   5  Prefactor     29.263        18.545        .11387E-06   -.51099E-04
   6  norm          .10000E-03    2.2060        .56897E-07** at limit **
   7  Prefactor     .10000E-03    131.94        .28386E-05** at limit **
   8  Prefactor     28.169        18.248       -.41567E-07   -.41058E-04
   9  norm          .10002E-03    4.5893        .14097E-05** at limit **
  10  Prefactor     .10000E-03    22.874        .78662E-06** at limit **
  11  Prefactor     25.188        17.496       -.49955E-06   -.39759E-03
  12  norm          1.1883        1.0899       -.22518E-06   -.11076E-02
  13  Prefactor     89.807        64.629       -.11707E-05   -.33709E-04
  14  Prefactor     .10000E-03    5.1194        .69005E-08** at limit **
  15  Prefactor     .10000E-03    9.3862        .65610E-06** at limit **
  16  norm          22.362        12.329        .38143E-07    .43513E-04
  17  Prefactor     .10000E-03    206.32       -.26031E-05** at limit **
  18  norm          .10000E-03    2.0970        .10561E-06** at limit **
  19  Prefactor     .10000E-03    21.937        .26164E-06** at limit **
  20  Prefactor     .10000E-03    35.463        .15344E-06** at limit **
  21  Normalizat    .64944        .22267       -.11391E-05   -.38329E-04
  22  Prefactor     1.1209        .20309        .38203E-06   -.14298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5192
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.9756
  Prefactor  = 29.2634
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.1689
  norm       = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 25.1879
  norm       = 1.1883
  Prefactor  = 89.8069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.3616
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.649444
  Prefactor  = 1.12093
 **********
 **   18 **HESSE 
 **********

 FCN=   4473.011     FROM HESSE     STATUS=OK           342 CALLS     2732 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.519        20.444        .84391E-04   -1.4759    
   2  Prefactor     .10000E-03    5.8849        .15790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    35.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.976        12.708        .11576E-03   -1.5016    
   5  Prefactor     29.263        18.542        .74060E-04   -1.4626    
   6  norm          .10000E-03    2.2660        .19372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    132.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.169        18.289        .75479E-04   -1.4646    
   9  norm          .10002E-03    19.162        .24102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.188        17.993        .79873E-04   -1.4704    
  12  norm          1.1883        1.0899        .48963E-04   -1.5490    
  13  Prefactor     89.807        65.067        .21196E-03   -1.3810    
  14  Prefactor     .10000E-03    5.1217        .14780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.362        12.332        .84702E-04   -1.4762    
  17  Prefactor     .10000E-03    208.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.5331        .18768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .64944        .25484        .29395E-03   -1.0592    
  22  Prefactor     1.1209        .23474        .22388E-03   -.88800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.78743e-10
Minuit parameter uncertainties:
  1  20.4504
  2  6.38861e-06
  3  8.41758e-06
  4  12.711
  5  18.5456
  6  4.4691e-06
  7  5.91526e-05
  8  18.2928
  9  0.00110453
  10  5.19148e-05
  11  17.9969
  12  1.08987
  13  65.1189
  14  9.50106e-07
  15  2.65747e-06
  16  12.3337
  17  0.000183908
  18  1.0194e-05
  19  2.03534e-05
  20  1.66002e-05
  21  0.255306
  22  0.23496
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.519e+01  1.800e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.121e+00  2.350e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  6.494e-01  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.58
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.72e-07 +/- 1.23e-07
Energy Flux (Fixed Index): 3.40e-05 +/- 2.43e-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) = 4473.00856645
delta logL = 0.00215374523668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4473.00748038
delta logL = 0.00323981658039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.870       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1571       1.0000          .0000       10.000    
     3 'Normalizat'    .63811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4473.007     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      258 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.869        16.619        .80324E-04   -.21683E-03
   2  Index         3.1581        2.1546        .11312E-01   -.12539E-04
   3  Normalizat    .63789        .29587        .29637E-03   -.19567E-03
   4  Prefactor     1.1303        .27223        .22312E-03   -.37842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8687
  Index      = 3.15806
  Normalizat = 0.637889
  Prefactor  = 1.13028
 **********
 **   18 **HESSE 
 **********

 FCN=   4473.007     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.869        15.442        .32130E-05   -1.4710    
   2  Index         3.1581        2.0105        .45248E-03   -.37728    
   3  Normalizat    .63789        .29276        .11855E-04   -1.0640    
   4  Prefactor     1.1303        .26868        .44623E-04   -.88505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29065e-10
Minuit parameter uncertainties:
  1  15.4446
  2  2.07914
  3  0.293478
  4  0.269002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594246': 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) = 4473.00748007
delta logL = 0.00324012355031

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.487e+01  1.544e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.158e+00  2.079e+00  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.130e+00  2.690e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  6.379e-01  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.92
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.16 +/- 2.08
Photon Flux (Free Index): 1.79e-07 +/- 1.32e-07
Energy Flux (Free Index): 3.34e-05 +/- 2.04e-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/594246/cmap_HighResolution_610243201_610502401_4FGL_J2256.0-2740_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-07', energy_flux2='3.34e-05', photon_flux_error='1.23e-07', dlogl='3.24e-03', energy_flux='3.40e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-29 03:06:14.482372', photon_index_error2='2.08', photon_index2='3.16', ts='4.58', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='0.65', time_epoch_completed='1632909974.48', return_code='0', job_id='594246', GAL2='1.13', EG2='0.64', return_code2='0', energy_flux_error='2.43e-05', photon_flux_error2='1.32e-07', ts2='4.92', photon_index='3.02' WHERE bin_id='1431' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:06:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 594246: <4FGL_J2256.0-2740_daily_bin1431> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1431> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:42 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:50:45 2021
Terminated at Wed Sep 29 03:06:15 2021
Results reported at Wed Sep 29 03:06:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1431 344.025 -27.6739 610243201 610502401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2256.0-2740 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   494.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             220.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            933 sec.

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

