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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1078
RA = 344.025, Dec = -27.6739
tmin = 518745601, tmax = 519004801
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='592764', job_status='RUN', time_executed='2021-09-29 02:49:14.343645', time_epoch_executed='1632908954.34' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1078'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592764/ft1_4FGL_J2256.0-2740_daily_bin1078.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592764/ft2_4FGL_J2256.0-2740_daily_bin1078.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592764/ft1_4FGL_J2256.0-2740_daily_bin1078.fits outfile=/scratch/kocevski/592764/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1078.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=518745601.0 tmax=519004801.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 4.35
user 4.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592764/ft1_filtered_4FGL_J2256.0-2740_daily_bin1078.fits" evtable="EVENTS" scfile=/scratch/kocevski/592764/ft2_4FGL_J2256.0-2740_daily_bin1078.fits sctable="SC_DATA" outfile=/scratch/kocevski/592764/ltcube_518745601_519004801_4FGL_J2256.0-2740_daily_bin1078.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/592764/ft2_4FGL_J2256.0-2740_daily_bin1078.fits
.....................!
real 11.55
user 11.23
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592764/ft1_filtered_4FGL_J2256.0-2740_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/592764/ft2_4FGL_J2256.0-2740_daily_bin1078.fits sctable="SC_DATA" expcube=/scratch/kocevski/592764/ltcube_518745601_519004801_4FGL_J2256.0-2740_daily_bin1078.fits outfile=/scratch/kocevski/592764/expmap_518745601_519004801_4FGL_J2256.0-2740_daily_bin1078.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/592764/ltcube_518745601_519004801_4FGL_J2256.0-2740_daily_bin1078.fits
.....................!
real 191.17
user 185.14
sys 5.68

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/592764/ft1_filtered_4FGL_J2256.0-2740_daily_bin1078.fits scfile=/scratch/kocevski/592764/ft2_4FGL_J2256.0-2740_daily_bin1078.fits outfile=/scratch/kocevski/592764/cmap_518745601_519004801_4FGL_J2256.0-2740_daily_bin1078.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592764/ft1_filtered_4FGL_J2256.0-2740_daily_bin1078.fits scfile=/scratch/kocevski/592764/ft2_4FGL_J2256.0-2740_daily_bin1078.fits outfile=/scratch/kocevski/592764/cmap_HighResolution_518745601_519004801_4FGL_J2256.0-2740_daily_bin1078.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592764/ft1_filtered_4FGL_J2256.0-2740_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/592764/ft2_4FGL_J2256.0-2740_daily_bin1078.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592764/Model_4FGL_J2256.0-2740_daily_bin1078.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/592764/ft1_filtered_4FGL_J2256.0-2740_daily_bin1078.fits.....................!
real 36.89
user 35.54
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.107       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5406       1.0000         .10000E-03   10000.    
     3 'norm      '    31.215       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1246       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3687       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.647       1.0000         .10000E-03   10000.    
     9 'norm      '    5.6969       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.790       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.026       1.0000         .10000E-03   10000.    
    12 'norm      '    .64212       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.707       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9582       1.0000         .10000E-03   10000.    
    16 'norm      '    18.558       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.225       1.0000         .10000E-03   10000.    
    18 'norm      '    .85338       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0942       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .61503       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=   3980.826     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2380 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.108        14.553       -.30133E-07   -.74965E-06
   2  Prefactor     3.5443        10.331        .26895E-05    .39451E-04
   3  norm          31.218        23.159       -.17422E-06    .20711E-04
   4  Prefactor     .10000E-03    11.687       -.10871E-07** at limit **
   5  Prefactor     3.1290        13.836        .29921E-05    .33652E-04
   6  norm          1.3688        1.5340       -.30118E-07    .24588E-04
   7  Prefactor     .10000E-03    18.597       -.97887E-07** at limit **
   8  Prefactor     15.653        17.495        .20110E-06    .54473E-04
   9  norm          5.6964        5.4191        .12664E-06    .18386E-03
  10  Prefactor     13.796        35.821       -.42409E-06    .12141E-03
  11  Prefactor     16.033        26.025        .33080E-05    .25709E-03
  12  norm          .64183        1.7630       -.12752E-05   -.92064E-03
  13  Prefactor     .10000E-03    42.762       -.73151E-06** at limit **
  14  Prefactor     11.707        12.646       -.93427E-07    .59484E-05
  15  Prefactor     4.9574        13.259        .92612E-06    .11176E-03
  16  norm          18.557        13.373        .55572E-06   -.15503E-05
  17  Prefactor     38.321        68.019       -.56732E-05    .18284E-03
  18  norm          .85437        2.2940       -.36212E-06   -.97531E-04
  19  Prefactor     .10000E-03    9.5308       -.60323E-07** at limit **
  20  Prefactor     .10000E-03    31.461        .42540E-06** at limit **
  21  Normalizat    1.0938        .25725       -.44680E-05    .25784E-03
  22  Prefactor     .61529        .22041        .53652E-05   -.27389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1082
  Prefactor  = 3.54435
  norm       = 31.2181
  Prefactor  = 0.0001
  Prefactor  = 3.12903
  norm       = 1.36879
  Prefactor  = 0.0001
  Prefactor  = 15.6526
  norm       = 5.69642
  Prefactor  = 13.7957
  Prefactor  = 16.0332
  norm       = 0.641834
  Prefactor  = 0.0001
  Prefactor  = 11.7068
  Prefactor  = 4.95736
  norm       = 18.5568
  Prefactor  = 38.321
  norm       = 0.854372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09383
  Prefactor  = 0.615287
 **********
 **   18 **HESSE 
 **********

 FCN=   3980.826     FROM HESSE     STATUS=OK           350 CALLS     2730 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.108        14.554        .11064E-03   -1.4984    
   2  Prefactor     3.5443        10.382        .10741E-02   -1.5331    
   3  norm          31.218        23.154        .71715E-04   -1.4590    
   4  Prefactor     .10000E-03    11.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1290        14.054        .11468E-02   -1.5354    
   6  norm          1.3688        1.5352        .80303E-04   -1.5474    
   7  Prefactor     .10000E-03    18.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.653        17.501        .10125E-03   -1.4916    
   9  norm          5.6964        5.3958        .12745E-03   -1.5231    
  10  Prefactor     13.796        35.225        .10786E-03   -1.4965    
  11  Prefactor     16.033        25.117        .10005E-03   -1.4907    
  12  norm          .64183        1.5774        .67663E-04   -1.5548    
  13  Prefactor     .10000E-03    42.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.707        12.650        .11708E-03   -1.5024    
  15  Prefactor     4.9574        12.995        .18061E-03   -1.5263    
  16  norm          18.557        13.330        .92974E-04   -1.4846    
  17  Prefactor     38.321        66.070        .64827E-04   -1.4469    
  18  norm          .85437        2.0324        .15154E-02   -1.5523    
  19  Prefactor     .10000E-03    9.5347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0938        .28141        .22358E-03   -.89950    
  22  Prefactor     .61529        .24246        .27238E-03   -1.0695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95712e-09
Minuit parameter uncertainties:
  1  14.5577
  2  10.3872
  3  23.1605
  4  8.14736e-06
  5  13.2676
  6  1.53528
  7  1.41215e-05
  8  17.5072
  9  5.39625
  10  35.2779
  11  25.134
  12  1.57752
  13  0.000111433
  14  12.6524
  15  13.0027
  16  13.3324
  17  66.1961
  18  2.03259
  19  3.9488e-06
  20  6.10417e-05
  21  0.281792
  22  0.242877
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.603e+01  2.513e+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.153e-01  2.429e-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.094e+00  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 1.72e-07
Energy Flux (Fixed Index): 2.17e-05 +/- 3.39e-05

TS (Fixed Index): 2.02
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 2.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592764/likelihoodResults_518745601_519004801_4FGL_J2256.0-2740_daily_bin1078.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) = 3980.59216717
delta logL = 0.233865591899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3980.58100094
delta logL = 0.245031817785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.355       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5900       1.0000          .0000       10.000    
     3 'Normalizat'    1.1077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60152       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=   3980.581     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      200 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.355        12.555        .24035E-02   -.18157E-02
   2  Index         2.5900        .50282        .16979       -.35851E-04
   3  Normalizat    1.1078        .20956        .37694E-01    .38884E-05
   4  Prefactor     .60152        .19534        .62135E-01    .15819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3548
  Index      = 2.58996
  Normalizat = 1.10776
  Prefactor  = 0.601523
 **********
 **   18 **HESSE 
 **********

 FCN=   3980.581     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.355        12.101        .96141E-04   -1.4875    
   2  Index         2.5900        .54055        .67326E-02   -.50295    
   3  Normalizat    1.1078        .24694        .22226E-03   -.89503    
   4  Prefactor     .60152        .22857        .27490E-03   -1.0752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54476e-09
Minuit parameter uncertainties:
  1  12.1024
  2  0.541931
  3  0.247197
  4  0.228926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592764': 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) = 3980.58100093
delta logL = 0.24503183233

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.735e+01  1.210e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.590e+00  5.419e-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:  6.015e-01  2.289e-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.108e+00  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.59 +/- 0.54
Photon Flux (Free Index): 1.04e-07 +/- 7.52e-08
Energy Flux (Free Index): 2.74e-05 +/- 2.05e-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/592764/cmap_HighResolution_518745601_519004801_4FGL_J2256.0-2740_daily_bin1078.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.13e-02', comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='2.74e-05', photon_flux_error='1.72e-07', dlogl='2.45e-01', energy_flux='2.17e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-29 02:57:45.598337', photon_index_error2='0.54', photon_index2='2.59', ts='2.02', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='2.66e-07', energy_flux_error2='2.05e-05', EG='1.09', time_epoch_completed='1632909465.6', return_code='0', job_id='592764', GAL2='0.60', EG2='1.11', return_code2='0', energy_flux_error='3.39e-05', photon_flux_error2='7.52e-08', ts2='2.71', photon_index='3.02' WHERE bin_id='1078' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 592764: <4FGL_J2256.0-2740_daily_bin1078> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1078 344.025 -27.6739 518745601 519004801 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 :                                   509.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

