/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 226 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 = 7420
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin295
RA = 344.025, Dec = -27.6739
tmin = 315792001, tmax = 316051201
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='589532', job_status='RUN', time_executed='2021-09-29 02:39:34.731636', time_epoch_executed='1632908374.73' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589532/ft1_4FGL_J2256.0-2740_daily_bin295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589532/ft2_4FGL_J2256.0-2740_daily_bin295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589532/ft1_4FGL_J2256.0-2740_daily_bin295.fits outfile=/scratch/kocevski/589532/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin295.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=315792001.0 tmax=316051201.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.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589532/ft1_filtered_4FGL_J2256.0-2740_daily_bin295.fits" evtable="EVENTS" scfile=/scratch/kocevski/589532/ft2_4FGL_J2256.0-2740_daily_bin295.fits sctable="SC_DATA" outfile=/scratch/kocevski/589532/ltcube_315792001_316051201_4FGL_J2256.0-2740_daily_bin295.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/589532/ft2_4FGL_J2256.0-2740_daily_bin295.fits
.....................!
real 11.74
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589532/ft1_filtered_4FGL_J2256.0-2740_daily_bin295.fits evtable="EVENTS" scfile=/scratch/kocevski/589532/ft2_4FGL_J2256.0-2740_daily_bin295.fits sctable="SC_DATA" expcube=/scratch/kocevski/589532/ltcube_315792001_316051201_4FGL_J2256.0-2740_daily_bin295.fits outfile=/scratch/kocevski/589532/expmap_315792001_316051201_4FGL_J2256.0-2740_daily_bin295.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/589532/ltcube_315792001_316051201_4FGL_J2256.0-2740_daily_bin295.fits
.....................!
real 190.98
user 185.72
sys 4.90

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/589532/ft1_filtered_4FGL_J2256.0-2740_daily_bin295.fits scfile=/scratch/kocevski/589532/ft2_4FGL_J2256.0-2740_daily_bin295.fits outfile=/scratch/kocevski/589532/cmap_315792001_316051201_4FGL_J2256.0-2740_daily_bin295.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1341       1.0000         .10000E-03   10000.    
     3 'norm      '    .11346E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.504       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.7107       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5455       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8695       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.809       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.421       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5478       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6684       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .97826       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.879       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74433       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2585       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=   5259.853     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2435 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.677        .61287E-07** at limit **
   2  Prefactor     2.1340        8.2290       -.11202E-06   -.37517E-03
   3  norm          .10000E-03    58.331       -.46165E-05** at limit **
   4  Prefactor     13.507        22.617        .16420E-05   -.28603E-04
   5  Prefactor     .10000E-03    5.6260       -.59715E-06** at limit **
   6  norm          3.7058        3.9211       -.12711E-04    .19394E-03
   7  Prefactor     39.927        73.975        .11455E-03   -.32820E-04
   8  Prefactor     6.5497        14.079        .27459E-05   -.86494E-04
   9  norm          1.8693        2.4629       -.10940E-06   -.10684E-03
  10  Prefactor     .10000E-03    10.732        .16839E-06** at limit **
  11  Prefactor     26.809        14.745       -.47467E-05    .81574E-04
  12  norm          1.2150        .85044        .43313E-06   -.17417E-02
  13  Prefactor     .10000E-03    27.611        .66952E-06** at limit **
  14  Prefactor     43.425        25.227        .53131E-06   -.63101E-05
  15  Prefactor     8.5468        10.455       -.55390E-06   -.10273E-03
  16  norm          5.6684        7.8300        .51039E-06   -.13432E-03
  17  Prefactor     .10000E-03    15.237        .19971E-08** at limit **
  18  norm          .97733        2.8459        .95302E-08   -.58138E-03
  19  Prefactor     17.880        28.974        .18596E-05   -.21130E-04
  20  Prefactor     .10000E-03    106.20        .11563E-04** at limit **
  21  Normalizat    .74391        .21846       -.89631E-05    .13594E-03
  22  Prefactor     1.2588        .20233        .14242E-05   -.24406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.134
  norm       = 0.000100002
  Prefactor  = 13.5066
  Prefactor  = 0.000100001
  norm       = 3.70576
  Prefactor  = 39.9271
  Prefactor  = 6.5497
  norm       = 1.86929
  Prefactor  = 0.0001
  Prefactor  = 26.8086
  norm       = 1.21503
  Prefactor  = 0.0001
  Prefactor  = 43.4247
  Prefactor  = 8.54677
  norm       = 5.66844
  Prefactor  = 0.0001
  norm       = 0.977328
  Prefactor  = 17.8798
  Prefactor  = 0.0001
  Normalizat = 0.743907
  Prefactor  = 1.25885
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.853     FROM HESSE     STATUS=OK           348 CALLS     2783 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1340        8.2052        .28219E-03   -1.5416    
   3  norm          .10000E-03    59.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.507        22.600        .10900E-03   -1.4973    
   5  Prefactor     .10000E-03    5.6370        .16800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.7058        3.9251        .10922E-03   -1.5323    
   7  Prefactor     39.927        73.913        .63507E-04   -1.4443    
   8  Prefactor     6.5497        14.123        .15686E-03   -1.5196    
   9  norm          1.8693        2.4459        .12583E-03   -1.5435    
  10  Prefactor     .10000E-03    10.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.809        14.949        .77371E-04   -1.4672    
  12  norm          1.2150        .85738        .44549E-04   -1.5488    
  13  Prefactor     .10000E-03    27.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     43.425        25.228        .60839E-04   -1.4389    
  15  Prefactor     8.5468        10.423        .13711E-03   -1.5123    
  16  norm          5.6684        7.8221        .16872E-03   -1.5232    
  17  Prefactor     .10000E-03    15.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .97733        2.7080        .19535E-02   -1.5510    
  19  Prefactor     17.880        28.743        .94722E-04   -1.4862    
  20  Prefactor     .10000E-03    106.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .74391        .26604        .30036E-03   -1.0218    
  22  Prefactor     1.2588        .24937        .23270E-03   -.84539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21825e-09
Minuit parameter uncertainties:
  1  2.49729e-05
  2  8.20956
  3  0.000706504
  4  22.6142
  5  0.000145737
  6  3.92536
  7  74.0838
  8  14.1304
  9  2.44606
  10  4.98076e-05
  11  14.951
  12  0.857387
  13  4.48512e-05
  14  25.234
  15  10.4252
  16  7.82353
  17  2.88333e-05
  18  2.70837
  19  28.7654
  20  0.000243567
  21  0.266507
  22  0.249609
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.681e+01  1.495e+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:  1.259e+00  2.496e-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:  7.439e-01  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.35
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.83e-07 +/- 1.02e-07
Energy Flux (Fixed Index): 3.62e-05 +/- 2.02e-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) = 5259.53932407
delta logL = 0.313461729555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5259.51890349
delta logL = 0.333882311033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.837       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5525       1.0000          .0000       10.000    
     3 'Normalizat'    .79204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2233       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=   5259.519     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      221 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.833        12.854       -.21569E-05    .88086E-04
   2  Index         2.5524        .51342       -.19873E-04   -.15821E-04
   3  Normalizat    .79210        .21773        .48079E-05    .11400E-03
   4  Prefactor     1.2232        .20535       -.26249E-05    .25542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8331
  Index      = 2.55243
  Normalizat = 0.792096
  Prefactor  = 1.22322
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.519     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.833        12.650        .80378E-04   -1.4711    
   2  Index         2.5524        .50512        .63184E-02   -.51153    
   3  Normalizat    .79210        .25798        .29224E-03   -1.0036    
   4  Prefactor     1.2232        .24709        .23549E-03   -.85620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19047e-10
Minuit parameter uncertainties:
  1  12.6511
  2  0.506259
  3  0.258381
  4  0.247321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589532': 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) = 5259.51890343
delta logL = 0.333882375205

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.483e+01  1.265e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.552e+00  5.063e-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.223e+00  2.473e-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:  7.921e-01  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.41
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.55 +/- 0.51
Photon Flux (Free Index): 1.47e-07 +/- 8.43e-08
Energy Flux (Free Index): 4.04e-05 +/- 1.89e-05

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/589532/cmap_HighResolution_315792001_316051201_4FGL_J2256.0-2740_daily_bin295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.83e-07', energy_flux2='4.04e-05', photon_flux_error='1.02e-07', dlogl='3.34e-01', energy_flux='3.62e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-29 02:48:26.327390', photon_index_error2='0.51', photon_index2='2.55', ts='7.35', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='0.74', time_epoch_completed='1632908906.33', return_code='0', job_id='589532', GAL2='1.22', EG2='0.79', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='8.43e-08', ts2='8.41', photon_index='3.02' WHERE bin_id='295' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:48:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 589532: <4FGL_J2256.0-2740_daily_bin295> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin295> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:38 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35: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:35:39 2021
Terminated at Wed Sep 29 02:48:26 2021
Results reported at Wed Sep 29 02:48:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin295 344.025 -27.6739 315792001 316051201 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 :                                   530.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            768 sec.

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

