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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1121
RA = 344.025, Dec = -27.6739
tmin = 529891201, tmax = 530150401
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='592825', job_status='RUN', time_executed='2021-09-29 02:47:46.060524', time_epoch_executed='1632908866.06' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592825/ft1_4FGL_J2256.0-2740_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592825/ft2_4FGL_J2256.0-2740_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592825/ft1_4FGL_J2256.0-2740_daily_bin1121.fits outfile=/scratch/kocevski/592825/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1121.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=529891201.0 tmax=530150401.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.53
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592825/ft1_filtered_4FGL_J2256.0-2740_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/592825/ft2_4FGL_J2256.0-2740_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/592825/ltcube_529891201_530150401_4FGL_J2256.0-2740_daily_bin1121.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/592825/ft2_4FGL_J2256.0-2740_daily_bin1121.fits
.....................!
real 12.17
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592825/ft1_filtered_4FGL_J2256.0-2740_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/592825/ft2_4FGL_J2256.0-2740_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/592825/ltcube_529891201_530150401_4FGL_J2256.0-2740_daily_bin1121.fits outfile=/scratch/kocevski/592825/expmap_529891201_530150401_4FGL_J2256.0-2740_daily_bin1121.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/592825/ltcube_529891201_530150401_4FGL_J2256.0-2740_daily_bin1121.fits
.....................!
real 189.16
user 184.60
sys 4.23

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/592825/ft1_filtered_4FGL_J2256.0-2740_daily_bin1121.fits scfile=/scratch/kocevski/592825/ft2_4FGL_J2256.0-2740_daily_bin1121.fits outfile=/scratch/kocevski/592825/cmap_529891201_530150401_4FGL_J2256.0-2740_daily_bin1121.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592825/ft1_filtered_4FGL_J2256.0-2740_daily_bin1121.fits scfile=/scratch/kocevski/592825/ft2_4FGL_J2256.0-2740_daily_bin1121.fits outfile=/scratch/kocevski/592825/cmap_HighResolution_529891201_530150401_4FGL_J2256.0-2740_daily_bin1121.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.847       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    31.245       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6163       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6087       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6189       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.247       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8899       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2352       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4466       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .74943       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.858       1.0000         .10000E-03   10000.    
    16 'norm      '    .41272E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.564       1.0000         .10000E-03   10000.    
    18 'norm      '    8.3974       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.713       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0299       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65920       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=   7679.009     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2437 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.857        12.143         .0000       -.24933E-02
   2  Prefactor     .10000E-03    1.8423         .0000    ** at limit **
   3  norm          31.243        16.021         .0000       -.20723E-02
   4  Prefactor     .10000E-03    10.094         .0000    ** at limit **
   5  Prefactor     3.6203        7.6566         .0000       -.21176E-02
   6  norm          2.6086        1.8261         .0000       -.46101E-04
   7  Prefactor     6.6263        21.474         .0000        .21962E-02
   8  Prefactor     11.245        8.2651         .0000       -.35210E-03
   9  norm          2.8888        3.9054         .0000        .59938E-03
  10  Prefactor     .10000E-03    5.0319         .0000    ** at limit **
  11  Prefactor     1.2246        36.118         .0000        .23326E-01
  12  norm          2.4470        .90301         .0000       -.12126E-02
  13  Prefactor     .10000E-03    25.629         .0000    ** at limit **
  14  Prefactor     .74950        7.4522         .0000        .31174E-03
  15  Prefactor     11.852        11.116         .0000       -.13032E-02
  16  norm          .10291E-03    4.6221         .0000    ** at limit **
  17  Prefactor     21.550        34.807         .0000       -.22237E-02
  18  norm          8.3971        2.9804         .0000       -.26657E-03
  19  Prefactor     32.717        23.683         .0000        .31625E-02
  20  Prefactor     .10000E-03    33.869         .0000    ** at limit **
  21  Normalizat    1.0301        .15330         .0000        .70111E-04
  22  Prefactor     .65901        .14229         .0000        .29016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8567
  Prefactor  = 0.0001
  norm       = 31.2425
  Prefactor  = 0.0001
  Prefactor  = 3.62032
  norm       = 2.60855
  Prefactor  = 6.62632
  Prefactor  = 11.2453
  norm       = 2.88878
  Prefactor  = 0.0001
  Prefactor  = 1.22461
  norm       = 2.44705
  Prefactor  = 0.0001
  Prefactor  = 0.749503
  Prefactor  = 11.8523
  norm       = 0.000102915
  Prefactor  = 21.5504
  norm       = 8.39711
  Prefactor  = 32.7174
  Prefactor  = 0.0001
  Normalizat = 1.03012
  Prefactor  = 0.659015
 **********
 **   18 **HESSE 
 **********

 FCN=   7679.009     FROM HESSE     STATUS=OK           354 CALLS     2791 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.857        12.145        .85694E-04   -1.4773    
   2  Prefactor     .10000E-03    1.8532        .11614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          31.243        16.017        .35841E-03   -1.4589    
   4  Prefactor     .10000E-03    10.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6203        7.6367        .21247E-03   -1.5327    
   6  norm          2.6086        1.8416        .85196E-04   -1.5385    
   7  Prefactor     6.6263        21.663        .15598E-03   -1.5193    
   8  Prefactor     11.245        8.2754        .11946E-03   -1.5037    
   9  norm          2.8888        3.6154        .16219E-03   -1.5368    
  10  Prefactor     .10000E-03    5.0300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2246        24.844        .20204E-02   -1.5487    
  12  norm          2.4470        .84915        .33777E-04   -1.5395    
  13  Prefactor     .10000E-03    25.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .74950        26.907        .45935E-02   -1.5535    
  15  Prefactor     11.852        10.128        .11633E-03   -1.5019    
  16  norm          .10291E-03    5.5076        .54748E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.550        34.976        .86255E-04   -1.4779    
  18  norm          8.3971        2.9806        .85427E-04   -1.5128    
  19  Prefactor     32.717        23.710        .70059E-04   -1.4563    
  20  Prefactor     .10000E-03    33.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0301        .17881        .21706E-03   -.92028    
  22  Prefactor     .65901        .16639        .26038E-03   -1.0516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03514e-07
Minuit parameter uncertainties:
  1  12.1466
  2  6.44986e-06
  3  16.019
  4  4.28066e-05
  5  7.63873
  6  1.8416
  7  21.6889
  8  8.27621
  9  3.61566
  10  5.2075e-05
  11  11.0364
  12  0.849157
  13  0.000155014
  14  8.9853
  15  10.1298
  16  0.00801396
  17  35.0094
  18  2.98068
  19  23.717
  20  5.03916e-05
  21  0.178916
  22  0.166512
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.225e+00  1.104e+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.590e-01  1.665e-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.030e+00  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592825/likelihoodResults_529891201_530150401_4FGL_J2256.0-2740_daily_bin1121.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) = 7678.95375837
delta logL = 0.0555266410165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7678.94863692
delta logL = 0.0606480850338

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7678.949     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      271 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7261        6.8063        .27650E-03    .25904E-05
   2  Index         4.0905        3.7143        .28400E-01    .40491E-05
   3  Normalizat    1.0175        .17171        .21815E-03    .10423E-06
   4  Prefactor     .66704        .16414        .25891E-03   -.43910E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72607
  Index      = 4.09055
  Normalizat = 1.01753
  Prefactor  = 0.667037
 **********
 **   18 **HESSE 
 **********

 FCN=   7678.949     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .27E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7261        5.6655        .11060E-04   -1.5445    
   2  Index         4.0905        3.2155        .11360E-02   -.18291    
   3  Normalizat    1.0175        .17187        .87259E-05   -.92445    
   4  Prefactor     .66704        .16439        .10356E-04   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7408e-15
Minuit parameter uncertainties:
  1  5.66721
  2  3.50488
  3  0.171964
  4  0.164506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592825': 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) = 7678.94863687
delta logL = 0.060648140774

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.726e+00  5.667e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.091e+00  3.505e+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:  6.670e-01  1.645e-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.018e+00  1.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 344.025 -27.674

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/592825/cmap_HighResolution_529891201_530150401_4FGL_J2256.0-2740_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-29 03:00:02.665378', job_id='592825', GAL2='0.67', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1632909602.67', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='6.06e-02', ts2='0.16', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1121' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 592825: <4FGL_J2256.0-2740_daily_bin1121> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1121 344.025 -27.6739 529891201 530150401 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 :                                   713.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            849 sec.

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

