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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin700
RA = 344.025, Dec = -27.6739
tmin = 420768001, tmax = 421027201
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='591186', job_status='RUN', time_executed='2021-09-29 02:44:42.065893', time_epoch_executed='1632908682.07' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591186/ft1_4FGL_J2256.0-2740_daily_bin700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591186/ft2_4FGL_J2256.0-2740_daily_bin700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591186/ft1_4FGL_J2256.0-2740_daily_bin700.fits outfile=/scratch/kocevski/591186/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin700.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=420768001.0 tmax=421027201.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.47
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591186/ft1_filtered_4FGL_J2256.0-2740_daily_bin700.fits" evtable="EVENTS" scfile=/scratch/kocevski/591186/ft2_4FGL_J2256.0-2740_daily_bin700.fits sctable="SC_DATA" outfile=/scratch/kocevski/591186/ltcube_420768001_421027201_4FGL_J2256.0-2740_daily_bin700.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/591186/ft2_4FGL_J2256.0-2740_daily_bin700.fits
.....................!
real 11.90
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591186/ft1_filtered_4FGL_J2256.0-2740_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/591186/ft2_4FGL_J2256.0-2740_daily_bin700.fits sctable="SC_DATA" expcube=/scratch/kocevski/591186/ltcube_420768001_421027201_4FGL_J2256.0-2740_daily_bin700.fits outfile=/scratch/kocevski/591186/expmap_420768001_421027201_4FGL_J2256.0-2740_daily_bin700.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/591186/ltcube_420768001_421027201_4FGL_J2256.0-2740_daily_bin700.fits
.....................!
real 191.10
user 185.39
sys 5.35

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/591186/ft1_filtered_4FGL_J2256.0-2740_daily_bin700.fits scfile=/scratch/kocevski/591186/ft2_4FGL_J2256.0-2740_daily_bin700.fits outfile=/scratch/kocevski/591186/cmap_420768001_421027201_4FGL_J2256.0-2740_daily_bin700.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591186/ft1_filtered_4FGL_J2256.0-2740_daily_bin700.fits scfile=/scratch/kocevski/591186/ft2_4FGL_J2256.0-2740_daily_bin700.fits outfile=/scratch/kocevski/591186/cmap_HighResolution_420768001_421027201_4FGL_J2256.0-2740_daily_bin700.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591186/ft1_filtered_4FGL_J2256.0-2740_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/591186/ft2_4FGL_J2256.0-2740_daily_bin700.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591186/Model_4FGL_J2256.0-2740_daily_bin700.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/591186/ft1_filtered_4FGL_J2256.0-2740_daily_bin700.fits.....................!
real 48.37
user 46.93
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9488       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.428       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    63.237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .29201E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9880       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28658E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0847       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1969       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1307       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0609       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    121.25       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0298       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71848       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=   5846.619     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2435 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    15.353        .25909E-05** at limit **
   2  Prefactor     .10000E-03    5.1481        .15331E-06** at limit **
   3  norm          .10000E-03    6.9546       -.46984E-07** at limit **
   4  Prefactor     8.9435        18.895        .39649E-06   -.90077E-05
   5  Prefactor     34.424        15.785       -.18940E-06   -.13445E-03
   6  norm          .10000E-03    .79552       -.19322E-06** at limit **
   7  Prefactor     63.218        43.079        .11031E-05   -.84752E-04
   8  Prefactor     .10000E-03    3.7574        .31337E-07** at limit **
   9  norm          .10002E-03    1.7566        .62758E-06** at limit **
  10  Prefactor     8.9726        13.615       -.88429E-06   -.27086E-03
  11  Prefactor     .10000E-03    4.7788       -.22724E-07** at limit **
  12  norm          2.0841        .77937       -.17531E-06   -.23308E-02
  13  Prefactor     .10000E-03    25.952        .16523E-06** at limit **
  14  Prefactor     .10000E-03    5.1645       -.68348E-07** at limit **
  15  Prefactor     3.1931        7.9280        .31678E-05   -.65378E-04
  16  norm          2.1294        6.1436        .33414E-06   -.64805E-05
  17  Prefactor     1.0583        81.130        .32789E-04    .25764E-04
  18  norm          .10000E-03    1.3064       -.10807E-06** at limit **
  19  Prefactor     .10000E-03    8.6073       -.31827E-06** at limit **
  20  Prefactor     121.08        93.248        .13908E-04   -.71379E-04
  21  Normalizat    1.0302        .17356       -.58245E-06   -.25269E-03
  22  Prefactor     .71820        .16141       -.10245E-05   -.27405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100168
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.94346
  Prefactor  = 34.4241
  norm       = 0.0001
  Prefactor  = 63.2182
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 8.97264
  Prefactor  = 0.0001
  norm       = 2.08409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19308
  norm       = 2.12938
  Prefactor  = 1.05834
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 121.077
  Normalizat = 1.03017
  Prefactor  = 0.718197
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.619     FROM HESSE     STATUS=OK           344 CALLS     2779 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    113.38        .56526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1970        .16927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.9697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9435        18.927        .13399E-03   -1.5110    
   5  Prefactor     34.424        15.857        .68296E-04   -1.4534    
   6  norm          .10000E-03    .79886        .66357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     63.218        42.771        .50462E-04   -1.4116    
   8  Prefactor     .10000E-03    3.7736        .14472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    18.947        .18646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.9726        12.792        .13369E-03   -1.5109    
  11  Prefactor     .10000E-03    11.059        .27356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0841        .76818        .33863E-04   -1.5419    
  13  Prefactor     .10000E-03    25.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1748        .16971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1931        7.9267        .11331E-02   -1.5351    
  16  norm          2.1294        6.1265        .28245E-03   -1.5416    
  17  Prefactor     1.0583        81.085        .23782E-02   -1.5502    
  18  norm          .10000E-03    1.3417        .17065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     121.08        93.169        .18274E-03   -1.3503    
  21  Normalizat    1.0302        .20509        .21894E-03   -.92026    
  22  Prefactor     .71820        .19098        .24986E-03   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49086e-09
Minuit parameter uncertainties:
  1  0.00875642
  2  8.3213e-06
  3  1.79905e-07
  4  18.9395
  5  15.8585
  6  5.78866e-06
  7  42.7917
  8  2.82697e-06
  9  0.00114024
  10  12.796
  11  3.72557e-05
  12  0.768188
  13  8.34266e-06
  14  3.8012e-06
  15  7.92935
  16  6.1283
  17  18.5526
  18  3.52891e-06
  19  3.42996e-05
  20  93.2821
  21  0.205248
  22  0.191151
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.726e-05  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.182e-01  1.912e-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.030e+00  2.052e-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.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591186/likelihoodResults_420768001_421027201_4FGL_J2256.0-2740_daily_bin700.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) = 5846.61969164
delta logL = -0.000431136823863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5846.61926057
delta logL = -7.43730197428e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9915       1.0000          .0000       10.000    
     3 'Normalizat'    1.0303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71814       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5846.617     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      308 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28322        20.108        .36285E-02    .13804E-03
   2  Index         2.0880        .71992        .50000       -.10882E-04
   3  Normalizat    1.0296        .19503        .21893E-03   -.64702E-04
   4  Prefactor     .71810        .18956        .24986E-03    .75531E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.283225
  Index      = 2.08796
  Normalizat = 1.02957
  Prefactor  = 0.718104
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.617     FROM HESSE     STATUS=OK            29 CALLS      337 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28322        19.189        .14514E-03   -1.5602    
   2  Index         2.0880        2.6566        .12862E-01   -.62169    
   3  Normalizat    1.0296        .19518        .87573E-05   -.92046    
   4  Prefactor     .71810        .18978        .99944E-05   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68886e-11
Minuit parameter uncertainties:
  1  4.66323
  2  2.89531
  3  0.195315
  4  0.189955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591186': 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) = 5846.61735333
delta logL = 0.00190717218811

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.832e-01  4.663e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.088e+00  2.895e+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:  7.181e-01  1.900e-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.030e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.025 -27.674

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/591186/cmap_HighResolution_420768001_421027201_4FGL_J2256.0-2740_daily_bin700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-29 02:55:00.853130', job_id='591186', GAL2='0.72', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632909300.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.91e-03', ts2='0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='700' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:55:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 591186: <4FGL_J2256.0-2740_daily_bin700> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin700> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:53 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:40:54 2021
Terminated at Wed Sep 29 02:55:01 2021
Results reported at Wed Sep 29 02:55:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin700 344.025 -27.6739 420768001 421027201 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 :                                   619.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            848 sec.

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

