/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 = 7322
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin699
RA = 344.025, Dec = -27.6739
tmin = 420508801, tmax = 420768001
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='591185', job_status='RUN', time_executed='2021-09-29 02:42:19.125015', time_epoch_executed='1632908539.13' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591185

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591185/ft1_4FGL_J2256.0-2740_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591185/ft2_4FGL_J2256.0-2740_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591185/ft1_4FGL_J2256.0-2740_daily_bin699.fits outfile=/scratch/kocevski/591185/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin699.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=420508801.0 tmax=420768001.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.36
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591185/ft1_filtered_4FGL_J2256.0-2740_daily_bin699.fits" evtable="EVENTS" scfile=/scratch/kocevski/591185/ft2_4FGL_J2256.0-2740_daily_bin699.fits sctable="SC_DATA" outfile=/scratch/kocevski/591185/ltcube_420508801_420768001_4FGL_J2256.0-2740_daily_bin699.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/591185/ft2_4FGL_J2256.0-2740_daily_bin699.fits
.....................!
real 11.59
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591185/ft1_filtered_4FGL_J2256.0-2740_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/591185/ft2_4FGL_J2256.0-2740_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/591185/ltcube_420508801_420768001_4FGL_J2256.0-2740_daily_bin699.fits outfile=/scratch/kocevski/591185/expmap_420508801_420768001_4FGL_J2256.0-2740_daily_bin699.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/591185/ltcube_420508801_420768001_4FGL_J2256.0-2740_daily_bin699.fits
.....................!
real 190.30
user 185.79
sys 4.20

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/591185/ft1_filtered_4FGL_J2256.0-2740_daily_bin699.fits scfile=/scratch/kocevski/591185/ft2_4FGL_J2256.0-2740_daily_bin699.fits outfile=/scratch/kocevski/591185/cmap_420508801_420768001_4FGL_J2256.0-2740_daily_bin699.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591185/ft1_filtered_4FGL_J2256.0-2740_daily_bin699.fits scfile=/scratch/kocevski/591185/ft2_4FGL_J2256.0-2740_daily_bin699.fits outfile=/scratch/kocevski/591185/cmap_HighResolution_420508801_420768001_4FGL_J2256.0-2740_daily_bin699.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591185/ft1_filtered_4FGL_J2256.0-2740_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/591185/ft2_4FGL_J2256.0-2740_daily_bin699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591185/Model_4FGL_J2256.0-2740_daily_bin699.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/591185/ft1_filtered_4FGL_J2256.0-2740_daily_bin699.fits.....................!
real 48.82
user 47.53
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6662       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0391       1.0000         .10000E-03   10000.    
     3 'norm      '    .71825       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.127       1.0000         .10000E-03   10000.    
     6 'norm      '    .10621E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.784       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8136       1.0000         .10000E-03   10000.    
     9 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3567       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2873       1.0000         .10000E-03   10000.    
    12 'norm      '    .84273       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.0491       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1006       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.592       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.032       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .65987       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0754       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6382.029     FROM MIGRAD    STATUS=FAILED       815 CALLS     2721 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6666        12.966        .13616E-03   -.71971E-04
   2  Prefactor     3.0398        5.1158        .22512E-03    .20412E-04
   3  norm          .67129        97.518        .52401E-02    .83161E-03
   4  Prefactor     19.403        14.328        .90930E-04    .12253E-04
   5  Prefactor     14.127        9.6261        .10657E-03   -.68682E-03
   6  norm          .10000E-03    .95512        .15000E-03** at limit **
   7  Prefactor     46.747        34.666        .58621E-04   -.22597E-03
   8  Prefactor     1.8113        7.1065        .15509E-02   -.86140E-03
   9  norm          .10000E-03    3.8936        .30063E-02** at limit **
  10  Prefactor     6.3356        12.560        .15920E-03   -.54444E-03
  11  Prefactor     1.3076        22.400        .19530E-02   -.17466E-02
  12  norm          .84251        .56699        .37106E-04   -.17391E-02
  13  Prefactor     .10000E-03    40.549        .18142E-02** at limit **
  14  Prefactor     .10000E-03    5.1661        .17701E-02** at limit **
  15  Prefactor     .10000E-03    2.4111        .12093E-02** at limit **
  16  norm          9.0498        6.9423        .13324E-03    .53585E-04
  17  Prefactor     .10000E-03    9.9651        .18142E-02** at limit **
  18  norm          5.1005        2.9615        .49898E-03   -.29947E-03
  19  Prefactor     24.593        21.325        .80777E-04   -.69076E-04
  20  Prefactor     40.033        59.808        .63352E-04   -.31368E-04
  21  Normalizat    .65970        .19570        .25873E-03   -.49045E-03
  22  Prefactor     1.0756        .18724        .21004E-03   -.11945E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6382.029     FROM SIMPLEX   STATUS=UNCHANGED    889 CALLS     3610 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6666        12.966        .73924E-06   -1.5119    
   2  Prefactor     3.0398        5.1158        .49237E-06   -1.5359    
   3  norm          .67129        97.518        .19971E-04   -1.5544    
   4  Prefactor     19.403        14.328        .54624E-06   -1.4827    
   5  Prefactor     14.127        9.6261        .57643E-06   -1.4956    
   6  norm          .10000E-03    .95512        .18611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     46.747        34.666        .15802E-06   -1.4339    
   8  Prefactor     1.8113        7.1065        .17667E-06   -1.5439    
   9  norm          .10000E-03    3.8936        .39555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3356        12.560        .16900E-06   -1.5205    
  11  Prefactor     1.3076        22.400        .20900E-06   -1.5479    
  12  norm          .84251        .56699        .17399E-06   -1.5524    
  13  Prefactor     .10000E-03    40.549        .53699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1661        .29159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4111        .18229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.0498        6.9423        .16698E-06   -1.5106    
  17  Prefactor     .10000E-03    9.9651        .42133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1005        2.9615        .16652E-06   -1.5256    
  19  Prefactor     24.593        21.325        .15692E-06   -1.4716    
  20  Prefactor     40.033        59.808        .14888E-06   -1.4442    
  21  Normalizat    .65970        .19570        .11282E-06   -1.0551    
  22  Prefactor     1.0756        .18724        .98357E-07   -.90251    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6382.029     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     3944 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6666        12.964        .54466E-05   -.96017E-05
   2  Prefactor     3.0398        5.1148        .45025E-04   -.45450E-05
   3  norm          .67127        98.570        .10480E-02   -.66062E-05
   4  Prefactor     19.403        14.326        .36372E-05   -.25005E-05
   5  Prefactor     14.128        9.6250        .42627E-05   -.92280E-04
   6  norm          .10000E-03    .95512        .29999E-04** at limit **
   7  Prefactor     46.746        34.490        .11724E-04   -.68071E-04
   8  Prefactor     1.8115        7.0935        .62038E-04   -.10757E-03
   9  norm          .10000E-03    3.9053        .60127E-03** at limit **
  10  Prefactor     6.3348        12.161        .63680E-05   -.18531E-03
  11  Prefactor     1.3090        19.752        .78120E-04   -.81350E-04
  12  norm          .84246        .55135        .14842E-05   -.11905E-02
  13  Prefactor     .10000E-03    40.551        .36285E-03** at limit **
  14  Prefactor     .10000E-03    5.1668        .35402E-03** at limit **
  15  Prefactor     .10000E-03    2.4112        .24186E-03** at limit **
  16  norm          9.0498        6.9412        .53295E-05    .17065E-05
  17  Prefactor     .10000E-03    9.9653        .36285E-03** at limit **
  18  norm          5.1005        2.9610        .19959E-04   -.40442E-04
  19  Prefactor     24.593        21.323        .16155E-04   -.10978E-04
  20  Prefactor     40.033        59.800        .12670E-04   -.41274E-05
  21  Normalizat    .65969        .19427        .51747E-04   -.12549E-03
  22  Prefactor     1.0756        .18660        .42009E-04   -.18662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.66661
  Prefactor  = 3.03983
  norm       = 0.671272
  Prefactor  = 19.4033
  Prefactor  = 14.1276
  norm       = 0.0001
  Prefactor  = 46.7458
  Prefactor  = 1.81155
  norm       = 0.0001
  Prefactor  = 6.33476
  Prefactor  = 1.30904
  norm       = 0.842463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.04978
  Prefactor  = 0.0001
  norm       = 5.10055
  Prefactor  = 24.5934
  Prefactor  = 40.0331
  Normalizat = 0.659687
  Prefactor  = 1.07558
 **********
 **   18 **HESSE 
 **********

 FCN=   6382.029     FROM HESSE     STATUS=OK           320 CALLS     4264 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6666        12.956        .10893E-05   -1.5119    
   2  Prefactor     3.0398        5.1157        .18010E-05   -1.5359    
   3  norm          .67127        98.429        .41921E-04   -1.5544    
   4  Prefactor     19.403        14.330        .72744E-06   -1.4827    
   5  Prefactor     14.128        9.6298        .85253E-06   -1.4956    
   6  norm          .10000E-03    .95512        .59999E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     46.746        34.476        .23448E-05   -1.4339    
   8  Prefactor     1.8115        7.0953        .24815E-05   -1.5439    
   9  norm          .10000E-03    3.9058        .12025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3348        12.169        .12736E-05   -1.5205    
  11  Prefactor     1.3090        19.699        .31248E-05   -1.5479    
  12  norm          .84246        .55086        .37013E-06   -1.5524    
  13  Prefactor     .10000E-03    40.552        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1668        .70803E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4112        .48371E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.0498        6.9418        .10659E-05   -1.5106    
  17  Prefactor     .10000E-03    9.9654        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1005        2.9607        .79836E-06   -1.5256    
  19  Prefactor     24.593        21.323        .32311E-05   -1.4716    
  20  Prefactor     40.033        59.849        .25341E-05   -1.4442    
  21  Normalizat    .65969        .19425        .10349E-04   -1.0551    
  22  Prefactor     1.0756        .18659        .84018E-05   -.90251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27051e-10
Minuit parameter uncertainties:
  1  12.9602
  2  5.11643
  3  16.2831
  4  14.333
  5  9.63082
  6  5.60403e-07
  7  34.4908
  8  7.09855
  9  3.0325e-05
  10  12.1733
  11  10.1597
  12  0.550861
  13  3.06172e-05
  14  1.19522e-06
  15  1.8263e-06
  16  6.94238
  17  3.22545e-06
  18  2.96077
  19  21.3295
  20  59.939
  21  0.194448
  22  0.186706
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.309e+00  1.016e+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.076e+00  1.867e-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:  6.597e-01  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/591185/likelihoodResults_420508801_420768001_4FGL_J2256.0-2740_daily_bin699.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) = 6382.02898298
delta logL = 3.10700579575e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6382.02897484
delta logL = 1.12423940664e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2859       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0305       1.0000          .0000       10.000    
     3 'Normalizat'    .65973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0756       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=   6381.724     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      275 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16636        5.3189        .93065E-02    .24843E-02
   2  Index         8.2941        7.1088        .22038        .45891E-04
   3  Normalizat    .62540        .34350E-01    .59999E-01   -.20742E-04
   4  Prefactor     1.1008        .34694E-01    .38597E-01   -.36189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.166359
  Index      = 8.29407
  Normalizat = 0.625399
  Prefactor  = 1.10078
 **********
 **   18 **HESSE 
 **********

 FCN=   6381.724     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16636        14.777        .42497E-03   -1.5626    
   2  Index         8.2941        5.0391        .33872E-02    .71924    
   3  Normalizat    .62540        .14636        .26541E-03   -1.0692    
   4  Prefactor     1.1008        .14132        .20795E-03   -.89442    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.93798e-07
Minuit parameter uncertainties:
  1  3.13565
  2  23.5554
  3  0.14645
  4  0.141369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591185': 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): 102
logL (Free Index) = 6381.72399068
delta logL = 0.30499540291

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.664e-01  3.136e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  8.294e+00  2.356e+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.101e+00  1.414e-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:  6.254e-01  1.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/591185/cmap_HighResolution_420508801_420768001_4FGL_J2256.0-2740_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-29 02:54:38.849802', job_id='591185', GAL2='1.10', fit_tolerance='1e-08', EG2='0.63', EG='0.66', time_epoch_completed='1632909278.85', return_code2='102', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.05e-01', ts2='0.70', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='699' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:54:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 591185: <4FGL_J2256.0-2740_daily_bin699> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin699> 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) <bullet0264>, 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:54:39 2021
Results reported at Wed Sep 29 02:54:39 2021

Your job looked like:

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

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

