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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1157
RA = 344.025, Dec = -27.6739
tmin = 539222401, tmax = 539481601
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='593841', job_status='RUN', time_executed='2021-09-29 02:51:49.820638', time_epoch_executed='1632909109.82' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593841

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593841/ft1_4FGL_J2256.0-2740_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593841/ft2_4FGL_J2256.0-2740_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593841/ft1_4FGL_J2256.0-2740_daily_bin1157.fits outfile=/scratch/kocevski/593841/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1157.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=539222401.0 tmax=539481601.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.67
user 5.26
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593841/ft2_4FGL_J2256.0-2740_daily_bin1157.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/593841/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/593841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1157.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/593841/ft2_4FGL_J2256.0-2740_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/593841/ltcube_539222401_539481601_4FGL_J2256.0-2740_daily_bin1157.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/593841/ft2_4FGL_J2256.0-2740_daily_bin1157.fits
.....................!
real 11.82
user 11.37
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/593841/ft2_4FGL_J2256.0-2740_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/593841/ltcube_539222401_539481601_4FGL_J2256.0-2740_daily_bin1157.fits outfile=/scratch/kocevski/593841/expmap_539222401_539481601_4FGL_J2256.0-2740_daily_bin1157.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/593841/ltcube_539222401_539481601_4FGL_J2256.0-2740_daily_bin1157.fits
.....................!
real 190.54
user 184.92
sys 5.18

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/593841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1157.fits scfile=/scratch/kocevski/593841/ft2_4FGL_J2256.0-2740_daily_bin1157.fits outfile=/scratch/kocevski/593841/cmap_539222401_539481601_4FGL_J2256.0-2740_daily_bin1157.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.55
user 0.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1157.fits scfile=/scratch/kocevski/593841/ft2_4FGL_J2256.0-2740_daily_bin1157.fits outfile=/scratch/kocevski/593841/cmap_HighResolution_539222401_539481601_4FGL_J2256.0-2740_daily_bin1157.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/593841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/593841/ft2_4FGL_J2256.0-2740_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593841/Model_4FGL_J2256.0-2740_daily_bin1157.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/593841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1157.fits.....................!
real 53.87
user 52.29
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0768       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2193       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7568       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3384       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.420       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9839       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18143E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.436       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6469       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72819E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.720       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3473       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1333       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63749       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97983       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=   6649.790     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2013 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0811        13.845       -.15610E-05   -.79616E-04
   2  Prefactor     4.2153        6.3818       -.11399E-05   -.33534E-03
   3  norm          3.7617        14.264       -.19277E-05   -.83549E-04
   4  Prefactor     5.3367        9.2491       -.10998E-06   -.53784E-04
   5  Prefactor     16.410        11.597        .18142E-05    .45565E-06
   6  norm          3.9841        2.1762        .10052E-07    .28491E-04
   7  Prefactor     .10000E-03    16.333       -.52860E-05** at limit **
   8  Prefactor     .10000E-03    17.032        .22586E-05** at limit **
   9  norm          .10000E-03    1.1033        .66574E-08** at limit **
  10  Prefactor     24.800        17.451        .17855E-05    .24772E-04
  11  Prefactor     38.441        14.401       -.26175E-05    .80377E-04
  12  norm          3.6465        1.1439        .31418E-06   -.72728E-03
  13  Prefactor     .10001E-03    87.732       -.47805E-04** at limit **
  14  Prefactor     13.722        12.386       -.40672E-06   -.22945E-04
  15  Prefactor     .10000E-03    4.1811       -.87533E-08** at limit **
  16  norm          7.3440        6.3698       -.19665E-06   -.71759E-04
  17  Prefactor     3.1303        36.388       -.48829E-05   -.42080E-04
  18  norm          .10000E-03    1.1605       -.16179E-06** at limit **
  19  Prefactor     .10000E-03    14.832        .31416E-05** at limit **
  20  Prefactor     .10000E-03    49.951        .72378E-05** at limit **
  21  Normalizat    .63707        .15750        .18816E-05    .40528E-04
  22  Prefactor     .98017        .15401       -.58288E-06    .26934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.08111
  Prefactor  = 4.21531
  norm       = 3.7617
  Prefactor  = 5.33667
  Prefactor  = 16.4102
  norm       = 3.98414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.8
  Prefactor  = 38.4408
  norm       = 3.6465
  Prefactor  = 0.000100012
  Prefactor  = 13.7223
  Prefactor  = 0.0001
  norm       = 7.34398
  Prefactor  = 3.13032
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.637073
  Prefactor  = 0.980168
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.790     FROM HESSE     STATUS=OK           346 CALLS     2359 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0811        13.866        .17845E-03   -1.5257    
   2  Prefactor     4.2153        6.4170        .19618E-03   -1.5297    
   3  norm          3.7617        14.284        .20830E-03   -1.5320    
   4  Prefactor     5.3367        9.2404        .17394E-03   -1.5246    
   5  Prefactor     16.410        11.598        .98839E-04   -1.4898    
   6  norm          3.9841        2.1736        .85241E-04   -1.5309    
   7  Prefactor     .10000E-03    16.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1056        .83597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.800        17.462        .80465E-04   -1.4712    
  11  Prefactor     38.441        14.741        .64649E-04   -1.4467    
  12  norm          3.6465        1.1650        .36155E-04   -1.5326    
  13  Prefactor     .10001E-03    87.750        .41914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.722        12.388        .10814E-03   -1.4967    
  15  Prefactor     .10000E-03    4.1873        .16273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3440        6.3667        .14797E-03   -1.5166    
  17  Prefactor     3.1303        36.543        .22903E-03   -1.5354    
  18  norm          .10000E-03    1.1846        .85733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .63707        .18877        .26767E-03   -1.0643    
  22  Prefactor     .98017        .18542        .22235E-03   -.93394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46277e-10
Minuit parameter uncertainties:
  1  13.8752
  2  6.41804
  3  14.2972
  4  9.24286
  5  11.5991
  6  2.1736
  7  1.76817e-06
  8  3.3808e-05
  9  4.56958e-06
  10  17.4652
  11  14.7419
  12  1.16505
  13  0.00207489
  14  12.3907
  15  1.92232e-05
  16  6.36726
  17  21.4069
  18  2.46914e-06
  19  1.72021e-05
  20  2.78065e-05
  21  0.188958
  22  0.185542
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.844e+01  1.474e+01  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.802e-01  1.855e-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:  6.371e-01  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.38
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 2.63e-07 +/- 1.01e-07
Energy Flux (Fixed Index): 5.19e-05 +/- 1.99e-05

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) = 6649.040556
delta logL = 0.749218159062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6649.03980847
delta logL = 0.749965689411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.180       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6977       1.0000          .0000       10.000    
     3 'Normalizat'    .59945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0145       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=   6649.040     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      299 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.185        13.871        .72932E-04    .30537E-03
   2  Index         3.6981        .70829        .63222E-02    .51042E-04
   3  Normalizat    .59952        .18529        .27514E-03    .27957E-03
   4  Prefactor     1.0144        .18482        .21926E-03    .17527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1855
  Index      = 3.69808
  Normalizat = 0.599517
  Prefactor  = 1.01441
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.040     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.185        13.217        .29173E-05   -1.4609    
   2  Index         3.6981        .67481        .25289E-03   -.26342    
   3  Normalizat    .59952        .18552        .11005E-04   -1.0800    
   4  Prefactor     1.0144        .18497        .43852E-04   -.92251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6077e-10
Minuit parameter uncertainties:
  1  13.2182
  2  0.677031
  3  0.185712
  4  0.185086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593841': 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) = 6649.03980703
delta logL = 0.749967125056

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.014e+00  1.851e-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:  5.995e-01  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.59
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.70 +/- 0.68
Photon Flux (Free Index): 2.79e-07 +/- 7.54e-08
Energy Flux (Free Index): 4.42e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/593841/cmap_HighResolution_539222401_539481601_4FGL_J2256.0-2740_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.63e-07', energy_flux2='4.42e-05', photon_flux_error='1.01e-07', dlogl='7.50e-01', energy_flux='5.19e-05', photon_flux2='2.79e-07', job_status='DONE', time_completed='2021-09-29 03:01:31.546921', photon_index_error2='0.68', photon_index2='3.70', ts='16.38', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.64', time_epoch_completed='1632909691.55', return_code='0', job_id='593841', GAL2='1.01', EG2='0.60', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='7.54e-08', ts2='21.59', photon_index='3.02' WHERE bin_id='1157' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:01:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 593841: <4FGL_J2256.0-2740_daily_bin1157> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1157> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:13 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50: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:50:15 2021
Terminated at Wed Sep 29 03:01:32 2021
Results reported at Wed Sep 29 03:01:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1157 344.025 -27.6739 539222401 539481601 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 :                                   576.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            679 sec.

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

