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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin905
RA = 344.025, Dec = -27.6739
tmin = 473904001, tmax = 474163201
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='592504', job_status='RUN', time_executed='2021-09-29 02:46:48.568656', time_epoch_executed='1632908808.57' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592504

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592504/ft1_4FGL_J2256.0-2740_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592504/ft2_4FGL_J2256.0-2740_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592504/ft1_4FGL_J2256.0-2740_daily_bin905.fits outfile=/scratch/kocevski/592504/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin905.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.10
user 4.84
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592504/ft1_filtered_4FGL_J2256.0-2740_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/592504/ft2_4FGL_J2256.0-2740_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/592504/ltcube_473904001_474163201_4FGL_J2256.0-2740_daily_bin905.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/592504/ft2_4FGL_J2256.0-2740_daily_bin905.fits
.....................!
real 12.07
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592504/ft1_filtered_4FGL_J2256.0-2740_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/592504/ft2_4FGL_J2256.0-2740_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/592504/ltcube_473904001_474163201_4FGL_J2256.0-2740_daily_bin905.fits outfile=/scratch/kocevski/592504/expmap_473904001_474163201_4FGL_J2256.0-2740_daily_bin905.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/592504/ltcube_473904001_474163201_4FGL_J2256.0-2740_daily_bin905.fits
.....................!
real 191.27
user 185.51
sys 5.36

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/592504/ft1_filtered_4FGL_J2256.0-2740_daily_bin905.fits scfile=/scratch/kocevski/592504/ft2_4FGL_J2256.0-2740_daily_bin905.fits outfile=/scratch/kocevski/592504/cmap_473904001_474163201_4FGL_J2256.0-2740_daily_bin905.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.55
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592504/ft1_filtered_4FGL_J2256.0-2740_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/592504/ft2_4FGL_J2256.0-2740_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592504/Model_4FGL_J2256.0-2740_daily_bin905.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/592504/ft1_filtered_4FGL_J2256.0-2740_daily_bin905.fits.....................!
real 38.79
user 37.44
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6998       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .86011E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .21530E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.358       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3097       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3621       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42122       1.0000         .10000E-03   10000.    
    12 'norm      '    .89687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    23.155       1.0000         .10000E-03   10000.    
    17 'Prefactor '    68.628       1.0000         .10000E-03   10000.    
    18 'norm      '    .22919       1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.555       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89263       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85965       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=   4331.614     FROM MIGRAD    STATUS=FAILED       857 CALLS     2830 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6962        65.814        .32266E-03    .16172E-04
   2  Prefactor     .60356E-01    11.936        .53530E-01    .19208E-03
   3  norm          .10001E-03    133.31        .36521E-03** at limit **
   4  Prefactor     40.364        22.824        .63097E-04   -.13697E-03
   5  Prefactor     1.3087        28.122        .19267E-02    .33133E-03
   6  norm          .10000E-03    1.2382        .70744E-03** at limit **
   7  Prefactor     .10000E-03    20.969        .18142E-02** at limit **
   8  Prefactor     4.3650        10.640        .96426E-03    .81540E-04
   9  norm          .10000E-03    2.1117        .92672E-03** at limit **
  10  Prefactor     .10000E-03    5.4682        .15020E-02** at limit **
  11  Prefactor     .43009        43.005        .25193E-02    .90935E-03
  12  norm          .89676        .72961        .39255E-04   -.14576E-02
  13  Prefactor     .10000E-03    16.473        .18142E-02** at limit **
  14  Prefactor     .10000E-03    13.927        .18142E-02** at limit **
  15  Prefactor     .10000E-03    7.2006        .17164E-02** at limit **
  16  norm          23.156        10.833        .83243E-04   -.30046E-04
  17  Prefactor     68.637        50.790        .48453E-04   -.38715E-04
  18  norm          .24396        6.2130        .20409E-02   -.70645E-03
  19  Prefactor     48.543        33.766        .57547E-04   -.45437E-04
  20  Prefactor     .10000E-03    55.890        .18142E-02** at limit **
  21  Normalizat    .89238        .24926        .22967E-03   -.44070E-03
  22  Prefactor     .85985        .22650        .23061E-03   -.26689E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4331.614     FROM SIMPLEX   STATUS=UNCHANGED   1037 CALLS     3867 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6962        65.814        .13567E-05   -1.5447    
   2  Prefactor     .60356E-01    11.936        .13053E-05   -1.5659    
   3  norm          .10001E-03    133.31        .15702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.364        22.824        .32327E-06   -1.4436    
   5  Prefactor     1.3087        28.122        .38337E-06   -1.5479    
   6  norm          .10000E-03    1.2382        .10422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.969        .65256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3650        10.640        .34328E-06   -1.5290    
   9  norm          .10000E-03    2.1117        .76522E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4682        .42150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .43009        43.005        .35794E-06   -1.5577    
  12  norm          .89676        .72961        .34818E-06   -1.5519    
  13  Prefactor     .10000E-03    16.473        .57990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.927        .44776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.2006        .21372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.156        10.833        .33065E-06   -1.4745    
  17  Prefactor     68.637        50.790        .31458E-06   -1.4049    
  18  norm          .24396        6.2130        .34920E-06   -1.5609    
  19  Prefactor     48.543        33.766        .32103E-06   -1.4313    
  20  Prefactor     .10000E-03    55.890        .11458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89238        .24926        .21692E-06   -.96728    
  22  Prefactor     .85985        .22650        .21855E-06   -.97559    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4331.614     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     4208 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6960        65.701        .12906E-04    .15855E-05
   2  Prefactor     .60342E-01    10.826        .56884E-01    .19275E-03
   3  norm          .10000E-03    133.31        .73042E-04** at limit **
   4  Prefactor     40.364        22.818        .12619E-04    .29369E-04
   5  Prefactor     1.3083        27.976        .77069E-04   -.29503E-06
   6  norm          .10000E-03    1.2384        .14149E-03** at limit **
   7  Prefactor     .10000E-03    20.970        .36285E-03** at limit **
   8  Prefactor     4.3649        10.631        .38570E-04    .94320E-05
   9  norm          .10000E-03    2.1119        .18534E-03** at limit **
  10  Prefactor     .10000E-03    5.4682        .30039E-03** at limit **
  11  Prefactor     .43003        39.786        .50386E-03   -.57085E-05
  12  norm          .89677        .70550        .15702E-05    .97097E-04
  13  Prefactor     .10000E-03    16.473        .36285E-03** at limit **
  14  Prefactor     .10000E-03    13.935        .36285E-03** at limit **
  15  Prefactor     .10000E-03    7.2016        .34327E-03** at limit **
  16  norm          23.156        10.832        .33297E-05    .13657E-05
  17  Prefactor     68.637        50.766        .96905E-05    .70390E-06
  18  norm          .24406        6.1953        .81636E-04   -.59882E-05
  19  Prefactor     48.542        33.698        .11509E-04   -.11261E-04
  20  Prefactor     .10000E-03    55.891        .36285E-03** at limit **
  21  Normalizat    .89239        .24709        .45933E-04    .56085E-04
  22  Prefactor     .85984        .22567        .46123E-04    .42002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.69603
  Prefactor  = 0.0603422
  norm       = 0.0001
  Prefactor  = 40.3642
  Prefactor  = 1.30826
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.36486
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.430026
  norm       = 0.89677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.1556
  Prefactor  = 68.6367
  norm       = 0.244055
  Prefactor  = 48.5424
  Prefactor  = 0.0001
  Normalizat = 0.89239
  Prefactor  = 0.859843
 **********
 **   18 **HESSE 
 **********

 FCN=   4331.614     FROM HESSE     STATUS=OK           330 CALLS     4538 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6960        65.917        .25813E-05   -1.5448    
   2  Prefactor     .60342E-01    11.193        .55692E-01   -1.5659    
   3  norm          .10000E-03    133.31        .73042E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.364        22.821        .25239E-05   -1.4436    
   5  Prefactor     1.3083        27.954        .30828E-05   -1.5479    
   6  norm          .10000E-03    1.2384        .28298E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.970        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3649        10.630        .15428E-05   -1.5290    
   9  norm          .10000E-03    2.1119        .37069E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4682        .60079E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .43003        39.024        .20154E-04   -1.5577    
  12  norm          .89677        .69996        .36999E-06   -1.5519    
  13  Prefactor     .10000E-03    16.473        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.935        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.2016        .68654E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.156        10.836        .66594E-06   -1.4745    
  17  Prefactor     68.637        50.749        .19381E-05   -1.4049    
  18  norm          .24406        6.1927        .32654E-05   -1.5609    
  19  Prefactor     48.542        33.705        .23019E-05   -1.4313    
  20  Prefactor     .10000E-03    55.891        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89239        .24675        .91866E-05   -.96728    
  22  Prefactor     .85984        .22554        .92245E-05   -.97559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63805e-10
Minuit parameter uncertainties:
  1  21.1713
  2  1.64259
  3  6.468e-07
  4  22.8255
  5  12.1009
  6  9.02061e-08
  7  2.21171e-06
  8  10.6346
  9  1.0349e-07
  10  1.91226e-07
  11  8.19754
  12  0.699962
  13  7.95046e-07
  14  1.77437e-06
  15  1.07579e-06
  16  10.8372
  17  50.7813
  18  2.45853
  19  33.7178
  20  3.97461e-06
  21  0.247063
  22  0.225789
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.300e-01  8.198e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.598e-01  2.258e-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.924e-01  2.471e-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.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592504/likelihoodResults_473904001_474163201_4FGL_J2256.0-2740_daily_bin905.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4331.0384463
delta logL = 0.575610622521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4330.98776334
delta logL = 0.626293585512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57320       1.0000         .10000E-03   10000.    
     2 'Index     '    7.3558       1.0000          .0000       10.000    
     3 'Normalizat'    .82086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90793       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=   4330.988     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      222 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57696        11.306        .10825E-01    .30078E-02
   2  Index         7.3505        8.5330        .41498        .91212E-04
   3  Normalizat    .82083        .43547E-01    .43882E-01   -.16910E-03
   4  Prefactor     .90783        .43265E-01    .45106E-01    .62023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.576964
  Index      = 7.3505
  Normalizat = 0.820829
  Prefactor  = 0.907826
 **********
 **   18 **HESSE 
 **********

 FCN=   4330.988     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      257 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57696        29.478        .49540E-03   -1.5556    
   2  Index         7.3505        5.2875        .17672E-01    .48941    
   3  Normalizat    .82083        .18021        .23831E-03   -.99301    
   4  Prefactor     .90783        .17282        .22504E-03   -.95868    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.18991e-10
Minuit parameter uncertainties:
  1  8.2517
  2  18.782
  3  0.180343
  4  0.172926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592504': 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) = 4330.98775851
delta logL = 0.626298419454

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.770e-01  8.252e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  7.351e+00  1.878e+01  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  9.078e-01  1.729e-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.208e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 7.35 +/- 18.78
Photon Flux (Free Index): 5.48e-08 +/- 7.18e-08
Energy Flux (Free Index): 6.47e-06 +/- 1.12e-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/592504/cmap_HighResolution_473904001_474163201_4FGL_J2256.0-2740_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-03', comment='SUCCESS', energy_flux2='6.47e-06', dlogl='6.26e-01', photon_flux2='5.48e-08', job_status='DONE', time_completed='2021-09-29 02:57:24.948746', photon_index_error2='18.78', photon_index2='7.35', ts='0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.12e-05', EG='0.89', time_epoch_completed='1632909444.95', return_code='0', job_id='592504', GAL2='0.91', EG2='0.82', return_code2='102', photon_flux_error2='7.18e-08', ts2='1.35', photon_index='3.02' WHERE bin_id='905' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 592504: <4FGL_J2256.0-2740_daily_bin905> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin905> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:31 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:45:33 2021
Terminated at Wed Sep 29 02:57:25 2021
Results reported at Wed Sep 29 02:57:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin905 344.025 -27.6739 473904001 474163201 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 :                                   630.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            714 sec.

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

