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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin809
RA = 344.025, Dec = -27.6739
tmin = 449020801, tmax = 449280001
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='592361', job_status='RUN', time_executed='2021-09-29 02:47:37.374859', time_epoch_executed='1632908857.37' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592361

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592361/ft1_4FGL_J2256.0-2740_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592361/ft2_4FGL_J2256.0-2740_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592361/ft1_4FGL_J2256.0-2740_daily_bin809.fits outfile=/scratch/kocevski/592361/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin809.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=449020801.0 tmax=449280001.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.51
user 5.24
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592361/ft1_filtered_4FGL_J2256.0-2740_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/592361/ft2_4FGL_J2256.0-2740_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/592361/ltcube_449020801_449280001_4FGL_J2256.0-2740_daily_bin809.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/592361/ft2_4FGL_J2256.0-2740_daily_bin809.fits
.....................!
real 11.99
user 11.59
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592361/ft1_filtered_4FGL_J2256.0-2740_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/592361/ft2_4FGL_J2256.0-2740_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/592361/ltcube_449020801_449280001_4FGL_J2256.0-2740_daily_bin809.fits outfile=/scratch/kocevski/592361/expmap_449020801_449280001_4FGL_J2256.0-2740_daily_bin809.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/592361/ltcube_449020801_449280001_4FGL_J2256.0-2740_daily_bin809.fits
.....................!
real 193.03
user 187.90
sys 4.68

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/592361/ft1_filtered_4FGL_J2256.0-2740_daily_bin809.fits scfile=/scratch/kocevski/592361/ft2_4FGL_J2256.0-2740_daily_bin809.fits outfile=/scratch/kocevski/592361/cmap_449020801_449280001_4FGL_J2256.0-2740_daily_bin809.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592361/ft1_filtered_4FGL_J2256.0-2740_daily_bin809.fits scfile=/scratch/kocevski/592361/ft2_4FGL_J2256.0-2740_daily_bin809.fits outfile=/scratch/kocevski/592361/cmap_HighResolution_449020801_449280001_4FGL_J2256.0-2740_daily_bin809.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.401       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10952E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.162       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2544       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.519       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .20067       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74688       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8509       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38212E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1247       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90780       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=   4398.438     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     2741 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.390        23.292        .81092E-04    .22712E-04
   2  Prefactor     .10000E-03    3.7202        .12461E-02** at limit **
   3  norm          .10000E-03    112.19        .36285E-03** at limit **
   4  Prefactor     43.924        25.340        .60493E-04    .37436E-04
   5  Prefactor     26.160        18.208        .78321E-04    .34402E-04
   6  norm          3.2539        2.5881        .91360E-04    .77151E-04
   7  Prefactor     .10000E-03    33.134        .18142E-02** at limit **
   8  Prefactor     18.519        18.843        .93071E-04    .76589E-04
   9  norm          .10000E-03    4.1086        .25668E-02** at limit **
  10  Prefactor     .10000E-03    8.5003        .18142E-02** at limit **
  11  Prefactor     .10000E-03    12.560        .36285E-03** at limit **
  12  norm          .20022        .41765        .67938E-03    .31123E-03
  13  Prefactor     .51921        80.032        .15948        .75237E-04
  14  Prefactor     3.8450        26.027        .20565E-03    .11056E-05
  15  Prefactor     .10000E-03    5.6603        .15392E-02** at limit **
  16  norm          .10000E-03    6.5495        .16564E-02** at limit **
  17  Prefactor     .10000E-03    22.193        .18142E-02** at limit **
  18  norm          .10000E-03    2.6921        .10597E-02** at limit **
  19  Prefactor     .10000E-03    331.42        .21284E-02** at limit **
  20  Prefactor     .10000E-03    97.249        .18142E-02** at limit **
  21  Normalizat    1.1248        .29254        .25389E-03    .16751E-03
  22  Prefactor     .90794        .25477        .25416E-03    .12869E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3898
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 43.9245
  Prefactor  = 26.1598
  norm       = 3.25389
  Prefactor  = 0.0001
  Prefactor  = 18.5185
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.200223
  Prefactor  = 0.519211
  Prefactor  = 3.84496
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.12483
  Prefactor  = 0.90794
 **********
 **   18 **HESSE 
 **********

 FCN=   4398.438     FROM HESSE     STATUS=OK           332 CALLS     3073 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.390        23.292        .32437E-05   -1.4720    
   2  Prefactor     .10000E-03    3.7205        .24923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    112.20        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.924        25.340        .12099E-04   -1.4381    
   5  Prefactor     26.160        18.210        .31328E-05   -1.4685    
   6  norm          3.2539        2.5879        .36544E-05   -1.5347    
   7  Prefactor     .10000E-03    33.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.519        18.845        .37228E-05   -1.4847    
   9  norm          .10000E-03    4.1220        .51335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.5011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.560        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .20022        .41713        .27175E-04   -1.5618    
  13  Prefactor     .51921        78.116        .16209       -1.5564    
  14  Prefactor     3.8450        26.023        .82259E-05   -1.5316    
  15  Prefactor     .10000E-03    5.6607        .30783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.5498        .33127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.193        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6923        .21194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    331.68        .42569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    97.250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1248        .29286        .50779E-04   -.88958    
  22  Prefactor     .90794        .25510        .10166E-04   -.95864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24486e-10
Minuit parameter uncertainties:
  1  23.3009
  2  1.06228e-05
  3  0.000937037
  4  25.3461
  5  18.2137
  6  2.58801
  7  3.31079e-05
  8  18.8512
  9  7.09023e-06
  10  7.81332e-06
  11  3.55103e-05
  12  0.417135
  13  12.7529
  14  20.018
  15  1.09143e-05
  16  9.76969e-06
  17  2.9562e-05
  18  8.74653e-06
  19  0.00175455
  20  0.000432799
  21  0.293286
  22  0.255432
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.551e-05  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.079e-01  2.554e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.125e+00  2.933e-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.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592361/likelihoodResults_449020801_449280001_4FGL_J2256.0-2740_daily_bin809.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) = 4398.43844321
delta logL = -0.000379876996703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4398.43806333
delta logL = -7.71251507103e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0085       1.0000          .0000       10.000    
     3 'Normalizat'    1.1249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90794       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=   4398.438     FROM MIGRAD    STATUS=FAILED       106 CALLS      265 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1607.0        .36285E-02** at limit **
   2  Index         2.6343        6.0792        .50000       -.41378E-05
   3  Normalizat    1.1248        .71151E-01    .25389E-03    .26106E-04
   4  Prefactor     .90794        .64983E-01    .25416E-03    .29746E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4398.438     FROM SIMPLEX   STATUS=UNCHANGED    202 CALLS      467 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1607.0        .59581E-03** at limit **
   2  Index         2.6343        6.0792        .28339E-06   -.41378E-05
   3  Normalizat    1.1248        .71151E-01    .25198E-08    .26106E-04
   4  Prefactor     .90794        .64983E-01    .26690E-09    .29746E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4398.438     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      499 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.357        .72569E-03** at limit **
   2  Index         2.6340        5.4143        .50000       -.41522E-05
   3  Normalizat    1.1248        .27540        .10155E-04    .25300E-04
   4  Prefactor     .90794        .25190        .10166E-04    .29075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.63404
  Normalizat = 1.12483
  Prefactor  = 0.90794
 **********
 **   18 **HESSE 
 **********

 FCN=   4398.438     FROM HESSE     STATUS=OK            27 CALLS      526 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.841        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6340        5.0057        .50000       -.49291    
   3  Normalizat    1.1248        .27473        .20311E-05   -.88959    
   4  Prefactor     .90794        .25130        .20333E-05   -.95864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70545e-09
Minuit parameter uncertainties:
  1  0.00010522
  2  92.5356
  3  0.275082
  4  0.251617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592361': 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) = 4398.43806277
delta logL = 5.53170139028e-07

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.052e-04  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.634e+00  9.254e+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:  9.079e-01  2.516e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.125e+00  2.751e-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/592361/cmap_HighResolution_449020801_449280001_4FGL_J2256.0-2740_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-29 02:57:15.785027', job_id='592361', GAL2='0.91', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632909435.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='809' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 592361: <4FGL_J2256.0-2740_daily_bin809> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin809 344.025 -27.6739 449020801 449280001 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 :                                   567.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            717 sec.

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

