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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin294
RA = 344.025, Dec = -27.6739
tmin = 315532801, tmax = 315792001
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='589531', job_status='RUN', time_executed='2021-09-29 02:39:03.786274', time_epoch_executed='1632908343.79' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589531

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589531/ft1_4FGL_J2256.0-2740_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589531/ft2_4FGL_J2256.0-2740_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589531/ft1_4FGL_J2256.0-2740_daily_bin294.fits outfile=/scratch/kocevski/589531/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin294.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=315532801.0 tmax=315792001.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.78
user 3.50
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589531/ft1_filtered_4FGL_J2256.0-2740_daily_bin294.fits" evtable="EVENTS" scfile=/scratch/kocevski/589531/ft2_4FGL_J2256.0-2740_daily_bin294.fits sctable="SC_DATA" outfile=/scratch/kocevski/589531/ltcube_315532801_315792001_4FGL_J2256.0-2740_daily_bin294.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/589531/ft2_4FGL_J2256.0-2740_daily_bin294.fits
.....................!
real 11.95
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589531/ft1_filtered_4FGL_J2256.0-2740_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/589531/ft2_4FGL_J2256.0-2740_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/589531/ltcube_315532801_315792001_4FGL_J2256.0-2740_daily_bin294.fits outfile=/scratch/kocevski/589531/expmap_315532801_315792001_4FGL_J2256.0-2740_daily_bin294.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/589531/ltcube_315532801_315792001_4FGL_J2256.0-2740_daily_bin294.fits
.....................!
real 191.31
user 185.72
sys 5.25

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/589531/ft1_filtered_4FGL_J2256.0-2740_daily_bin294.fits scfile=/scratch/kocevski/589531/ft2_4FGL_J2256.0-2740_daily_bin294.fits outfile=/scratch/kocevski/589531/cmap_315532801_315792001_4FGL_J2256.0-2740_daily_bin294.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589531/ft1_filtered_4FGL_J2256.0-2740_daily_bin294.fits scfile=/scratch/kocevski/589531/ft2_4FGL_J2256.0-2740_daily_bin294.fits outfile=/scratch/kocevski/589531/cmap_HighResolution_315532801_315792001_4FGL_J2256.0-2740_daily_bin294.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    38.586       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9416       1.0000         .10000E-03   10000.    
     7 'Prefactor '    64.716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5287       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52341E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0013       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.8802       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32248E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2875       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0477       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98885       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=   6183.966     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2443 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3417       -.49951E-07** at limit **
   2  Prefactor     .10000E-03    3.2031       -.16397E-07** at limit **
   3  norm          38.588        24.549       -.17626E-06   -.18268E-04
   4  Prefactor     .10000E-03    5.4316        .46847E-07** at limit **
   5  Prefactor     .10000E-03    6.4106        .97333E-06** at limit **
   6  norm          1.9413        2.0434       -.16552E-06   -.69872E-04
   7  Prefactor     64.750        50.173        .16736E-05    .55443E-04
   8  Prefactor     .10000E-03    4.2816       -.14479E-07** at limit **
   9  norm          .10000E-03    2.3501        .45117E-06** at limit **
  10  Prefactor     1.5912        20.855       -.49792E-05   -.14137E-03
  11  Prefactor     .10019E-03    8.8603        .36080E-05** at limit **
  12  norm          2.6437        .82324       -.28111E-06   -.26043E-03
  13  Prefactor     .10000E-03    52.916        .10095E-05** at limit **
  14  Prefactor     7.0020        9.7550        .18624E-07   -.17484E-04
  15  Prefactor     .10000E-03    6.2368       -.59285E-06** at limit **
  16  norm          4.8771        10.006        .67686E-06   -.71927E-04
  17  Prefactor     .10000E-03    122.77        .16759E-05** at limit **
  18  norm          1.2874        2.4034        .20175E-06   -.30251E-03
  19  Prefactor     .10000E-03    15.560       -.63999E-07** at limit **
  20  Prefactor     .10000E-03    37.172       -.20170E-06** at limit **
  21  Normalizat    1.0478        .18671       -.17426E-05   -.28604E-04
  22  Prefactor     .98876        .17901        .92292E-06   -.21049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.5878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.94131
  Prefactor  = 64.7503
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.59121
  Prefactor  = 0.000100191
  norm       = 2.6437
  Prefactor  = 0.0001
  Prefactor  = 7.002
  Prefactor  = 0.0001
  norm       = 4.87715
  Prefactor  = 0.0001
  norm       = 1.28738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04784
  Prefactor  = 0.988764
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.966     FROM HESSE     STATUS=OK           348 CALLS     2791 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2428        .13742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          38.588        24.536        .64524E-04   -1.4465    
   4  Prefactor     .10000E-03    5.4354        .17900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9413        2.0384        .10506E-03   -1.5429    
   7  Prefactor     64.750        50.508        .49886E-04   -1.4097    
   8  Prefactor     .10000E-03    4.2997        .15889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.7530        .23033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5912        28.058        .34527E-03   -1.5456    
  11  Prefactor     .10019E-03    16.265        .52509E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6437        .88048        .34827E-04   -1.5383    
  13  Prefactor     .10000E-03    53.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0020        9.7513        .15162E-03   -1.5179    
  15  Prefactor     .10000E-03    6.2641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.8771        9.9807        .18208E-03   -1.5266    
  17  Prefactor     .10000E-03    126.86        .42718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2874        2.3657        .16134E-03   -1.5481    
  19  Prefactor     .10000E-03    15.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0478        .22078        .24661E-03   -.91445    
  22  Prefactor     .98876        .21169        .24715E-03   -.93105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38154e-10
Minuit parameter uncertainties:
  1  1.36933e-07
  2  6.90687e-06
  3  24.5421
  4  7.49933e-06
  5  2.79619e-05
  6  2.03845
  7  50.5413
  8  8.80513e-06
  9  2.62299e-05
  10  13.3704
  11  0.00352311
  12  0.880481
  13  0.00018691
  14  9.75347
  15  2.06732e-05
  16  9.98413
  17  0.000243296
  18  2.36585
  19  1.59825e-05
  20  1.86015e-06
  21  0.220978
  22  0.211868
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.002e-04  3.523e-03  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.888e-01  2.119e-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.048e+00  2.210e-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: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589531/likelihoodResults_315532801_315792001_4FGL_J2256.0-2740_daily_bin294.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): 102
logL (Free Index) = 6183.96559554
delta logL = -3.70493462469e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6183.38229014
delta logL = 0.583268351544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6010       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6990       1.0000          .0000       10.000    
     3 'Normalizat'    1.0483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98380       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=   6183.382     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      254 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6010        2.2339        .83761E-02    .56787E-03
   2  Index         1.6990        .42330        .16450       -.10242E-03
   3  Normalizat    1.0483        .18026        .40673E-01    .94178E-05
   4  Prefactor     .98380        .17682        .46064E-01    .98613E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60103
  Index      = 1.69899
  Normalizat = 1.04828
  Prefactor  = 0.983796
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.382     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6010        3.1754        .13112E-03   -1.5455    
   2  Index         1.6990        .72398        .84032E-02   -.72109    
   3  Normalizat    1.0483        .21309        .24645E-03   -.91430    
   4  Prefactor     .98380        .20891        .24745E-03   -.93272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2651e-09
Minuit parameter uncertainties:
  1  3.17574
  2  0.728537
  3  0.213263
  4  0.209082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589531': 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) = 6183.38229013
delta logL = 0.583268355821

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.601e+00  3.176e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.699e+00  7.285e-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.838e-01  2.091e-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.048e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 1.70 +/- 0.73
Photon Flux (Free Index): 9.94e-09 +/- 1.72e-08
Energy Flux (Free Index): 1.63e-05 +/- 2.97e-05

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/589531/cmap_HighResolution_315532801_315792001_4FGL_J2256.0-2740_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.54e-03', comment='SUCCESS', energy_flux2='1.63e-05', dlogl='5.83e-01', photon_flux2='9.94e-09', job_status='DONE', time_completed='2021-09-29 02:49:34.174814', photon_index_error2='0.73', photon_index2='1.70', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='2.97e-05', EG='1.05', time_epoch_completed='1632908974.17', return_code='0', job_id='589531', GAL2='0.98', EG2='1.05', return_code2='0', photon_flux_error2='1.72e-08', ts2='1.17', photon_index='3.02' WHERE bin_id='294' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 589531: <4FGL_J2256.0-2740_daily_bin294> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin294> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:38 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35:39 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:35:39 2021
Terminated at Wed Sep 29 02:49:34 2021
Results reported at Wed Sep 29 02:49:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin294 344.025 -27.6739 315532801 315792001 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 :                                   627.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            836 sec.

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

