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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin508
RA = 344.025, Dec = -27.6739
tmin = 371001601, tmax = 371260801
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='590883', job_status='RUN', time_executed='2021-09-29 02:44:26.680703', time_epoch_executed='1632908666.68' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590883

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590883/ft1_4FGL_J2256.0-2740_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590883/ft2_4FGL_J2256.0-2740_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590883/ft1_4FGL_J2256.0-2740_daily_bin508.fits outfile=/scratch/kocevski/590883/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin508.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.40
user 6.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590883/ft2_4FGL_J2256.0-2740_daily_bin508.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/590883/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/590883/ft1_filtered_4FGL_J2256.0-2740_daily_bin508.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/590883/ft1_filtered_4FGL_J2256.0-2740_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/590883/ft2_4FGL_J2256.0-2740_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/590883/ltcube_371001601_371260801_4FGL_J2256.0-2740_daily_bin508.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/590883/ft2_4FGL_J2256.0-2740_daily_bin508.fits
.....................!
real 11.70
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590883/ft1_filtered_4FGL_J2256.0-2740_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/590883/ft2_4FGL_J2256.0-2740_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/590883/ltcube_371001601_371260801_4FGL_J2256.0-2740_daily_bin508.fits outfile=/scratch/kocevski/590883/expmap_371001601_371260801_4FGL_J2256.0-2740_daily_bin508.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/590883/ltcube_371001601_371260801_4FGL_J2256.0-2740_daily_bin508.fits
.....................!
real 189.89
user 185.43
sys 4.11

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/590883/ft1_filtered_4FGL_J2256.0-2740_daily_bin508.fits scfile=/scratch/kocevski/590883/ft2_4FGL_J2256.0-2740_daily_bin508.fits outfile=/scratch/kocevski/590883/cmap_371001601_371260801_4FGL_J2256.0-2740_daily_bin508.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590883/ft1_filtered_4FGL_J2256.0-2740_daily_bin508.fits scfile=/scratch/kocevski/590883/ft2_4FGL_J2256.0-2740_daily_bin508.fits outfile=/scratch/kocevski/590883/cmap_HighResolution_371001601_371260801_4FGL_J2256.0-2740_daily_bin508.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/590883/ft1_filtered_4FGL_J2256.0-2740_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/590883/ft2_4FGL_J2256.0-2740_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590883/Model_4FGL_J2256.0-2740_daily_bin508.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/590883/ft1_filtered_4FGL_J2256.0-2740_daily_bin508.fits.....................!
real 37.39
user 36.03
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.306       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3233       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.405       1.0000         .10000E-03   10000.    
     9 'norm      '    8.2856       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.070       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5739       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.250       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.891       1.0000         .10000E-03   10000.    
    16 'norm      '    14.236       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.712       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0001       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0571       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84866       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=   4046.772     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2344 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.277        .42561E-05** at limit **
   2  Prefactor     .10000E-03    3.7867        .10601E-06** at limit **
   3  norm          .10000E-03    7.6819        .10830E-07** at limit **
   4  Prefactor     10.282        26.528       -.17173E-04   -.14794E-04
   5  Prefactor     7.3233        13.804       -.38068E-06   -.62893E-04
   6  norm          .10000E-03    .88804        .38486E-08** at limit **
   7  Prefactor     .10000E-03    20.205       -.12134E-05** at limit **
   8  Prefactor     17.409        15.265        .63687E-06   -.10745E-04
   9  norm          8.2857        6.2251       -.25641E-06   -.17538E-03
  10  Prefactor     .10000E-03    25.247        .73927E-05** at limit **
  11  Prefactor     10.075        10.410       -.57041E-06   -.23303E-03
  12  norm          1.5738        1.0407        .20059E-07   -.72920E-03
  13  Prefactor     .10000E-03    64.493        .42099E-07** at limit **
  14  Prefactor     15.249        17.684       -.24517E-06   -.84492E-05
  15  Prefactor     12.892        14.823       -.28815E-06   -.92063E-04
  16  norm          14.235        14.502       -.19004E-05   -.36300E-04
  17  Prefactor     53.728        78.466        .18625E-04    .13702E-05
  18  norm          6.0010        5.1227       -.17205E-06   -.96069E-04
  19  Prefactor     .10000E-03    29.960       -.97932E-05** at limit **
  20  Prefactor     .10000E-03    63.912        .16704E-05** at limit **
  21  Normalizat    1.0567        .24419        .69331E-07   -.10023E-04
  22  Prefactor     .84900        .21805        .44623E-06   -.35863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2818
  Prefactor  = 7.32327
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4086
  norm       = 8.28572
  Prefactor  = 0.0001
  Prefactor  = 10.0751
  norm       = 1.5738
  Prefactor  = 0.0001
  Prefactor  = 15.2488
  Prefactor  = 12.8923
  norm       = 14.2354
  Prefactor  = 53.7283
  norm       = 6.00098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05675
  Prefactor  = 0.849001
 **********
 **   18 **HESSE 
 **********

 FCN=   4046.772     FROM HESSE     STATUS=OK           344 CALLS     2688 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7986        .12089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.6839        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.282        26.679        .12481E-03   -1.5067    
   5  Prefactor     7.3233        13.804        .14821E-03   -1.5167    
   6  norm          .10000E-03    .89069        .58527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.409        15.299        .96002E-04   -1.4873    
   9  norm          8.2857        6.2174        .12687E-03   -1.5132    
  10  Prefactor     .10000E-03    25.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.075        10.409        .12627E-03   -1.5073    
  12  norm          1.5738        1.0377        .44080E-04   -1.5457    
  13  Prefactor     .10000E-03    64.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.249        17.689        .10256E-03   -1.4927    
  15  Prefactor     12.892        14.852        .11157E-03   -1.4990    
  16  norm          14.235        14.506        .10616E-03   -1.4953    
  17  Prefactor     53.728        78.865        .54728E-04   -1.4241    
  18  norm          6.0010        5.1328        .12615E-03   -1.5218    
  19  Prefactor     .10000E-03    29.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    63.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0567        .28749        .25136E-03   -.91153    
  22  Prefactor     .84900        .25520        .26052E-03   -.97947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69881e-11
Minuit parameter uncertainties:
  1  8.31163e-05
  2  1.99834e-05
  3  7.25543e-07
  4  26.7104
  5  13.8099
  6  5.34285e-07
  7  6.33582e-06
  8  15.3023
  9  6.21791
  10  5.42557e-05
  11  10.4111
  12  1.03775
  13  6.6489e-05
  14  17.6953
  15  14.8565
  16  14.5093
  17  79.0187
  18  5.13314
  19  5.17462e-08
  20  3.60665e-05
  21  0.287912
  22  0.255554
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.008e+01  1.041e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.490e-01  2.556e-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.057e+00  2.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.59
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 6.89e-08 +/- 7.11e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.41e-05

TS (Fixed Index): 2.59
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 2.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590883/likelihoodResults_371001601_371260801_4FGL_J2256.0-2740_daily_bin508.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) = 4044.51972793
delta logL = 2.25219340766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4044.2392784
delta logL = 2.53264293813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5047       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5770       1.0000          .0000       10.000    
     3 'Normalizat'    1.1022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82099       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=   4044.239     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5020        3.6206        .53990E-02    .13642E-02
   2  Index         1.5766        .31665        .12013       -.38810E-03
   3  Normalizat    1.1023        .22257        .55866E-01    .83032E-04
   4  Prefactor     .82077        .20971        .43990E-01   -.14835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50204
  Index      = 1.57661
  Normalizat = 1.10233
  Prefactor  = 0.820768
 **********
 **   18 **HESSE 
 **********

 FCN=   4044.239     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5020        5.7902        .10827E-03   -1.5334    
   2  Index         1.5766        .55141        .48799E-02   -.75416    
   3  Normalizat    1.1023        .26413        .24704E-03   -.89677    
   4  Prefactor     .82077        .24872        .26438E-03   -.98967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2647e-09
Minuit parameter uncertainties:
  1  5.7911
  2  0.553534
  3  0.264443
  4  0.249065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590883': 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) = 4044.23927739
delta logL = 2.53264394922

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.502e+00  5.791e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.577e+00  5.535e-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:  8.208e-01  2.491e-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.102e+00  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.70
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 1.58 +/- 0.55
Photon Flux (Free Index): 2.35e-08 +/- 3.14e-08
Energy Flux (Free Index): 5.74e-05 +/- 7.40e-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/590883/cmap_HighResolution_371001601_371260801_4FGL_J2256.0-2740_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='6.89e-08', energy_flux2='5.74e-05', photon_flux_error='7.11e-08', dlogl='2.53e+00', energy_flux='1.36e-05', photon_flux2='2.35e-08', job_status='DONE', time_completed='2021-09-29 02:53:09.623057', photon_index_error2='0.55', photon_index2='1.58', ts='2.59', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='2.24e-07', energy_flux_error2='7.40e-05', EG='1.06', time_epoch_completed='1632909189.62', return_code='0', job_id='590883', GAL2='0.82', EG2='1.10', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='3.14e-08', ts2='7.70', photon_index='3.02' WHERE bin_id='508' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:53:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 590883: <4FGL_J2256.0-2740_daily_bin508> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin508> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:32 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:40:33 2021
Terminated at Wed Sep 29 02:53:10 2021
Results reported at Wed Sep 29 02:53:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin508 344.025 -27.6739 371001601 371260801 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 :                                   520.13 sec.
    Max Memory :                                 1213 MB
    Average Memory :                             298.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

