/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 218 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin377
RA = 344.025, Dec = -27.6739
tmin = 337046401, tmax = 337305601
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='590687', job_status='RUN', time_executed='2021-09-29 02:44:07.435520', time_epoch_executed='1632908647.44' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590687/ft1_4FGL_J2256.0-2740_daily_bin377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590687/ft2_4FGL_J2256.0-2740_daily_bin377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590687/ft1_4FGL_J2256.0-2740_daily_bin377.fits outfile=/scratch/kocevski/590687/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin377.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=337046401.0 tmax=337305601.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 10.85
user 10.44
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590687/ft1_filtered_4FGL_J2256.0-2740_daily_bin377.fits" evtable="EVENTS" scfile=/scratch/kocevski/590687/ft2_4FGL_J2256.0-2740_daily_bin377.fits sctable="SC_DATA" outfile=/scratch/kocevski/590687/ltcube_337046401_337305601_4FGL_J2256.0-2740_daily_bin377.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/590687/ft2_4FGL_J2256.0-2740_daily_bin377.fits
.....................!
real 11.05
user 10.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590687/ft1_filtered_4FGL_J2256.0-2740_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/590687/ft2_4FGL_J2256.0-2740_daily_bin377.fits sctable="SC_DATA" expcube=/scratch/kocevski/590687/ltcube_337046401_337305601_4FGL_J2256.0-2740_daily_bin377.fits outfile=/scratch/kocevski/590687/expmap_337046401_337305601_4FGL_J2256.0-2740_daily_bin377.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/590687/ltcube_337046401_337305601_4FGL_J2256.0-2740_daily_bin377.fits
.....................!
real 194.34
user 188.57
sys 5.40

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/590687/ft1_filtered_4FGL_J2256.0-2740_daily_bin377.fits scfile=/scratch/kocevski/590687/ft2_4FGL_J2256.0-2740_daily_bin377.fits outfile=/scratch/kocevski/590687/cmap_337046401_337305601_4FGL_J2256.0-2740_daily_bin377.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.53
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.623       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.5165       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.901       1.0000         .10000E-03   10000.    
     9 'norm      '    23.562       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10830E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.309       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0622       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14498E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .37243       1.0000         .10000E-03   10000.    
    19 'Prefactor '    102.87       1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.749       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61256       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74772       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=   2398.554     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2339 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.630        30.171        .35290E-06    .28222E-04
   2  Prefactor     .10000E-03    4.0044       -.26339E-08** at limit **
   3  norm          18.349        19.285       -.39778E-07   -.37792E-04
   4  Prefactor     .10000E-03    14.895       -.57601E-06** at limit **
   5  Prefactor     .10000E-03    8.8945        .87355E-07** at limit **
   6  norm          2.5157        2.4610        .12259E-07   -.21672E-03
   7  Prefactor     .10000E-03    51.176        .74317E-06** at limit **
   8  Prefactor     21.902        15.872       -.14551E-06   -.19075E-03
   9  norm          23.564        9.6844       -.35029E-06   -.13303E-02
  10  Prefactor     28.530        24.395       -.24840E-05   -.10040E-02
  11  Prefactor     .10000E-03    14.481        .37895E-05** at limit **
  12  norm          .10000E-03    .55911        .19778E-05** at limit **
  13  Prefactor     70.306        63.443       -.28487E-06   -.26994E-04
  14  Prefactor     .10000E-03    10.351       -.96375E-07** at limit **
  15  Prefactor     7.0706        10.974       -.51344E-06   -.54736E-03
  16  norm          .10000E-03    4.2301       -.90730E-08** at limit **
  17  Prefactor     .10000E-03    88.255        .10631E-05** at limit **
  18  norm          .37162        2.8089        .77462E-06   -.46948E-04
  19  Prefactor     102.88        49.587        .45322E-06   -.78727E-05
  20  Prefactor     63.679        83.400       -.78127E-05   -.22068E-03
  21  Normalizat    .61274        .23126        .63431E-07   -.31195E-03
  22  Prefactor     .74734        .23011       -.49081E-06   -.28130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.6304
  Prefactor  = 0.0001
  norm       = 18.3487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51573
  Prefactor  = 0.0001
  Prefactor  = 21.902
  norm       = 23.5639
  Prefactor  = 28.53
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 70.3058
  Prefactor  = 0.0001
  Prefactor  = 7.07063
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.37162
  Prefactor  = 102.88
  Prefactor  = 63.6791
  Normalizat = 0.612739
  Prefactor  = 0.747339
 **********
 **   18 **HESSE 
 **********

 FCN=   2398.554     FROM HESSE     STATUS=OK           332 CALLS     2671 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.630        30.184        .59359E-04   -1.4356    
   2  Prefactor     .10000E-03    4.0112        .95713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.349        19.285        .93513E-04   -1.4851    
   4  Prefactor     .10000E-03    14.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9454        .14264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5157        2.4676        .73679E-04   -1.5391    
   7  Prefactor     .10000E-03    51.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.902        15.898        .85589E-04   -1.4772    
   9  norm          23.564        9.7141        .82522E-04   -1.4737    
  10  Prefactor     28.530        25.611        .75090E-04   -1.4639    
  11  Prefactor     .10000E-03    14.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .65576        .64140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     70.306        63.467        .47874E-04   -1.4029    
  14  Prefactor     .10000E-03    10.367        .15391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0706        10.998        .15095E-03   -1.5176    
  16  norm          .10000E-03    4.2388        .98378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    88.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .37162        2.7329        .15881E-03   -1.5586    
  19  Prefactor     102.88        49.502        .39642E-04   -1.3676    
  20  Prefactor     63.679        85.137        .25130E-03   -1.4110    
  21  Normalizat    .61274        .27445        .24008E-03   -1.0745    
  22  Prefactor     .74734        .27314        .21984E-03   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51216e-09
Minuit parameter uncertainties:
  1  30.1936
  2  8.95313e-07
  3  19.2912
  4  6.36479e-05
  5  4.68251e-06
  6  2.4677
  7  0.000111021
  8  15.9008
  9  9.71471
  10  25.6211
  11  3.24828e-05
  12  4.14766e-05
  13  63.5283
  14  8.42978e-06
  15  11.0009
  16  7.45854e-07
  17  0.000386095
  18  2.01539
  19  49.5218
  20  85.3001
  21  0.27506
  22  0.27363
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.248e-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.473e-01  2.736e-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.127e-01  2.751e-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.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590687/likelihoodResults_337046401_337305601_4FGL_J2256.0-2740_daily_bin377.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) = 2398.55460843
delta logL = -0.000324335720506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2398.55428447
delta logL = -3.7667905417e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9524       1.0000          .0000       10.000    
     3 'Normalizat'    .61236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74773       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=   2398.159     FROM MIGRAD    STATUS=CONVERGED    151 CALLS      304 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0982        4.4328        .32247E-02   -.10950E-03
   2  Index         1.6976        .45128        .15623       -.43255E-04
   3  Normalizat    .61274        .26772        .24008E-03   -.44038E-05
   4  Prefactor     .74020        .27074        .21984E-03   -.22237E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09821
  Index      = 1.69759
  Normalizat = 0.612744
  Prefactor  = 0.740201
 **********
 **   18 **HESSE 
 **********

 FCN=   2398.159     FROM HESSE     STATUS=OK            29 CALLS      333 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0982        5.5119        .12019E-03   -1.6060    
   2  Index         1.6976        .67305        .57617E-02   -.72146    
   3  Normalizat    .61274        .26823        .96034E-05   -1.0745    
   4  Prefactor     .74020        .27106        .87935E-05   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67341e-12
Minuit parameter uncertainties:
  1  5.51279
  2  0.676708
  3  0.268804
  4  0.271546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590687': 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) = 2398.15857671
delta logL = 0.395707384357

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.098e+00  5.513e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.698e+00  6.767e-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.402e-01  2.715e-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.127e-01  2.688e-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/590687/cmap_HighResolution_337046401_337305601_4FGL_J2256.0-2740_daily_bin377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', job_status='DONE', photon_flux_upper_limit='1.63e-07', time_completed='2021-09-29 02:52:03.949901', job_id='590687', GAL2='0.74', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632909123.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.96e-01', ts2='0.79', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='377' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 590687: <4FGL_J2256.0-2740_daily_bin377> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin377 344.025 -27.6739 337046401 337305601 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 :                                   473.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

