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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1434
RA = 344.025, Dec = -27.6739
tmin = 611020801, tmax = 611280001
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='594251', job_status='RUN', time_executed='2021-09-29 02:51:32.909964', time_epoch_executed='1632909092.91' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594251

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594251/ft1_4FGL_J2256.0-2740_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594251/ft2_4FGL_J2256.0-2740_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594251/ft1_4FGL_J2256.0-2740_daily_bin1434.fits outfile=/scratch/kocevski/594251/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1434.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=611020801.0 tmax=611280001.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.51
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594251/ft1_filtered_4FGL_J2256.0-2740_daily_bin1434.fits" evtable="EVENTS" scfile=/scratch/kocevski/594251/ft2_4FGL_J2256.0-2740_daily_bin1434.fits sctable="SC_DATA" outfile=/scratch/kocevski/594251/ltcube_611020801_611280001_4FGL_J2256.0-2740_daily_bin1434.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/594251/ft2_4FGL_J2256.0-2740_daily_bin1434.fits
.....................!
real 11.75
user 11.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594251/ft1_filtered_4FGL_J2256.0-2740_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/594251/ft2_4FGL_J2256.0-2740_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/594251/ltcube_611020801_611280001_4FGL_J2256.0-2740_daily_bin1434.fits outfile=/scratch/kocevski/594251/expmap_611020801_611280001_4FGL_J2256.0-2740_daily_bin1434.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/594251/ltcube_611020801_611280001_4FGL_J2256.0-2740_daily_bin1434.fits
.....................!
real 191.14
user 185.87
sys 4.96

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/594251/ft1_filtered_4FGL_J2256.0-2740_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/594251/ft2_4FGL_J2256.0-2740_daily_bin1434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594251/Model_4FGL_J2256.0-2740_daily_bin1434.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/594251/ft1_filtered_4FGL_J2256.0-2740_daily_bin1434.fits.....................!
real 49.69
user 48.35
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.151       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    27.192       1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.624       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7634       1.0000         .10000E-03   10000.    
     6 'norm      '    .20616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10926E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2274       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6953       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.244       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6156       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19144E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.153       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1443       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89116       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0249       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=   6393.481     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2477 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.150        18.381       -.13418E-06    .25316E-04
   2  Prefactor     .10000E-03    4.7154       -.13685E-07** at limit **
   3  norm          27.191        24.191       -.29003E-06    .42329E-04
   4  Prefactor     55.614        27.776       -.23020E-06    .19099E-04
   5  Prefactor     3.7576        8.9841       -.68810E-07    .91155E-05
   6  norm          .20513        1.4414        .62806E-07   -.98333E-04
   7  Prefactor     .10001E-03    146.40       -.45788E-05** at limit **
   8  Prefactor     5.2262        8.3918       -.87225E-07    .11370E-04
   9  norm          .10000E-03    1.0509       -.15211E-06** at limit **
  10  Prefactor     2.6979        16.660        .66283E-06    .20554E-03
  11  Prefactor     26.235        14.772        .46451E-06    .18185E-02
  12  norm          1.6162        1.0573        .38551E-06    .52156E-02
  13  Prefactor     .10000E-03    15.075        .29801E-07** at limit **
  14  Prefactor     .10000E-03    9.4206        .36145E-07** at limit **
  15  Prefactor     .10392E-03    13.710       -.51592E-05** at limit **
  16  norm          10.153        6.5810       -.32721E-07   -.83908E-05
  17  Prefactor     .10000E-03    7.3633        .13768E-08** at limit **
  18  norm          2.1445        2.4759        .91479E-07   -.85178E-04
  19  Prefactor     .10000E-03    9.8840       -.53239E-07** at limit **
  20  Prefactor     .10002E-03    116.29        .30769E-05** at limit **
  21  Normalizat    .89132        .18556        .19215E-05    .39496E-03
  22  Prefactor     1.0247        .17657       -.10404E-05    .55278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1505
  Prefactor  = 0.0001
  norm       = 27.1913
  Prefactor  = 55.6141
  Prefactor  = 3.75764
  norm       = 0.205125
  Prefactor  = 0.000100008
  Prefactor  = 5.22622
  norm       = 0.0001
  Prefactor  = 2.69794
  Prefactor  = 26.2352
  norm       = 1.6162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103918
  norm       = 10.1529
  Prefactor  = 0.0001
  norm       = 2.14448
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Normalizat = 0.891324
  Prefactor  = 1.02472
 **********
 **   18 **HESSE 
 **********

 FCN=   6393.481     FROM HESSE     STATUS=OK           344 CALLS     2821 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.150        18.382        .11046E-03   -1.4983    
   2  Prefactor     .10000E-03    4.7486        .16948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          27.191        24.079        .76825E-04   -1.4665    
   4  Prefactor     55.614        27.806        .53785E-04   -1.4215    
   5  Prefactor     3.7576        8.9283        .20811E-03   -1.5320    
   6  norm          .20513        2.7744        .18059E-02   -1.5617    
   7  Prefactor     .10001E-03    147.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2262        8.3864        .17581E-03   -1.5251    
   9  norm          .10000E-03    1.0553        .80085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6979        16.034        .24815E-03   -1.5379    
  11  Prefactor     26.235        14.964        .78198E-04   -1.4683    
  12  norm          1.6162        1.0656        .45051E-04   -1.5454    
  13  Prefactor     .10000E-03    15.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10392E-03    142.61        .44292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.153        6.5810        .12575E-03   -1.5071    
  17  Prefactor     .10000E-03    7.3647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1445        2.4604        .12998E-03   -1.5415    
  19  Prefactor     .10000E-03    9.8925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    117.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89132        .21503        .25534E-03   -.96766    
  22  Prefactor     1.0247        .20631        .23880E-03   -.91910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98582e-08
Minuit parameter uncertainties:
  1  18.3901
  2  7.52231e-06
  3  24.0879
  4  27.8123
  5  8.93144
  6  1.50848
  7  0.0022152
  8  8.38826
  9  6.70209e-08
  10  13.1592
  11  14.9659
  12  1.06564
  13  6.30893e-06
  14  7.18974e-07
  15  0.0473892
  16  6.58151
  17  1.91795e-06
  18  2.46054
  19  2.61026e-05
  20  0.00302742
  21  0.215239
  22  0.206468
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.624e+01  1.497e+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.025e+00  2.065e-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.913e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.15
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.80e-07 +/- 1.02e-07
Energy Flux (Fixed Index): 3.54e-05 +/- 2.02e-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) = 6393.47855566
delta logL = 0.00226057837153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6393.47836823
delta logL = 0.00244801062217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.340       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9859       1.0000          .0000       10.000    
     3 'Normalizat'    .89414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0225       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=   6393.478     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      194 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.376        15.776        .19514E-02    .90127E-04
   2  Index         2.9885        .70439        .17964        .88953E-05
   3  Normalizat    .89361        .17625        .44827E-01    .30321E-04
   4  Prefactor     1.0228        .17334        .41904E-01    .27753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3757
  Index      = 2.98847
  Normalizat = 0.893612
  Prefactor  = 1.02281
 **********
 **   18 **HESSE 
 **********

 FCN=   6393.478     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.376        10.286        .78056E-04   -1.4680    
   2  Index         2.9885        .48525        .74914E-02   -.41403    
   3  Normalizat    .89361        .21044        .25505E-03   -.96685    
   4  Prefactor     1.0228        .20501        .23899E-03   -.91973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4852e-12
Minuit parameter uncertainties:
  1  10.2868
  2  0.486165
  3  0.210633
  4  0.205165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594251': 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) = 6393.47834426
delta logL = 0.00247198483066

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.638e+01  1.029e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.988e+00  4.862e-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.023e+00  2.052e-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.936e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.79
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.99 +/- 0.49
Photon Flux (Free Index): 1.78e-07 +/- 7.03e-08
Energy Flux (Free Index): 3.58e-05 +/- 1.46e-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/594251/cmap_HighResolution_611020801_611280001_4FGL_J2256.0-2740_daily_bin1434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-07', energy_flux2='3.58e-05', photon_flux_error='1.02e-07', dlogl='2.47e-03', energy_flux='3.54e-05', photon_flux2='1.78e-07', job_status='DONE', time_completed='2021-09-29 03:02:10.902171', photon_index_error2='0.49', photon_index2='2.99', ts='9.15', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='0.89', time_epoch_completed='1632909730.9', return_code='0', job_id='594251', GAL2='1.02', EG2='0.89', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='7.03e-08', ts2='9.79', photon_index='3.02' WHERE bin_id='1434' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 594251: <4FGL_J2256.0-2740_daily_bin1434> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1434> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:42 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:45 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:50:45 2021
Terminated at Wed Sep 29 03:02:11 2021
Results reported at Wed Sep 29 03:02:11 2021

Your job looked like:

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

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

