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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1013
RA = 344.025, Dec = -27.6739
tmin = 501897601, tmax = 502156801
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='592667', job_status='RUN', time_executed='2021-09-29 02:48:43.547256', time_epoch_executed='1632908923.55' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592667/ft1_4FGL_J2256.0-2740_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592667/ft2_4FGL_J2256.0-2740_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592667/ft1_4FGL_J2256.0-2740_daily_bin1013.fits outfile=/scratch/kocevski/592667/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1013.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=501897601.0 tmax=502156801.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.50
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592667/ft1_filtered_4FGL_J2256.0-2740_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/592667/ft2_4FGL_J2256.0-2740_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/592667/ltcube_501897601_502156801_4FGL_J2256.0-2740_daily_bin1013.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/592667/ft2_4FGL_J2256.0-2740_daily_bin1013.fits
.....................!
real 12.05
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592667/ft1_filtered_4FGL_J2256.0-2740_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/592667/ft2_4FGL_J2256.0-2740_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/592667/ltcube_501897601_502156801_4FGL_J2256.0-2740_daily_bin1013.fits outfile=/scratch/kocevski/592667/expmap_501897601_502156801_4FGL_J2256.0-2740_daily_bin1013.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/592667/ltcube_501897601_502156801_4FGL_J2256.0-2740_daily_bin1013.fits
.....................!
real 191.61
user 185.84
sys 5.46

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/592667/ft1_filtered_4FGL_J2256.0-2740_daily_bin1013.fits scfile=/scratch/kocevski/592667/ft2_4FGL_J2256.0-2740_daily_bin1013.fits outfile=/scratch/kocevski/592667/cmap_501897601_502156801_4FGL_J2256.0-2740_daily_bin1013.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592667/ft1_filtered_4FGL_J2256.0-2740_daily_bin1013.fits scfile=/scratch/kocevski/592667/ft2_4FGL_J2256.0-2740_daily_bin1013.fits outfile=/scratch/kocevski/592667/cmap_HighResolution_501897601_502156801_4FGL_J2256.0-2740_daily_bin1013.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592667/ft1_filtered_4FGL_J2256.0-2740_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/592667/ft2_4FGL_J2256.0-2740_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592667/Model_4FGL_J2256.0-2740_daily_bin1013.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/592667/ft1_filtered_4FGL_J2256.0-2740_daily_bin1013.fits.....................!
real 54.53
user 53.22
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.583       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3645       1.0000         .10000E-03   10000.    
     3 'norm      '    61.205       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11284E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.853       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9546       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31532E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0712       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.879       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11605E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9405       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.649       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6005       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72175       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0097       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=   7185.959     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     2791 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.584        22.006        .41544E-04   -.10672E-04
   2  Prefactor     7.3634        6.0101        .14779E-03   -.15800E-03
   3  norm          61.204        22.910        .25644E-03   -.21219E-03
   4  Prefactor     .10000E-03    36.210        .36285E-03** at limit **
   5  Prefactor     15.852        13.095        .10059E-03   -.29520E-03
   6  norm          .10000E-03    .60953        .64334E-03** at limit **
   7  Prefactor     2.3539        164.31        .29678E-03   -.19421E-04
   8  Prefactor     .10000E-03    9.2789        .58682E-01** at limit **
   9  norm          2.0713        2.0528        .11424E-03    .47838E-03
  10  Prefactor     .10000E-03    5.3417        .18142E-02** at limit **
  11  Prefactor     10.875        5.6213        .12147E-03    .10963E-02
  12  norm          .10000E-03    .26353        .64587E-03** at limit **
  13  Prefactor     .10000E-03    79.705        .18142E-02** at limit **
  14  Prefactor     .10000E-03    7.6000        .18142E-02** at limit **
  15  Prefactor     .10000E-03    7.8610        .36285E-03** at limit **
  16  norm          3.9406        4.4079        .18164E-03   -.14915E-03
  17  Prefactor     23.646        38.510        .82370E-04    .31745E-04
  18  norm          5.6004        2.5818        .89078E-04   -.11295E-03
  19  Prefactor     .10000E-03    7.6187        .18142E-02** at limit **
  20  Prefactor     .10000E-03    27.949        .18142E-02** at limit **
  21  Normalizat    .72179        .19470        .25481E-03    .14777E-03
  22  Prefactor     1.0097        .18410        .22208E-03    .15933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.5837
  Prefactor  = 7.36343
  norm       = 61.2043
  Prefactor  = 0.000100001
  Prefactor  = 15.8523
  norm       = 0.0001
  Prefactor  = 2.35395
  Prefactor  = 0.000100001
  norm       = 2.07126
  Prefactor  = 0.0001
  Prefactor  = 10.8749
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.94058
  Prefactor  = 23.6457
  norm       = 5.60036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.721791
  Prefactor  = 1.00972
 **********
 **   18 **HESSE 
 **********

 FCN=   7185.959     FROM HESSE     STATUS=OK           330 CALLS     3121 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.584        22.005        .83088E-05   -1.3770    
   2  Prefactor     7.3634        6.0100        .59118E-05   -1.5165    
   3  norm          61.204        22.908        .51288E-04   -1.4142    
   4  Prefactor     .10000E-03    36.211        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.852        13.085        .40237E-05   -1.4911    
   6  norm          .10000E-03    .60954        .12867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3539        163.85        .11871E-04   -1.5401    
   8  Prefactor     .10000E-03    8.1179        .63933E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0713        2.0527        .45695E-05   -1.5420    
  10  Prefactor     .10000E-03    5.3419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.875        5.6182        .48588E-05   -1.5048    
  12  norm          .10000E-03    .26375        .12917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    79.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6012        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8613        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9406        4.4077        .72656E-05   -1.5311    
  17  Prefactor     23.646        38.497        .32948E-05   -1.4735    
  18  norm          5.6004        2.5818        .35631E-05   -1.5235    
  19  Prefactor     .10000E-03    7.6191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .72179        .19489        .10192E-04   -1.0304    
  22  Prefactor     1.0097        .18431        .44415E-04   -.92406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77572e-10
Minuit parameter uncertainties:
  1  22.0072
  2  6.01048
  3  22.9111
  4  0.000278218
  5  13.0878
  6  2.96129e-06
  7  39.3903
  8  0.000156527
  9  2.05276
  10  1.34016e-05
  11  5.6185
  12  7.59601e-06
  13  0.000557259
  14  1.81963e-05
  15  2.59492e-05
  16  4.40808
  17  38.5372
  18  2.58187
  19  2.29539e-06
  20  1.50772e-05
  21  0.195082
  22  0.18443
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.087e+01  5.619e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.010e+00  1.844e-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.218e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.57
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 7.44e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 7.58e-06

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) = 7185.95479398
delta logL = 0.00444249728025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7185.95455279
delta logL = 0.00468369234386

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7185.955     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      197 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.780        10.039        .30506E-02    .14594E-02
   2  Index         3.0815        1.0182        .21926       -.87455E-05
   3  Normalizat    .71987        .15143        .42555E-01   -.48591E-05
   4  Prefactor     1.0114        .15354        .43130E-01   -.26670E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7805
  Index      = 3.08153
  Normalizat = 0.719868
  Prefactor  = 1.0114
 **********
 **   18 **HESSE 
 **********

 FCN=   7185.955     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.780        5.4933        .12202E-03   -1.5051    
   2  Index         3.0815        .61752        .96513E-02   -.39379    
   3  Normalizat    .71987        .18117        .25512E-03   -1.0311    
   4  Prefactor     1.0114        .18279        .22192E-03   -.92351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65398e-10
Minuit parameter uncertainties:
  1  5.49356
  2  0.619373
  3  0.181319
  4  0.182902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592667': 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) = 7185.95455278
delta logL = 0.00468369282589

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.078e+01  5.494e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.082e+00  6.194e-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.011e+00  1.829e-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.199e-01  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.59
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.08 +/- 0.62
Photon Flux (Free Index): 7.54e-08 +/- 3.83e-08
Energy Flux (Free Index): 1.45e-05 +/- 7.51e-06

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/592667/cmap_HighResolution_501897601_502156801_4FGL_J2256.0-2740_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.44e-08', energy_flux2='1.45e-05', photon_flux_error='3.84e-08', dlogl='4.68e-03', energy_flux='1.47e-05', photon_flux2='7.54e-08', job_status='DONE', time_completed='2021-09-29 02:59:33.706413', photon_index_error2='0.62', photon_index2='3.08', ts='6.57', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='7.51e-06', EG='0.72', time_epoch_completed='1632909573.71', return_code='0', job_id='592667', GAL2='1.01', EG2='0.72', return_code2='0', energy_flux_error='7.58e-06', photon_flux_error2='3.83e-08', ts2='6.59', photon_index='3.02' WHERE bin_id='1013' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 592667: <4FGL_J2256.0-2740_daily_bin1013> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1013> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:43 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:44 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:45:44 2021
Terminated at Wed Sep 29 02:59:34 2021
Results reported at Wed Sep 29 02:59:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1013 344.025 -27.6739 501897601 502156801 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 :                                   640.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

