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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1025
RA = 344.025, Dec = -27.6739
tmin = 505008001, tmax = 505267201
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='592685', job_status='RUN', time_executed='2021-09-29 02:49:32.467907', time_epoch_executed='1632908972.47' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592685/ft1_4FGL_J2256.0-2740_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592685/ft2_4FGL_J2256.0-2740_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592685/ft1_4FGL_J2256.0-2740_daily_bin1025.fits outfile=/scratch/kocevski/592685/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1025.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=505008001.0 tmax=505267201.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.52
user 4.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592685/ft1_filtered_4FGL_J2256.0-2740_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/592685/ft2_4FGL_J2256.0-2740_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/592685/ltcube_505008001_505267201_4FGL_J2256.0-2740_daily_bin1025.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/592685/ft2_4FGL_J2256.0-2740_daily_bin1025.fits
.....................!
real 12.18
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592685/ft1_filtered_4FGL_J2256.0-2740_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/592685/ft2_4FGL_J2256.0-2740_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/592685/ltcube_505008001_505267201_4FGL_J2256.0-2740_daily_bin1025.fits outfile=/scratch/kocevski/592685/expmap_505008001_505267201_4FGL_J2256.0-2740_daily_bin1025.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/592685/ltcube_505008001_505267201_4FGL_J2256.0-2740_daily_bin1025.fits
.....................!
real 190.77
user 185.41
sys 4.98

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/592685/ft1_filtered_4FGL_J2256.0-2740_daily_bin1025.fits scfile=/scratch/kocevski/592685/ft2_4FGL_J2256.0-2740_daily_bin1025.fits outfile=/scratch/kocevski/592685/cmap_505008001_505267201_4FGL_J2256.0-2740_daily_bin1025.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592685/ft1_filtered_4FGL_J2256.0-2740_daily_bin1025.fits scfile=/scratch/kocevski/592685/ft2_4FGL_J2256.0-2740_daily_bin1025.fits outfile=/scratch/kocevski/592685/cmap_HighResolution_505008001_505267201_4FGL_J2256.0-2740_daily_bin1025.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592685/ft1_filtered_4FGL_J2256.0-2740_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/592685/ft2_4FGL_J2256.0-2740_daily_bin1025.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592685/Model_4FGL_J2256.0-2740_daily_bin1025.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/592685/ft1_filtered_4FGL_J2256.0-2740_daily_bin1025.fits....................!
real 60.06
user 58.69
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.923       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    29.017       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1095       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12609E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4634       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .33777       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2866       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2100       1.0000         .10000E-03   10000.    
    12 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8572       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4246       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0443       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.212       1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.390       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1142       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97159       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8230.377     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2409 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.923        11.467         .0000        .23855E-03
   2  Prefactor     .10000E-03    5.8301         .0000    ** at limit **
   3  norm          29.014        17.708         .0000        .13696E-04
   4  Prefactor     2.1091        16.762         .0000        .44769E-02
   5  Prefactor     .10048E-03    5.5047         .0000    ** at limit **
   6  norm          2.4617        1.6457         .0000        .21813E-02
   7  Prefactor     .10015E-03    66.642         .0000    ** at limit **
   8  Prefactor     .10000E-03    19.483         .0000    ** at limit **
   9  norm          .33117        2.3910         .0000        .51814E-03
  10  Prefactor     6.2881        7.9859         .0000       -.22339E-03
  11  Prefactor     4.2198        11.123         .0000        .86127E-02
  12  norm          .10000E-03    .20802         .0000    ** at limit **
  13  Prefactor     .10016E-03    51.147         .0000    ** at limit **
  14  Prefactor     .10000E-03    4.0553         .0000    ** at limit **
  15  Prefactor     8.8556        10.115         .0000        .19311E-02
  16  norm          4.4249        4.5755         .0000        .10619E-02
  17  Prefactor     .10000E-03    10.254         .0000    ** at limit **
  18  norm          4.0440        2.8779         .0000        .33456E-03
  19  Prefactor     21.211        24.696         .0000        .27025E-03
  20  Prefactor     50.390        93.351         .0000        .47166E-03
  21  Normalizat    1.1143        .16319         .0000        .75221E-03
  22  Prefactor     .97146        .15197         .0000        .39014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9228
  Prefactor  = 0.0001
  norm       = 29.014
  Prefactor  = 2.10909
  Prefactor  = 0.000100484
  norm       = 2.46171
  Prefactor  = 0.000100146
  Prefactor  = 0.000100001
  norm       = 0.331174
  Prefactor  = 6.28807
  Prefactor  = 4.21984
  norm       = 0.0001
  Prefactor  = 0.000100161
  Prefactor  = 0.000100004
  Prefactor  = 8.85561
  norm       = 4.42494
  Prefactor  = 0.000100001
  norm       = 4.044
  Prefactor  = 21.2112
  Prefactor  = 50.3898
  Normalizat = 1.1143
  Prefactor  = 0.971455
 **********
 **   18 **HESSE 
 **********

 FCN=   8230.377     FROM HESSE     STATUS=OK           342 CALLS     2751 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.923        11.467        .10037E-03   -1.4910    
   2  Prefactor     .10000E-03    5.9326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          29.014        17.692        .74375E-04   -1.4630    
   4  Prefactor     2.1091        16.773        .14203E-02   -1.5418    
   5  Prefactor     .10048E-03    53.071        .40557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4617        1.6377        .91406E-04   -1.5394    
   7  Prefactor     .10015E-03    67.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .33117        11.472        .22045E-02   -1.5593    
  10  Prefactor     6.2881        7.9752        .16010E-03   -1.5206    
  11  Prefactor     4.2198        10.690        .98200E-03   -1.5297    
  12  norm          .10000E-03    .26363        .73652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10016E-03    51.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0637        .17842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.8556        9.9648        .13468E-03   -1.5113    
  16  norm          4.4249        4.5749        .19145E-03   -1.5287    
  17  Prefactor     .10000E-03    10.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0440        2.8681        .11990E-03   -1.5306    
  19  Prefactor     21.211        24.654        .86967E-04   -1.4787    
  20  Prefactor     50.390        93.562        .56494E-04   -1.4287    
  21  Normalizat    1.1143        .19136        .23622E-03   -.89294    
  22  Prefactor     .97146        .17901        .24700E-03   -.93687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16426e-08
Minuit parameter uncertainties:
  1  11.4689
  2  6.31537e-06
  3  17.6956
  4  11.8998
  5  0.0101443
  6  1.6377
  7  0.00626931
  8  0.000321263
  9  3.89856
  10  7.97655
  11  10.6948
  12  7.58236e-06
  13  0.00576539
  14  0.000268689
  15  9.96663
  16  4.57522
  17  0.000154426
  18  2.8682
  19  24.6655
  20  93.8368
  21  0.191481
  22  0.179122
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  9.715e-01  1.791e-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.114e+00  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592685/likelihoodResults_505008001_505267201_4FGL_J2256.0-2740_daily_bin1025.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) = 8230.03058983
delta logL = 0.346804266324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8230.03052599
delta logL = 0.346868101797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1554       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3966       1.0000          .0000       10.000    
     3 'Normalizat'    1.0759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99744       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=   8230.031     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      273 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1542        8.4596        .17272E-03    .22313E-03
   2  Index         4.3972        2.5884        .18470E-01    .32777E-04
   3  Normalizat    1.0760        .18915        .23980E-03   -.11985E-02
   4  Prefactor     .99744        .17947        .24417E-03   -.83469E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.15423
  Index      = 4.39722
  Normalizat = 1.07599
  Prefactor  = 0.99744
 **********
 **   18 **HESSE 
 **********

 FCN=   8230.031     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1542        6.7628        .69089E-05   -1.5300    
   2  Index         4.3972        2.1035        .73879E-03   -.12085    
   3  Normalizat    1.0760        .18948        .47961E-04   -.90526    
   4  Prefactor     .99744        .17977        .48835E-04   -.92815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6157e-09
Minuit parameter uncertainties:
  1  6.76408
  2  2.1722
  3  0.189603
  4  0.179874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592685': 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) = 8230.03052552
delta logL = 0.346868578685

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.154e+00  6.764e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.397e+00  2.172e+00  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.974e-01  1.799e-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.076e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.40 +/- 2.17
Photon Flux (Free Index): 5.60e-08 +/- 5.84e-08
Energy Flux (Free Index): 7.92e-06 +/- 8.54e-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/592685/cmap_HighResolution_505008001_505267201_4FGL_J2256.0-2740_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='7.92e-06', dlogl='3.47e-01', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-09-29 03:01:56.381463', photon_index_error2='2.17', photon_index2='4.40', ts='0.36', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='8.54e-06', EG='1.11', time_epoch_completed='1632909716.38', return_code='0', job_id='592685', GAL2='1.00', EG2='1.08', return_code2='0', photon_flux_error2='5.84e-08', ts2='1.15', photon_index='3.02' WHERE bin_id='1025' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:01:56 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1025 344.025 -27.6739 505008001 505267201 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 :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

