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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1016
RA = 344.025, Dec = -27.6739
tmin = 502675201, tmax = 502934401
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='592671', job_status='RUN', time_executed='2021-09-29 02:47:02.198051', time_epoch_executed='1632908822.2' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1016'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592671

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592671/ft1_4FGL_J2256.0-2740_daily_bin1016.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592671/ft2_4FGL_J2256.0-2740_daily_bin1016.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592671/ft1_4FGL_J2256.0-2740_daily_bin1016.fits outfile=/scratch/kocevski/592671/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1016.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=502675201.0 tmax=502934401.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.57
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1016.fits" evtable="EVENTS" scfile=/scratch/kocevski/592671/ft2_4FGL_J2256.0-2740_daily_bin1016.fits sctable="SC_DATA" outfile=/scratch/kocevski/592671/ltcube_502675201_502934401_4FGL_J2256.0-2740_daily_bin1016.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/592671/ft2_4FGL_J2256.0-2740_daily_bin1016.fits
.....................!
real 12.22
user 11.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/592671/ft2_4FGL_J2256.0-2740_daily_bin1016.fits sctable="SC_DATA" expcube=/scratch/kocevski/592671/ltcube_502675201_502934401_4FGL_J2256.0-2740_daily_bin1016.fits outfile=/scratch/kocevski/592671/expmap_502675201_502934401_4FGL_J2256.0-2740_daily_bin1016.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/592671/ltcube_502675201_502934401_4FGL_J2256.0-2740_daily_bin1016.fits
.....................!
real 190.83
user 185.53
sys 4.96

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/592671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1016.fits scfile=/scratch/kocevski/592671/ft2_4FGL_J2256.0-2740_daily_bin1016.fits outfile=/scratch/kocevski/592671/cmap_502675201_502934401_4FGL_J2256.0-2740_daily_bin1016.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1016.fits scfile=/scratch/kocevski/592671/ft2_4FGL_J2256.0-2740_daily_bin1016.fits outfile=/scratch/kocevski/592671/cmap_HighResolution_502675201_502934401_4FGL_J2256.0-2740_daily_bin1016.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/592671/ft2_4FGL_J2256.0-2740_daily_bin1016.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592671/Model_4FGL_J2256.0-2740_daily_bin1016.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/592671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1016.fits.....................!
real 53.17
user 51.89
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.499       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1356       1.0000         .10000E-03   10000.    
     3 'norm      '    29.268       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.363       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14654E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.807       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8160       1.0000         .10000E-03   10000.    
     9 'norm      '    .91861       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .67063       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8032       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2772       1.0000         .10000E-03   10000.    
    16 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4574       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99930       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72980       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=   6946.176     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2477 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.500        14.846        .11038E-06   -.80124E-04
   2  Prefactor     8.1359        6.8228        .19971E-06    .60711E-05
   3  norm          29.269        15.792       -.20787E-07   -.10573E-03
   4  Prefactor     22.363        15.585        .64856E-07   -.63478E-05
   5  Prefactor     .10006E-03    10.739        .44420E-05** at limit **
   6  norm          .10000E-03    .59736        .94737E-08** at limit **
   7  Prefactor     14.809        24.007        .86310E-07   -.10762E-03
   8  Prefactor     8.8166        9.4950        .20477E-06    .81571E-04
   9  norm          .91930        2.6214        .19285E-05    .11680E-02
  10  Prefactor     .10000E-03    4.3100       -.18271E-06** at limit **
  11  Prefactor     .10000E-03    6.1251       -.19108E-05** at limit **
  12  norm          .67099        .60111       -.19132E-06    .11762E-02
  13  Prefactor     .10000E-03    47.348        .10092E-05** at limit **
  14  Prefactor     2.8040        9.8431        .13016E-05    .10479E-03
  15  Prefactor     2.2781        4.5517        .72635E-06    .43581E-03
  16  norm          .10000E-03    9.7247        .77918E-07** at limit **
  17  Prefactor     .10001E-03    57.482       -.24940E-05** at limit **
  18  norm          1.4578        2.1949        .33265E-06    .31125E-03
  19  Prefactor     .10000E-03    21.638       -.13696E-05** at limit **
  20  Prefactor     .10001E-03    39.126        .14485E-05** at limit **
  21  Normalizat    .99934        .14645       -.50950E-06   -.38811E-03
  22  Prefactor     .72972        .13851       -.31477E-06   -.35122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.4999
  Prefactor  = 8.13589
  norm       = 29.2686
  Prefactor  = 22.3628
  Prefactor  = 0.000100063
  norm       = 0.0001
  Prefactor  = 14.8086
  Prefactor  = 8.81655
  norm       = 0.919298
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.670989
  Prefactor  = 0.000100002
  Prefactor  = 2.80398
  Prefactor  = 2.27809
  norm       = 0.0001
  Prefactor  = 0.000100012
  norm       = 1.45777
  Prefactor  = 0.000100004
  Prefactor  = 0.000100005
  Normalizat = 0.999343
  Prefactor  = 0.729718
 **********
 **   18 **HESSE 
 **********

 FCN=   6946.176     FROM HESSE     STATUS=OK           346 CALLS     2823 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.500        14.846        .69234E-04   -1.4550    
   2  Prefactor     8.1359        6.8375        .14056E-03   -1.5137    
   3  norm          29.269        15.786        .74056E-04   -1.4625    
   4  Prefactor     22.363        15.586        .84702E-04   -1.4762    
   5  Prefactor     .10006E-03    16.900        .35015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .60121        .62655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.809        23.625        .10409E-03   -1.4938    
   8  Prefactor     8.8166        9.5443        .13500E-03   -1.5114    
   9  norm          .91930        2.7593        .21847E-03   -1.5516    
  10  Prefactor     .10000E-03    4.3207        .16891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.973        .31829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .67099        .51279        .47192E-03   -1.5544    
  13  Prefactor     .10000E-03    47.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8040        9.8772        .24298E-03   -1.5373    
  15  Prefactor     2.2781        4.5243        .23639E-03   -1.5406    
  16  norm          .10000E-03    10.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    58.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4578        2.1821        .14601E-03   -1.5466    
  19  Prefactor     .10000E-03    22.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    39.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99934        .17181        .21183E-03   -.93052    
  22  Prefactor     .72972        .16317        .24107E-03   -1.0237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80595e-09
Minuit parameter uncertainties:
  1  14.8475
  2  6.83814
  3  15.7885
  4  15.589
  5  0.00205628
  6  1.32547e-06
  7  23.6394
  8  9.54594
  9  2.75968
  10  2.08598e-05
  11  0.000219008
  12  0.512796
  13  0.000639296
  14  9.88292
  15  4.52501
  16  3.41315e-05
  17  0.0016898
  18  2.1822
  19  0.00057498
  20  0.000910179
  21  0.171901
  22  0.163279
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.190e-04  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:  7.297e-01  1.633e-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:  9.993e-01  1.719e-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: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592671/likelihoodResults_502675201_502934401_4FGL_J2256.0-2740_daily_bin1016.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) = 6946.17661715
delta logL = -0.000397989108933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6946.17621947
delta logL = -3.10420546157e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10960E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0591       1.0000          .0000       10.000    
     3 'Normalizat'    .99942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72967       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=   6946.176     FROM MIGRAD    STATUS=FAILED       101 CALLS      269 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11506E-03    1039.4        .25395E-02** at limit **
   2  Index         3.4257        8.1262        .50000       -.10826E-04
   3  Normalizat    .99934        .27441E-01    .21183E-03    .20269E-03
   4  Prefactor     .72972        .27172E-01    .24107E-03    .13964E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6946.176     FROM SIMPLEX   STATUS=PROGRESS     130 CALLS      399 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    1039.4        .59838E-03** at limit **
   2  Index         3.4254        8.1262        .62276E-04   -.10826E-04
   3  Normalizat    .99934        .27441E-01    .13181E-05    .20269E-03
   4  Prefactor     .72972        .27172E-01    .10284E-05    .13964E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6946.176     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      451 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9636        .50789E-01** at limit **
   2  Index         3.6604        6.5094        .50000        .17233E-06
   3  Normalizat    .99934        .27818E-02    .42366E-04    .19031E-03
   4  Prefactor     .72972        .27590E-02    .96427E-05    .16577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.66041
  Normalizat = 0.999343
  Prefactor  = 0.729719
 **********
 **   18 **HESSE 
 **********

 FCN=   6946.176     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      482 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    586.03        .28458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6604        5.1230        .50000       -.27123    
   3  Normalizat    .99934        .18932E-01    .84732E-05   -.93052    
   4  Prefactor     .72972        .18764E-01    .19285E-05   -1.0237    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.49259e-09
Minuit parameter uncertainties:
  1  0.00160233
  2  1223.46
  3  0.0189319
  4  0.0187645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592671': 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) = 6946.17621729
delta logL = 1.87252953765e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.602e-03  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.660e+00  1.223e+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:  7.297e-01  1.876e-02  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:  9.993e-01  1.893e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/592671/cmap_HighResolution_502675201_502934401_4FGL_J2256.0-2740_daily_bin1016.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-29 02:58:34.164135', job_id='592671', GAL2='0.73', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632909514.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1016' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 592671: <4FGL_J2256.0-2740_daily_bin1016> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1016 344.025 -27.6739 502675201 502934401 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

