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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1144
RA = 344.025, Dec = -27.6739
tmin = 535852801, tmax = 536112001
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='592848', job_status='RUN', time_executed='2021-09-29 02:46:52.677757', time_epoch_executed='1632908812.68' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592848/ft1_4FGL_J2256.0-2740_daily_bin1144.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592848/ft2_4FGL_J2256.0-2740_daily_bin1144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592848/ft1_4FGL_J2256.0-2740_daily_bin1144.fits outfile=/scratch/kocevski/592848/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1144.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=535852801.0 tmax=536112001.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.58
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1144.fits" evtable="EVENTS" scfile=/scratch/kocevski/592848/ft2_4FGL_J2256.0-2740_daily_bin1144.fits sctable="SC_DATA" outfile=/scratch/kocevski/592848/ltcube_535852801_536112001_4FGL_J2256.0-2740_daily_bin1144.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/592848/ft2_4FGL_J2256.0-2740_daily_bin1144.fits
.....................!
real 11.74
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/592848/ft2_4FGL_J2256.0-2740_daily_bin1144.fits sctable="SC_DATA" expcube=/scratch/kocevski/592848/ltcube_535852801_536112001_4FGL_J2256.0-2740_daily_bin1144.fits outfile=/scratch/kocevski/592848/expmap_535852801_536112001_4FGL_J2256.0-2740_daily_bin1144.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/592848/ltcube_535852801_536112001_4FGL_J2256.0-2740_daily_bin1144.fits
.....................!
real 192.24
user 186.97
sys 4.94

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/592848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1144.fits scfile=/scratch/kocevski/592848/ft2_4FGL_J2256.0-2740_daily_bin1144.fits outfile=/scratch/kocevski/592848/cmap_535852801_536112001_4FGL_J2256.0-2740_daily_bin1144.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1144.fits scfile=/scratch/kocevski/592848/ft2_4FGL_J2256.0-2740_daily_bin1144.fits outfile=/scratch/kocevski/592848/cmap_HighResolution_535852801_536112001_4FGL_J2256.0-2740_daily_bin1144.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/592848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1144.fits evtable="EVENTS" scfile=/scratch/kocevski/592848/ft2_4FGL_J2256.0-2740_daily_bin1144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592848/Model_4FGL_J2256.0-2740_daily_bin1144.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/592848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1144.fits.....................!
real 43.64
user 42.35
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9546       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7461       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4336       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7172       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.236       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8002       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.295       1.0000         .10000E-03   10000.    
    18 'norm      '    .12209E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5751       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2767       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0538       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=   5043.217     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2395 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.152        24.757        .14284E-06   -.42689E-05
   2  Prefactor     .10000E-03    4.4737       -.31555E-07** at limit **
   3  norm          .10000E-03    19.155        .11036E-05** at limit **
   4  Prefactor     .10000E-03    8.3588        .26442E-06** at limit **
   5  Prefactor     3.9533        13.662        .19816E-05   -.62470E-05
   6  norm          .10000E-03    1.8994        .16806E-05** at limit **
   7  Prefactor     16.292        55.365       -.97157E-05   -.66452E-04
   8  Prefactor     .10000E-03    5.3416       -.42997E-07** at limit **
   9  norm          3.7457        3.9979       -.10018E-07   -.14092E-03
  10  Prefactor     .10000E-03    15.694       -.11707E-05** at limit **
  11  Prefactor     1.4285        74.623        .78912E-05    .32336E-04
  12  norm          3.7173        1.7083       -.23740E-06   -.80265E-03
  13  Prefactor     14.234        74.609        .11509E-05   -.48743E-05
  14  Prefactor     .10000E-03    60.934        .50745E-05** at limit **
  15  Prefactor     .10000E-03    18.739        .81802E-06** at limit **
  16  norm          1.7978        21.838        .13647E-04   -.18115E-03
  17  Prefactor     45.267        75.388        .24928E-05   -.44770E-04
  18  norm          .10000E-03    2.6079        .11117E-05** at limit **
  19  Prefactor     8.5834        30.483       -.15666E-05   -.41232E-04
  20  Prefactor     .10000E-03    50.625       -.66523E-05** at limit **
  21  Normalizat    1.2766        .24216       -.15726E-05   -.28482E-03
  22  Prefactor     1.0539        .21585       -.31970E-06   -.33685E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.1517
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95334
  norm       = 0.000100001
  Prefactor  = 16.2923
  Prefactor  = 0.0001
  norm       = 3.74571
  Prefactor  = 0.0001
  Prefactor  = 1.42846
  norm       = 3.7173
  Prefactor  = 14.2341
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.7978
  Prefactor  = 45.2668
  norm       = 0.000100001
  Prefactor  = 8.5834
  Prefactor  = 0.000100001
  Normalizat = 1.27662
  Prefactor  = 1.05387
 **********
 **   18 **HESSE 
 **********

 FCN=   5043.217     FROM HESSE     STATUS=OK           338 CALLS     2733 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.152        24.772        .76888E-04   -1.4665    
   2  Prefactor     .10000E-03    4.5032        .14668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9533        13.643        .20284E-03   -1.5310    
   6  norm          .10000E-03    1.9974        .19305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.292        55.388        .99304E-04   -1.4900    
   8  Prefactor     .10000E-03    5.3539        .16028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7457        3.9623        .13775E-03   -1.5321    
  10  Prefactor     .10000E-03    15.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4285        63.748        .36064E-03   -1.5469    
  12  norm          3.7173        1.5813        .38505E-04   -1.5322    
  13  Prefactor     14.234        74.690        .10616E-03   -1.4953    
  14  Prefactor     .10000E-03    62.188        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7978        21.785        .15579E-02   -1.5440    
  17  Prefactor     45.267        75.984        .59572E-04   -1.4361    
  18  norm          .10000E-03    7.5853        .21414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.5834        29.980        .13689E-03   -1.5122    
  20  Prefactor     .10000E-03    50.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2766        .29779        .26187E-03   -.84267    
  22  Prefactor     1.0539        .26624        .27155E-03   -.90955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3802e-09
Minuit parameter uncertainties:
  1  24.7813
  2  5.76677e-07
  3  2.94745e-05
  4  8.12896e-06
  5  13.6537
  6  0.000102524
  7  55.5637
  8  5.94176e-06
  9  3.96256
  10  9.05166e-06
  11  19.1062
  12  1.58134
  13  65.34
  14  0.00102512
  15  4.57903e-05
  16  12.5217
  17  76.1468
  18  0.000128978
  19  30.0324
  20  0.000395933
  21  0.298193
  22  0.266576
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.428e+00  1.911e+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.054e+00  2.666e-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.277e+00  2.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592848/likelihoodResults_535852801_536112001_4FGL_J2256.0-2740_daily_bin1144.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) = 5043.21718545
delta logL = 3.27263478539e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5043.21718513
delta logL = 6.55611984257e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4285       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0232       1.0000          .0000       10.000    
     3 'Normalizat'    1.2766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0539       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=   5042.692     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      291 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11691        5.0473        .55735E-02   -.50524E-03
   2  Index        10.0000        9.5082        .50000    ** at limit **
   3  Normalizat    1.2004        .92801E-01    .60691E-01    .83560E-04
   4  Prefactor     1.1061        .85723E-01    .60126E-01    .28386E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.116906
  Index      = 10
  Normalizat = 1.2004
  Prefactor  = 1.10613
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.692     FROM HESSE     STATUS=OK            35 CALLS      326 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11691        .16725        .25491E-03   -1.5640    
   2  Index        10.0000        7.8042        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2004        .28382        .26844E-03   -.86590    
   4  Prefactor     1.1061        .26655        .26589E-03   -.89271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62282e-10
Minuit parameter uncertainties:
  1  0.167249
  2  0.000477938
  3  0.284181
  4  0.266872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592848': 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) = 5042.69165882
delta logL = 0.525526961276

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.169e-01  1.672e-01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.000e+01  4.779e-04  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.106e+00  2.669e-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.200e+00  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 7.95e-08 +/- 1.10e-07
Energy Flux (Free Index): 8.88e-06 +/- 1.24e-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/592848/cmap_HighResolution_535852801_536112001_4FGL_J2256.0-2740_daily_bin1144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', energy_flux2='8.88e-06', dlogl='5.26e-01', photon_flux2='7.95e-08', job_status='DONE', time_completed='2021-09-29 02:56:24.018877', photon_index_error2='0.00', photon_index2='10.00', ts='0.01', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='1.24e-05', EG='1.28', time_epoch_completed='1632909384.02', return_code='0', job_id='592848', GAL2='1.11', EG2='1.20', return_code2='0', photon_flux_error2='1.10e-07', ts2='1.14', photon_index='3.02' WHERE bin_id='1144' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:56:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 592848: <4FGL_J2256.0-2740_daily_bin1144> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1144> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:57 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:59 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:59 2021
Terminated at Wed Sep 29 02:56:24 2021
Results reported at Wed Sep 29 02:56:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1144 344.025 -27.6739 535852801 536112001 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 :                                   566.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            627 sec.

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

