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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin710
RA = 344.025, Dec = -27.6739
tmin = 423360001, tmax = 423619201
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='591198', job_status='RUN', time_executed='2021-09-29 02:43:41.286979', time_epoch_executed='1632908621.29' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591198/ft1_4FGL_J2256.0-2740_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591198/ft2_4FGL_J2256.0-2740_daily_bin710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591198/ft1_4FGL_J2256.0-2740_daily_bin710.fits outfile=/scratch/kocevski/591198/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin710.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=423360001.0 tmax=423619201.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.79
user 5.40
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591198/ft1_filtered_4FGL_J2256.0-2740_daily_bin710.fits" evtable="EVENTS" scfile=/scratch/kocevski/591198/ft2_4FGL_J2256.0-2740_daily_bin710.fits sctable="SC_DATA" outfile=/scratch/kocevski/591198/ltcube_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.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/591198/ft2_4FGL_J2256.0-2740_daily_bin710.fits
.....................!
real 11.53
user 11.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591198/ft1_filtered_4FGL_J2256.0-2740_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/591198/ft2_4FGL_J2256.0-2740_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/591198/ltcube_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.fits outfile=/scratch/kocevski/591198/expmap_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.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/591198/ltcube_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.fits
.....................!
real 191.96
user 186.78
sys 4.88

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/591198/ft1_filtered_4FGL_J2256.0-2740_daily_bin710.fits scfile=/scratch/kocevski/591198/ft2_4FGL_J2256.0-2740_daily_bin710.fits outfile=/scratch/kocevski/591198/cmap_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591198/ft1_filtered_4FGL_J2256.0-2740_daily_bin710.fits scfile=/scratch/kocevski/591198/ft2_4FGL_J2256.0-2740_daily_bin710.fits outfile=/scratch/kocevski/591198/cmap_HighResolution_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591198/ft1_filtered_4FGL_J2256.0-2740_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/591198/ft2_4FGL_J2256.0-2740_daily_bin710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591198/Model_4FGL_J2256.0-2740_daily_bin710.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/591198/ft1_filtered_4FGL_J2256.0-2740_daily_bin710.fits.....................!
real 37.00
user 35.53
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/591198/ft1_filtered_4FGL_J2256.0-2740_daily_bin710.fits', '/scratch/kocevski/591198/ft2_4FGL_J2256.0-2740_daily_bin710.fits', expMap='/scratch/kocevski/591198/expmap_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.fits', expCube='/scratch/kocevski/591198/ltcube_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/591198/Model_4FGL_J2256.0-2740_daily_bin710.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/591198/ft1_filtered_4FGL_J2256.0-2740_daily_bin710.fits
Spacecraft file(s): /scratch/kocevski/591198/ft2_4FGL_J2256.0-2740_daily_bin710.fits
Exposure map: /scratch/kocevski/591198/expmap_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.fits
Exposure cube: /scratch/kocevski/591198/ltcube_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/591198/Model_4FGL_J2256.0-2740_daily_bin710.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4091.04586821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.857       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2045       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1553       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2807       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .55117E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .36932       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.898       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1861       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    91.483       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0352       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.719       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1981       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71629       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=   4090.975     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2403 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.209       -.55365E-07** at limit **
   2  Prefactor     .10000E-03    9.1105        .12602E-06** at limit **
   3  norm          12.857        16.569        .47863E-07   -.66254E-06
   4  Prefactor     .10000E-03    10.089        .18496E-07** at limit **
   5  Prefactor     .10000E-03    3.2772       -.17359E-08** at limit **
   6  norm          2.2698        1.8882       -.11668E-07   -.57255E-04
   7  Prefactor     .10000E-03    11.340       -.67292E-08** at limit **
   8  Prefactor     4.2034        12.819        .74535E-06    .68817E-06
   9  norm          1.1548        4.2633        .12582E-05    .23040E-04
  10  Prefactor     5.2702        14.705        .12146E-05   -.16193E-04
  11  Prefactor     .10036E-03    4.4427        .16169E-06** at limit **
  12  norm          .36916        .57049        .59022E-07   -.10085E-03
  13  Prefactor     19.928        70.546        .93261E-06    .37157E-04
  14  Prefactor     1.1866        37.965        .39042E-05    .12011E-04
  15  Prefactor     .10000E-03    3.6660       -.36260E-07** at limit **
  16  norm          .10000E-03    5.5191       -.16632E-06** at limit **
  17  Prefactor     91.462        57.224       -.14687E-06   -.82581E-04
  18  norm          2.0353        3.5323        .34646E-06    .33295E-04
  19  Prefactor     .10000E-03    11.417       -.88465E-08** at limit **
  20  Prefactor     31.723        62.983        .18437E-06    .58373E-05
  21  Normalizat    1.1981        .21910        .23950E-06   -.54298E-04
  22  Prefactor     .71626        .20609       -.73631E-06   -.25235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26975
  Prefactor  = 0.0001
  Prefactor  = 4.20338
  norm       = 1.15484
  Prefactor  = 5.2702
  Prefactor  = 0.000100361
  norm       = 0.369159
  Prefactor  = 19.9284
  Prefactor  = 1.18655
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 91.4624
  norm       = 2.03532
  Prefactor  = 0.0001
  Prefactor  = 31.7229
  Normalizat = 1.19812
  Prefactor  = 0.716264
 **********
 **   18 **HESSE 
 **********

 FCN=   4090.975     FROM HESSE     STATUS=OK           346 CALLS     2749 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.2589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.857        16.566        .11171E-03   -1.4991    
   4  Prefactor     .10000E-03    10.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2832        .11308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2698        1.8904        .77772E-04   -1.5407    
   7  Prefactor     .10000E-03    11.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2034        12.836        .19653E-03   -1.5298    
   9  norm          1.1548        4.0396        .21331E-03   -1.5493    
  10  Prefactor     5.2702        14.048        .17491E-03   -1.5249    
  11  Prefactor     .10036E-03    40.481        .24180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .36916        .51572        .49979E-03   -1.5586    
  13  Prefactor     19.928        70.669        .89789E-04   -1.4815    
  14  Prefactor     1.1866        36.978        .41891E-03   -1.5490    
  15  Prefactor     .10000E-03    3.6757        .11957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.5535        .14668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     91.462        57.592        .21007E-03   -1.3792    
  18  norm          2.0353        3.5017        .15004E-03   -1.5423    
  19  Prefactor     .10000E-03    11.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.723        62.990        .71145E-04   -1.4581    
  21  Normalizat    1.1981        .25562        .21357E-03   -.86661    
  22  Prefactor     .71626        .23989        .26176E-03   -1.0289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26427e-09
Minuit parameter uncertainties:
  1  9.46834e-06
  2  1.3428e-05
  3  16.572
  4  1.96907e-05
  5  2.99869e-07
  6  1.89041
  7  3.40975e-06
  8  12.8445
  9  4.04058
  10  14.0564
  11  0.00764948
  12  0.515729
  13  70.968
  14  13.2562
  15  8.44015e-06
  16  1.68176e-06
  17  57.6276
  18  3.50207
  19  2.12247e-06
  20  63.1225
  21  0.255883
  22  0.240239
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.004e-04  7.649e-03  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.163e-01  2.402e-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.198e+00  2.559e-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.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591198/likelihoodResults_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.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) = 4090.97489273
delta logL = -0.000118503198792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4090.52709925
delta logL = 0.44767498376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9962       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7476       1.0000          .0000       10.000    
     3 'Normalizat'    1.2025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70440       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=   4090.527     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      282 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9961        2.8936        .73296E-02    .29022E-02
   2  Index         1.7476        .49772        .15861        .13218E-04
   3  Normalizat    1.2025        .20835        .34830E-01    .18932E-04
   4  Prefactor     .70439        .20342        .42460E-01    .33089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99615
  Index      = 1.74763
  Normalizat = 1.20251
  Prefactor  = 0.704392
 **********
 **   18 **HESSE 
 **********

 FCN=   4090.527     FROM HESSE     STATUS=OK            33 CALLS      315 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9961        3.5127        .12569E-03   -1.5425    
   2  Index         1.7476        .72774        .80932E-02   -.70821    
   3  Normalizat    1.2025        .24138        .21312E-03   -.86525    
   4  Prefactor     .70439        .23541        .13164E-02   -1.0336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9543e-09
Minuit parameter uncertainties:
  1  3.51308
  2  0.732265
  3  0.241608
  4  0.235744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591198': 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) = 4090.52709924
delta logL = 0.447674986796

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.996e+00  3.513e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.748e+00  7.323e-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:  7.044e-01  2.357e-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.203e+00  2.416e-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/591198/cmap_HighResolution_423360001_423619201_4FGL_J2256.0-2740_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.63e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-29 02:52:37.099442', job_id='591198', GAL2='0.70', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632909157.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='4.48e-01', ts2='0.90', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='710' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 591198: <4FGL_J2256.0-2740_daily_bin710> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin710> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:54 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:55 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:55 2021
Terminated at Wed Sep 29 02:52:37 2021
Results reported at Wed Sep 29 02:52:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin710 344.025 -27.6739 423360001 423619201 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 :                                   531.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            703 sec.

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

