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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1139
RA = 344.025, Dec = -27.6739
tmin = 534556801, tmax = 534816001
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='592843', job_status='RUN', time_executed='2021-09-29 02:47:03.944202', time_epoch_executed='1632908823.94' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592843

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592843/ft1_4FGL_J2256.0-2740_daily_bin1139.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592843/ft2_4FGL_J2256.0-2740_daily_bin1139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592843/ft1_4FGL_J2256.0-2740_daily_bin1139.fits outfile=/scratch/kocevski/592843/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1139.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=534556801.0 tmax=534816001.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.97
user 3.73
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592843/ft2_4FGL_J2256.0-2740_daily_bin1139.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/592843/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1139.fits evtable="EVENTS" outfile="/scratch/kocevski/592843/ft1_filtered_4FGL_J2256.0-2740_daily_bin1139.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/592843/ft1_filtered_4FGL_J2256.0-2740_daily_bin1139.fits" evtable="EVENTS" scfile=/scratch/kocevski/592843/ft2_4FGL_J2256.0-2740_daily_bin1139.fits sctable="SC_DATA" outfile=/scratch/kocevski/592843/ltcube_534556801_534816001_4FGL_J2256.0-2740_daily_bin1139.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/592843/ft2_4FGL_J2256.0-2740_daily_bin1139.fits
.....................!
real 12.19
user 11.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592843/ft1_filtered_4FGL_J2256.0-2740_daily_bin1139.fits evtable="EVENTS" scfile=/scratch/kocevski/592843/ft2_4FGL_J2256.0-2740_daily_bin1139.fits sctable="SC_DATA" expcube=/scratch/kocevski/592843/ltcube_534556801_534816001_4FGL_J2256.0-2740_daily_bin1139.fits outfile=/scratch/kocevski/592843/expmap_534556801_534816001_4FGL_J2256.0-2740_daily_bin1139.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/592843/ltcube_534556801_534816001_4FGL_J2256.0-2740_daily_bin1139.fits
.....................!
real 190.35
user 184.81
sys 5.15

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/592843/ft1_filtered_4FGL_J2256.0-2740_daily_bin1139.fits scfile=/scratch/kocevski/592843/ft2_4FGL_J2256.0-2740_daily_bin1139.fits outfile=/scratch/kocevski/592843/cmap_534556801_534816001_4FGL_J2256.0-2740_daily_bin1139.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592843/ft1_filtered_4FGL_J2256.0-2740_daily_bin1139.fits evtable="EVENTS" scfile=/scratch/kocevski/592843/ft2_4FGL_J2256.0-2740_daily_bin1139.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592843/Model_4FGL_J2256.0-2740_daily_bin1139.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/592843/ft1_filtered_4FGL_J2256.0-2740_daily_bin1139.fits.....................!
real 58.24
user 56.89
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1647       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.4165       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4766       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0075       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0886       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3884       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7639       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.221       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3180       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9763       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1629       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3980       1.0000         .10000E-03   10000.    
    18 'norm      '    .42745       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.053       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3130       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .60825       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=   7785.101     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2390 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1654        14.588        .10931E-05    .46874E-05
   2  Prefactor     .10000E-03    1.6197        .12939E-06** at limit **
   3  norm          6.4166        9.9774        .16496E-06   -.16022E-05
   4  Prefactor     .10000E-03    5.9260        .16972E-06** at limit **
   5  Prefactor     7.4776        9.3393        .14156E-06    .91432E-05
   6  norm          2.0075        1.3342       -.54093E-09   -.38332E-04
   7  Prefactor     .10000E-03    11.245        .11583E-06** at limit **
   8  Prefactor     7.0887        7.8942        .98220E-08    .14829E-04
   9  norm          2.3873        3.4353        .23608E-06    .24210E-04
  10  Prefactor     2.7623        23.292        .22522E-05    .26373E-04
  11  Prefactor     20.210        11.443       -.49562E-06   -.55806E-04
  12  norm          2.3179        .82231       -.11619E-07   -.37415E-03
  13  Prefactor     5.9757        35.054        .58225E-06    .48004E-06
  14  Prefactor     .10000E-03    16.041        .74605E-06** at limit **
  15  Prefactor     .10000E-03    3.2118        .16639E-06** at limit **
  16  norm          2.1625        5.2119        .27296E-06    .15194E-04
  17  Prefactor     2.3221        124.83       -.49245E-05   -.26669E-04
  18  norm          .42855        1.5426        .13792E-05    .31211E-03
  19  Prefactor     11.040        25.389       -.15883E-05   -.66334E-04
  20  Prefactor     .10000E-03    78.348        .16036E-06** at limit **
  21  Normalizat    1.3131        .17594        .21201E-05   -.39331E-03
  22  Prefactor     .60818        .16749       -.41204E-05   -.97339E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.16542
  Prefactor  = 0.0001
  norm       = 6.41659
  Prefactor  = 0.0001
  Prefactor  = 7.47762
  norm       = 2.00754
  Prefactor  = 0.0001
  Prefactor  = 7.08874
  norm       = 2.38727
  Prefactor  = 2.76227
  Prefactor  = 20.2105
  norm       = 2.31786
  Prefactor  = 5.97566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1625
  Prefactor  = 2.32206
  norm       = 0.42855
  Prefactor  = 11.0404
  Prefactor  = 0.0001
  Normalizat = 1.31307
  Prefactor  = 0.608182
 **********
 **   18 **HESSE 
 **********

 FCN=   7785.101     FROM HESSE     STATUS=OK           350 CALLS     2740 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1654        14.597        .19750E-03   -1.5300    
   2  Prefactor     .10000E-03    1.6263        .10969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.4166        9.9700        .15845E-03   -1.5201    
   4  Prefactor     .10000E-03    5.9461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4776        9.3664        .14667E-03   -1.5161    
   6  norm          2.0075        1.3361        .80655E-04   -1.5425    
   7  Prefactor     .10000E-03    11.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0887        7.9151        .15067E-03   -1.5175    
   9  norm          2.3873        3.3685        .17351E-03   -1.5399    
  10  Prefactor     2.7623        21.667        .24482E-03   -1.5376    
  11  Prefactor     20.210        11.450        .89070E-04   -1.4809    
  12  norm          2.3179        .83810        .37919E-04   -1.5403    
  13  Prefactor     5.9757        35.060        .16425E-03   -1.5219    
  14  Prefactor     .10000E-03    16.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2192        .15437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1625        5.1971        .28007E-03   -1.5414    
  17  Prefactor     2.3221        127.85        .26444E-03   -1.5403    
  18  norm          .42855        1.5537        .20282E-03   -1.5577    
  19  Prefactor     11.040        25.228        .12051E-03   -1.5043    
  20  Prefactor     .10000E-03    78.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3131        .19371        .21244E-03   -.83177    
  22  Prefactor     .60818        .17794        .29034E-03   -1.0724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36287e-10
Minuit parameter uncertainties:
  1  14.6094
  2  2.06426e-06
  3  9.97253
  4  4.92125e-06
  5  9.36828
  6  1.33611
  7  4.35096e-06
  8  7.91623
  9  3.36879
  10  15.48
  11  11.4516
  12  0.838101
  13  28.9739
  14  3.07846e-05
  15  4.90985e-06
  16  5.19817
  17  34.5374
  18  1.55388
  19  25.2519
  20  0.000125713
  21  0.19382
  22  0.178108
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.021e+01  1.145e+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:  6.082e-01  1.781e-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.313e+00  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.08
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 7.82e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.55e-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) = 7784.6644742
delta logL = 0.436158743928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7784.66381185
delta logL = 0.436821097381

Fit tolerance = 1e-08

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

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

 FCN=   7784.664     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.022        8.7115        .22378E-02    .89849E-03
   2  Index         2.5274        .36348        .19376       -.82479E-04
   3  Normalizat    1.3472        .15251        .47573E-01    .17407E-05
   4  Prefactor     .58179        .14587        .66916E-01    .37264E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0217
  Index      = 2.52745
  Normalizat = 1.34717
  Prefactor  = 0.581793
 **********
 **   18 **HESSE 
 **********

 FCN=   7784.664     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.022        9.0655        .89512E-04   -1.4813    
   2  Index         2.5274        .46195        .70263E-02   -.51727    
   3  Normalizat    1.3472        .18455        .21030E-03   -.82169    
   4  Prefactor     .58179        .17394        .29614E-03   -1.0836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73331e-10
Minuit parameter uncertainties:
  1  9.06613
  2  0.462828
  3  0.184645
  4  0.174098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592843': 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) = 7784.66381165
delta logL = 0.436821303158

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.002e+01  9.066e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.527e+00  4.628e-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:  5.818e-01  1.741e-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.347e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.63
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.53 +/- 0.46
Photon Flux (Free Index): 1.18e-07 +/- 5.81e-08
Energy Flux (Free Index): 3.32e-05 +/- 1.64e-05

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/592843/cmap_HighResolution_534556801_534816001_4FGL_J2256.0-2740_daily_bin1139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='3.32e-05', photon_flux_error='7.82e-08', dlogl='4.37e-01', energy_flux='2.73e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-29 02:57:55.023888', photon_index_error2='0.46', photon_index2='2.53', ts='8.08', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.31', time_epoch_completed='1632909475.02', return_code='0', job_id='592843', GAL2='0.58', EG2='1.35', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='5.81e-08', ts2='9.63', photon_index='3.02' WHERE bin_id='1139' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 592843: <4FGL_J2256.0-2740_daily_bin1139> in cluster <slac> Done

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

Your job looked like:

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

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

