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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1024
RA = 344.025, Dec = -27.6739
tmin = 504748801, tmax = 505008001
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='592684', job_status='RUN', time_executed='2021-09-29 02:47:48.349755', time_epoch_executed='1632908868.35' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592684/ft1_4FGL_J2256.0-2740_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592684/ft2_4FGL_J2256.0-2740_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592684/ft1_4FGL_J2256.0-2740_daily_bin1024.fits outfile=/scratch/kocevski/592684/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1024.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=504748801.0 tmax=505008001.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 8.35
user 7.99
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592684/ft1_filtered_4FGL_J2256.0-2740_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/592684/ft2_4FGL_J2256.0-2740_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/592684/ltcube_504748801_505008001_4FGL_J2256.0-2740_daily_bin1024.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/592684/ft2_4FGL_J2256.0-2740_daily_bin1024.fits
.....................!
real 11.69
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592684/ft1_filtered_4FGL_J2256.0-2740_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/592684/ft2_4FGL_J2256.0-2740_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/592684/ltcube_504748801_505008001_4FGL_J2256.0-2740_daily_bin1024.fits outfile=/scratch/kocevski/592684/expmap_504748801_505008001_4FGL_J2256.0-2740_daily_bin1024.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/592684/ltcube_504748801_505008001_4FGL_J2256.0-2740_daily_bin1024.fits
.....................!
real 192.15
user 187.64
sys 4.12

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/592684/ft1_filtered_4FGL_J2256.0-2740_daily_bin1024.fits scfile=/scratch/kocevski/592684/ft2_4FGL_J2256.0-2740_daily_bin1024.fits outfile=/scratch/kocevski/592684/cmap_504748801_505008001_4FGL_J2256.0-2740_daily_bin1024.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/592684/ft1_filtered_4FGL_J2256.0-2740_daily_bin1024.fits scfile=/scratch/kocevski/592684/ft2_4FGL_J2256.0-2740_daily_bin1024.fits outfile=/scratch/kocevski/592684/cmap_HighResolution_504748801_505008001_4FGL_J2256.0-2740_daily_bin1024.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0437       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1196       1.0000         .10000E-03   10000.    
     3 'norm      '    33.507       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3230       1.0000         .10000E-03   10000.    
     6 'norm      '    .89559       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1182       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.146       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9462       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1392       1.0000         .10000E-03   10000.    
    16 'norm      '    .85597       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .88882       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12552E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82203       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0710       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=   10038.80     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2135 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0445        11.565       -.78389E-05    .34305E-03
   2  Prefactor     2.1198        6.0560       -.81177E-06    .13212E-03
   3  norm          33.507        15.467        .31753E-06    .32653E-03
   4  Prefactor     .10000E-03    6.6202       -.21766E-06** at limit **
   5  Prefactor     6.3213        7.4103        .41716E-06    .75016E-03
   6  norm          .89668        .72934       -.77188E-07   -.69389E-03
   7  Prefactor     2.1972        77.422       -.10847E-04   -.39224E-04
   8  Prefactor     .10000E-03    4.8043       -.29008E-06** at limit **
   9  norm          1.1169        1.9949       -.35726E-06    .23254E-03
  10  Prefactor     .10000E-03    2.8570       -.35218E-06** at limit **
  11  Prefactor     15.147        7.6085        .51223E-06    .14583E-02
  12  norm          .10000E-03    .21546       -.11878E-06** at limit **
  13  Prefactor     .10002E-03    99.613       -.22597E-05** at limit **
  14  Prefactor     6.9463        6.1190       -.10613E-06    .32687E-04
  15  Prefactor     8.1386        8.8765       -.18828E-06    .54419E-03
  16  norm          .85613        3.2212       -.80379E-06    .31336E-03
  17  Prefactor     .10000E-03    43.917       -.32066E-05** at limit **
  18  norm          .88934        1.6707       -.38400E-06   -.11520E-03
  19  Prefactor     .10001E-03    64.134        .33033E-04** at limit **
  20  Prefactor     .10000E-03    18.819        .21895E-06** at limit **
  21  Normalizat    .82207        .13471        .20426E-05    .14980E-02
  22  Prefactor     1.0709        .12874        .61107E-06    .16324E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.04453
  Prefactor  = 2.11975
  norm       = 33.5073
  Prefactor  = 0.0001
  Prefactor  = 6.32131
  norm       = 0.896682
  Prefactor  = 2.19717
  Prefactor  = 0.0001
  norm       = 1.11689
  Prefactor  = 0.0001
  Prefactor  = 15.1469
  norm       = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 6.94629
  Prefactor  = 8.13864
  norm       = 0.856127
  Prefactor  = 0.0001
  norm       = 0.889344
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Normalizat = 0.822072
  Prefactor  = 1.07092
 **********
 **   18 **HESSE 
 **********

 FCN=   10038.80     FROM HESSE     STATUS=OK           346 CALLS     2481 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0445        11.548        .11628E-02   -1.5359    
   2  Prefactor     2.1198        6.0607        .28329E-03   -1.5417    
   3  norm          33.507        15.456        .69226E-04   -1.4550    
   4  Prefactor     .10000E-03    6.6380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3213        7.3495        .15963E-03   -1.5205    
   6  norm          .89668        .87897        .72132E-03   -1.5519    
   7  Prefactor     2.1972        77.471        .27481E-03   -1.5412    
   8  Prefactor     .10000E-03    4.8771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1169        1.9293        .17318E-03   -1.5497    
  10  Prefactor     .10000E-03    2.8614        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.147        7.5528        .10291E-03   -1.4929    
  12  norm          .10000E-03    .21616        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    100.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9463        6.1211        .15222E-03   -1.5181    
  15  Prefactor     8.1386        8.8315        .14053E-03   -1.5137    
  16  norm          .85613        3.1943        .34015E-03   -1.5523    
  17  Prefactor     .10000E-03    44.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .88934        1.6187        .16865E-03   -1.5519    
  19  Prefactor     .10001E-03    62.837        .48855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .82207        .15837        .24484E-03   -.99255    
  22  Prefactor     1.0709        .15242        .21883E-03   -.90401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11763e-09
Minuit parameter uncertainties:
  1  11.5561
  2  6.06248
  3  15.4583
  4  3.85463e-05
  5  7.35055
  6  0.878979
  7  26.1295
  8  4.69049e-05
  9  1.92946
  10  3.67066e-05
  11  7.55332
  12  3.59846e-06
  13  0.00306627
  14  6.12163
  15  8.83293
  16  3.19489
  17  9.01308e-05
  18  1.61874
  19  0.00157929
  20  4.16385e-06
  21  0.158454
  22  0.152483
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.515e+01  7.553e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.071e+00  1.525e-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:  8.221e-01  1.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.62
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 5.16e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.02e-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) = 10038.0049332
delta logL = 0.797830890904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10038.0048292
delta logL = 0.797934817645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.383       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7072       1.0000          .0000       10.000    
     3 'Normalizat'    .79013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0959       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=   10038.00     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      263 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.379        73.019        .27373E-02    .24203E-03
   2  Index         3.7068        6.8527        .20889        .56392E-04
   3  Normalizat    .79021        .75928E-01    .43481E-01    .31537E-04
   4  Prefactor     1.0959        .81652E-01    .37745E-01    .90453E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3793
  Index      = 3.70677
  Normalizat = 0.790213
  Prefactor  = 1.09585
 **********
 **   18 **HESSE 
 **********

 FCN=   10038.00     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.379        6.0703        .10949E-03   -1.4976    
   2  Index         3.7068        .63697        .92092E-02   -.26162    
   3  Normalizat    .79021        .15469        .24911E-03   -1.0043    
   4  Prefactor     1.0959        .15281        .21668E-03   -.89599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96184e-10
Minuit parameter uncertainties:
  1  6.07054
  2  0.638834
  3  0.154771
  4  0.152875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592684': 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) = 10038.0048282
delta logL = 0.79793582572

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.338e+01  6.071e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.707e+00  6.388e-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.096e+00  1.529e-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:  7.902e-01  1.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.73
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.71 +/- 0.64
Photon Flux (Free Index): 1.24e-07 +/- 4.48e-08
Energy Flux (Free Index): 1.96e-05 +/- 7.31e-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/592684/cmap_HighResolution_504748801_505008001_4FGL_J2256.0-2740_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='1.96e-05', photon_flux_error='5.16e-08', dlogl='7.98e-01', energy_flux='2.05e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-29 03:00:39.150988', photon_index_error2='0.64', photon_index2='3.71', ts='9.62', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='7.31e-06', EG='0.82', time_epoch_completed='1632909639.15', return_code='0', job_id='592684', GAL2='1.10', EG2='0.79', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.48e-08', ts2='11.73', photon_index='3.02' WHERE bin_id='1024' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 592684: <4FGL_J2256.0-2740_daily_bin1024> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1024> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:44 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:45 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:45 2021
Terminated at Wed Sep 29 03:00:39 2021
Results reported at Wed Sep 29 03:00:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1024 344.025 -27.6739 504748801 505008001 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 :                                   730.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            895 sec.

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

