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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin758
RA = 344.025, Dec = -27.6739
tmin = 435801601, tmax = 436060801
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='592284', job_status='RUN', time_executed='2021-09-29 02:47:48.959515', time_epoch_executed='1632908868.96' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592284/ft1_4FGL_J2256.0-2740_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592284/ft2_4FGL_J2256.0-2740_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592284/ft1_4FGL_J2256.0-2740_daily_bin758.fits outfile=/scratch/kocevski/592284/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin758.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=435801601.0 tmax=436060801.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 5.63
user 5.35
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592284/ft1_filtered_4FGL_J2256.0-2740_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/592284/ft2_4FGL_J2256.0-2740_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/592284/ltcube_435801601_436060801_4FGL_J2256.0-2740_daily_bin758.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/592284/ft2_4FGL_J2256.0-2740_daily_bin758.fits
.....................!
real 12.05
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592284/ft1_filtered_4FGL_J2256.0-2740_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/592284/ft2_4FGL_J2256.0-2740_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/592284/ltcube_435801601_436060801_4FGL_J2256.0-2740_daily_bin758.fits outfile=/scratch/kocevski/592284/expmap_435801601_436060801_4FGL_J2256.0-2740_daily_bin758.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/592284/ltcube_435801601_436060801_4FGL_J2256.0-2740_daily_bin758.fits
.....................!
real 191.06
user 185.61
sys 5.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/592284/ft1_filtered_4FGL_J2256.0-2740_daily_bin758.fits scfile=/scratch/kocevski/592284/ft2_4FGL_J2256.0-2740_daily_bin758.fits outfile=/scratch/kocevski/592284/cmap_435801601_436060801_4FGL_J2256.0-2740_daily_bin758.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592284/ft1_filtered_4FGL_J2256.0-2740_daily_bin758.fits scfile=/scratch/kocevski/592284/ft2_4FGL_J2256.0-2740_daily_bin758.fits outfile=/scratch/kocevski/592284/cmap_HighResolution_435801601_436060801_4FGL_J2256.0-2740_daily_bin758.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592284/ft1_filtered_4FGL_J2256.0-2740_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/592284/ft2_4FGL_J2256.0-2740_daily_bin758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592284/Model_4FGL_J2256.0-2740_daily_bin758.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/592284/ft1_filtered_4FGL_J2256.0-2740_daily_bin758.fits......................!
real 30.10
user 28.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12165E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.895       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.951       1.0000         .10000E-03   10000.    
     6 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    196.42       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.589       1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.600       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    117.24       1.0000         .10000E-03   10000.    
    20 'Prefactor '    94.109       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74678       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2603.850     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     1819 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2479        .52823E-05** at limit **
   2  Prefactor     .10000E-03    35.864        .76354E-04** at limit **
   3  norm          .10000E-03    19.875        .49883E-06** at limit **
   4  Prefactor     61.381        40.731       -.46461E-04   -.37881E-03
   5  Prefactor     18.772        19.535       -.18428E-04    .30235E-03
   6  norm          .10000E-03    4.2590       -.28941E-04** at limit **
   7  Prefactor     197.79        46.394        .12002E-04   -.19605E-01
   8  Prefactor     .10000E-03    72.767       -.27256E-03** at limit **
   9  norm          .10000E-03    2.0314       -.26345E-04** at limit **
  10  Prefactor     .10000E-03    5.7833        .12431E-04** at limit **
  11  Prefactor     .10000E-03    4.1029        .23970E-05** at limit **
  12  norm          .10000E-03    .21596       -.14484E-05** at limit **
  13  Prefactor     .10000E-03    216.54        .57074E-03** at limit **
  14  Prefactor     .10000E-03    33.272       -.19147E-03** at limit **
  15  Prefactor     .10000E-03    8.3698       -.27375E-05** at limit **
  16  norm          27.047        29.368       -.49973E-04   -.12183E-03
  17  Prefactor     46.134        162.15        .25638E-03   -.25217E-03
  18  norm          .10000E-03    7.7640       -.18509E-04** at limit **
  19  Prefactor     112.55        87.767       -.25081E-04   -.78183E-02
  20  Prefactor     105.04        224.74       -.54613E-04   -.16230E-02
  21  Normalizat    .75281        .37416       -.61479E-04   -.45542E-04
  22  Prefactor     .98961        .32260        .23042E-05   -.51934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 61.3808
  Prefactor  = 18.7725
  norm       = 0.0001
  Prefactor  = 197.785
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.0474
  Prefactor  = 46.1337
  norm       = 0.0001
  Prefactor  = 112.554
  Prefactor  = 105.042
  Normalizat = 0.752805
  Prefactor  = 0.989608
 **********
 **   18 **HESSE 
 **********

 FCN=   2603.850     FROM HESSE     STATUS=OK           376 CALLS     2195 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.756        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     61.381        40.765        .12961E-02   -1.4139    
   5  Prefactor     18.772        20.000        .23001E-02   -1.4841    
   6  norm          .10000E-03    4.1460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     197.79        104.49        .72063E-03   -1.2886    
   8  Prefactor     .10000E-03    71.504        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7745        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .21595        .90712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    216.02        .97710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.3511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.047        29.401        .19423E-02   -1.4667    
  17  Prefactor     46.134        158.60        .13571E-02   -1.4348    
  18  norm          .10000E-03    7.6219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     112.55        97.358        .92901E-03   -1.3582    
  20  Prefactor     105.04        226.32        .10357E-02   -1.3655    
  21  Normalizat    .75281        .30943        .65444E-01   -1.0184    
  22  Prefactor     .98961        .25980        .46195E-01   -.93077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87358e-06
Minuit parameter uncertainties:
  1  1.2625e-06
  2  0.000109105
  3  4.96309e-06
  4  40.7832
  5  20.0074
  6  2.68063e-05
  7  104.59
  8  0.000395891
  9  3.36553e-06
  10  1.88322e-06
  11  1.14403e-07
  12  6.19496e-08
  13  0.000762308
  14  0.000154496
  15  1.25877e-06
  16  29.4164
  17  160.085
  18  1.62827e-05
  19  97.4969
  20  228.221
  21  0.310149
  22  0.26013
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.144e-07  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:  9.896e-01  2.601e-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.528e-01  3.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592284/likelihoodResults_435801601_436060801_4FGL_J2256.0-2740_daily_bin758.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) = 2603.85077402
delta logL = -0.00113910818754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2603.84963494
delta logL = -2.69701558864e-08

Fit tolerance = 1e-08

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

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

 FCN=   2603.850     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.686        .10093E-01** at limit **
   2  Index         3.4507        6.5638        .50000       -.95497E-08
   3  Normalizat    .75281        .32503E-01    .28954E-03   -.10213E-03
   4  Prefactor     .98961        .29253E-01    .22845E-03   -.13141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.45075
  Normalizat = 0.752805
  Prefactor  = 0.989608
 **********
 **   18 **HESSE 
 **********

 FCN=   2603.850     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    662.95        .10333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4507        6.1885        .50000       -.31504    
   3  Normalizat    .75281        .11297        .11582E-04   -1.0184    
   4  Prefactor     .98961        .10169        .45690E-04   -.93077    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03922e-10
Minuit parameter uncertainties:
  1  1.84988e-05
  2  3378.08
  3  0.113003
  4  0.10171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592284': 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) = 2603.84963431
delta logL = 6.04303295404e-07

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.850e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.451e+00  3.378e+03  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:  9.896e-01  1.017e-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.528e-01  1.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.025 -27.674

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/592284/cmap_HighResolution_435801601_436060801_4FGL_J2256.0-2740_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-29 02:55:27.688005', job_id='592284', GAL2='0.99', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632909327.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='758' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:55:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 592284: <4FGL_J2256.0-2740_daily_bin758> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:14 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:15 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:15 2021
Terminated at Wed Sep 29 02:55:28 2021
Results reported at Wed Sep 29 02:55:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin758 344.025 -27.6739 435801601 436060801 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 :                                   435.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            614 sec.

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

