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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin434
RA = 344.025, Dec = -27.6739
tmin = 351820801, tmax = 352080001
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='590773', job_status='RUN', time_executed='2021-09-29 02:40:39.563169', time_epoch_executed='1632908439.56' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590773

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590773/ft1_4FGL_J2256.0-2740_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590773/ft2_4FGL_J2256.0-2740_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590773/ft1_4FGL_J2256.0-2740_daily_bin434.fits outfile=/scratch/kocevski/590773/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin434.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=351820801.0 tmax=352080001.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.62
user 3.39
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590773/ft1_filtered_4FGL_J2256.0-2740_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/590773/ft2_4FGL_J2256.0-2740_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/590773/ltcube_351820801_352080001_4FGL_J2256.0-2740_daily_bin434.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/590773/ft2_4FGL_J2256.0-2740_daily_bin434.fits
.....................!
real 11.71
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590773/ft1_filtered_4FGL_J2256.0-2740_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/590773/ft2_4FGL_J2256.0-2740_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/590773/ltcube_351820801_352080001_4FGL_J2256.0-2740_daily_bin434.fits outfile=/scratch/kocevski/590773/expmap_351820801_352080001_4FGL_J2256.0-2740_daily_bin434.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/590773/ltcube_351820801_352080001_4FGL_J2256.0-2740_daily_bin434.fits
.....................!
real 191.23
user 185.47
sys 5.44

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/590773/ft1_filtered_4FGL_J2256.0-2740_daily_bin434.fits scfile=/scratch/kocevski/590773/ft2_4FGL_J2256.0-2740_daily_bin434.fits outfile=/scratch/kocevski/590773/cmap_351820801_352080001_4FGL_J2256.0-2740_daily_bin434.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590773/ft1_filtered_4FGL_J2256.0-2740_daily_bin434.fits scfile=/scratch/kocevski/590773/ft2_4FGL_J2256.0-2740_daily_bin434.fits outfile=/scratch/kocevski/590773/cmap_HighResolution_351820801_352080001_4FGL_J2256.0-2740_daily_bin434.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590773/ft1_filtered_4FGL_J2256.0-2740_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/590773/ft2_4FGL_J2256.0-2740_daily_bin434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590773/Model_4FGL_J2256.0-2740_daily_bin434.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/590773/ft1_filtered_4FGL_J2256.0-2740_daily_bin434.fits.....................!
real 51.88
user 50.60
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.575       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16859E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40689       1.0000         .10000E-03   10000.    
     6 'norm      '    .82909       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .82330E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    28.167       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.757       1.0000         .10000E-03   10000.    
    12 'norm      '    5.6198       1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.781       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.722       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4879       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78226       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1057       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=   6618.021     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     3073 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.575        16.016        .90527E-04   -.37675E-06
   2  Prefactor     .10000E-03    29.568        .35441E-02** at limit **
   3  norm          .10000E-03    9.0595        .18142E-02** at limit **
   4  Prefactor     7.5308        20.055        .14613E-03    .39989E-04
   5  Prefactor     .39168        32.398        .39728E-02    .94941E-04
   6  norm          .82803        1.3694        .14045E-02   -.13826E-03
   7  Prefactor     .10000E-03    45.131        .13246    ** at limit **
   8  Prefactor     .10000E-03    10.411        .18142E-02** at limit **
   9  norm          28.167        7.9429        .75487E-04    .62802E-04
  10  Prefactor     .10000E-03    9.5296        .18142E-02** at limit **
  11  Prefactor     40.751        17.706        .62788E-04    .98861E-04
  12  norm          5.6197        1.4716        .37603E-04    .21163E-05
  13  Prefactor     48.789        41.870        .57414E-04    .99006E-06
  14  Prefactor     .10000E-03    17.481        .18142E-02** at limit **
  15  Prefactor     .10000E-03    4.6022        .17024E-02** at limit **
  16  norm          .10000E-03    2.9552        .13630E-02** at limit **
  17  Prefactor     .10000E-03    17.100        .18142E-02** at limit **
  18  norm          19.721        5.2217        .89675E-04    .83673E-05
  19  Prefactor     4.4872        36.972        .19006E-03    .71182E-05
  20  Prefactor     .10000E-03    85.430        .18142E-02** at limit **
  21  Normalizat    .78229        .23074        .29393E-03   -.20461E-04
  22  Prefactor     1.1057        .22133        .24970E-03    .14687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5753
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.5308
  Prefactor  = 0.391679
  norm       = 0.82803
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 28.167
  Prefactor  = 0.0001
  Prefactor  = 40.7513
  norm       = 5.61973
  Prefactor  = 48.7887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.7213
  Prefactor  = 4.48724
  Prefactor  = 0.0001
  Normalizat = 0.782287
  Prefactor  = 1.10566
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.021     FROM HESSE     STATUS=OK           334 CALLS     3407 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.575        16.016        .36211E-05   -1.4823    
   2  Prefactor     .10000E-03    30.058        .70883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.0604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5308        20.047        .58452E-05   -1.5159    
   5  Prefactor     .39168        32.488        .15891E-03   -1.5583    
   6  norm          .82803        1.3707        .56181E-04   -1.5526    
   7  Prefactor     .10000E-03    45.570        .13147       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          28.167        7.9428        .30195E-05   -1.4646    
  10  Prefactor     .10000E-03    9.5301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.751        17.710        .25115E-05   -1.4430    
  12  norm          5.6197        1.4718        .15041E-05   -1.5234    
  13  Prefactor     48.789        41.868        .11483E-04   -1.4310    
  14  Prefactor     .10000E-03    17.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6024        .34048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9555        .27260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.721        5.2212        .35870E-05   -1.4819    
  19  Prefactor     4.4872        36.960        .76024E-05   -1.5284    
  20  Prefactor     .10000E-03    85.434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78229        .23093        .11757E-04   -1.0073    
  22  Prefactor     1.1057        .22150        .49939E-04   -.89286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95697e-10
Minuit parameter uncertainties:
  1  16.0194
  2  4.44327e-05
  3  1.28863e-06
  4  20.0652
  5  7.13751
  6  1.37078
  7  0.000563138
  8  1.27144e-05
  9  7.9431
  10  3.32197e-05
  11  17.7128
  12  1.47184
  13  41.8936
  14  2.5333e-05
  15  1.17818e-05
  16  2.3977e-07
  17  1.70243e-06
  18  5.22127
  19  25.7779
  20  7.02312e-05
  21  0.231223
  22  0.221685
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.075e+01  1.771e+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.106e+00  2.217e-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.823e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.16
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 2.79e-07 +/- 1.21e-07
Energy Flux (Fixed Index): 5.50e-05 +/- 2.39e-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) = 6618.01805768
delta logL = 0.00287379626297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6618.01759567
delta logL = 0.00333580636288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.406       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0599       1.0000          .0000       10.000    
     3 'Normalizat'    .77960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1080       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=   6618.018     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      262 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.401        14.031        .63060E-04    .33713E-04
   2  Index         3.0600        .46581        .67125E-02   -.42257E-05
   3  Normalizat    .77977        .22634        .29434E-03    .14179E-03
   4  Prefactor     1.1078        .22094        .24950E-03    .33720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.401
  Index      = 3.06002
  Normalizat = 0.779766
  Prefactor  = 1.10778
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.018     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.401        13.905        .25224E-05   -1.4436    
   2  Index         3.0600        .46161        .26850E-03   -.39846    
   3  Normalizat    .77977        .22668        .11774E-04   -1.0082    
   4  Prefactor     1.1078        .22121        .49901E-04   -.89218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99017e-10
Minuit parameter uncertainties:
  1  13.9066
  2  0.462387
  3  0.226958
  4  0.221396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590773': 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) = 6618.01759507
delta logL = 0.00333640644658

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.040e+01  1.391e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.060e+00  4.624e-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:  1.108e+00  2.214e-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.798e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.86
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.06 +/- 0.46
Photon Flux (Free Index): 2.80e-07 +/- 9.24e-08
Energy Flux (Free Index): 5.44e-05 +/- 1.94e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/590773/cmap_HighResolution_351820801_352080001_4FGL_J2256.0-2740_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.79e-07', energy_flux2='5.44e-05', photon_flux_error='1.21e-07', dlogl='3.34e-03', energy_flux='5.50e-05', photon_flux2='2.80e-07', job_status='DONE', time_completed='2021-09-29 02:51:36.229127', photon_index_error2='0.46', photon_index2='3.06', ts='11.16', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='0.78', time_epoch_completed='1632909096.23', return_code='0', job_id='590773', GAL2='1.11', EG2='0.78', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='9.24e-08', ts2='13.86', photon_index='3.02' WHERE bin_id='434' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 590773: <4FGL_J2256.0-2740_daily_bin434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin434 344.025 -27.6739 351820801 352080001 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 :                                   650.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            672 sec.

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

