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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1645
RA = 344.025, Dec = -27.6739
tmin = 665712001, tmax = 665971201
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='630671', job_status='RUN', time_executed='2022-02-08 00:40:55.873824', time_epoch_executed='1644309655.87' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630671/ft1_4FGL_J2256.0-2740_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630671/ft2_4FGL_J2256.0-2740_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630671/ft1_4FGL_J2256.0-2740_daily_bin1645.fits outfile=/scratch/kocevski/630671/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1645.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=665712001.0 tmax=665971201.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.69
user 3.42
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1645.fits" evtable="EVENTS" scfile=/scratch/kocevski/630671/ft2_4FGL_J2256.0-2740_daily_bin1645.fits sctable="SC_DATA" outfile=/scratch/kocevski/630671/ltcube_665712001_665971201_4FGL_J2256.0-2740_daily_bin1645.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/630671/ft2_4FGL_J2256.0-2740_daily_bin1645.fits
.....................!
real 17.01
user 16.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/630671/ft2_4FGL_J2256.0-2740_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/630671/ltcube_665712001_665971201_4FGL_J2256.0-2740_daily_bin1645.fits outfile=/scratch/kocevski/630671/expmap_665712001_665971201_4FGL_J2256.0-2740_daily_bin1645.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/630671/ltcube_665712001_665971201_4FGL_J2256.0-2740_daily_bin1645.fits
.....................!
real 194.60
user 188.86
sys 5.04

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/630671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1645.fits scfile=/scratch/kocevski/630671/ft2_4FGL_J2256.0-2740_daily_bin1645.fits outfile=/scratch/kocevski/630671/cmap_665712001_665971201_4FGL_J2256.0-2740_daily_bin1645.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1645.fits scfile=/scratch/kocevski/630671/ft2_4FGL_J2256.0-2740_daily_bin1645.fits outfile=/scratch/kocevski/630671/cmap_HighResolution_665712001_665971201_4FGL_J2256.0-2740_daily_bin1645.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.61
user 0.44
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/630671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/630671/ft2_4FGL_J2256.0-2740_daily_bin1645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/630671/Model_4FGL_J2256.0-2740_daily_bin1645.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/630671/ft1_filtered_4FGL_J2256.0-2740_daily_bin1645.fits....................!
real 46.27
user 44.80
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.3614       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0966       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15881E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.086       1.0000         .10000E-03   10000.    
     9 'norm      '    4.3982       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.102       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4417       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14918E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8644       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5309       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61761       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3739       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=   5518.900     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2339 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0762       -.19456E-07** at limit **
   2  Prefactor     .10000E-03    5.1717       -.44681E-07** at limit **
   3  norm          6.3550        17.525       -.31108E-06    .55795E-05
   4  Prefactor     .10000E-03    8.7565        .13509E-06** at limit **
   5  Prefactor     .10000E-03    14.356        .68233E-06** at limit **
   6  norm          2.0873        2.5327        .26130E-07   -.52372E-04
   7  Prefactor     .10000E-03    121.26        .32658E-06** at limit **
   8  Prefactor     11.089        11.320       -.19745E-06    .43209E-04
   9  norm          4.3990        5.1631       -.37375E-06    .17248E-03
  10  Prefactor     .10000E-03    10.218       -.10405E-05** at limit **
  11  Prefactor     26.081        15.836        .59873E-06    .32785E-03
  12  norm          1.4412        1.2295        .11300E-06    .10867E-02
  13  Prefactor     .10000E-03    20.497       -.31772E-05** at limit **
  14  Prefactor     .10000E-03    4.8241       -.29866E-07** at limit **
  15  Prefactor     .10000E-03    26.074       -.68344E-05** at limit **
  16  norm          2.8648        4.3468       -.24599E-06    .10825E-03
  17  Prefactor     .10000E-03    43.775       -.33658E-05** at limit **
  18  norm          2.5311        2.2018       -.62612E-08   -.29822E-04
  19  Prefactor     .10000E-03    24.017        .84974E-06** at limit **
  20  Prefactor     .10000E-03    39.550        .72815E-06** at limit **
  21  Normalizat    .61722        .19215        .40218E-06    .39565E-04
  22  Prefactor     1.3742        .19198        .15764E-06    .71256E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.35501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08729
  Prefactor  = 0.0001
  Prefactor  = 11.0891
  norm       = 4.39897
  Prefactor  = 0.0001
  Prefactor  = 26.0812
  norm       = 1.44121
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86482
  Prefactor  = 0.000100001
  norm       = 2.53107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.617216
  Prefactor  = 1.37417
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.900     FROM HESSE     STATUS=OK           340 CALLS     2679 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0811        .17885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2411        .16496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3550        17.493        .15914E-03   -1.5204    
   4  Prefactor     .10000E-03    8.7729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0873        2.5121        .12386E-03   -1.5419    
   7  Prefactor     .10000E-03    122.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.089        11.331        .12033E-03   -1.5042    
   9  norm          4.3990        5.1451        .16366E-03   -1.5288    
  10  Prefactor     .10000E-03    10.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.081        16.196        .78410E-04   -1.4686    
  12  norm          1.4412        1.2306        .51222E-04   -1.5468    
  13  Prefactor     .10000E-03    20.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8303        .15936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.867        .34163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8648        4.3286        .18552E-03   -1.5369    
  17  Prefactor     .10000E-03    43.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5311        2.1992        .99768E-04   -1.5390    
  19  Prefactor     .10000E-03    24.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .61722        .23125        .30369E-03   -1.0726    
  22  Prefactor     1.3742        .23237        .21706E-03   -.81127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36994e-10
Minuit parameter uncertainties:
  1  2.10605e-06
  2  5.62565e-06
  3  17.5068
  4  1.04546e-05
  5  8.79786e-05
  6  2.51225
  7  0.000477022
  8  11.3335
  9  5.14558
  10  7.59825e-06
  11  16.1984
  12  1.23059
  13  0.000207728
  14  8.83263e-07
  15  6.76658e-05
  16  4.32908
  17  0.00031777
  18  2.19927
  19  9.6981e-05
  20  8.26647e-05
  21  0.231615
  22  0.232546
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.374e+00  2.325e-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:  6.172e-01  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.29
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.78e-07 +/- 1.11e-07
Energy Flux (Fixed Index): 3.52e-05 +/- 2.19e-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) = 5518.89722739
delta logL = 0.00301590269919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5518.896519
delta logL = 0.00372429310937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.705       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0820       1.0000          .0000       10.000    
     3 'Normalizat'    .61330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3779       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=   5518.897     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      272 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.708        12.182        .79011E-04    .84605E-04
   2  Index         3.0818        .70865        .83199E-02    .15485E-04
   3  Normalizat    .61360        .23009        .30451E-03    .13377E-03
   4  Prefactor     1.3776        .23210        .21686E-03    .49489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7083
  Index      = 3.08175
  Normalizat = 0.613596
  Prefactor  = 1.37761
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.897     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.708        11.997        .31605E-05   -1.4693    
   2  Index         3.0818        .69780        .33280E-03   -.39374    
   3  Normalizat    .61360        .23044        .12180E-04   -1.0741    
   4  Prefactor     1.3776        .23232        .43372E-04   -.81028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24259e-11
Minuit parameter uncertainties:
  1  11.9982
  2  0.700484
  3  0.230806
  4  0.2325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630671': 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) = 5518.89651806
delta logL = 0.00372523367878

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.378e+00  2.325e-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:  6.136e-01  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.93
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.08 +/- 0.70
Photon Flux (Free Index): 1.80e-07 +/- 7.81e-08
Energy Flux (Free Index): 3.46e-05 +/- 1.67e-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/630671/cmap_HighResolution_665712001_665971201_4FGL_J2256.0-2740_daily_bin1645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-07', energy_flux2='3.46e-05', photon_flux_error='1.11e-07', dlogl='3.73e-03', energy_flux='3.52e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2022-02-08 00:50:15.307388', photon_index_error2='0.70', photon_index2='3.08', ts='7.29', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.62', time_epoch_completed='1644310215.31', return_code='0', job_id='630671', GAL2='1.38', EG2='0.61', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='7.81e-08', ts2='7.93', photon_index='3.02' WHERE bin_id='1645' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:50:15 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 630671: <4FGL_J2256.0-2740_daily_bin1645> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1645> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Feb  8 00:40:21 2022
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:40:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:40:22 2022
Terminated at Tue Feb  8 00:50:16 2022
Results reported at Tue Feb  8 00:50:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1645 344.025 -27.6739 665712001 665971201 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 :                                   560.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            595 sec.

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

