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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1062
RA = 344.025, Dec = -27.6739
tmin = 514598401, tmax = 514857601
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='592740', job_status='RUN', time_executed='2021-09-29 02:46:20.925657', time_epoch_executed='1632908780.93' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1062'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592740/ft1_4FGL_J2256.0-2740_daily_bin1062.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592740/ft2_4FGL_J2256.0-2740_daily_bin1062.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592740/ft1_4FGL_J2256.0-2740_daily_bin1062.fits outfile=/scratch/kocevski/592740/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1062.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=514598401.0 tmax=514857601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.00
user 3.79
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592740/ft2_4FGL_J2256.0-2740_daily_bin1062.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/592740/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1062.fits evtable="EVENTS" outfile="/scratch/kocevski/592740/ft1_filtered_4FGL_J2256.0-2740_daily_bin1062.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592740/ft1_filtered_4FGL_J2256.0-2740_daily_bin1062.fits" evtable="EVENTS" scfile=/scratch/kocevski/592740/ft2_4FGL_J2256.0-2740_daily_bin1062.fits sctable="SC_DATA" outfile=/scratch/kocevski/592740/ltcube_514598401_514857601_4FGL_J2256.0-2740_daily_bin1062.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/592740/ft2_4FGL_J2256.0-2740_daily_bin1062.fits
.....................!
real 11.76
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592740/ft1_filtered_4FGL_J2256.0-2740_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/592740/ft2_4FGL_J2256.0-2740_daily_bin1062.fits sctable="SC_DATA" expcube=/scratch/kocevski/592740/ltcube_514598401_514857601_4FGL_J2256.0-2740_daily_bin1062.fits outfile=/scratch/kocevski/592740/expmap_514598401_514857601_4FGL_J2256.0-2740_daily_bin1062.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/592740/ltcube_514598401_514857601_4FGL_J2256.0-2740_daily_bin1062.fits
.....................!
real 190.94
user 185.88
sys 4.69

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592740/ft1_filtered_4FGL_J2256.0-2740_daily_bin1062.fits scfile=/scratch/kocevski/592740/ft2_4FGL_J2256.0-2740_daily_bin1062.fits outfile=/scratch/kocevski/592740/cmap_HighResolution_514598401_514857601_4FGL_J2256.0-2740_daily_bin1062.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592740/ft1_filtered_4FGL_J2256.0-2740_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/592740/ft2_4FGL_J2256.0-2740_daily_bin1062.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592740/Model_4FGL_J2256.0-2740_daily_bin1062.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/592740/ft1_filtered_4FGL_J2256.0-2740_daily_bin1062.fits.....................!
real 44.97
user 43.58
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8188       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9292       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1005       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1613       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7532       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46410       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16490E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0801       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.463       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0376       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.094       1.0000         .10000E-03   10000.    
    18 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.010       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8731       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1517       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76017       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=   5411.127     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2721 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.844        .10911E-05** at limit **
   2  Prefactor     7.8216        9.1122        .48996E-06    .23097E-04
   3  norm          .10000E-03    10.898        .21836E-06** at limit **
   4  Prefactor     .10000E-03    13.327        .62644E-07** at limit **
   5  Prefactor     4.9318        11.527        .25543E-06   -.40621E-04
   6  norm          2.1007        1.8024       -.24543E-07   -.13739E-03
   7  Prefactor     .10000E-03    20.638        .16237E-07** at limit **
   8  Prefactor     5.1629        8.4069        .62267E-07   -.32878E-04
   9  norm          2.7535        2.6717       -.10442E-06   -.28251E-03
  10  Prefactor     .44633        46.246       -.79789E-05   -.79751E-05
  11  Prefactor     .10000E-03    76.600       -.60302E-05** at limit **
  12  norm          3.0809        .91755       -.13588E-06   -.31854E-02
  13  Prefactor     .10000E-03    44.348       -.13377E-05** at limit **
  14  Prefactor     24.463        17.093        .67623E-07   -.76290E-05
  15  Prefactor     .10000E-03    4.5787        .23995E-06** at limit **
  16  norm          5.0379        6.9296        .56281E-06    .91741E-04
  17  Prefactor     43.107        45.115       -.12578E-05    .30814E-04
  18  norm          .10000E-03    1.7401        .70757E-06** at limit **
  19  Prefactor     18.005        38.100       -.16646E-05    .38138E-04
  20  Prefactor     2.9196        760.29       -.25719E-05   -.59116E-05
  21  Normalizat    1.1512        .20624       -.16173E-05    .56262E-04
  22  Prefactor     .76057        .18573        .69304E-06   -.20901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.82163
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.93181
  norm       = 2.10065
  Prefactor  = 0.0001
  Prefactor  = 5.16289
  norm       = 2.75346
  Prefactor  = 0.446328
  Prefactor  = 0.000100001
  norm       = 3.08094
  Prefactor  = 0.0001
  Prefactor  = 24.4629
  Prefactor  = 0.0001
  norm       = 5.03792
  Prefactor  = 43.1073
  norm       = 0.0001
  Prefactor  = 18.0054
  Prefactor  = 2.91958
  Normalizat = 1.15119
  Prefactor  = 0.760571
 **********
 **   18 **HESSE 
 **********

 FCN=   5411.127     FROM HESSE     STATUS=OK           350 CALLS     3071 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.8216        9.1020        .71701E-03   -1.5149    
   3  norm          .10000E-03    10.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9318        11.511        .18116E-03   -1.5264    
   6  norm          2.1007        1.8050        .88554E-04   -1.5418    
   7  Prefactor     .10000E-03    20.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1629        8.3998        .17696E-03   -1.5253    
   9  norm          2.7535        2.6709        .57012E-03   -1.5376    
  10  Prefactor     .44633        49.495        .41645E-02   -1.5574    
  11  Prefactor     .10000E-03    76.887        .28062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0809        .90231        .32856E-04   -1.5357    
  13  Prefactor     .10000E-03    44.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.463        17.098        .80990E-04   -1.4718    
  15  Prefactor     .10000E-03    4.6088        .15380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0379        6.9637        .89578E-03   -1.5259    
  17  Prefactor     43.107        45.346        .61069E-04   -1.4394    
  18  norm          .10000E-03    1.7723        .94757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.005        38.317        .94376E-04   -1.4859    
  20  Prefactor     2.9196        764.28        .23980E-03   -1.5366    
  21  Normalizat    1.1512        .23638        .22869E-03   -.88125    
  22  Prefactor     .76057        .21491        .26488E-03   -1.0120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83961e-08
Minuit parameter uncertainties:
  1  0.000128632
  2  9.10365
  3  1.27829e-05
  4  1.49236e-05
  5  11.5159
  6  1.80506
  7  1.29165e-05
  8  8.40174
  9  2.67103
  10  9.40716
  11  0.000620804
  12  0.902314
  13  0.000132066
  14  17.1011
  15  1.26877e-05
  16  6.96483
  17  45.3824
  18  9.64532e-06
  19  38.3689
  20  95.7347
  21  0.236602
  22  0.215143
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  6.208e-04  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:  7.606e-01  2.151e-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.151e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592740/likelihoodResults_514598401_514857601_4FGL_J2256.0-2740_daily_bin1062.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): 102
logL (Free Index) = 5411.12660535
delta logL = -6.325711729e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5409.48786934
delta logL = 1.63867275257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6511       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5278       1.0000          .0000       10.000    
     3 'Normalizat'    1.1538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75317       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=   5409.488     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      277 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6520        1.8342        .82142E-02   -.14881E-03
   2  Index         1.5279        .32011        .15721       -.87999E-04
   3  Normalizat    1.1538        .18385        .51634E-01   -.14043E-05
   4  Prefactor     .75321        .17745        .43105E-01    .14951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.652
  Index      = 1.52792
  Normalizat = 1.15376
  Prefactor  = 0.753208
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.488     FROM HESSE     STATUS=OK            33 CALLS      310 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6520        2.9292        .96864E-04   -1.5451    
   2  Index         1.5279        .58515        .60520E-02   -.76761    
   3  Normalizat    1.1538        .21923        .22829E-03   -.88044    
   4  Prefactor     .75321        .21154        .26559E-03   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.11496e-12
Minuit parameter uncertainties:
  1  2.92943
  2  0.587765
  3  0.219405
  4  0.21177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592740': 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) = 5409.48786918
delta logL = 1.63867291784

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.652e+00  2.929e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.528e+00  5.878e-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:  7.532e-01  2.118e-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.154e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.28
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 1.53 +/- 0.59
Photon Flux (Free Index): 1.15e-08 +/- 1.62e-08
Energy Flux (Free Index): 3.31e-05 +/- 4.91e-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/592740/cmap_HighResolution_514598401_514857601_4FGL_J2256.0-2740_daily_bin1062.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.12e-03', comment='SUCCESS', energy_flux2='3.31e-05', dlogl='1.64e+00', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-29 02:56:25.237799', photon_index_error2='0.59', photon_index2='1.53', ts='-0.00', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='4.91e-05', EG='1.15', time_epoch_completed='1632909385.24', return_code='0', job_id='592740', GAL2='0.75', EG2='1.15', return_code2='0', photon_flux_error2='1.62e-08', ts2='3.28', photon_index='3.02' WHERE bin_id='1062' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 592740: <4FGL_J2256.0-2740_daily_bin1062> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1062> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:48 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:49 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:49 2021
Terminated at Wed Sep 29 02:56:25 2021
Results reported at Wed Sep 29 02:56:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1062 344.025 -27.6739 514598401 514857601 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 :                                   601.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            637 sec.

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

