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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin565
RA = 344.025, Dec = -27.6739
tmin = 385776001, tmax = 386035201
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='590978', job_status='RUN', time_executed='2021-09-29 02:43:12.970610', time_epoch_executed='1632908592.97' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590978

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590978/ft1_4FGL_J2256.0-2740_daily_bin565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590978/ft2_4FGL_J2256.0-2740_daily_bin565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590978/ft1_4FGL_J2256.0-2740_daily_bin565.fits outfile=/scratch/kocevski/590978/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin565.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=385776001.0 tmax=386035201.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.98
user 3.65
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590978/ft1_filtered_4FGL_J2256.0-2740_daily_bin565.fits" evtable="EVENTS" scfile=/scratch/kocevski/590978/ft2_4FGL_J2256.0-2740_daily_bin565.fits sctable="SC_DATA" outfile=/scratch/kocevski/590978/ltcube_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.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/590978/ft2_4FGL_J2256.0-2740_daily_bin565.fits
.....................!
real 11.84
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590978/ft1_filtered_4FGL_J2256.0-2740_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/590978/ft2_4FGL_J2256.0-2740_daily_bin565.fits sctable="SC_DATA" expcube=/scratch/kocevski/590978/ltcube_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.fits outfile=/scratch/kocevski/590978/expmap_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.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/590978/ltcube_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.fits
.....................!
real 190.71
user 185.26
sys 5.08

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/590978/ft1_filtered_4FGL_J2256.0-2740_daily_bin565.fits scfile=/scratch/kocevski/590978/ft2_4FGL_J2256.0-2740_daily_bin565.fits outfile=/scratch/kocevski/590978/cmap_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590978/ft1_filtered_4FGL_J2256.0-2740_daily_bin565.fits scfile=/scratch/kocevski/590978/ft2_4FGL_J2256.0-2740_daily_bin565.fits outfile=/scratch/kocevski/590978/cmap_HighResolution_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.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/590978/ft1_filtered_4FGL_J2256.0-2740_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/590978/ft2_4FGL_J2256.0-2740_daily_bin565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590978/Model_4FGL_J2256.0-2740_daily_bin565.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/590978/ft1_filtered_4FGL_J2256.0-2740_daily_bin565.fits.....................!
real 39.66
user 38.27
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/590978/ft1_filtered_4FGL_J2256.0-2740_daily_bin565.fits', '/scratch/kocevski/590978/ft2_4FGL_J2256.0-2740_daily_bin565.fits', expMap='/scratch/kocevski/590978/expmap_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.fits', expCube='/scratch/kocevski/590978/ltcube_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/590978/Model_4FGL_J2256.0-2740_daily_bin565.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/590978/ft1_filtered_4FGL_J2256.0-2740_daily_bin565.fits
Spacecraft file(s): /scratch/kocevski/590978/ft2_4FGL_J2256.0-2740_daily_bin565.fits
Exposure map: /scratch/kocevski/590978/expmap_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.fits
Exposure cube: /scratch/kocevski/590978/ltcube_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/590978/Model_4FGL_J2256.0-2740_daily_bin565.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4499.31026477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9211       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.692       1.0000         .10000E-03   10000.    
     6 'norm      '    .50190       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2480       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7989       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .73293       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.915       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7889       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10718E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2096       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89104       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=   4499.183     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2019 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.034        .83016E-06** at limit **
   2  Prefactor     .10000E-03    17.860        .81702E-05** at limit **
   3  norm          .10000E-03    8.3783        .36945E-05** at limit **
   4  Prefactor     7.9226        38.289        .27318E-05   -.54342E-04
   5  Prefactor     11.698        16.643       -.15626E-06   -.20118E-04
   6  norm          .50141        2.5125       -.13241E-05   -.12551E-02
   7  Prefactor     .10000E-03    37.638        .11934E-04** at limit **
   8  Prefactor     9.2485        20.606       -.40738E-06   -.65314E-04
   9  norm          2.7996        3.8790       -.32037E-07   -.68201E-04
  10  Prefactor     .10000E-03    6.2672       -.11971E-05** at limit **
  11  Prefactor     .10000E-03    9.5331       -.42044E-05** at limit **
  12  norm          .73307        .61259       -.55183E-08    .64458E-03
  13  Prefactor     .10000E-03    48.844        .36809E-04** at limit **
  14  Prefactor     .10000E-03    5.1556       -.14306E-05** at limit **
  15  Prefactor     15.917        13.022        .14679E-06    .16829E-03
  16  norm          .10000E-03    5.2664        .17806E-05** at limit **
  17  Prefactor     .10000E-03    28.415       -.28650E-04** at limit **
  18  norm          1.7906        4.5260       -.39953E-06   -.18505E-03
  19  Prefactor     .10000E-03    74.122       -.53285E-04** at limit **
  20  Prefactor     .10000E-03    60.859        .12098E-04** at limit **
  21  Normalizat    1.2092        .22368        .38546E-06    .14991E-03
  22  Prefactor     .89135        .19762        .95507E-07    .94417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.92265
  Prefactor  = 11.698
  norm       = 0.501408
  Prefactor  = 0.0001
  Prefactor  = 9.24852
  norm       = 2.7996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.733068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.917
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20917
  Prefactor  = 0.891348
 **********
 **   18 **HESSE 
 **********

 FCN=   4499.183     FROM HESSE     STATUS=OK           338 CALLS     2357 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.3829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9226        38.132        .14247E-03   -1.5145    
   5  Prefactor     11.698        16.698        .11716E-03   -1.5024    
   6  norm          .50141        2.5706        .20298E-03   -1.5566    
   7  Prefactor     .10000E-03    37.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2485        20.957        .13179E-03   -1.5100    
   9  norm          2.7996        3.8449        .14766E-03   -1.5373    
  10  Prefactor     .10000E-03    6.2705        .16395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .73307        .59967        .44041E-04   -1.5537    
  13  Prefactor     .10000E-03    48.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1586        .14875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.917        12.986        .10040E-03   -1.4910    
  16  norm          .10000E-03    5.2969        .15031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7906        4.5261        .21185E-03   -1.5440    
  19  Prefactor     .10000E-03    73.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    60.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2092        .27054        .23743E-03   -.86320    
  22  Prefactor     .89135        .23609        .25718E-03   -.96444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95305e-09
Minuit parameter uncertainties:
  1  2.09472e-05
  2  0.000190548
  3  3.95117e-06
  4  34.7979
  5  16.7045
  6  2.27054
  7  7.63429e-05
  8  20.9739
  9  3.84521
  10  6.26475e-06
  11  2.70113e-05
  12  0.599674
  13  3.61087e-05
  14  1.62271e-07
  15  12.9884
  16  2.93335e-06
  17  2.5275e-05
  18  4.52701
  19  0.000311866
  20  1.5203e-05
  21  0.270858
  22  0.236358
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.701e-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:  8.913e-01  2.364e-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.209e+00  2.709e-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.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590978/likelihoodResults_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.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): 102
logL (Free Index) = 4499.18390377
delta logL = -0.000494805712151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4499.18340928
delta logL = -3.15460056299e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11166E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0580       1.0000          .0000       10.000    
     3 'Normalizat'    1.2092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89138       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=   4498.696     FROM MIGRAD    STATUS=FAILED       177 CALLS      330 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13735        6.8274        .61704E-02    .53888E-02
   2  Index         9.4938        8.0356        .50000       -.10632E-04
   3  Normalizat    1.1462        .10018        .23743E-03    .22462E-03
   4  Prefactor     .93108        .77927E-01    .25718E-03    .20742E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4498.696     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      416 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13735        6.8274        .51712E-04    .53888E-02
   2  Index         9.4938        8.0356        .84957E-02   -.10632E-04
   3  Normalizat    1.1462        .10018        .11582E-03    .22462E-03
   4  Prefactor     .93108        .77927E-01    .58137E-04    .20742E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4498.696     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      451 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13735        9.3467        .28465E-03    .47864E-02
   2  Index         9.4938        9.5706        .55862E-01    .19179E-04
   3  Normalizat    1.1462        .19603        .47485E-04    .24722E-03
   4  Prefactor     .93108        .17653        .51436E-04    .22098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.137347
  Index      = 9.4938
  Normalizat = 1.14625
  Prefactor  = 0.931079
 **********
 **   18 **HESSE 
 **********

 FCN=   4498.696     FROM HESSE     STATUS=OK            27 CALLS      478 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13735        1.5364        .11386E-04   -1.5634    
   2  Index         9.4938        8.4160        .22345E-02    1.1169    
   3  Normalizat    1.1462        .25115        .94970E-05   -.88281    
   4  Prefactor     .93108        .23459        .10287E-04   -.95063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03601e-10
Minuit parameter uncertainties:
  1  0.918444
  2  8.2688
  3  0.251418
  4  0.234841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590978': 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) = 4498.69603939
delta logL = 0.487369582712

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.373e-01  9.184e-01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  9.494e+00  8.269e+00  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  9.311e-01  2.348e-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.146e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 9.49 +/- 8.27
Photon Flux (Free Index): 6.35e-08 +/- 7.52e-08
Energy Flux (Free Index): 7.16e-06 +/- 8.84e-06

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/590978/cmap_HighResolution_385776001_386035201_4FGL_J2256.0-2740_daily_bin565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', energy_flux2='7.16e-06', dlogl='4.87e-01', photon_flux2='6.35e-08', job_status='DONE', time_completed='2021-09-29 02:52:02.949795', photon_index_error2='8.27', photon_index2='9.49', ts='-0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='8.84e-06', EG='1.21', time_epoch_completed='1632909122.95', return_code='0', job_id='590978', GAL2='0.93', EG2='1.15', return_code2='0', photon_flux_error2='7.52e-08', ts2='1.03', photon_index='3.02' WHERE bin_id='565' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 590978: <4FGL_J2256.0-2740_daily_bin565> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin565> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:38 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:40:39 2021
Terminated at Wed Sep 29 02:52:03 2021
Results reported at Wed Sep 29 02:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin565 344.025 -27.6739 385776001 386035201 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 :                                   525.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             231.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            685 sec.

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

