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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin550
RA = 344.025, Dec = -27.6739
tmin = 381888001, tmax = 382147201
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='590955', job_status='RUN', time_executed='2021-09-29 02:40:54.719858', time_epoch_executed='1632908454.72' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590955/ft1_4FGL_J2256.0-2740_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590955/ft2_4FGL_J2256.0-2740_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590955/ft1_4FGL_J2256.0-2740_daily_bin550.fits outfile=/scratch/kocevski/590955/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin550.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=381888001.0 tmax=382147201.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 4.79
user 4.55
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590955/ft1_filtered_4FGL_J2256.0-2740_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/590955/ft2_4FGL_J2256.0-2740_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/590955/ltcube_381888001_382147201_4FGL_J2256.0-2740_daily_bin550.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/590955/ft2_4FGL_J2256.0-2740_daily_bin550.fits
.....................!
real 11.79
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590955/ft1_filtered_4FGL_J2256.0-2740_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/590955/ft2_4FGL_J2256.0-2740_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/590955/ltcube_381888001_382147201_4FGL_J2256.0-2740_daily_bin550.fits outfile=/scratch/kocevski/590955/expmap_381888001_382147201_4FGL_J2256.0-2740_daily_bin550.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/590955/ltcube_381888001_382147201_4FGL_J2256.0-2740_daily_bin550.fits
.....................!
real 189.34
user 184.88
sys 4.09

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/590955/ft1_filtered_4FGL_J2256.0-2740_daily_bin550.fits scfile=/scratch/kocevski/590955/ft2_4FGL_J2256.0-2740_daily_bin550.fits outfile=/scratch/kocevski/590955/cmap_381888001_382147201_4FGL_J2256.0-2740_daily_bin550.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590955/ft1_filtered_4FGL_J2256.0-2740_daily_bin550.fits scfile=/scratch/kocevski/590955/ft2_4FGL_J2256.0-2740_daily_bin550.fits outfile=/scratch/kocevski/590955/cmap_HighResolution_381888001_382147201_4FGL_J2256.0-2740_daily_bin550.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/590955/ft1_filtered_4FGL_J2256.0-2740_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/590955/ft2_4FGL_J2256.0-2740_daily_bin550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590955/Model_4FGL_J2256.0-2740_daily_bin550.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/590955/ft1_filtered_4FGL_J2256.0-2740_daily_bin550.fits.....................!
real 42.96
user 41.61
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.350       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42242E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11122E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8778       1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.726       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.493       1.0000         .10000E-03   10000.    
     9 'norm      '    8.1319       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.514       1.0000         .10000E-03   10000.    
    12 'norm      '    .35015       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.271       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18994E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    13.393       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.542       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96231       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0277       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=   5069.897     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2426 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.350        23.595       -.40733E-05   -.12029E-04
   2  Prefactor     .10001E-03    8.0035        .35528E-06** at limit **
   3  norm          .10000E-03    12.544       -.72246E-07** at limit **
   4  Prefactor     15.644        15.394       -.83855E-07   -.95789E-05
   5  Prefactor     .10000E-03    9.2603       -.75440E-06** at limit **
   6  norm          2.8765        3.8367       -.48071E-05   -.45583E-03
   7  Prefactor     59.766        87.980        .40505E-04    .21973E-04
   8  Prefactor     17.492        12.290        .58710E-07   -.29102E-04
   9  norm          8.1321        4.8327       -.16432E-06   -.22445E-05
  10  Prefactor     22.744        21.964        .29329E-05   -.19668E-04
  11  Prefactor     13.522        15.360       -.47877E-05   -.86516E-04
  12  norm          .35014        .59246        .13872E-06   -.47452E-03
  13  Prefactor     17.249        47.952       -.27056E-04   -.33779E-05
  14  Prefactor     .10000E-03    14.962       -.13638E-06** at limit **
  15  Prefactor     .10000E-03    10.371        .36476E-07** at limit **
  16  norm          13.392        7.9689        .10567E-06   -.98059E-05
  17  Prefactor     .10000E-03    10.734       -.36842E-07** at limit **
  18  norm          .10000E-03    2.1081        .11465E-06** at limit **
  19  Prefactor     18.540        28.454       -.42704E-05   -.11754E-04
  20  Prefactor     .10000E-03    25.107        .20933E-06** at limit **
  21  Normalizat    .96233        .21416       -.14866E-05    .39672E-04
  22  Prefactor     1.0278        .19796        .11309E-05   -.62279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3505
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 15.6436
  Prefactor  = 0.000100001
  norm       = 2.87651
  Prefactor  = 59.7661
  Prefactor  = 17.492
  norm       = 8.13206
  Prefactor  = 22.7443
  Prefactor  = 13.5223
  norm       = 0.35014
  Prefactor  = 17.2494
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 13.392
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5396
  Prefactor  = 0.0001
  Normalizat = 0.962326
  Prefactor  = 1.02778
 **********
 **   18 **HESSE 
 **********

 FCN=   5069.897     FROM HESSE     STATUS=OK           360 CALLS     2786 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.350        23.603        .10573E-03   -1.4950    
   2  Prefactor     .10001E-03    16.329        .58430E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.644        15.403        .10127E-03   -1.4917    
   5  Prefactor     .10000E-03    9.3066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8765        3.8513        .12806E-03   -1.5369    
   7  Prefactor     59.766        88.509        .51915E-04   -1.4160    
   8  Prefactor     17.492        12.312        .95761E-04   -1.4871    
   9  norm          8.1321        4.8252        .11339E-03   -1.5138    
  10  Prefactor     22.744        21.989        .83989E-04   -1.4754    
  11  Prefactor     13.522        14.163        .10896E-03   -1.4972    
  12  norm          .35014        .51717        .60465E-03   -1.5590    
  13  Prefactor     17.249        47.860        .96374E-04   -1.4877    
  14  Prefactor     .10000E-03    15.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.070        .38007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.392        7.9713        .10945E-03   -1.4976    
  17  Prefactor     .10000E-03    10.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1456        .10074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.540        28.494        .93013E-04   -1.4847    
  20  Prefactor     .10000E-03    25.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96233        .25284        .26027E-03   -.94303    
  22  Prefactor     1.0278        .23195        .24704E-03   -.91809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.954e-10
Minuit parameter uncertainties:
  1  23.6185
  2  0.000692957
  3  6.74389e-05
  4  15.4066
  5  0.000232031
  6  3.85166
  7  88.7048
  8  12.3133
  9  4.82541
  10  21.9964
  11  14.1668
  12  0.517181
  13  47.9672
  14  1.47336e-05
  15  0.000974419
  16  7.97189
  17  5.97088e-06
  18  1.88886e-05
  19  28.5152
  20  1.00434e-05
  21  0.253152
  22  0.232177
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.352e+01  1.417e+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.028e+00  2.322e-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:  9.623e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 9.25e-08 +/- 9.68e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.91e-05

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

Saving results to:
/scratch/kocevski/590955/likelihoodResults_381888001_382147201_4FGL_J2256.0-2740_daily_bin550.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) = 5069.72481821
delta logL = 0.172541528079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5069.71798404
delta logL = 0.179375698661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0724       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3752       1.0000          .0000       10.000    
     3 'Normalizat'    .93534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0525       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5069.718     FROM MIGRAD    STATUS=FAILED        93 CALLS      306 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0464        210.70        .14011E-03   -.86335E-04
   2  Index         4.3808        6.2447        .13132E-01    .17464E-03
   3  Normalizat    .93481        .20991        .26359E-03    .39119E-03
   4  Prefactor     1.0531        .22111        .24466E-03   -.62277E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5069.718     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      393 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0464        210.70        .24260E-03   -.86335E-04
   2  Index         4.3808        6.2447        .25031E-02    .17464E-03
   3  Normalizat    .93481        .20991        .15789E-03    .39119E-03
   4  Prefactor     1.0531        .22111        .63627E-04   -.62277E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5069.718     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      425 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0462        114.22        .56044E-05   -.85199E-05
   2  Index         4.3809        5.9233        .26264E-02   -.64496E-06
   3  Normalizat    .93479        .24314        .52717E-04    .29156E-04
   4  Prefactor     1.0531        .24582        .48933E-04    .31783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.04619
  Index      = 4.38085
  Normalizat = 0.934788
  Prefactor  = 1.05309
 **********
 **   18 **HESSE 
 **********

 FCN=   5069.718     FROM HESSE     STATUS=OK            23 CALLS      448 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0462        36.171        .11209E-05   -1.5141    
   2  Index         4.3809        7.1883        .10506E-03   -.12415    
   3  Normalizat    .93479        .24110        .10543E-04   -.95248    
   4  Prefactor     1.0531        .23557        .97866E-05   -.90980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52565e-12
Minuit parameter uncertainties:
  1  34.1537
  2  6.97332
  3  0.241383
  4  0.2358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590955': 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) = 5069.7179808
delta logL = 0.179378941582

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  8.046e+00  3.415e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.381e+00  6.973e+00  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.053e+00  2.358e-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:  9.348e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.56
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.38 +/- 6.97
Photon Flux (Free Index): 1.07e-07 +/- 8.23e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.96e-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/590955/cmap_HighResolution_381888001_382147201_4FGL_J2256.0-2740_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-02', comment='SUCCESS', photon_flux='9.25e-08', energy_flux2='1.52e-05', photon_flux_error='9.68e-08', dlogl='1.79e-01', energy_flux='1.83e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-29 02:50:59.967199', photon_index_error2='6.97', photon_index2='4.38', ts='1.97', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.32e-07', energy_flux_error2='1.96e-05', EG='0.96', time_epoch_completed='1632909059.97', return_code='0', job_id='590955', GAL2='1.05', EG2='0.93', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='8.23e-08', ts2='2.56', photon_index='3.02' WHERE bin_id='550' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:50:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 590955: <4FGL_J2256.0-2740_daily_bin550> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin550> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:37 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:38 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:38 2021
Terminated at Wed Sep 29 02:51:00 2021
Results reported at Wed Sep 29 02:51:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin550 344.025 -27.6739 381888001 382147201 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 :                                   582.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            623 sec.

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

