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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin657
RA = 344.025, Dec = -27.6739
tmin = 409622401, tmax = 409881601
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='591120', job_status='RUN', time_executed='2021-09-29 02:43:34.979272', time_epoch_executed='1632908614.98' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591120

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591120/ft1_4FGL_J2256.0-2740_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591120/ft2_4FGL_J2256.0-2740_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591120/ft1_4FGL_J2256.0-2740_daily_bin657.fits outfile=/scratch/kocevski/591120/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin657.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=409622401.0 tmax=409881601.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 5.68
user 5.43
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591120/ft2_4FGL_J2256.0-2740_daily_bin657.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/591120/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin657.fits evtable="EVENTS" outfile="/scratch/kocevski/591120/ft1_filtered_4FGL_J2256.0-2740_daily_bin657.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591120/ft1_filtered_4FGL_J2256.0-2740_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/591120/ft2_4FGL_J2256.0-2740_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/591120/ltcube_409622401_409881601_4FGL_J2256.0-2740_daily_bin657.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/591120/ft2_4FGL_J2256.0-2740_daily_bin657.fits
.....................!
real 12.14
user 11.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591120/ft1_filtered_4FGL_J2256.0-2740_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/591120/ft2_4FGL_J2256.0-2740_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/591120/ltcube_409622401_409881601_4FGL_J2256.0-2740_daily_bin657.fits outfile=/scratch/kocevski/591120/expmap_409622401_409881601_4FGL_J2256.0-2740_daily_bin657.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/591120/ltcube_409622401_409881601_4FGL_J2256.0-2740_daily_bin657.fits
.....................!
real 190.09
user 185.67
sys 4.11

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/591120/ft1_filtered_4FGL_J2256.0-2740_daily_bin657.fits scfile=/scratch/kocevski/591120/ft2_4FGL_J2256.0-2740_daily_bin657.fits outfile=/scratch/kocevski/591120/cmap_409622401_409881601_4FGL_J2256.0-2740_daily_bin657.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591120/ft1_filtered_4FGL_J2256.0-2740_daily_bin657.fits scfile=/scratch/kocevski/591120/ft2_4FGL_J2256.0-2740_daily_bin657.fits outfile=/scratch/kocevski/591120/cmap_HighResolution_409622401_409881601_4FGL_J2256.0-2740_daily_bin657.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/591120/ft1_filtered_4FGL_J2256.0-2740_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/591120/ft2_4FGL_J2256.0-2740_daily_bin657.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591120/Model_4FGL_J2256.0-2740_daily_bin657.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/591120/ft1_filtered_4FGL_J2256.0-2740_daily_bin657.fits......................!
real 31.01
user 29.79
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6455       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9473       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.603       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9909       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.141       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.1288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8258       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .62995E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.013       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.143       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.270       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77040       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79212       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=   2796.900     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     2692 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6475        26.041        .12903E-03    .57711E-05
   2  Prefactor     .10000E-03    14.623        .18142E-02** at limit **
   3  norm          9.9454        16.173        .12705E-03    .12169E-04
   4  Prefactor     11.604        14.923        .11761E-03   -.15418E-04
   5  Prefactor     1.9931        65.142        .29363E-03    .27257E-04
   6  norm          .10000E-03    2.4417        .15896E-03** at limit **
   7  Prefactor     44.084        65.510        .60343E-04    .36908E-04
   8  Prefactor     .10000E-03    6.0166        .12656E-02** at limit **
   9  norm          8.1287        6.8075        .11347E-03   -.25199E-04
  10  Prefactor     2.8269        40.250        .24194E-03   -.10573E-04
  11  Prefactor     .10000E-03    8.8577        .15294E-02** at limit **
  12  norm          1.5642        1.1243        .37825E-04   -.18439E-03
  13  Prefactor     .10000E-03    64.481        .18142E-02** at limit **
  14  Prefactor     .10000E-03    25.815        .80276E-01** at limit **
  15  Prefactor     .10000E-03    6.1868        .12838E-02** at limit **
  16  norm          14.011        12.702        .10700E-03    .18913E-04
  17  Prefactor     .10000E-03    94.172        .18142E-02** at limit **
  18  norm          .10000E-03    3.2204        .92080E-03** at limit **
  19  Prefactor     49.154        56.879        .57203E-04   -.29573E-04
  20  Prefactor     28.204        197.18        .75350E-04   -.77703E-05
  21  Normalizat    .77043        .28833        .24024E-03   -.31730E-04
  22  Prefactor     .79203        .26656        .22513E-03   -.57240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.64747
  Prefactor  = 0.0001
  norm       = 9.94539
  Prefactor  = 11.6036
  Prefactor  = 1.9931
  norm       = 0.0001
  Prefactor  = 44.0842
  Prefactor  = 0.0001
  norm       = 8.12868
  Prefactor  = 2.82695
  Prefactor  = 0.0001
  norm       = 1.56415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0113
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.1537
  Prefactor  = 28.2036
  Normalizat = 0.770433
  Prefactor  = 0.792029
 **********
 **   18 **HESSE 
 **********

 FCN=   2796.900     FROM HESSE     STATUS=OK           330 CALLS     3022 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6475        26.039        .51613E-05   -1.5087    
   2  Prefactor     .10000E-03    14.634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9454        16.173        .50820E-05   -1.5077    
   4  Prefactor     11.604        14.923        .47043E-05   -1.5027    
   5  Prefactor     1.9931        64.964        .11745E-04   -1.5426    
   6  norm          .10000E-03    2.4418        .31793E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.084        65.465        .12069E-04   -1.4379    
   8  Prefactor     .10000E-03    6.0168        .25312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.1287        6.8056        .45387E-05   -1.5138    
  10  Prefactor     2.8269        40.149        .96774E-05   -1.5372    
  11  Prefactor     .10000E-03    8.8582        .30588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5642        1.1234        .15130E-05   -1.5458    
  13  Prefactor     .10000E-03    64.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.871        .82640E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1869        .25675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.011        12.702        .42799E-05   -1.4959    
  17  Prefactor     .10000E-03    94.180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.2206        .18416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     49.154        56.875        .11441E-04   -1.4305    
  20  Prefactor     28.204        197.10        .15070E-04   -1.4645    
  21  Normalizat    .77043        .28866        .96094E-05   -1.0117    
  22  Prefactor     .79203        .26684        .90051E-05   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76096e-11
Minuit parameter uncertainties:
  1  26.0692
  2  7.26654e-05
  3  16.1802
  4  14.9274
  5  22.7841
  6  5.00794e-06
  7  65.5716
  8  1.22465e-05
  9  6.80629
  10  21.3242
  11  4.95614e-05
  12  1.12341
  13  4.00943e-05
  14  0.000143028
  15  1.55217e-05
  16  12.7043
  17  0.000353861
  18  1.94146e-05
  19  56.938
  20  149.825
  21  0.28923
  22  0.267272
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  4.956e-05  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.920e-01  2.673e-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:  7.704e-01  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591120/likelihoodResults_409622401_409881601_4FGL_J2256.0-2740_daily_bin657.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): 102
logL (Free Index) = 2796.9008849
delta logL = -0.000537869326763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2796.90034685
delta logL = 1.77622951014e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9950       1.0000          .0000       10.000    
     3 'Normalizat'    .77044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79202       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=   2796.900     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      260 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.905        .53989E-01** at limit **
   2  Index         2.3869        6.1899        .50000       -.28152E-06
   3  Normalizat    .77043        .15687E-01    .24023E-03    .33784E-03
   4  Prefactor     .79203        .14984E-01    .22513E-03    .36003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.38691
  Normalizat = 0.770434
  Prefactor  = 0.792031
 **********
 **   18 **HESSE 
 **********

 FCN=   2796.900     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      291 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1471.2        .29939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3869        5.1364        .50000       -.54992    
   3  Normalizat    .77043        .61333E-01    .48046E-04   -1.0117    
   4  Prefactor     .79203        .58584E-01    .45026E-04   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74847e-08
Minuit parameter uncertainties:
  1  0.00376389
  2  758.382
  3  0.0613381
  4  0.0585885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591120': 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): 102
logL (Free Index) = 2796.90034447
delta logL = 2.560311259e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.764e-03  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.387e+00  7.584e+02  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:  7.920e-01  5.859e-02  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:  7.704e-01  6.134e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.025 -27.674

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/591120/cmap_HighResolution_409622401_409881601_4FGL_J2256.0-2740_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-29 02:51:25.991132', job_id='591120', GAL2='0.79', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632909085.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.56e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='657' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:51:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 591120: <4FGL_J2256.0-2740_daily_bin657> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin657> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:47 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:48 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:40:48 2021
Terminated at Wed Sep 29 02:51:26 2021
Results reported at Wed Sep 29 02:51:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin657 344.025 -27.6739 409622401 409881601 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 :                                   468.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             214.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            639 sec.

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

