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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin432
RA = 344.025, Dec = -27.6739
tmin = 351302401, tmax = 351561601
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='590771', job_status='RUN', time_executed='2021-09-29 02:42:47.588670', time_epoch_executed='1632908567.59' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590771/ft1_4FGL_J2256.0-2740_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590771/ft2_4FGL_J2256.0-2740_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590771/ft1_4FGL_J2256.0-2740_daily_bin432.fits outfile=/scratch/kocevski/590771/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin432.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=351302401.0 tmax=351561601.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.42
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590771/ft1_filtered_4FGL_J2256.0-2740_daily_bin432.fits" evtable="EVENTS" scfile=/scratch/kocevski/590771/ft2_4FGL_J2256.0-2740_daily_bin432.fits sctable="SC_DATA" outfile=/scratch/kocevski/590771/ltcube_351302401_351561601_4FGL_J2256.0-2740_daily_bin432.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/590771/ft2_4FGL_J2256.0-2740_daily_bin432.fits
.....................!
real 11.78
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590771/ft1_filtered_4FGL_J2256.0-2740_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/590771/ft2_4FGL_J2256.0-2740_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/590771/ltcube_351302401_351561601_4FGL_J2256.0-2740_daily_bin432.fits outfile=/scratch/kocevski/590771/expmap_351302401_351561601_4FGL_J2256.0-2740_daily_bin432.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/590771/ltcube_351302401_351561601_4FGL_J2256.0-2740_daily_bin432.fits
.....................!
real 191.74
user 186.57
sys 4.79

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/590771/ft1_filtered_4FGL_J2256.0-2740_daily_bin432.fits scfile=/scratch/kocevski/590771/ft2_4FGL_J2256.0-2740_daily_bin432.fits outfile=/scratch/kocevski/590771/cmap_351302401_351561601_4FGL_J2256.0-2740_daily_bin432.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/590771/ft1_filtered_4FGL_J2256.0-2740_daily_bin432.fits scfile=/scratch/kocevski/590771/ft2_4FGL_J2256.0-2740_daily_bin432.fits outfile=/scratch/kocevski/590771/cmap_HighResolution_351302401_351561601_4FGL_J2256.0-2740_daily_bin432.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590771/ft1_filtered_4FGL_J2256.0-2740_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/590771/ft2_4FGL_J2256.0-2740_daily_bin432.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590771/Model_4FGL_J2256.0-2740_daily_bin432.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/590771/ft1_filtered_4FGL_J2256.0-2740_daily_bin432.fits.....................!
real 55.52
user 54.08
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .33678E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79017E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3559       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0875       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    27.185       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.051       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1224       1.0000         .10000E-03   10000.    
    18 'norm      '    11.559       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .67999       1.0000         .10000E-03   10000.    
    20 'Prefactor '    86.854       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76074       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0114       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7651.024     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2038 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8665        .26203E-06** at limit **
   2  Prefactor     .10000E-03    3.0366       -.23136E-05** at limit **
   3  norm          .10000E-03    40.996        .24235E-04** at limit **
   4  Prefactor     .10037E-03    980.86       -.49224E-04** at limit **
   5  Prefactor     .10000E-03    7.3798       -.40465E-06** at limit **
   6  norm          1.3565        1.4502       -.69758E-06    .10897E-04
   7  Prefactor     9.0777        2.0579       -.66717E-07   -.10982E-02
   8  Prefactor     .10000E-03    4.1460       -.48618E-05** at limit **
   9  norm          27.186        1.2295       -.11189E-07   -.62856E-02
  10  Prefactor     .10000E-03    21.770        .28858E-05** at limit **
  11  Prefactor     34.051        1.0822       -.12480E-06   -.13913E-02
  12  norm          1.4364        .65643       -.26966E-06   -.74559E-04
  13  Prefactor     .10000E-03    40.070        .19659E-04** at limit **
  14  Prefactor     .10000E-03    4.1673        .29877E-05** at limit **
  15  Prefactor     .10000E-03    3.4850        .90393E-06** at limit **
  16  norm          .10000E-03    8.8884       -.83970E-06** at limit **
  17  Prefactor     9.0951        3.3990       -.63475E-06   -.15640E-02
  18  norm          11.559        3.6676       -.59716E-06   -.18695E-04
  19  Prefactor     .62253        139.01        .49173E-05    .84445E-04
  20  Prefactor     86.813        5.3240       -.50116E-06    .73965E-02
  21  Normalizat    .76100        .17818        .16096E-06   -.86310E-04
  22  Prefactor     1.0113        .17958       -.15333E-05   -.71762E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.00010037
  Prefactor  = 0.0001
  norm       = 1.3565
  Prefactor  = 9.07775
  Prefactor  = 0.0001
  norm       = 27.1856
  Prefactor  = 0.0001
  Prefactor  = 34.051
  norm       = 1.43645
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.09513
  norm       = 11.5588
  Prefactor  = 0.622529
  Prefactor  = 86.8128
  Normalizat = 0.760998
  Prefactor  = 1.01128
 **********
 **   18 **HESSE 
 **********

 FCN=   7651.024     FROM HESSE     STATUS=OK           392 CALLS     2430 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.8407        .98498E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10037E-03    10.242        .94107E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3565        1.6892        .93845E-02   -1.5475    
   7  Prefactor     9.0777        24.319        .33238E-02   -1.5105    
   8  Prefactor     .10000E-03    4.1063        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          27.186        6.7731        .19209E-02   -1.4665    
  10  Prefactor     .10000E-03    21.518        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.051        12.738        .17168E-02   -1.4540    
  12  norm          1.4364        .84509        .90044E-02   -1.5468    
  13  Prefactor     .10000E-03    39.635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.7515        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.0951        33.117        .33174E-02   -1.5105    
  18  norm          11.559        3.7166        .29458E-02   -1.5028    
  19  Prefactor     .62253        16.489        .11985       -1.5550    
  20  Prefactor     86.813        86.327        .10777E-02   -1.3842    
  21  Normalizat    .76100        .15953        .43096E-01   -1.0153    
  22  Prefactor     1.0113        .15375        .43124E-01   -.92354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08536e-07
Minuit parameter uncertainties:
  1  7.48848e-05
  2  2.15003e-06
  3  0.000165885
  4  0.00389561
  5  5.35835e-06
  6  1.68923
  7  24.3453
  8  3.85115e-06
  9  6.77334
  10  1.0278e-05
  11  12.7395
  12  0.845102
  13  0.000321151
  14  3.78231e-07
  15  4.5763e-07
  16  8.37944e-05
  17  33.1841
  18  3.71664
  19  6.40916
  20  86.4517
  21  0.159623
  22  0.153822
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.405e+01  1.274e+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.011e+00  1.538e-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.610e-01  1.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.22
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 2.33e-07 +/- 8.70e-08
Energy Flux (Fixed Index): 4.60e-05 +/- 1.72e-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) = 7649.69922271
delta logL = 1.32462571042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7649.68237559
delta logL = 1.34147283472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.797       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4855       1.0000          .0000       10.000    
     3 'Normalizat'    .81028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97193       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.

 FCN=   7649.682     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      207 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.797        9.6012        .16984E-02   -.60868E-04
   2  Index         2.4855        .25203        .11844       -.58567E-04
   3  Normalizat    .81029        .15192        .43744E-01    .54315E-04
   4  Prefactor     .97192        .15106        .45915E-01   -.45488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.7973
  Index      = 2.48547
  Normalizat = 0.810288
  Prefactor  = 0.971922
 **********
 **   18 **HESSE 
 **********

 FCN=   7649.682     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.797        10.041        .67934E-04   -1.4527    
   2  Index         2.4855        .27965        .49403E-02   -.52696    
   3  Normalizat    .81029        .18232        .25580E-03   -.99688    
   4  Prefactor     .97192        .18012        .23636E-03   -.93671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27724e-11
Minuit parameter uncertainties:
  1  10.0417
  2  0.279845
  3  0.182461
  4  0.180233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590771': 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) = 7649.68237559
delta logL = 1.34147283632

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.480e+01  1.004e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.485e+00  2.798e-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:  9.719e-01  1.802e-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:  8.103e-01  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.25
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.49 +/- 0.28
Photon Flux (Free Index): 2.03e-07 +/- 6.27e-08
Energy Flux (Free Index): 5.99e-05 +/- 1.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/590771/cmap_HighResolution_351302401_351561601_4FGL_J2256.0-2740_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.33e-07', energy_flux2='5.99e-05', photon_flux_error='8.70e-08', dlogl='1.34e+00', energy_flux='4.60e-05', photon_flux2='2.03e-07', job_status='DONE', time_completed='2021-09-29 02:52:53.731049', photon_index_error2='0.28', photon_index2='2.49', ts='17.22', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='0.76', time_epoch_completed='1632909173.73', return_code='0', job_id='590771', GAL2='0.97', EG2='0.81', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='6.27e-08', ts2='22.25', photon_index='3.02' WHERE bin_id='432' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 590771: <4FGL_J2256.0-2740_daily_bin432> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin432> 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) <bullet0242>, 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:52:54 2021
Results reported at Wed Sep 29 02:52:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin432 344.025 -27.6739 351302401 351561601 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 :                                   603.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

