/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 116 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin436
RA = 344.025, Dec = -27.6739
tmin = 352339201, tmax = 352598401
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='590777', job_status='RUN', time_executed='2021-09-29 02:42:31.989136', time_epoch_executed='1632908551.99' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590777/ft1_4FGL_J2256.0-2740_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590777/ft2_4FGL_J2256.0-2740_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590777/ft1_4FGL_J2256.0-2740_daily_bin436.fits outfile=/scratch/kocevski/590777/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin436.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=352339201.0 tmax=352598401.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.43
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590777/ft1_filtered_4FGL_J2256.0-2740_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/590777/ft2_4FGL_J2256.0-2740_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/590777/ltcube_352339201_352598401_4FGL_J2256.0-2740_daily_bin436.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/590777/ft2_4FGL_J2256.0-2740_daily_bin436.fits
.....................!
real 11.74
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590777/ft1_filtered_4FGL_J2256.0-2740_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/590777/ft2_4FGL_J2256.0-2740_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/590777/ltcube_352339201_352598401_4FGL_J2256.0-2740_daily_bin436.fits outfile=/scratch/kocevski/590777/expmap_352339201_352598401_4FGL_J2256.0-2740_daily_bin436.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/590777/ltcube_352339201_352598401_4FGL_J2256.0-2740_daily_bin436.fits
.....................!
real 191.62
user 187.06
sys 4.26

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

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590777/ft1_filtered_4FGL_J2256.0-2740_daily_bin436.fits scfile=/scratch/kocevski/590777/ft2_4FGL_J2256.0-2740_daily_bin436.fits outfile=/scratch/kocevski/590777/cmap_HighResolution_352339201_352598401_4FGL_J2256.0-2740_daily_bin436.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.444       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0919       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.649       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.458       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8399       1.0000         .10000E-03   10000.    
     9 'norm      '    25.493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7372       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8643       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13068E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9697       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.815       1.0000         .10000E-03   10000.    
    18 'norm      '    9.0076       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.875       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1578       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3740       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .53605       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=   5155.248     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2056 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.445        12.781        .15698E-07   -.41097E-05
   2  Prefactor     4.0930        6.4136        .34645E-06    .51982E-04
   3  norm          .10000E-03    7.8523        .15294E-06** at limit **
   4  Prefactor     16.649        19.503       -.31055E-07    .29186E-04
   5  Prefactor     17.464        14.634        .98767E-07    .65418E-04
   6  norm          .10000E-03    1.2274        .26660E-06** at limit **
   7  Prefactor     .10000E-03    152.93        .16498E-05** at limit **
   8  Prefactor     7.8429        13.399        .44488E-06    .35138E-04
   9  norm          25.496        8.6066        .32777E-06    .30845E-03
  10  Prefactor     .10000E-03    7.6863       -.80614E-07** at limit **
  11  Prefactor     7.7283        18.331       -.63525E-05   -.31976E-03
  12  norm          3.8638        1.3796       -.18118E-06   -.91442E-03
  13  Prefactor     .10000E-03    263.81        .31416E-05** at limit **
  14  Prefactor     .10000E-03    13.625        .40630E-06** at limit **
  15  Prefactor     2.9841        13.499        .19707E-04   -.42438E-04
  16  norm          .10000E-03    3.5556        .97180E-07** at limit **
  17  Prefactor     21.814        52.108       -.44754E-06    .23163E-05
  18  norm          9.0081        4.9431        .18784E-07    .27109E-04
  19  Prefactor     16.884        33.601       -.29922E-06    .14883E-04
  20  Prefactor     8.8906        336.61       -.22659E-04   -.89697E-04
  21  Normalizat    1.3735        .22094        .21078E-05   -.22680E-03
  22  Prefactor     .53641        .19414       -.37273E-05    .40552E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4449
  Prefactor  = 4.09298
  norm       = 0.0001
  Prefactor  = 16.6489
  Prefactor  = 17.464
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.84287
  norm       = 25.4958
  Prefactor  = 0.0001
  Prefactor  = 7.72827
  norm       = 3.8638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.98407
  norm       = 0.0001
  Prefactor  = 21.8137
  norm       = 9.00814
  Prefactor  = 16.8839
  Prefactor  = 8.89062
  Normalizat = 1.37352
  Prefactor  = 0.536408
 **********
 **   18 **HESSE 
 **********

 FCN=   5155.248     FROM HESSE     STATUS=OK           344 CALLS     2400 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.445        12.785        .11355E-03   -1.5002    
   2  Prefactor     4.0930        6.4101        .19930E-03   -1.5303    
   3  norm          .10000E-03    7.8582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.649        19.537        .98159E-04   -1.4892    
   5  Prefactor     17.464        14.676        .95858E-04   -1.4872    
   6  norm          .10000E-03    1.2469        .77626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    153.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.8429        13.434        .14321E-03   -1.5148    
   9  norm          25.496        8.5846        .79340E-04   -1.4698    
  10  Prefactor     .10000E-03    7.6878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7283        18.678        .14416E-03   -1.5152    
  12  norm          3.8638        1.4009        .38172E-04   -1.5315    
  13  Prefactor     .10000E-03    266.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9841        13.686        .11781E-02   -1.5362    
  16  norm          .10000E-03    3.5606        .13221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.814        52.469        .85757E-04   -1.4774    
  18  norm          9.0081        4.9403        .11142E-03   -1.5108    
  19  Prefactor     16.884        33.589        .97498E-04   -1.4886    
  20  Prefactor     8.8906        355.48        .13244E-03   -1.5112    
  21  Normalizat    1.3735        .26666        .23050E-03   -.81398    
  22  Prefactor     .53641        .22911        .32534E-03   -1.1033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71587e-09
Minuit parameter uncertainties:
  1  12.7874
  2  6.41122
  3  1.27145e-06
  4  19.5442
  5  14.6789
  6  1.34227e-07
  7  0.000444173
  8  13.439
  9  8.58502
  10  1.3576e-05
  11  18.6917
  12  1.40091
  13  0.000445445
  14  1.66132e-05
  15  12.786
  16  2.03328e-07
  17  52.5799
  18  4.94053
  19  33.627
  20  113.163
  21  0.266928
  22  0.229507
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.728e+00  1.869e+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:  5.364e-01  2.295e-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.374e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/590777/likelihoodResults_352339201_352598401_4FGL_J2256.0-2740_daily_bin436.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) = 5154.59043384
delta logL = 0.6576782307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5154.56482496
delta logL = 0.683287112024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8591       1.0000         .10000E-03   10000.    
     2 'Index     '    6.6710       1.0000          .0000       10.000    
     3 'Normalizat'    1.3139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57934       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5154.565     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      267 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8551        29.626        .76411E-02    .40480E-03
   2  Index         6.6739        8.3265        .33998        .40197E-04
   3  Normalizat    1.3139        .57789E-01    .53014E-01   -.10915E-04
   4  Prefactor     .57930        .53725E-01    .70976E-01    .19273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85509
  Index      = 6.67389
  Normalizat = 1.31389
  Prefactor  = 0.579304
 **********
 **   18 **HESSE 
 **********

 FCN=   5154.565     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8551        63.664        .76539E-04   -1.5436    
   2  Index         6.6739        6.2761        .14080E-01    .34137    
   3  Normalizat    1.3139        .22459        .23440E-03   -.83153    
   4  Prefactor     .57930        .19885        .31419E-03   -1.0846    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.26113e-07
Minuit parameter uncertainties:
  1  21.7595
  2  15.578
  3  0.224762
  4  0.199087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590777': 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): 102
logL (Free Index) = 5154.56482468
delta logL = 0.683287394749

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.855e+00  2.176e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  6.674e+00  1.558e+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:  5.793e-01  1.991e-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.314e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 6.67 +/- 15.58
Photon Flux (Free Index): 1.09e-07 +/- 1.32e-07
Energy Flux (Free Index): 1.32e-05 +/- 2.23e-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/590777/cmap_HighResolution_352339201_352598401_4FGL_J2256.0-2740_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-02', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='6.83e-01', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-29 02:51:50.259402', photon_index_error2='15.58', photon_index2='6.67', ts='0.32', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='2.31e-07', energy_flux_error2='2.23e-05', EG='1.37', time_epoch_completed='1632909110.26', return_code='0', job_id='590777', GAL2='0.58', EG2='1.31', return_code2='102', photon_flux_error2='1.32e-07', ts2='1.83', photon_index='3.02' WHERE bin_id='436' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:51:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 590777: <4FGL_J2256.0-2740_daily_bin436> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin436> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:25 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:26 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:40:26 2021
Terminated at Wed Sep 29 02:51:51 2021
Results reported at Wed Sep 29 02:51:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin436 344.025 -27.6739 352339201 352598401 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 :                                   555.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            686 sec.

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

