/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 94 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 = 7427
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin125
RA = 344.025, Dec = -27.6739
tmin = 271728001, tmax = 271987201
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='589278', job_status='RUN', time_executed='2021-09-29 02:37:04.306592', time_epoch_executed='1632908224.31' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589278

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589278/ft1_4FGL_J2256.0-2740_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589278/ft2_4FGL_J2256.0-2740_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589278/ft1_4FGL_J2256.0-2740_daily_bin125.fits outfile=/scratch/kocevski/589278/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin125.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=271728001.0 tmax=271987201.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.12
user 2.90
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589278/ft2_4FGL_J2256.0-2740_daily_bin125.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/589278/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin125.fits evtable="EVENTS" outfile="/scratch/kocevski/589278/ft1_filtered_4FGL_J2256.0-2740_daily_bin125.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/589278/ft1_filtered_4FGL_J2256.0-2740_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/589278/ft2_4FGL_J2256.0-2740_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/589278/ltcube_271728001_271987201_4FGL_J2256.0-2740_daily_bin125.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/589278/ft2_4FGL_J2256.0-2740_daily_bin125.fits
.....................!
real 12.07
user 11.75
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589278/ft1_filtered_4FGL_J2256.0-2740_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/589278/ft2_4FGL_J2256.0-2740_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/589278/ltcube_271728001_271987201_4FGL_J2256.0-2740_daily_bin125.fits outfile=/scratch/kocevski/589278/expmap_271728001_271987201_4FGL_J2256.0-2740_daily_bin125.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/589278/ltcube_271728001_271987201_4FGL_J2256.0-2740_daily_bin125.fits
.....................!
real 189.67
user 185.52
sys 3.84

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/589278/ft1_filtered_4FGL_J2256.0-2740_daily_bin125.fits scfile=/scratch/kocevski/589278/ft2_4FGL_J2256.0-2740_daily_bin125.fits outfile=/scratch/kocevski/589278/cmap_271728001_271987201_4FGL_J2256.0-2740_daily_bin125.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.41
sys 0.11

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589278/ft1_filtered_4FGL_J2256.0-2740_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/589278/ft2_4FGL_J2256.0-2740_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589278/Model_4FGL_J2256.0-2740_daily_bin125.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/589278/ft1_filtered_4FGL_J2256.0-2740_daily_bin125.fits.....................!
real 45.10
user 43.87
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11675E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7528       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5081       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.748       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    310.11       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8786       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5585       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3539       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22081E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4276       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.662       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11702       1.0000         .10000E-03   10000.    
    16 'norm      '    6.8221       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.345       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84225       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82086       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=   5522.056     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2459 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.053        .47401E-07** at limit **
   2  Prefactor     2.7533        8.4290        .76870E-06   -.33649E-03
   3  norm          .10000E-03    11.069        .38894E-07** at limit **
   4  Prefactor     9.5034        20.377        .23208E-05   -.23623E-04
   5  Prefactor     13.748        12.799       -.13048E-05   -.12487E-04
   6  norm          1.7703        2.3496       -.99872E-06   -.41173E-03
   7  Prefactor     310.12        75.183        .60630E-05    .76843E-04
   8  Prefactor     2.8744        11.341       -.11277E-05   -.17302E-03
   9  norm          1.5585        1.6899        .13172E-07    .23541E-03
  10  Prefactor     8.3543        9.1506       -.18343E-05    .88816E-04
  11  Prefactor     .10000E-03    6.0695       -.27560E-06** at limit **
  12  norm          1.4277        .67018        .21010E-07    .33256E-03
  13  Prefactor     37.658        38.994       -.27880E-05    .83686E-06
  14  Prefactor     16.560        13.586       -.37254E-06   -.36609E-03
  15  Prefactor     .11984        7.2352       -.33757E-07   -.18507E-03
  16  norm          6.8216        5.9508       -.10514E-06   -.17691E-05
  17  Prefactor     11.342        23.751        .40401E-06   -.95037E-05
  18  norm          .10000E-03    1.4561        .38110E-07** at limit **
  19  Prefactor     .10000E-03    8.9670       -.21039E-08** at limit **
  20  Prefactor     .10000E-03    123.10        .21489E-06** at limit **
  21  Normalizat    .84246        .18249       -.74632E-06    .66945E-04
  22  Prefactor     .82069        .16951        .44089E-07    .10744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.75327
  norm       = 0.0001
  Prefactor  = 9.50342
  Prefactor  = 13.7475
  norm       = 1.77035
  Prefactor  = 310.122
  Prefactor  = 2.87436
  norm       = 1.55845
  Prefactor  = 8.35427
  Prefactor  = 0.0001
  norm       = 1.42771
  Prefactor  = 37.6582
  Prefactor  = 16.5602
  Prefactor  = 0.119842
  norm       = 6.82159
  Prefactor  = 11.3416
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.842464
  Prefactor  = 0.820694
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.056     FROM HESSE     STATUS=OK           360 CALLS     2819 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.220        .45428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7533        8.3564        .24535E-03   -1.5376    
   3  norm          .10000E-03    11.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5034        20.324        .12996E-03   -1.5091    
   5  Prefactor     13.748        12.827        .10803E-03   -1.4966    
   6  norm          1.7703        2.3484        .11962E-03   -1.5442    
   7  Prefactor     310.12        74.838        .11538E-03   -1.2167    
   8  Prefactor     2.8744        11.480        .23956E-03   -1.5369    
   9  norm          1.5585        1.6963        .97733E-04   -1.5458    
  10  Prefactor     8.3543        8.9827        .13870E-03   -1.5130    
  11  Prefactor     .10000E-03    30.621        .28777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4277        .65723        .35473E-04   -1.5469    
  13  Prefactor     37.658        38.939        .65308E-04   -1.4480    
  14  Prefactor     16.560        13.701        .49208E-03   -1.4894    
  15  Prefactor     .11984        16.696        .54486E-01   -1.5639    
  16  norm          6.8216        5.9527        .15361E-03   -1.5186    
  17  Prefactor     11.342        23.740        .11894E-03   -1.5034    
  18  norm          .10000E-03    1.5028        .17499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    123.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .84246        .21704        .24007E-03   -.98512    
  22  Prefactor     .82069        .20230        .23887E-03   -.98970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75302e-10
Minuit parameter uncertainties:
  1  0.000273133
  2  8.35992
  3  1.5612e-05
  4  20.3386
  5  12.8296
  6  2.34855
  7  74.8612
  8  11.4887
  9  1.69635
  10  8.98416
  11  1.7301e-05
  12  0.657237
  13  38.9657
  14  13.7036
  15  2.8287
  16  5.95324
  17  23.7599
  18  1.78314e-06
  19  2.81466e-06
  20  6.29461e-05
  21  0.217263
  22  0.202486
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.730e-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:  8.207e-01  2.025e-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.425e-01  2.173e-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.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589278/likelihoodResults_271728001_271987201_4FGL_J2256.0-2740_daily_bin125.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) = 5522.056078
delta logL = -0.000155653709953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5522.05486351
delta logL = 0.00105884208097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18465       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4006       1.0000          .0000       10.000    
     3 'Normalizat'    .83974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82239       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=   5522.055     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      308 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17924        12.762        .69461E-01    .27451E-03
   2  Index         4.4056        7.7833        .50000        .20641E-04
   3  Normalizat    .83995        .10947E-01    .44127E-01    .36778E-05
   4  Prefactor     .82224        .10824E-01    .44008E-01    .78944E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.179238
  Index      = 4.40563
  Normalizat = 0.839947
  Prefactor  = 0.822245
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.055     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      345 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17924        955.12        .19492E-02   -1.5623    
   2  Index         4.4056        5.1630        .50000       -.11916    
   3  Normalizat    .83995        .32353E-01    .24037E-03   -.98604    
   4  Prefactor     .82224        .31196E-01    .23865E-03   -.98913    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95452e-07
Minuit parameter uncertainties:
  1  26.5966
  2  62.7139
  3  0.0323542
  4  0.0311968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589278': 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) = 5522.05486242
delta logL = 0.00105993229408

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.792e-01  2.660e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.406e+00  6.271e+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:  8.222e-01  3.120e-02  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.399e-01  3.235e-02  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/589278/cmap_HighResolution_271728001_271987201_4FGL_J2256.0-2740_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-29 02:47:05.205667', job_id='589278', GAL2='0.82', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632908825.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.06e-03', ts2='0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='125' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:47:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 589278: <4FGL_J2256.0-2740_daily_bin125> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin125> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:21 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35:23 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:35:23 2021
Terminated at Wed Sep 29 02:47:05 2021
Results reported at Wed Sep 29 02:47:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin125 344.025 -27.6739 271728001 271987201 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 :                                   597.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            704 sec.

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

