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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1165
RA = 344.025, Dec = -27.6739
tmin = 541296001, tmax = 541555201
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='593852', job_status='RUN', time_executed='2021-09-29 02:51:31.668714', time_epoch_executed='1632909091.67' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593852

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593852/ft1_4FGL_J2256.0-2740_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593852/ft2_4FGL_J2256.0-2740_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593852/ft1_4FGL_J2256.0-2740_daily_bin1165.fits outfile=/scratch/kocevski/593852/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1165.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=541296001.0 tmax=541555201.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.73
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593852/ft2_4FGL_J2256.0-2740_daily_bin1165.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/593852/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/593852/ft1_filtered_4FGL_J2256.0-2740_daily_bin1165.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593852/ft1_filtered_4FGL_J2256.0-2740_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/593852/ft2_4FGL_J2256.0-2740_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/593852/ltcube_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.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/593852/ft2_4FGL_J2256.0-2740_daily_bin1165.fits
.....................!
real 12.01
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593852/ft1_filtered_4FGL_J2256.0-2740_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/593852/ft2_4FGL_J2256.0-2740_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/593852/ltcube_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.fits outfile=/scratch/kocevski/593852/expmap_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.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/593852/ltcube_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.fits
.....................!
real 191.16
user 185.53
sys 5.24

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/593852/ft1_filtered_4FGL_J2256.0-2740_daily_bin1165.fits scfile=/scratch/kocevski/593852/ft2_4FGL_J2256.0-2740_daily_bin1165.fits outfile=/scratch/kocevski/593852/cmap_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593852/ft1_filtered_4FGL_J2256.0-2740_daily_bin1165.fits scfile=/scratch/kocevski/593852/ft2_4FGL_J2256.0-2740_daily_bin1165.fits outfile=/scratch/kocevski/593852/cmap_HighResolution_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/593852/ft1_filtered_4FGL_J2256.0-2740_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/593852/ft2_4FGL_J2256.0-2740_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593852/Model_4FGL_J2256.0-2740_daily_bin1165.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/593852/ft1_filtered_4FGL_J2256.0-2740_daily_bin1165.fits.....................!
real 39.28
user 37.91
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/593852/ft1_filtered_4FGL_J2256.0-2740_daily_bin1165.fits', '/scratch/kocevski/593852/ft2_4FGL_J2256.0-2740_daily_bin1165.fits', expMap='/scratch/kocevski/593852/expmap_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.fits', expCube='/scratch/kocevski/593852/ltcube_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/593852/Model_4FGL_J2256.0-2740_daily_bin1165.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/593852/ft1_filtered_4FGL_J2256.0-2740_daily_bin1165.fits
Spacecraft file(s): /scratch/kocevski/593852/ft2_4FGL_J2256.0-2740_daily_bin1165.fits
Exposure map: /scratch/kocevski/593852/expmap_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.fits
Exposure cube: /scratch/kocevski/593852/ltcube_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/593852/Model_4FGL_J2256.0-2740_daily_bin1165.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) = 4227.99522126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    5.6052       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .77760       1.0000         .10000E-03   10000.    
     7 'Prefactor '    179.82       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5955       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62322E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.844       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7609       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3943       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5934       1.0000         .10000E-03   10000.    
    16 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24958E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4860       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71084       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=   4227.895     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2428 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5292       -.59729E-08** at limit **
   2  Prefactor     5.6031        11.300       -.74716E-06    .17462E-04
   3  norm          .10000E-03    12.539       -.48184E-07** at limit **
   4  Prefactor     .10000E-03    66.531       -.25008E-06** at limit **
   5  Prefactor     .10000E-03    11.653       -.66550E-06** at limit **
   6  norm          .78468        8.1935       -.19812E-05    .61341E-04
   7  Prefactor     179.70        127.89        .20228E-05   -.94728E-04
   8  Prefactor     6.5930        15.902       -.58814E-06    .97722E-05
   9  norm          .10000E-03    2.8076        .49831E-07** at limit **
  10  Prefactor     .10005E-03    30.302        .38208E-05** at limit **
  11  Prefactor     19.814        16.681       -.10495E-05   -.71630E-03
  12  norm          1.7600        1.2353       -.18791E-06   -.15597E-02
  13  Prefactor     3.4689        427.79       -.11363E-04    .56887E-05
  14  Prefactor     .10000E-03    7.9171        .24739E-07** at limit **
  15  Prefactor     4.5940        9.0941       -.14658E-06   -.13077E-03
  16  norm          .10000E-03    10.729        .89437E-07** at limit **
  17  Prefactor     .10000E-03    52.250       -.10934E-06** at limit **
  18  norm          .10000E-03    1.0906        .23628E-07** at limit **
  19  Prefactor     .10000E-03    22.675        .96097E-07** at limit **
  20  Prefactor     .10000E-03    1350.1        .15140E-05** at limit **
  21  Normalizat    1.4866        .26220        .19038E-05   -.20276E-03
  22  Prefactor     .71023        .22679       -.14537E-05    .37707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.60315
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.784681
  Prefactor  = 179.7
  Prefactor  = 6.593
  norm       = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 19.8135
  norm       = 1.75996
  Prefactor  = 3.46889
  Prefactor  = 0.0001
  Prefactor  = 4.59396
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.48664
  Prefactor  = 0.710228
 **********
 **   18 **HESSE 
 **********

 FCN=   4227.895     FROM HESSE     STATUS=OK           338 CALLS     2766 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6031        11.246        .16968E-03   -1.5235    
   3  norm          .10000E-03    12.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    67.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .78468        6.7154        .23611E-03   -1.5531    
   7  Prefactor     179.70        119.30        .15051E-03   -1.3019    
   8  Prefactor     6.5930        15.860        .15626E-03   -1.5194    
   9  norm          .10000E-03    2.8251        .10635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    203.37        .55816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.814        16.401        .89911E-04   -1.4817    
  12  norm          1.7600        1.2742        .46312E-04   -1.5443    
  13  Prefactor     3.4689        417.81        .21960E-03   -1.5335    
  14  Prefactor     .10000E-03    7.9229        .17869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5940        9.0686        .18781E-03   -1.5279    
  16  norm          .10000E-03    10.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    52.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0929        .66307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1371.7        .18294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4866        .30825        .24031E-03   -.78154    
  22  Prefactor     .71023        .26987        .30465E-03   -1.0313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13489e-10
Minuit parameter uncertainties:
  1  3.82764e-06
  2  11.2505
  3  1.09208e-05
  4  0.00010741
  5  5.53498e-05
  6  4.59146
  7  119.457
  8  15.8705
  9  5.29564e-06
  10  0.00612035
  11  16.4051
  12  1.27424
  13  76.693
  14  4.85605e-06
  15  9.07134
  16  1.67166e-05
  17  3.63721e-05
  18  1.76942e-06
  19  2.78917e-05
  20  0.00452152
  21  0.308637
  22  0.270365
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.981e+01  1.641e+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:  7.102e-01  2.704e-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:  1.487e+00  3.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.31
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.36e-07 +/- 1.12e-07
Energy Flux (Fixed Index): 2.68e-05 +/- 2.21e-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) = 4226.00694099
delta logL = 1.88847692067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4225.97655432
delta logL = 1.91886358479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.852       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1212       1.0000          .0000       10.000    
     3 'Normalizat'    1.5313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67532       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=   4225.977     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      224 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.847        12.347       -.24782E-05   -.90398E-04
   2  Index         2.1209        .40486       -.18428E-04    .68272E-05
   3  Normalizat    1.5313        .24416        .16941E-05   -.20037E-04
   4  Prefactor     .67541        .22173       -.16010E-05    .40619E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.847
  Index      = 2.12088
  Normalizat = 1.53131
  Prefactor  = 0.675412
 **********
 **   18 **HESSE 
 **********

 FCN=   4225.977     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.847        12.128        .97563E-04   -1.4887    
   2  Index         2.1209        .39792        .46977E-02   -.61361    
   3  Normalizat    1.5313        .29207        .23749E-03   -.76902    
   4  Prefactor     .67541        .26535        .31128E-03   -1.0450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16016e-10
Minuit parameter uncertainties:
  1  12.1299
  2  0.398552
  3  0.292394
  4  0.265851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593852': 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) = 4225.976554
delta logL = 1.91886391048

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.685e+01  1.213e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.121e+00  3.986e-01  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:  6.754e-01  2.659e-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:  1.531e+00  2.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.38
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.12 +/- 0.40
Photon Flux (Free Index): 9.49e-08 +/- 6.78e-08
Energy Flux (Free Index): 4.98e-05 +/- 3.56e-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/593852/cmap_HighResolution_541296001_541555201_4FGL_J2256.0-2740_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.36e-07', energy_flux2='4.98e-05', photon_flux_error='1.12e-07', dlogl='1.92e+00', energy_flux='2.68e-05', photon_flux2='9.49e-08', job_status='DONE', time_completed='2021-09-29 02:59:47.535946', photon_index_error2='0.40', photon_index2='2.12', ts='4.31', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='3.56e-05', EG='1.49', time_epoch_completed='1632909587.54', return_code='0', job_id='593852', GAL2='0.68', EG2='1.53', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='6.78e-08', ts2='8.38', photon_index='3.02' WHERE bin_id='1165' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 593852: <4FGL_J2256.0-2740_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1165> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:14 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:15 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:15 2021
Terminated at Wed Sep 29 02:59:47 2021
Results reported at Wed Sep 29 02:59:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1165 344.025 -27.6739 541296001 541555201 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 :                                   491.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   575 sec.
    Turnaround time :                            573 sec.

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

