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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin835
RA = 344.025, Dec = -27.6739
tmin = 455760001, tmax = 456019201
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='592400', job_status='RUN', time_executed='2021-09-29 02:48:48.834327', time_epoch_executed='1632908928.83' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='835'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592400/ft1_4FGL_J2256.0-2740_daily_bin835.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592400/ft2_4FGL_J2256.0-2740_daily_bin835.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592400/ft1_4FGL_J2256.0-2740_daily_bin835.fits outfile=/scratch/kocevski/592400/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin835.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=455760001.0 tmax=456019201.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.45
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592400/ft1_filtered_4FGL_J2256.0-2740_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/592400/ft2_4FGL_J2256.0-2740_daily_bin835.fits sctable="SC_DATA" expcube=/scratch/kocevski/592400/ltcube_455760001_456019201_4FGL_J2256.0-2740_daily_bin835.fits outfile=/scratch/kocevski/592400/expmap_455760001_456019201_4FGL_J2256.0-2740_daily_bin835.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/592400/ltcube_455760001_456019201_4FGL_J2256.0-2740_daily_bin835.fits
.....................!
real 191.35
user 185.87
sys 5.03

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/592400/ft1_filtered_4FGL_J2256.0-2740_daily_bin835.fits scfile=/scratch/kocevski/592400/ft2_4FGL_J2256.0-2740_daily_bin835.fits outfile=/scratch/kocevski/592400/cmap_455760001_456019201_4FGL_J2256.0-2740_daily_bin835.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/592400/ft1_filtered_4FGL_J2256.0-2740_daily_bin835.fits scfile=/scratch/kocevski/592400/ft2_4FGL_J2256.0-2740_daily_bin835.fits outfile=/scratch/kocevski/592400/cmap_HighResolution_455760001_456019201_4FGL_J2256.0-2740_daily_bin835.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592400/ft1_filtered_4FGL_J2256.0-2740_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/592400/ft2_4FGL_J2256.0-2740_daily_bin835.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592400/Model_4FGL_J2256.0-2740_daily_bin835.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/592400/ft1_filtered_4FGL_J2256.0-2740_daily_bin835.fits.....................!
real 49.41
user 47.96
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10289E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.841       1.0000         .10000E-03   10000.    
     6 'norm      '    .18399E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.062       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.308       1.0000         .10000E-03   10000.    
     9 'norm      '    .14009E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0887       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8192       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11114E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25904E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    16.646       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5121       1.0000         .10000E-03   10000.    
    18 'norm      '    2.9165       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.489       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73965       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0466       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=   6351.760     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2455 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.626       -.10131E-06** at limit **
   2  Prefactor     .10000E-03    3.4308       -.32783E-07** at limit **
   3  norm          .10000E-03    9.3244        .23066E-07** at limit **
   4  Prefactor     13.492        15.439        .59837E-06    .97252E-04
   5  Prefactor     25.842        13.329       -.18914E-07   -.42812E-03
   6  norm          .10001E-03    3.5803       -.11438E-05** at limit **
   7  Prefactor     41.891        44.183       -.20444E-05   -.39452E-03
   8  Prefactor     12.307        10.688        .13766E-05    .49420E-03
   9  norm          .10294E-03    2.5862       -.17062E-05** at limit **
  10  Prefactor     7.0851        12.537        .12836E-05    .27729E-03
  11  Prefactor     5.8402        8.3241        .11324E-05   -.91671E-04
  12  norm          .10000E-03    .20755       -.34863E-07** at limit **
  13  Prefactor     .10000E-03    16.104        .10703E-07** at limit **
  14  Prefactor     .10000E-03    3.9302       -.25257E-07** at limit **
  15  Prefactor     .11249E-03    14.086        .36885E-05** at limit **
  16  norm          16.639        8.2243        .50974E-06    .37839E-03
  17  Prefactor     3.5220        79.028        .14978E-05    .83095E-05
  18  norm          2.9165        2.1788        .42812E-07   -.39892E-04
  19  Prefactor     46.507        24.806        .22047E-06   -.18021E-04
  20  Prefactor     .10000E-03    31.088       -.46142E-06** at limit **
  21  Normalizat    .73972        .17586       -.75459E-06   -.46970E-03
  22  Prefactor     1.0465        .16236       -.67375E-06   -.67388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.4924
  Prefactor  = 25.8422
  norm       = 0.000100006
  Prefactor  = 41.8912
  Prefactor  = 12.307
  norm       = 0.000102938
  Prefactor  = 7.08513
  Prefactor  = 5.84025
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000112486
  norm       = 16.6391
  Prefactor  = 3.52196
  norm       = 2.91653
  Prefactor  = 46.5066
  Prefactor  = 0.0001
  Normalizat = 0.739715
  Prefactor  = 1.04649
 **********
 **   18 **HESSE 
 **********

 FCN=   6351.760     FROM HESSE     STATUS=OK           356 CALLS     2811 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4521        .14413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.3788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.492        15.438        .10904E-03   -1.4973    
   5  Prefactor     25.842        13.342        .78804E-04   -1.4691    
   6  norm          .10001E-03    3.6534        .19142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.891        44.334        .61811E-04   -1.4413    
   8  Prefactor     12.307        10.735        .11418E-03   -1.5006    
   9  norm          .10294E-03    4.2095        .35792E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0851        12.735        .15067E-03   -1.5176    
  11  Prefactor     5.8402        9.5735        .16649E-03   -1.5225    
  12  norm          .10000E-03    .20785        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9371        .15431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11249E-03    17.352        .53429E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.639        8.2090        .98168E-04   -1.4892    
  17  Prefactor     3.5220        79.711        .21572E-03   -1.5333    
  18  norm          2.9165        2.1747        .97533E-04   -1.5366    
  19  Prefactor     46.507        24.809        .58806E-04   -1.4343    
  20  Prefactor     .10000E-03    31.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73972        .20659        .25564E-03   -1.0235    
  22  Prefactor     1.0465        .19271        .21912E-03   -.91195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26597e-09
Minuit parameter uncertainties:
  1  1.4614e-05
  2  1.9604e-06
  3  4.55573e-06
  4  15.4424
  5  13.3433
  6  0.000293479
  7  44.3689
  8  10.737
  9  0.0070345
  10  12.7396
  11  9.57602
  12  7.12978e-07
  13  3.77428e-06
  14  2.3722e-06
  15  0.0294479
  16  8.20957
  17  33.5606
  18  2.17473
  19  24.8149
  20  7.26868e-05
  21  0.206804
  22  0.192839
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.840e+00  9.576e+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.046e+00  1.928e-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.397e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592400/likelihoodResults_455760001_456019201_4FGL_J2256.0-2740_daily_bin835.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) = 6351.48082091
delta logL = 0.279557953635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6351.47503153
delta logL = 0.285347329499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6989       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9102       1.0000          .0000       10.000    
     3 'Normalizat'    .71810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0673       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=   6351.475     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      248 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6945        52.806        .61993E-02    .27647E-03
   2  Index         4.9120        7.2842        .41359        .36630E-04
   3  Normalizat    .71812        .43024E-01    .42532E-01   -.72669E-06
   4  Prefactor     1.0673        .43604E-01    .38986E-01   -.13101E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69447
  Index      = 4.91195
  Normalizat = 0.718115
  Prefactor  = 1.06734
 **********
 **   18 **HESSE 
 **********

 FCN=   6351.475     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6945        118.14        .11551E-03   -1.5380    
   2  Index         4.9120        6.3225        .15299E-01   -.17610E-01
   3  Normalizat    .71812        .19354        .25907E-03   -1.0318    
   4  Prefactor     1.0673        .17962        .21730E-03   -.90517    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.56289e-07
Minuit parameter uncertainties:
  1  35.7576
  2  18.3011
  3  0.193728
  4  0.179723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592400': 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): 102
logL (Free Index) = 6351.47503132
delta logL = 0.285347540468

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.694e+00  3.576e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.912e+00  1.830e+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.067e+00  1.797e-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.181e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.91 +/- 18.30
Photon Flux (Free Index): 4.94e-08 +/- 1.09e-07
Energy Flux (Free Index): 6.62e-06 +/- 2.47e-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/592400/cmap_HighResolution_455760001_456019201_4FGL_J2256.0-2740_daily_bin835.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', energy_flux2='6.62e-06', dlogl='2.85e-01', photon_flux2='4.94e-08', job_status='DONE', time_completed='2021-09-29 02:59:38.256495', photon_index_error2='18.30', photon_index2='4.91', ts='0.92', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='2.47e-05', EG='0.74', time_epoch_completed='1632909578.26', return_code='0', job_id='592400', GAL2='1.07', EG2='0.72', return_code2='102', photon_flux_error2='1.09e-07', ts2='1.56', photon_index='3.02' WHERE bin_id='835' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 592400: <4FGL_J2256.0-2740_daily_bin835> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin835 344.025 -27.6739 455760001 456019201 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.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

