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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1019
RA = 344.025, Dec = -27.6739
tmin = 503452801, tmax = 503712001
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='592677', job_status='RUN', time_executed='2021-09-29 02:46:07.991311', time_epoch_executed='1632908767.99' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592677/ft1_4FGL_J2256.0-2740_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592677/ft2_4FGL_J2256.0-2740_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592677/ft1_4FGL_J2256.0-2740_daily_bin1019.fits outfile=/scratch/kocevski/592677/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1019.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.81
user 7.49
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592677/ft1_filtered_4FGL_J2256.0-2740_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/592677/ft2_4FGL_J2256.0-2740_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/592677/ltcube_503452801_503712001_4FGL_J2256.0-2740_daily_bin1019.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/592677/ft2_4FGL_J2256.0-2740_daily_bin1019.fits
.....................!
real 11.45
user 11.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592677/ft1_filtered_4FGL_J2256.0-2740_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/592677/ft2_4FGL_J2256.0-2740_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/592677/ltcube_503452801_503712001_4FGL_J2256.0-2740_daily_bin1019.fits outfile=/scratch/kocevski/592677/expmap_503452801_503712001_4FGL_J2256.0-2740_daily_bin1019.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/592677/ltcube_503452801_503712001_4FGL_J2256.0-2740_daily_bin1019.fits
.....................!
real 190.70
user 185.99
sys 4.38

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/592677/ft1_filtered_4FGL_J2256.0-2740_daily_bin1019.fits scfile=/scratch/kocevski/592677/ft2_4FGL_J2256.0-2740_daily_bin1019.fits outfile=/scratch/kocevski/592677/cmap_503452801_503712001_4FGL_J2256.0-2740_daily_bin1019.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592677/ft1_filtered_4FGL_J2256.0-2740_daily_bin1019.fits scfile=/scratch/kocevski/592677/ft2_4FGL_J2256.0-2740_daily_bin1019.fits outfile=/scratch/kocevski/592677/cmap_HighResolution_503452801_503712001_4FGL_J2256.0-2740_daily_bin1019.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592677/ft1_filtered_4FGL_J2256.0-2740_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/592677/ft2_4FGL_J2256.0-2740_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592677/Model_4FGL_J2256.0-2740_daily_bin1019.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/592677/ft1_filtered_4FGL_J2256.0-2740_daily_bin1019.fits.....................!
real 62.91
user 61.63
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.902       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    34.420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.611       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5963       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9244       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9591       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.877       1.0000         .10000E-03   10000.    
    12 'norm      '    .15737       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8908       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57618E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    4.2071       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .84396       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0950       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96969       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91325       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=   8509.565     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2110 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.910        13.671        .27892E-07    .11752E-04
   2  Prefactor     .10000E-03    4.0282        .29433E-06** at limit **
   3  norm          34.426        19.197       -.10046E-06   -.47723E-05
   4  Prefactor     13.627        23.025       -.19921E-08   -.12476E-04
   5  Prefactor     12.610        10.328        .18355E-06   -.50136E-04
   6  norm          1.5965        1.5249        .54607E-07   -.79037E-04
   7  Prefactor     .10000E-03    59.061       -.90368E-06** at limit **
   8  Prefactor     2.9271        11.654        .69603E-06   -.66840E-04
   9  norm          1.9606        2.2257       -.67447E-07   -.25495E-03
  10  Prefactor     .10000E-03    5.1167        .78591E-07** at limit **
  11  Prefactor     12.842        9.1000       -.32036E-06   -.59051E-03
  12  norm          .15701        .39899        .30219E-06    .11216E-02
  13  Prefactor     .10000E-03    20.812       -.24766E-05** at limit **
  14  Prefactor     4.8906        10.776        .21928E-05   -.43839E-04
  15  Prefactor     .14559        4.7014        .21620E-06   -.19467E-03
  16  norm          4.2072        4.3988        .23445E-08   -.86589E-05
  17  Prefactor     .10000E-03    19.371        .20006E-05** at limit **
  18  norm          .84275        2.4277        .32683E-06    .11002E-03
  19  Prefactor     1.0797        15.465       -.13080E-05    .14453E-03
  20  Prefactor     .10000E-03    27.012        .80497E-06** at limit **
  21  Normalizat    .96972        .15693       -.54407E-06   -.21463E-03
  22  Prefactor     .91317        .14058       -.18293E-06   -.19777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.9098
  Prefactor  = 0.0001
  norm       = 34.4261
  Prefactor  = 13.6269
  Prefactor  = 12.6099
  norm       = 1.59653
  Prefactor  = 0.0001
  Prefactor  = 2.92711
  norm       = 1.96064
  Prefactor  = 0.0001
  Prefactor  = 12.8424
  norm       = 0.157012
  Prefactor  = 0.000100001
  Prefactor  = 4.89057
  Prefactor  = 0.145593
  norm       = 4.20715
  Prefactor  = 0.000100001
  norm       = 0.842747
  Prefactor  = 1.07967
  Prefactor  = 0.0001
  Normalizat = 0.969721
  Prefactor  = 0.913168
 **********
 **   18 **HESSE 
 **********

 FCN=   8509.565     FROM HESSE     STATUS=OK           360 CALLS     2470 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.910        13.667        .74523E-04   -1.4632    
   2  Prefactor     .10000E-03    13.871        .35068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          34.426        19.159        .68305E-04   -1.4534    
   4  Prefactor     13.627        22.722        .10854E-03   -1.4970    
   5  Prefactor     12.610        10.365        .11280E-03   -1.4998    
   6  norm          1.5965        1.5049        .10644E-03   -1.5455    
   7  Prefactor     .10000E-03    59.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9271        11.652        .23755E-03   -1.5366    
   9  norm          1.9606        2.2104        .13678E-03   -1.5428    
  10  Prefactor     .10000E-03    5.1279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.842        9.5384        .55813E-03   -1.4991    
  12  norm          .15701        .36299        .73466E-03   -1.5629    
  13  Prefactor     .10000E-03    19.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8906        10.821        .90940E-03   -1.5266    
  15  Prefactor     .14559        94.381        .33170E-02   -1.5632    
  16  norm          4.2072        4.4010        .19276E-03   -1.5298    
  17  Prefactor     .10000E-03    18.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .84275        2.3905        .21940E-03   -1.5524    
  19  Prefactor     1.0797        66.450        .62140E-02   -1.5500    
  20  Prefactor     .10000E-03    26.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96972        .18904        .23863E-03   -.94052    
  22  Prefactor     .91317        .16950        .23638E-03   -.95682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29727e-09
Minuit parameter uncertainties:
  1  13.6683
  2  9.15359e-05
  3  19.1628
  4  22.7362
  5  10.3665
  6  1.50491
  7  0.000251857
  8  11.6614
  9  2.21047
  10  2.06354e-07
  11  9.5395
  12  0.362997
  13  0.000252441
  14  10.8253
  15  7.42305
  16  4.40131
  17  0.000197674
  18  2.39078
  19  16.9593
  20  9.03484e-05
  21  0.189169
  22  0.169597
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.284e+01  9.539e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  9.132e-01  1.696e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.697e-01  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 8.79e-08 +/- 6.52e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.29e-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) = 8509.30894512
delta logL = 0.256180349194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8509.30453234
delta logL = 0.260593125748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.202       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4862       1.0000          .0000       10.000    
     3 'Normalizat'    .94838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92937       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=   8509.305     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.201        6.9567        .11468E-03    .31083E-02
   2  Index         3.4866        .70848        .10827E-01    .45555E-03
   3  Normalizat    .94842        .17854        .24094E-03   -.31170E-03
   4  Prefactor     .92934        .16766        .23458E-03   -.19744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2008
  Index      = 3.48663
  Normalizat = 0.948417
  Prefactor  = 0.92934
 **********
 **   18 **HESSE 
 **********

 FCN=   8509.305     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.201        6.8340        .45872E-05   -1.5009    
   2  Index         3.4866        .69575        .43308E-03   -.30750    
   3  Normalizat    .94842        .17888        .96378E-05   -.94779    
   4  Prefactor     .92934        .16791        .93832E-05   -.95123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47561e-09
Minuit parameter uncertainties:
  1  6.83439
  2  0.698247
  3  0.178988
  4  0.168001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592677': 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) = 8509.30453212
delta logL = 0.2605933507

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.220e+01  6.834e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.487e+00  6.982e-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:  9.293e-01  1.680e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.484e-01  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.10
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.49 +/- 0.70
Photon Flux (Free Index): 1.02e-07 +/- 5.31e-08
Energy Flux (Free Index): 1.70e-05 +/- 8.84e-06

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/592677/cmap_HighResolution_503452801_503712001_4FGL_J2256.0-2740_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.79e-08', energy_flux2='1.70e-05', photon_flux_error='6.52e-08', dlogl='2.61e-01', energy_flux='1.73e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-29 02:57:00.123110', photon_index_error2='0.70', photon_index2='3.49', ts='4.41', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='8.84e-06', EG='0.97', time_epoch_completed='1632909420.12', return_code='0', job_id='592677', GAL2='0.93', EG2='0.95', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.31e-08', ts2='5.10', photon_index='3.02' WHERE bin_id='1019' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 592677: <4FGL_J2256.0-2740_daily_bin1019> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1019> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:43 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:45:44 2021
Terminated at Wed Sep 29 02:57:00 2021
Results reported at Wed Sep 29 02:57:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1019 344.025 -27.6739 503452801 503712001 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.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            677 sec.

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

