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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1633
RA = 344.025, Dec = -27.6739
tmin = 662601601, tmax = 662860801
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='693070', job_status='RUN', time_executed='2022-01-03 00:39:01.929490', time_epoch_executed='1641199141.93' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693070

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693070/ft1_4FGL_J2256.0-2740_daily_bin1633.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693070/ft2_4FGL_J2256.0-2740_daily_bin1633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693070/ft1_4FGL_J2256.0-2740_daily_bin1633.fits outfile=/scratch/kocevski/693070/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1633.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=662601601.0 tmax=662860801.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 2.96
user 2.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693070/ft1_filtered_4FGL_J2256.0-2740_daily_bin1633.fits" evtable="EVENTS" scfile=/scratch/kocevski/693070/ft2_4FGL_J2256.0-2740_daily_bin1633.fits sctable="SC_DATA" outfile=/scratch/kocevski/693070/ltcube_662601601_662860801_4FGL_J2256.0-2740_daily_bin1633.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/693070/ft2_4FGL_J2256.0-2740_daily_bin1633.fits
.....................!
real 12.75
user 12.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693070/ft1_filtered_4FGL_J2256.0-2740_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/693070/ft2_4FGL_J2256.0-2740_daily_bin1633.fits sctable="SC_DATA" expcube=/scratch/kocevski/693070/ltcube_662601601_662860801_4FGL_J2256.0-2740_daily_bin1633.fits outfile=/scratch/kocevski/693070/expmap_662601601_662860801_4FGL_J2256.0-2740_daily_bin1633.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/693070/ltcube_662601601_662860801_4FGL_J2256.0-2740_daily_bin1633.fits
.....................!
real 189.76
user 184.99
sys 4.43

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/693070/ft1_filtered_4FGL_J2256.0-2740_daily_bin1633.fits scfile=/scratch/kocevski/693070/ft2_4FGL_J2256.0-2740_daily_bin1633.fits outfile=/scratch/kocevski/693070/cmap_662601601_662860801_4FGL_J2256.0-2740_daily_bin1633.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693070/ft1_filtered_4FGL_J2256.0-2740_daily_bin1633.fits scfile=/scratch/kocevski/693070/ft2_4FGL_J2256.0-2740_daily_bin1633.fits outfile=/scratch/kocevski/693070/cmap_HighResolution_662601601_662860801_4FGL_J2256.0-2740_daily_bin1633.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693070/ft1_filtered_4FGL_J2256.0-2740_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/693070/ft2_4FGL_J2256.0-2740_daily_bin1633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693070/Model_4FGL_J2256.0-2740_daily_bin1633.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/693070/ft1_filtered_4FGL_J2256.0-2740_daily_bin1633.fits.....................!
real 52.64
user 51.32
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.705       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5014       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.565       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0166       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18164E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.532       1.0000         .10000E-03   10000.    
     9 'norm      '    .41214E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.363       1.0000         .10000E-03   10000.    
    12 'norm      '    .63617       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.650       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0635       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.679       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90330       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84964       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=   7064.856     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2422 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.716        19.663       -.65890E-05   -.20259E-04
   2  Prefactor     .10000E-03    1.9832        .43302E-07** at limit **
   3  norm          11.624        17.657        .24125E-05   -.32529E-04
   4  Prefactor     9.5069        13.348        .15534E-05   -.13823E-04
   5  Prefactor     16.577        11.773       -.28382E-05   -.16155E-03
   6  norm          3.0163        2.0148       -.18771E-06   -.76802E-03
   7  Prefactor     .10000E-03    136.46        .20218E-04** at limit **
   8  Prefactor     12.535        10.247       -.21409E-05   -.45869E-04
   9  norm          .12997        2.2285       -.13769E-06   -.39039E-04
  10  Prefactor     .10000E-03    16.105        .10972E-05** at limit **
  11  Prefactor     15.307        11.930       -.86922E-06   -.20689E-03
  12  norm          .63553        .88539        .11430E-06   -.15056E-02
  13  Prefactor     22.303        38.528       -.45475E-04    .26757E-05
  14  Prefactor     .10000E-03    2.8644       -.13237E-06** at limit **
  15  Prefactor     .10000E-03    4.8959        .24071E-06** at limit **
  16  norm          .10000E-03    1.8188       -.95836E-07** at limit **
  17  Prefactor     13.683        32.835        .18062E-04    .39585E-05
  18  norm          4.0647        2.3866       -.10582E-06   -.18824E-03
  19  Prefactor     25.685        18.678       -.21154E-05    .44143E-05
  20  Prefactor     .10000E-03    20.759       -.40856E-05** at limit **
  21  Normalizat    .90298        .16180        .22213E-05   -.12281E-03
  22  Prefactor     .84974        .15085        .10722E-05   -.15037E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7155
  Prefactor  = 0.0001
  norm       = 11.6243
  Prefactor  = 9.50687
  Prefactor  = 16.5771
  norm       = 3.01625
  Prefactor  = 0.000100001
  Prefactor  = 12.5349
  norm       = 0.129968
  Prefactor  = 0.0001
  Prefactor  = 15.3068
  norm       = 0.635532
  Prefactor  = 22.3031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6831
  norm       = 4.06471
  Prefactor  = 25.685
  Prefactor  = 0.0001
  Normalizat = 0.902978
  Prefactor  = 0.849736
 **********
 **   18 **HESSE 
 **********

 FCN=   7064.856     FROM HESSE     STATUS=OK           354 CALLS     2776 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.716        19.677        .10820E-03   -1.4967    
   2  Prefactor     .10000E-03    1.9902        .11559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.624        17.651        .11746E-03   -1.5026    
   4  Prefactor     9.5069        13.347        .13001E-03   -1.5091    
   5  Prefactor     16.577        11.809        .98406E-04   -1.4893    
   6  norm          3.0163        2.0051        .92672E-04   -1.5361    
   7  Prefactor     .10000E-03    138.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.535        10.298        .11316E-03   -1.5000    
   9  norm          .12997        27.839        .21669E-02   -1.5636    
  10  Prefactor     .10000E-03    16.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.307        12.077        .10219E-03   -1.4925    
  12  norm          .63553        .83986        .56745E-03   -1.5549    
  13  Prefactor     22.303        38.519        .84694E-04   -1.4763    
  14  Prefactor     .10000E-03    2.8675        .13893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9266        .18131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8241        .11070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.683        33.181        .10841E-03   -1.4968    
  18  norm          4.0647        2.3842        .94328E-04   -1.5305    
  19  Prefactor     25.685        18.685        .79052E-04   -1.4694    
  20  Prefactor     .10000E-03    20.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .90298        .19762        .23281E-03   -.96356    
  22  Prefactor     .84974        .18297        .23661E-03   -.97920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34175e-08
Minuit parameter uncertainties:
  1  19.6866
  2  1.22959e-06
  3  17.6592
  4  13.3508
  5  11.8105
  6  2.00512
  7  0.000710757
  8  10.2991
  9  3.80464
  10  6.82943e-05
  11  12.0789
  12  0.839879
  13  38.5623
  14  3.29544e-06
  15  1.07323e-06
  16  8.56354e-06
  17  33.2253
  18  2.38423
  19  18.6888
  20  2.10075e-05
  21  0.197776
  22  0.183106
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.531e+01  1.208e+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:  8.497e-01  1.831e-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:  9.030e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.55
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 8.25e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.63e-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) = 7064.50512398
delta logL = 0.351139441291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7064.50450717
delta logL = 0.351756249102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.307       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5838       1.0000          .0000       10.000    
     3 'Normalizat'    .92832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82866       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=   7064.505     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      201 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.303        7.6613        .25593E-02    .91877E-04
   2  Index         2.5834        .39589        .18776       -.75038E-04
   3  Normalizat    .92836        .15048        .45262E-01    .13194E-04
   4  Prefactor     .82863        .14761        .44089E-01    .14996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3028
  Index      = 2.58344
  Normalizat = 0.928363
  Prefactor  = 0.828634
 **********
 **   18 **HESSE 
 **********

 FCN=   7064.505     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.303        7.7795        .10237E-03   -1.4925    
   2  Index         2.5834        .46490        .71884E-02   -.50443    
   3  Normalizat    .92836        .18094        .23000E-03   -.95471    
   4  Prefactor     .82863        .17573        .23916E-03   -.98681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71121e-12
Minuit parameter uncertainties:
  1  7.78006
  2  0.465775
  3  0.181057
  4  0.175847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693070': 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) = 7064.50450682
delta logL = 0.35175660016

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.530e+01  7.780e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.583e+00  4.658e-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:  8.286e-01  1.758e-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:  9.284e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.35
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.58 +/- 0.47
Photon Flux (Free Index): 9.13e-08 +/- 5.01e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/693070/cmap_HighResolution_662601601_662860801_4FGL_J2256.0-2740_daily_bin1633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.43e-05', photon_flux_error='8.25e-08', dlogl='3.52e-01', energy_flux='2.07e-05', photon_flux2='9.13e-08', job_status='DONE', time_completed='2022-01-03 00:48:57.090677', photon_index_error2='0.47', photon_index2='2.58', ts='5.55', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='0.90', time_epoch_completed='1641199737.09', return_code='0', job_id='693070', GAL2='0.83', EG2='0.93', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='5.01e-08', ts2='6.35', photon_index='3.02' WHERE bin_id='1633' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan  3 00:48:57 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 693070: <4FGL_J2256.0-2740_daily_bin1633> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1633> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Jan  3 00:35:37 2022
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:35:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:35:38 2022
Terminated at Mon Jan  3 00:48:57 2022
Results reported at Mon Jan  3 00:48:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1633 344.025 -27.6739 662601601 662860801 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 :                                   597.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            800 sec.

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

