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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin862
RA = 344.025, Dec = -27.6739
tmin = 462758401, tmax = 463017601
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='592440', job_status='RUN', time_executed='2021-09-29 02:45:37.370631', time_epoch_executed='1632908737.37' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='862'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592440

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592440/ft1_4FGL_J2256.0-2740_daily_bin862.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592440/ft2_4FGL_J2256.0-2740_daily_bin862.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592440/ft1_4FGL_J2256.0-2740_daily_bin862.fits outfile=/scratch/kocevski/592440/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin862.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=462758401.0 tmax=463017601.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.54
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592440/ft2_4FGL_J2256.0-2740_daily_bin862.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/592440/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin862.fits evtable="EVENTS" outfile="/scratch/kocevski/592440/ft1_filtered_4FGL_J2256.0-2740_daily_bin862.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.42
user 0.26
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592440/ft1_filtered_4FGL_J2256.0-2740_daily_bin862.fits" evtable="EVENTS" scfile=/scratch/kocevski/592440/ft2_4FGL_J2256.0-2740_daily_bin862.fits sctable="SC_DATA" outfile=/scratch/kocevski/592440/ltcube_462758401_463017601_4FGL_J2256.0-2740_daily_bin862.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/592440/ft2_4FGL_J2256.0-2740_daily_bin862.fits
.....................!
real 8.96
user 8.64
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592440/ft1_filtered_4FGL_J2256.0-2740_daily_bin862.fits evtable="EVENTS" scfile=/scratch/kocevski/592440/ft2_4FGL_J2256.0-2740_daily_bin862.fits sctable="SC_DATA" expcube=/scratch/kocevski/592440/ltcube_462758401_463017601_4FGL_J2256.0-2740_daily_bin862.fits outfile=/scratch/kocevski/592440/expmap_462758401_463017601_4FGL_J2256.0-2740_daily_bin862.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/592440/ltcube_462758401_463017601_4FGL_J2256.0-2740_daily_bin862.fits
.....................!
real 145.23
user 141.48
sys 3.51

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/592440/ft1_filtered_4FGL_J2256.0-2740_daily_bin862.fits scfile=/scratch/kocevski/592440/ft2_4FGL_J2256.0-2740_daily_bin862.fits outfile=/scratch/kocevski/592440/cmap_462758401_463017601_4FGL_J2256.0-2740_daily_bin862.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.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592440/ft1_filtered_4FGL_J2256.0-2740_daily_bin862.fits scfile=/scratch/kocevski/592440/ft2_4FGL_J2256.0-2740_daily_bin862.fits outfile=/scratch/kocevski/592440/cmap_HighResolution_462758401_463017601_4FGL_J2256.0-2740_daily_bin862.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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592440/ft1_filtered_4FGL_J2256.0-2740_daily_bin862.fits evtable="EVENTS" scfile=/scratch/kocevski/592440/ft2_4FGL_J2256.0-2740_daily_bin862.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592440/Model_4FGL_J2256.0-2740_daily_bin862.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/592440/ft1_filtered_4FGL_J2256.0-2740_daily_bin862.fits.....................!
real 29.85
user 28.78
sys 1.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.767       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10620E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.846       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2982       1.0000         .10000E-03   10000.    
    12 'norm      '    .74056       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13998E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .70163E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.2197       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0906       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87838       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1840       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=   4327.672     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2379 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.435       -.88475E-06** at limit **
   2  Prefactor     .10000E-03    4.6939       -.22251E-06** at limit **
   3  norm          9.9550        17.453       -.95532E-07    .17256E-04
   4  Prefactor     29.776        28.338       -.11171E-06   -.20888E-05
   5  Prefactor     .10000E-03    4.3796       -.12278E-06** at limit **
   6  norm          .10000E-03    1.2018       -.70603E-06** at limit **
   7  Prefactor     30.860        37.003        .29218E-06    .92101E-04
   8  Prefactor     .10000E-03    7.1672        .47723E-06** at limit **
   9  norm          .10000E-03    3.1544        .13485E-05** at limit **
  10  Prefactor     .10000E-03    6.4119        .17706E-05** at limit **
  11  Prefactor     5.3014        10.870        .92560E-06   -.32423E-03
  12  norm          .74029        .70772       -.46561E-06   -.14428E-02
  13  Prefactor     .10000E-03    55.407        .32362E-05** at limit **
  14  Prefactor     .10000E-03    140.06       -.24130E-04** at limit **
  15  Prefactor     .10000E-03    6.7275        .14742E-05** at limit **
  16  norm          .10000E-03    4.0234       -.62238E-07** at limit **
  17  Prefactor     .10000E-03    214.46        .43176E-05** at limit **
  18  norm          4.2195        3.6646       -.13083E-06    .30945E-04
  19  Prefactor     8.0822        31.273       -.63264E-06    .87122E-05
  20  Prefactor     .10000E-03    82.065       -.88148E-05** at limit **
  21  Normalizat    .87848        .22090       -.53269E-06    .15571E-03
  22  Prefactor     1.1842        .21151        .95679E-06   -.13167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.95498
  Prefactor  = 29.7762
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.8597
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.3014
  norm       = 0.740295
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.21953
  Prefactor  = 8.08223
  Prefactor  = 0.000100003
  Normalizat = 0.878477
  Prefactor  = 1.18416
 **********
 **   18 **HESSE 
 **********

 FCN=   4327.672     FROM HESSE     STATUS=OK           336 CALLS     2715 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7152        .13915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9550        17.447        .12699E-03   -1.5077    
   4  Prefactor     29.776        28.339        .73435E-04   -1.4616    
   5  Prefactor     .10000E-03    4.3857        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2103        .70025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.860        36.812        .72142E-04   -1.4596    
   8  Prefactor     .10000E-03    7.1885        .17197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2215        .22738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4310        .16278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3014        11.009        .17461E-03   -1.5247    
  12  norm          .74029        .70909        .44052E-04   -1.5536    
  13  Prefactor     .10000E-03    55.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    138.09        .57895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8130        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.0316        .12887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    217.89        .20978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.2195        3.6551        .11190E-03   -1.5297    
  19  Prefactor     8.0822        31.275        .14096E-03   -1.5139    
  20  Prefactor     .10000E-03    83.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87848        .25956        .26681E-03   -.97221    
  22  Prefactor     1.1842        .24658        .22808E-03   -.86820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.25532e-10
Minuit parameter uncertainties:
  1  7.17503e-05
  2  3.73351e-07
  3  17.4564
  4  28.3521
  5  2.11915e-06
  6  1.1626e-06
  7  36.8387
  8  9.0976e-06
  9  1.34878e-05
  10  1.29446e-05
  11  11.0128
  12  0.709101
  13  0.000228768
  14  0.00139759
  15  4.87443e-07
  16  2.94775e-06
  17  0.000433695
  18  3.65525
  19  31.3384
  20  0.000984948
  21  0.259931
  22  0.246819
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.301e+00  1.101e+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.184e+00  2.468e-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:  8.785e-01  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592440/likelihoodResults_462758401_463017601_4FGL_J2256.0-2740_daily_bin862.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) = 4327.4059699
delta logL = 0.266324130013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4327.39286748
delta logL = 0.27942654851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5467       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5849       1.0000          .0000       10.000    
     3 'Normalizat'    .84005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2107       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=   4327.393     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      222 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5382        138.83        .47199E-02    .29269E-03
   2  Index         4.5898        6.1423        .42376        .26770E-04
   3  Normalizat    .83989        .62915E-01    .44131E-01    .11829E-04
   4  Prefactor     1.2107        .62228E-01    .51099E-01   -.13608E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.53816
  Index      = 4.58979
  Normalizat = 0.839894
  Prefactor  = 1.21068
 **********
 **   18 **HESSE 
 **********

 FCN=   4327.393     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5382        9.3153        .14739E-03   -1.5282    
   2  Index         4.5898        2.7593        .15538E-01   -.82134E-01
   3  Normalizat    .83989        .25940        .27214E-03   -.98606    
   4  Prefactor     1.2107        .24841        .22591E-03   -.86003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2364e-09
Minuit parameter uncertainties:
  1  9.31831
  2  2.92433
  3  0.259783
  4  0.248654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592440': 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) = 4327.39286495
delta logL = 0.279429080975

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.538e+00  9.318e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.590e+00  2.924e+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:  1.211e+00  2.487e-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:  8.399e-01  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.59 +/- 2.92
Photon Flux (Free Index): 6.85e-08 +/- 7.76e-08
Energy Flux (Free Index): 9.47e-06 +/- 1.11e-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/592440/cmap_HighResolution_462758401_463017601_4FGL_J2256.0-2740_daily_bin862.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', energy_flux2='9.47e-06', dlogl='2.79e-01', photon_flux2='6.85e-08', job_status='DONE', time_completed='2021-09-29 02:52:19.550337', photon_index_error2='2.92', photon_index2='4.59', ts='0.40', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.11e-05', EG='0.88', time_epoch_completed='1632909139.55', return_code='0', job_id='592440', GAL2='1.21', EG2='0.84', return_code2='0', photon_flux_error2='7.76e-08', ts2='1.03', photon_index='3.02' WHERE bin_id='862' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 592440: <4FGL_J2256.0-2740_daily_bin862> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin862> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:26 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:27 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:27 2021
Terminated at Wed Sep 29 02:52:20 2021
Results reported at Wed Sep 29 02:52:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin862 344.025 -27.6739 462758401 463017601 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 :                                   399.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   412 sec.
    Turnaround time :                            414 sec.

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

