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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1046
RA = 344.025, Dec = -27.6739
tmin = 510451201, tmax = 510710401
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='592716', job_status='RUN', time_executed='2021-09-29 02:47:30.849601', time_epoch_executed='1632908850.85' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592716/ft1_4FGL_J2256.0-2740_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592716/ft2_4FGL_J2256.0-2740_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592716/ft1_4FGL_J2256.0-2740_daily_bin1046.fits outfile=/scratch/kocevski/592716/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1046.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=510451201.0 tmax=510710401.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.93
user 3.68
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592716/ft1_filtered_4FGL_J2256.0-2740_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/592716/ft2_4FGL_J2256.0-2740_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/592716/ltcube_510451201_510710401_4FGL_J2256.0-2740_daily_bin1046.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/592716/ft2_4FGL_J2256.0-2740_daily_bin1046.fits
.....................!
real 11.68
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592716/ft1_filtered_4FGL_J2256.0-2740_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/592716/ft2_4FGL_J2256.0-2740_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/592716/ltcube_510451201_510710401_4FGL_J2256.0-2740_daily_bin1046.fits outfile=/scratch/kocevski/592716/expmap_510451201_510710401_4FGL_J2256.0-2740_daily_bin1046.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/592716/ltcube_510451201_510710401_4FGL_J2256.0-2740_daily_bin1046.fits
.....................!
real 192.63
user 186.88
sys 5.38

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/592716/ft1_filtered_4FGL_J2256.0-2740_daily_bin1046.fits scfile=/scratch/kocevski/592716/ft2_4FGL_J2256.0-2740_daily_bin1046.fits outfile=/scratch/kocevski/592716/cmap_510451201_510710401_4FGL_J2256.0-2740_daily_bin1046.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592716/ft1_filtered_4FGL_J2256.0-2740_daily_bin1046.fits scfile=/scratch/kocevski/592716/ft2_4FGL_J2256.0-2740_daily_bin1046.fits outfile=/scratch/kocevski/592716/cmap_HighResolution_510451201_510710401_4FGL_J2256.0-2740_daily_bin1046.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592716/ft1_filtered_4FGL_J2256.0-2740_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/592716/ft2_4FGL_J2256.0-2740_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592716/Model_4FGL_J2256.0-2740_daily_bin1046.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/592716/ft1_filtered_4FGL_J2256.0-2740_daily_bin1046.fits.....................!
real 44.10
user 42.77
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.163       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.409       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3715       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2741       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0736       1.0000         .10000E-03   10000.    
    12 'norm      '    .30872       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.314       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8962       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.128       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1245       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86999       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=   5293.317     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2036 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.163        23.779        .18440E-06   -.10390E-04
   2  Prefactor     .10000E-03    2.4106       -.88082E-07** at limit **
   3  norm          19.901        25.696        .11565E-06   -.27674E-04
   4  Prefactor     16.405        16.208        .10093E-06    .59099E-05
   5  Prefactor     5.3744        12.167        .25548E-05    .82139E-04
   6  norm          2.6027        2.1625       -.86273E-07   -.10507E-03
   7  Prefactor     .10000E-03    88.361       -.11249E-05** at limit **
   8  Prefactor     .10000E-03    5.2669       -.56999E-07** at limit **
   9  norm          5.2743        4.3526       -.98462E-06   -.38623E-03
  10  Prefactor     .10000E-03    9.8924        .34204E-06** at limit **
  11  Prefactor     4.0782        10.533        .31716E-05    .29183E-04
  12  norm          .30853        .57010        .60714E-06    .20229E-02
  13  Prefactor     20.322        56.862        .78654E-06    .79950E-06
  14  Prefactor     .10000E-03    8.9709       -.19986E-06** at limit **
  15  Prefactor     7.8972        10.095       -.15611E-05   -.20797E-03
  16  norm          .10000E-03    2.4866        .36413E-06** at limit **
  17  Prefactor     20.246        54.181       -.63530E-05    .13174E-03
  18  norm          4.1248        3.4814        .84222E-06    .30242E-03
  19  Prefactor     .10000E-03    17.299       -.23486E-06** at limit **
  20  Prefactor     .10000E-03    27.059        .18198E-06** at limit **
  21  Normalizat    1.1446        .22300       -.61703E-05    .37052E-04
  22  Prefactor     .87070        .20658        .58444E-05   -.24871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1626
  Prefactor  = 0.0001
  norm       = 19.9013
  Prefactor  = 16.4046
  Prefactor  = 5.37441
  norm       = 2.60269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.27426
  Prefactor  = 0.0001
  Prefactor  = 4.07819
  norm       = 0.308529
  Prefactor  = 20.322
  Prefactor  = 0.0001
  Prefactor  = 7.89721
  norm       = 0.0001
  Prefactor  = 20.2455
  norm       = 4.12479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14463
  Prefactor  = 0.8707
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.317     FROM HESSE     STATUS=OK           346 CALLS     2382 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.163        23.785        .72952E-04   -1.4609    
   2  Prefactor     .10000E-03    2.4167        .11031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.901        25.667        .89762E-04   -1.4815    
   4  Prefactor     16.405        16.208        .98873E-04   -1.4898    
   5  Prefactor     5.3744        12.135        .86698E-03   -1.5244    
   6  norm          2.6027        2.1610        .93243E-04   -1.5385    
   7  Prefactor     .10000E-03    88.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3533        .16305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2743        4.3535        .12084E-03   -1.5249    
  10  Prefactor     .10000E-03    9.9091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0782        10.665        .99881E-03   -1.5304    
  12  norm          .30853        .55810        .65092E-03   -1.5597    
  13  Prefactor     20.322        56.871        .88866E-04   -1.4806    
  14  Prefactor     .10000E-03    9.0025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8972        10.088        .14269E-03   -1.5146    
  16  norm          .10000E-03    2.4939        .11211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.246        53.891        .89276E-04   -1.4808    
  18  norm          4.1248        3.4814        .59647E-03   -1.5302    
  19  Prefactor     .10000E-03    17.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1446        .24361        .23050E-03   -.88332    
  22  Prefactor     .87070        .22613        .25661E-03   -.97173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40459e-09
Minuit parameter uncertainties:
  1  23.7923
  2  5.96307e-07
  3  25.6808
  4  16.2122
  5  12.1406
  6  2.16105
  7  9.23504e-06
  8  6.17405e-06
  9  4.35375
  10  5.32466e-05
  11  10.6697
  12  0.558106
  13  57.0233
  14  4.33831e-06
  15  10.0897
  16  1.63759e-05
  17  54.0209
  18  3.48161
  19  5.2478e-06
  20  1.57859e-05
  21  0.243849
  22  0.226369
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.707e-01  2.264e-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.145e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592716/likelihoodResults_510451201_510710401_4FGL_J2256.0-2740_daily_bin1046.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) = 5293.28785879
delta logL = 0.0286833520204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5293.28724745
delta logL = 0.0292946999571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0580       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4091       1.0000          .0000       10.000    
     3 'Normalizat'    1.1379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87553       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=   5293.287     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      274 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0511        7.9877        .10008E-02   -.44092E-03
   2  Index         3.4070        1.7139        .19701E-01   -.55098E-04
   3  Normalizat    1.1382        .23068        .23096E-03   -.12824E-03
   4  Prefactor     .87537        .22322        .25600E-03   -.16920E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.05107
  Index      = 3.40701
  Normalizat = 1.13816
  Prefactor  = 0.87537
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.287     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0511        7.7125        .40032E-04   -1.5305    
   2  Index         3.4070        1.6590        .78806E-03   -.32425    
   3  Normalizat    1.1382        .23102        .46193E-04   -.88536    
   4  Prefactor     .87537        .22353        .10240E-04   -.97007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26995e-10
Minuit parameter uncertainties:
  1  7.71436
  2  1.69494
  3  0.231225
  4  0.223759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592716': 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) = 5293.28724562
delta logL = 0.0292965302306

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.051e+00  7.714e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.407e+00  1.695e+00  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.754e-01  2.238e-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.138e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/592716/cmap_HighResolution_510451201_510710401_4FGL_J2256.0-2740_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-29 02:57:08.812951', job_id='592716', GAL2='0.88', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632909428.81', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.93e-02', ts2='0.35', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1046' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 592716: <4FGL_J2256.0-2740_daily_bin1046> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1046> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:46 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:47 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:47 2021
Terminated at Wed Sep 29 02:57:09 2021
Results reported at Wed Sep 29 02:57:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1046 344.025 -27.6739 510451201 510710401 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 :                                   564.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            683 sec.

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

