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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1014
RA = 344.025, Dec = -27.6739
tmin = 502156801, tmax = 502416001
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='592668', job_status='RUN', time_executed='2021-09-29 02:47:05.411024', time_epoch_executed='1632908825.41' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592668

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592668/ft1_4FGL_J2256.0-2740_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592668/ft2_4FGL_J2256.0-2740_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592668/ft1_4FGL_J2256.0-2740_daily_bin1014.fits outfile=/scratch/kocevski/592668/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1014.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=502156801.0 tmax=502416001.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 4.05
user 3.81
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592668/ft1_filtered_4FGL_J2256.0-2740_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/592668/ft2_4FGL_J2256.0-2740_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/592668/ltcube_502156801_502416001_4FGL_J2256.0-2740_daily_bin1014.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/592668/ft2_4FGL_J2256.0-2740_daily_bin1014.fits
.....................!
real 12.26
user 11.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592668/ft1_filtered_4FGL_J2256.0-2740_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/592668/ft2_4FGL_J2256.0-2740_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/592668/ltcube_502156801_502416001_4FGL_J2256.0-2740_daily_bin1014.fits outfile=/scratch/kocevski/592668/expmap_502156801_502416001_4FGL_J2256.0-2740_daily_bin1014.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/592668/ltcube_502156801_502416001_4FGL_J2256.0-2740_daily_bin1014.fits
.....................!
real 192.49
user 187.64
sys 4.30

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/592668/ft1_filtered_4FGL_J2256.0-2740_daily_bin1014.fits scfile=/scratch/kocevski/592668/ft2_4FGL_J2256.0-2740_daily_bin1014.fits outfile=/scratch/kocevski/592668/cmap_502156801_502416001_4FGL_J2256.0-2740_daily_bin1014.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592668/ft1_filtered_4FGL_J2256.0-2740_daily_bin1014.fits scfile=/scratch/kocevski/592668/ft2_4FGL_J2256.0-2740_daily_bin1014.fits outfile=/scratch/kocevski/592668/cmap_HighResolution_502156801_502416001_4FGL_J2256.0-2740_daily_bin1014.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592668/ft1_filtered_4FGL_J2256.0-2740_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/592668/ft2_4FGL_J2256.0-2740_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592668/Model_4FGL_J2256.0-2740_daily_bin1014.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/592668/ft1_filtered_4FGL_J2256.0-2740_daily_bin1014.fits.....................!
real 52.61
user 51.33
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    47.479       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2718       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32898E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.736       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.322       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3676       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.815       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1452       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1601       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .56834       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6829.575     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2145 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.595        19.766        .22595E-05    .11817E-04
   2  Prefactor     .10000E-03    5.0598        .37198E-06** at limit **
   3  norm          47.487        18.770        .10151E-04    .79238E-04
   4  Prefactor     .10000E-03    5.8548        .93269E-08** at limit **
   5  Prefactor     .10000E-03    13.083        .77990E-07** at limit **
   6  norm          2.2750        1.7108       -.18703E-06    .69884E-03
   7  Prefactor     .10092E-03    24.861       -.23964E-05** at limit **
   8  Prefactor     .10000E-03    10.710       -.13713E-06** at limit **
   9  norm          .10000E-03    .86864       -.58516E-09** at limit **
  10  Prefactor     18.737        9.6786       -.24900E-06    .58545E-04
  11  Prefactor     .10000E-03    3.1034        .65484E-07** at limit **
  12  norm          .10000E-03    .10062        .11495E-07** at limit **
  13  Prefactor     .10000E-03    16.816       -.56326E-06** at limit **
  14  Prefactor     11.322        11.888       -.54695E-06   -.20311E-04
  15  Prefactor     .10000E-03    2.2785        .50512E-07** at limit **
  16  norm          2.3665        4.2438       -.33807E-06   -.60600E-03
  17  Prefactor     .10000E-03    9.7304        .19649E-06** at limit **
  18  norm          .10000E-03    1.2389       -.59989E-06** at limit **
  19  Prefactor     23.764        23.818        .63371E-05    .28204E-03
  20  Prefactor     1.1961        61.677       -.78956E-05    .14326E-03
  21  Normalizat    1.1601        .14692       -.98148E-06    .61913E-03
  22  Prefactor     .56842        .14034       -.49583E-06    .26336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.5952
  Prefactor  = 0.0001
  norm       = 47.4873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27499
  Prefactor  = 0.000100921
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.7368
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3216
  Prefactor  = 0.0001
  norm       = 2.36654
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 23.7644
  Prefactor  = 1.1961
  Normalizat = 1.16005
  Prefactor  = 0.56842
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.575     FROM HESSE     STATUS=OK           358 CALLS     2503 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.595        19.738        .23400E-03   -1.3990    
   2  Prefactor     .10000E-03    20.476        .35365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          47.487        18.693        .58193E-04   -1.4329    
   4  Prefactor     .10000E-03    5.8687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2750        1.7199        .84396E-04   -1.5406    
   7  Prefactor     .10092E-03    28.708        .11056       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3984        .14790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.737        9.4435        .92529E-04   -1.4842    
  11  Prefactor     .10000E-03    3.1322        .14149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .10251        .50809E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.322        11.883        .11906E-03   -1.5035    
  15  Prefactor     .10000E-03    2.2845        .12177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3665        4.2362        .22138E-03   -1.5400    
  17  Prefactor     .10000E-03    9.7444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8199        .17146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.764        23.210        .82083E-04   -1.4733    
  20  Prefactor     1.1961        57.504        .18191       -1.5489    
  21  Normalizat    1.1601        .16970        .19661E-03   -.87846    
  22  Prefactor     .56842        .16363        .26598E-03   -1.0893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23777e-09
Minuit parameter uncertainties:
  1  19.7394
  2  1.46424e-05
  3  18.6955
  4  3.90033e-06
  5  5.17967e-05
  6  1.71994
  7  0.0102902
  8  2.06082e-05
  9  2.72838e-07
  10  9.44421
  11  6.64126e-06
  12  4.07102e-07
  13  1.07162e-05
  14  11.8854
  15  2.98028e-06
  16  4.23669
  17  7.65225e-06
  18  0.000136521
  19  23.2183
  20  16.6031
  21  0.169776
  22  0.163771
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  6.641e-06  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:  5.684e-01  1.638e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.160e+00  1.698e-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: 6.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592668/likelihoodResults_502156801_502416001_4FGL_J2256.0-2740_daily_bin1014.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): 0
logL (Free Index) = 6829.57666728
delta logL = -0.00152313694889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6829.57513991
delta logL = 4.23327401222e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1206       1.0000          .0000       10.000    
     3 'Normalizat'    1.1601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56840       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=   6829.575     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      263 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    101.35        .43243E-01** at limit **
   2  Index         2.1198        8.9398        .50000        .82011E-06
   3  Normalizat    1.1601        .25709E-01    .35953E-01    .53354E-04
   4  Prefactor     .56842        .25156E-01    .60123E-01    .55338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11984
  Normalizat = 1.16005
  Prefactor  = 0.568421
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.575     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7173        .23651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1198        7.4087        .50000       -.61387    
   3  Normalizat    1.1601        .16567        .19661E-03   -.87846    
   4  Prefactor     .56842        .16244        .26598E-03   -1.0893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56051e-11
Minuit parameter uncertainties:
  1  2.95522e-05
  2  37.6376
  3  0.16574
  4  0.162575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592668': 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) = 6829.57513971
delta logL = 4.42944201495e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.955e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.120e+00  3.764e+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:  5.684e-01  1.626e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.160e+00  1.657e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/592668/cmap_HighResolution_502156801_502416001_4FGL_J2256.0-2740_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-29 02:58:00.917517', job_id='592668', GAL2='0.57', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632909480.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='4.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1014' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 592668: <4FGL_J2256.0-2740_daily_bin1014> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1014> 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) <bullet0091>, 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:58:01 2021
Results reported at Wed Sep 29 02:58:01 2021

Your job looked like:

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

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

