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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1052
RA = 344.025, Dec = -27.6739
tmin = 512006401, tmax = 512265601
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='592725', job_status='RUN', time_executed='2021-09-29 02:48:37.673502', time_epoch_executed='1632908917.67' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592725/ft1_4FGL_J2256.0-2740_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592725/ft2_4FGL_J2256.0-2740_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592725/ft1_4FGL_J2256.0-2740_daily_bin1052.fits outfile=/scratch/kocevski/592725/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1052.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=512006401.0 tmax=512265601.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.49
user 3.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592725/ft2_4FGL_J2256.0-2740_daily_bin1052.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/592725/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1052.fits evtable="EVENTS" outfile="/scratch/kocevski/592725/ft1_filtered_4FGL_J2256.0-2740_daily_bin1052.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592725/ft1_filtered_4FGL_J2256.0-2740_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/592725/ft2_4FGL_J2256.0-2740_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/592725/ltcube_512006401_512265601_4FGL_J2256.0-2740_daily_bin1052.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/592725/ft2_4FGL_J2256.0-2740_daily_bin1052.fits
.....................!
real 11.99
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592725/ft1_filtered_4FGL_J2256.0-2740_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/592725/ft2_4FGL_J2256.0-2740_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/592725/ltcube_512006401_512265601_4FGL_J2256.0-2740_daily_bin1052.fits outfile=/scratch/kocevski/592725/expmap_512006401_512265601_4FGL_J2256.0-2740_daily_bin1052.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/592725/ltcube_512006401_512265601_4FGL_J2256.0-2740_daily_bin1052.fits
.....................!
real 191.39
user 185.89
sys 5.01

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/592725/ft1_filtered_4FGL_J2256.0-2740_daily_bin1052.fits scfile=/scratch/kocevski/592725/ft2_4FGL_J2256.0-2740_daily_bin1052.fits outfile=/scratch/kocevski/592725/cmap_512006401_512265601_4FGL_J2256.0-2740_daily_bin1052.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592725/ft1_filtered_4FGL_J2256.0-2740_daily_bin1052.fits scfile=/scratch/kocevski/592725/ft2_4FGL_J2256.0-2740_daily_bin1052.fits outfile=/scratch/kocevski/592725/cmap_HighResolution_512006401_512265601_4FGL_J2256.0-2740_daily_bin1052.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/592725/ft1_filtered_4FGL_J2256.0-2740_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/592725/ft2_4FGL_J2256.0-2740_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592725/Model_4FGL_J2256.0-2740_daily_bin1052.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/592725/ft1_filtered_4FGL_J2256.0-2740_daily_bin1052.fits.....................!
real 48.94
user 47.60
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.051       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    38.081       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.929       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12391E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .62589       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4745       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.111       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2885       1.0000         .10000E-03   10000.    
    12 'norm      '    .35998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.2842       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12246       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0123       1.0000         .10000E-03   10000.    
    20 'Prefactor '    96.929       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78969       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98844       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=   6369.680     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2353 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.052        11.571       -.57899E-07   -.58873E-05
   2  Prefactor     .10000E-03    4.6215        .13991E-07** at limit **
   3  norm          38.079        21.046       -.56752E-06   -.28677E-04
   4  Prefactor     15.929        16.775       -.92595E-07   -.41856E-05
   5  Prefactor     .10000E-03    15.158        .10422E-06** at limit **
   6  norm          .62106        1.6775        .42440E-06    .18745E-03
   7  Prefactor     2.4716        105.97       -.58636E-05   -.24412E-04
   8  Prefactor     15.113        9.7762       -.78013E-07   -.14870E-04
   9  norm          .10000E-03    .93998       -.15193E-08** at limit **
  10  Prefactor     .10000E-03    4.1590       -.40144E-08** at limit **
  11  Prefactor     5.2907        7.6722       -.17313E-06   -.12586E-03
  12  norm          .35999        .54163        .46996E-07   -.33117E-03
  13  Prefactor     .10000E-03    19.145       -.36303E-07** at limit **
  14  Prefactor     .10000E-03    8.5514        .16204E-07** at limit **
  15  Prefactor     .10000E-03    5.2330        .12847E-08** at limit **
  16  norm          7.2848        4.5082        .26007E-06   -.11580E-02
  17  Prefactor     .10000E-03    41.043        .26664E-07** at limit **
  18  norm          .12249        1.5345        .25591E-06   -.27132E-03
  19  Prefactor     7.0083        26.391       -.44956E-05   -.37507E-04
  20  Prefactor     96.932        84.607        .16964E-05    .64007E-05
  21  Normalizat    .78979        .16179        .71078E-06   -.70608E-04
  22  Prefactor     .98834        .15369       -.33639E-06    .26592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0521
  Prefactor  = 0.0001
  norm       = 38.0785
  Prefactor  = 15.9288
  Prefactor  = 0.0001
  norm       = 0.621058
  Prefactor  = 2.4716
  Prefactor  = 15.1132
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.29073
  norm       = 0.359992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.28477
  Prefactor  = 0.0001
  norm       = 0.122492
  Prefactor  = 7.00832
  Prefactor  = 96.9322
  Normalizat = 0.789793
  Prefactor  = 0.988337
 **********
 **   18 **HESSE 
 **********

 FCN=   6369.680     FROM HESSE     STATUS=OK           352 CALLS     2705 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.052        11.578        .11539E-03   -1.5014    
   2  Prefactor     .10000E-03    4.6776        .16745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          38.079        21.030        .64949E-04   -1.4473    
   4  Prefactor     15.929        16.786        .10035E-03   -1.4910    
   5  Prefactor     .10000E-03    15.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .62106        1.4434        .13923E-02   -1.5550    
   7  Prefactor     2.4716        98.214        .25992E-03   -1.5394    
   8  Prefactor     15.113        9.8153        .10303E-03   -1.4930    
   9  norm          .10000E-03    .94206        .75469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1606        .15881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2907        7.5903        .17477E-03   -1.5248    
  12  norm          .35999        .50228        .53221E-03   -1.5588    
  13  Prefactor     .10000E-03    19.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3027        .17770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.2848        7.3256        .74307E-03   -1.5168    
  17  Prefactor     .10000E-03    41.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .12249        4.2895        .18582E-02   -1.5638    
  19  Prefactor     7.0083        25.829        .15149E-03   -1.5178    
  20  Prefactor     96.932        84.419        .40828E-04   -1.3736    
  21  Normalizat    .78979        .19377        .23872E-03   -1.0045    
  22  Prefactor     .98834        .18434        .21814E-03   -.93119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05936e-08
Minuit parameter uncertainties:
  1  11.5803
  2  3.48085e-06
  3  21.0342
  4  16.7914
  5  3.72378e-05
  6  1.4435
  7  31.2151
  8  9.81639
  9  8.77796e-07
  10  2.44972e-06
  11  7.59172
  12  0.502282
  13  3.98781e-06
  14  3.36816e-06
  15  3.67948e-06
  16  7.32653
  17  2.06012e-05
  18  1.44926
  19  25.8706
  20  84.5242
  21  0.193942
  22  0.184462
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.291e+00  7.592e+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:  9.883e-01  1.845e-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.898e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 3.62e-08 +/- 5.19e-08
Energy Flux (Fixed Index): 7.14e-06 +/- 1.02e-05

TS (Fixed Index): 1.00
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592725/likelihoodResults_512006401_512265601_4FGL_J2256.0-2740_daily_bin1052.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) = 6368.81659891
delta logL = 0.8634204994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6368.76725697
delta logL = 0.912762441564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59671       1.0000         .10000E-03   10000.    
     2 'Index     '    7.4698       1.0000          .0000       10.000    
     3 'Normalizat'    .74328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0269       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=   6368.767     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      298 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58969        7.7705        .91164E-02    .11163E-02
   2  Index         7.4881        8.7430        .23430        .56696E-04
   3  Normalizat    .74370        .45087E-01    .42865E-01    .26221E-04
   4  Prefactor     1.0264        .45894E-01    .41515E-01    .67524E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.589695
  Index      = 7.48813
  Normalizat = 0.743698
  Prefactor  = 1.02636
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.767     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      331 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58969        14.436        .41557E-03   -1.5554    
   2  Index         7.4881        7.7339        .15811E-02    .52086    
   3  Normalizat    .74370        .16225        .24518E-03   -1.0219    
   4  Prefactor     1.0264        .16026        .21463E-03   -.91856    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.39035e-10
Minuit parameter uncertainties:
  1  5.83637
  2  13.1151
  3  0.162358
  4  0.160333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592725': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6368.76724137
delta logL = 0.912778049063

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.897e-01  5.836e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  7.488e+00  1.312e+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.026e+00  1.603e-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.437e-01  1.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 7.49 +/- 13.12
Photon Flux (Free Index): 6.18e-08 +/- 5.16e-08
Energy Flux (Free Index): 7.27e-06 +/- 7.95e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/592725/cmap_HighResolution_512006401_512265601_4FGL_J2256.0-2740_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', photon_flux='3.62e-08', energy_flux2='7.27e-06', photon_flux_error='5.19e-08', dlogl='9.13e-01', energy_flux='7.14e-06', photon_flux2='6.18e-08', job_status='DONE', time_completed='2021-09-29 02:59:35.300197', photon_index_error2='13.12', photon_index2='7.49', ts='1.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='7.95e-06', EG='0.79', time_epoch_completed='1632909575.3', return_code='0', job_id='592725', GAL2='1.03', EG2='0.74', return_code2='102', energy_flux_error='1.02e-05', photon_flux_error2='5.16e-08', ts2='3.00', photon_index='3.02' WHERE bin_id='1052' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 592725: <4FGL_J2256.0-2740_daily_bin1052> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1052> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:47 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:45:48 2021
Terminated at Wed Sep 29 02:59:36 2021
Results reported at Wed Sep 29 02:59:36 2021

Your job looked like:

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

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

