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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin271
RA = 344.025, Dec = -27.6739
tmin = 309571201, tmax = 309830401
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='589498', job_status='RUN', time_executed='2021-09-29 02:35:45.973351', time_epoch_executed='1632908145.97' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589498/ft1_4FGL_J2256.0-2740_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589498/ft2_4FGL_J2256.0-2740_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589498/ft1_4FGL_J2256.0-2740_daily_bin271.fits outfile=/scratch/kocevski/589498/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin271.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=309571201.0 tmax=309830401.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.31
user 6.01
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589498/ft1_filtered_4FGL_J2256.0-2740_daily_bin271.fits" evtable="EVENTS" scfile=/scratch/kocevski/589498/ft2_4FGL_J2256.0-2740_daily_bin271.fits sctable="SC_DATA" outfile=/scratch/kocevski/589498/ltcube_309571201_309830401_4FGL_J2256.0-2740_daily_bin271.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/589498/ft2_4FGL_J2256.0-2740_daily_bin271.fits
.....................!
real 12.08
user 11.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589498/ft1_filtered_4FGL_J2256.0-2740_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/589498/ft2_4FGL_J2256.0-2740_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/589498/ltcube_309571201_309830401_4FGL_J2256.0-2740_daily_bin271.fits outfile=/scratch/kocevski/589498/expmap_309571201_309830401_4FGL_J2256.0-2740_daily_bin271.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/589498/ltcube_309571201_309830401_4FGL_J2256.0-2740_daily_bin271.fits
.....................!
real 190.75
user 185.47
sys 4.85

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/589498/ft1_filtered_4FGL_J2256.0-2740_daily_bin271.fits scfile=/scratch/kocevski/589498/ft2_4FGL_J2256.0-2740_daily_bin271.fits outfile=/scratch/kocevski/589498/cmap_309571201_309830401_4FGL_J2256.0-2740_daily_bin271.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.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589498/ft1_filtered_4FGL_J2256.0-2740_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/589498/ft2_4FGL_J2256.0-2740_daily_bin271.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589498/Model_4FGL_J2256.0-2740_daily_bin271.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/589498/ft1_filtered_4FGL_J2256.0-2740_daily_bin271.fits.....................!
real 57.20
user 55.81
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7806       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11853E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.1260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5120       1.0000         .10000E-03   10000.    
     6 'norm      '    .86819       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4293       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6798       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.921       1.0000         .10000E-03   10000.    
    12 'norm      '    .59095       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1745       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4180       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.299       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2176       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15096E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.642       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .68455       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1167       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=   7693.425     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2390 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7805        7.1747       -.63858E-07   -.29330E-04
   2  Prefactor     .10000E-03    12.012       -.70186E-07** at limit **
   3  norm          9.1264        9.0108       -.12281E-06   -.24359E-04
   4  Prefactor     20.636        18.070       -.11570E-06    .94841E-05
   5  Prefactor     5.5109        8.2751        .36363E-06    .12003E-04
   6  norm          .86687        1.3930        .17810E-07   -.56515E-04
   7  Prefactor     2.4308        48.308       -.24852E-06   -.25947E-04
   8  Prefactor     5.6787        6.1603        .18418E-05   -.14259E-02
   9  norm          .10000E-03    .70888       -.28227E-08** at limit **
  10  Prefactor     4.9349        7.7365       -.49464E-06   -.12395E-03
  11  Prefactor     12.920        10.493        .21529E-06    .38439E-04
  12  norm          .59095        .57946       -.18537E-07   -.27771E-03
  13  Prefactor     .10000E-03    11.200        .97464E-07** at limit **
  14  Prefactor     .10000E-03    4.9376        .30220E-07** at limit **
  15  Prefactor     4.1743        11.041       -.24836E-06   -.11919E-03
  16  norm          1.4173        4.1439        .57013E-06   -.32300E-03
  17  Prefactor     11.297        34.565       -.20388E-05   -.53194E-04
  18  norm          4.2180        2.7296        .59489E-07   -.16728E-03
  19  Prefactor     .10001E-03    13.599        .24944E-06** at limit **
  20  Prefactor     29.626        44.436       -.88329E-05   -.29849E-03
  21  Normalizat    .68469        .15064        .11141E-06   -.34672E-04
  22  Prefactor     1.1165        .14434       -.12890E-06    .12799E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.78049
  Prefactor  = 0.0001
  norm       = 9.12644
  Prefactor  = 20.6362
  Prefactor  = 5.51089
  norm       = 0.866871
  Prefactor  = 2.4308
  Prefactor  = 5.6787
  norm       = 0.0001
  Prefactor  = 4.93486
  Prefactor  = 12.9197
  norm       = 0.590953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.17434
  norm       = 1.41728
  Prefactor  = 11.297
  norm       = 4.21799
  Prefactor  = 0.000100005
  Prefactor  = 29.6264
  Normalizat = 0.68469
  Prefactor  = 1.11654
 **********
 **   18 **HESSE 
 **********

 FCN=   7693.425     FROM HESSE     STATUS=OK           360 CALLS     2750 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7805        7.1737        .16705E-03   -1.5227    
   2  Prefactor     .10000E-03    12.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.1264        9.0093        .13267E-03   -1.5104    
   4  Prefactor     20.636        18.077        .88166E-04   -1.4799    
   5  Prefactor     5.5109        8.2471        .17113E-03   -1.5238    
   6  norm          .86687        1.1192        .11407E-02   -1.5522    
   7  Prefactor     2.4308        44.867        .26256E-03   -1.5396    
   8  Prefactor     5.6787        7.7874        .84274E-03   -1.5231    
   9  norm          .10000E-03    .71007        .72077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9349        7.7500        .18106E-03   -1.5264    
  11  Prefactor     12.920        10.414        .11143E-03   -1.4989    
  12  norm          .59095        .53857        .49392E-03   -1.5554    
  13  Prefactor     .10000E-03    11.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1743        10.743        .19726E-03   -1.5299    
  16  norm          1.4173        4.1698        .29845E-03   -1.5470    
  17  Prefactor     11.297        34.818        .11918E-03   -1.5036    
  18  norm          4.2180        2.6720        .10948E-03   -1.5297    
  19  Prefactor     .10001E-03    93.359        .60996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.626        47.260        .73589E-04   -1.4619    
  21  Normalizat    .68469        .17456        .25931E-03   -1.0450    
  22  Prefactor     1.1165        .16733        .21135E-03   -.88940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99436e-09
Minuit parameter uncertainties:
  1  7.17473
  2  3.17706e-05
  3  9.01068
  4  18.0816
  5  8.24878
  6  1.11925
  7  20.9044
  8  7.78874
  9  5.61252e-07
  10  7.75155
  11  10.4159
  12  0.538574
  13  6.52832e-06
  14  5.38283e-07
  15  10.7482
  16  4.17069
  17  34.8811
  18  2.67207
  19  0.0014273
  20  47.3198
  21  0.174697
  22  0.167409
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.292e+01  1.042e+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:  1.117e+00  1.674e-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:  6.847e-01  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.91
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 8.84e-08 +/- 7.12e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.41e-05

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) = 7693.16279386
delta logL = 0.261757473626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7693.16207043
delta logL = 0.262480908874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.363       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5745       1.0000          .0000       10.000    
     3 'Normalizat'    .66800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1299       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7693.162     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      275 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.363        7.1644        .59423E-03   -.23111E-03
   2  Index         3.5745        .89113        .11055E-01    .75115E-05
   3  Normalizat    .66801        .16531        .26222E-03    .11966E-05
   4  Prefactor     1.1299        .16562        .21032E-03    .54055E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3629
  Index      = 3.57453
  Normalizat = 0.668006
  Prefactor  = 1.12987
 **********
 **   18 **HESSE 
 **********

 FCN=   7693.162     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.363        6.8571        .23769E-04   -1.5034    
   2  Index         3.5745        .85301        .44218E-03   -.28911    
   3  Normalizat    .66801        .16557        .52443E-04   -1.0517    
   4  Prefactor     1.1299        .16581        .84126E-05   -.88517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40473e-11
Minuit parameter uncertainties:
  1  6.85754
  2  0.857582
  3  0.165693
  4  0.165885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589498': 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) = 7693.16207043
delta logL = 0.262480910204

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.136e+01  6.858e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.575e+00  8.576e-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.130e+00  1.659e-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:  6.680e-01  1.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.77
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.57 +/- 0.86
Photon Flux (Free Index): 9.88e-08 +/- 4.86e-08
Energy Flux (Free Index): 1.61e-05 +/- 8.26e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/589498/cmap_HighResolution_309571201_309830401_4FGL_J2256.0-2740_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.84e-08', energy_flux2='1.61e-05', photon_flux_error='7.12e-08', dlogl='2.62e-01', energy_flux='1.74e-05', photon_flux2='9.88e-08', job_status='DONE', time_completed='2021-09-29 02:46:36.227348', photon_index_error2='0.86', photon_index2='3.57', ts='4.91', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='8.26e-06', EG='0.68', time_epoch_completed='1632908796.23', return_code='0', job_id='589498', GAL2='1.13', EG2='0.67', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.86e-08', ts2='5.77', photon_index='3.02' WHERE bin_id='271' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:46:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 589498: <4FGL_J2256.0-2740_daily_bin271> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin271 344.025 -27.6739 309571201 309830401 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 :                                   644.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            660 sec.

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

