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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin564
RA = 344.025, Dec = -27.6739
tmin = 385516801, tmax = 385776001
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='590976', job_status='RUN', time_executed='2021-09-29 02:40:57.614649', time_epoch_executed='1632908457.61' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590976

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590976/ft1_4FGL_J2256.0-2740_daily_bin564.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590976/ft2_4FGL_J2256.0-2740_daily_bin564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590976/ft1_4FGL_J2256.0-2740_daily_bin564.fits outfile=/scratch/kocevski/590976/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin564.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=385516801.0 tmax=385776001.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 4.58
user 4.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590976/ft2_4FGL_J2256.0-2740_daily_bin564.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/590976/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin564.fits evtable="EVENTS" outfile="/scratch/kocevski/590976/ft1_filtered_4FGL_J2256.0-2740_daily_bin564.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/590976/ft1_filtered_4FGL_J2256.0-2740_daily_bin564.fits" evtable="EVENTS" scfile=/scratch/kocevski/590976/ft2_4FGL_J2256.0-2740_daily_bin564.fits sctable="SC_DATA" outfile=/scratch/kocevski/590976/ltcube_385516801_385776001_4FGL_J2256.0-2740_daily_bin564.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/590976/ft2_4FGL_J2256.0-2740_daily_bin564.fits
.....................!
real 11.68
user 11.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590976/ft1_filtered_4FGL_J2256.0-2740_daily_bin564.fits evtable="EVENTS" scfile=/scratch/kocevski/590976/ft2_4FGL_J2256.0-2740_daily_bin564.fits sctable="SC_DATA" expcube=/scratch/kocevski/590976/ltcube_385516801_385776001_4FGL_J2256.0-2740_daily_bin564.fits outfile=/scratch/kocevski/590976/expmap_385516801_385776001_4FGL_J2256.0-2740_daily_bin564.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/590976/ltcube_385516801_385776001_4FGL_J2256.0-2740_daily_bin564.fits
.....................!
real 190.36
user 185.01
sys 5.04

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/590976/ft1_filtered_4FGL_J2256.0-2740_daily_bin564.fits scfile=/scratch/kocevski/590976/ft2_4FGL_J2256.0-2740_daily_bin564.fits outfile=/scratch/kocevski/590976/cmap_385516801_385776001_4FGL_J2256.0-2740_daily_bin564.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.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590976/ft1_filtered_4FGL_J2256.0-2740_daily_bin564.fits evtable="EVENTS" scfile=/scratch/kocevski/590976/ft2_4FGL_J2256.0-2740_daily_bin564.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590976/Model_4FGL_J2256.0-2740_daily_bin564.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/590976/ft1_filtered_4FGL_J2256.0-2740_daily_bin564.fits.....................!
real 39.84
user 38.54
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10245       1.0000         .10000E-03   10000.    
     3 'norm      '    28.157       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9261       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30388E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.860       1.0000         .10000E-03   10000.    
     9 'norm      '    10.056       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7825       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.795       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.658       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12166E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    77.364       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5807       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21681       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.672       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3550       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82464       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=   4600.080     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2789 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.413        .28097E-05** at limit **
   2  Prefactor     .73926E-01    7.9431        .55986E-06   -.20606E-03
   3  norm          28.166        24.567        .22573E-04    .31643E-04
   4  Prefactor     4.9271        20.960       -.42204E-05   -.30916E-04
   5  Prefactor     .10000E-03    9.3452       -.29380E-06** at limit **
   6  norm          .10000E-03    .94151       -.15397E-06** at limit **
   7  Prefactor     .11361E-03    51.947       -.48557E-06** at limit **
   8  Prefactor     18.849        16.689       -.92141E-05    .11911E-04
   9  norm          10.057        6.3614       -.11766E-06    .12300E-04
  10  Prefactor     16.571        18.493       -.91064E-06    .29727E-04
  11  Prefactor     .10000E-03    5.6464        .53111E-07** at limit **
  12  norm          1.7828        .91247        .10782E-07    .20137E-03
  13  Prefactor     41.704        81.238       -.39718E-04    .97328E-05
  14  Prefactor     19.653        19.193       -.13729E-05    .46219E-06
  15  Prefactor     .10000E-03    8.4876       -.27730E-06** at limit **
  16  norm          .10000E-03    4.6647       -.67883E-08** at limit **
  17  Prefactor     77.378        72.926       -.42359E-05    .19383E-04
  18  norm          1.5811        2.0919       -.10671E-06   -.27109E-04
  19  Prefactor     .11878E-03    17.783       -.66666E-06** at limit **
  20  Prefactor     29.639        112.22       -.20347E-04    .77118E-05
  21  Normalizat    1.3551        .23952        .43567E-05   -.13292E-03
  22  Prefactor     .82479        .21220       -.65315E-06    .14400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0739259
  norm       = 28.1661
  Prefactor  = 4.92705
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000113612
  Prefactor  = 18.8493
  norm       = 10.0567
  Prefactor  = 16.5712
  Prefactor  = 0.0001
  norm       = 1.78281
  Prefactor  = 41.7043
  Prefactor  = 19.6527
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 77.3781
  norm       = 1.58107
  Prefactor  = 0.00011878
  Prefactor  = 29.6389
  Normalizat = 1.35514
  Prefactor  = 0.824792
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.080     FROM HESSE     STATUS=OK           368 CALLS     3157 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .73926E-01    16.355        .58671E-01   -1.5654    
   3  norm          28.166        24.638        .37750E-03   -1.4646    
   4  Prefactor     4.9271        20.967        .18121E-03   -1.5264    
   5  Prefactor     .10000E-03    9.3672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .94441        .64214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11361E-03    447.24        .92519E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.849        16.722        .92227E-04   -1.4839    
   9  norm          10.057        6.3498        .12471E-03   -1.5074    
  10  Prefactor     16.571        18.468        .98417E-04   -1.4894    
  11  Prefactor     .10000E-03    5.6603        .15714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7828        .90224        .40921E-04   -1.5441    
  13  Prefactor     41.704        81.391        .62007E-04   -1.4415    
  14  Prefactor     19.653        19.199        .90336E-04   -1.4821    
  15  Prefactor     .10000E-03    52.370        .37110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6744        .14306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     77.378        73.334        .45655E-04   -1.3946    
  18  norm          1.5811        2.0745        .10961E-03   -1.5456    
  19  Prefactor     .11878E-03    27.835        .10516       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.639        112.40        .73552E-04   -1.4619    
  21  Normalizat    1.3551        .29085        .24715E-03   -.81935    
  22  Prefactor     .82479        .25731        .28717E-03   -.98821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79049e-08
Minuit parameter uncertainties:
  1  0.00119788
  2  2.19829
  3  24.6469
  4  20.3398
  5  8.74435e-05
  6  1.0727e-05
  7  0.157237
  8  16.7266
  9  6.35025
  10  18.4742
  11  3.12209e-07
  12  0.902249
  13  81.6094
  14  19.2047
  15  6.27437e-05
  16  9.48576e-06
  17  73.4196
  18  2.0746
  19  0.0457483
  20  113.216
  21  0.291202
  22  0.257683
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.122e-07  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.248e-01  2.577e-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.355e+00  2.912e-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.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590976/likelihoodResults_385516801_385776001_4FGL_J2256.0-2740_daily_bin564.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) = 4600.08129507
delta logL = -0.000839893769808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4600.08045515
delta logL = 2.87927832687e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0090       1.0000          .0000       10.000    
     3 'Normalizat'    1.3552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82479       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=   4600.080     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      264 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    274.66        .15839E-01** at limit **
   2  Index         2.3794        7.8035        .50000       -.22644E-06
   3  Normalizat    1.3551        .36860E-01    .24714E-03    .28871E-03
   4  Prefactor     .82479        .34498E-01    .28718E-03    .24644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37942
  Normalizat = 1.35514
  Prefactor  = 0.824787
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.080     FROM HESSE     STATUS=OK            29 CALLS      293 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9550        .35553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3794        8.7918        .50000       -.55168    
   3  Normalizat    1.3551        .27175        .49429E-04   -.81935    
   4  Prefactor     .82479        .25441        .11487E-04   -.98821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40386e-10
Minuit parameter uncertainties:
  1  1.99958e-05
  2  70.7093
  3  0.272038
  4  0.254775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590976': 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) = 4600.0804531
delta logL = 2.07373341254e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.000e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.379e+00  7.071e+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.248e-01  2.548e-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.355e+00  2.720e-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/590976/cmap_HighResolution_385516801_385776001_4FGL_J2256.0-2740_daily_bin564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-29 02:50:46.543543', job_id='590976', GAL2='0.82', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1632909046.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='564' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 590976: <4FGL_J2256.0-2740_daily_bin564> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin564> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:38 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:39 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:39 2021
Terminated at Wed Sep 29 02:50:46 2021
Results reported at Wed Sep 29 02:50:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin564 344.025 -27.6739 385516801 385776001 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 :                                   565.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            608 sec.

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

