aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 88 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1720
RA = 344.025, Dec = -27.6739
tmin = 685152001, tmax = 685411201
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='849939', job_status='RUN', time_executed='2022-09-21 00:58:39.394538', time_epoch_executed='1663747119.39' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849939

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849939/ft1_4FGL_J2256.0-2740_daily_bin1720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849939/ft2_4FGL_J2256.0-2740_daily_bin1720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849939/ft1_4FGL_J2256.0-2740_daily_bin1720.fits outfile=/scratch/kocevski/849939/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1720.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=685152001.0 tmax=685411201.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.80
user 3.49
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849939/ft2_4FGL_J2256.0-2740_daily_bin1720.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/849939/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1720.fits evtable="EVENTS" outfile="/scratch/kocevski/849939/ft1_filtered_4FGL_J2256.0-2740_daily_bin1720.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.52
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 195

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849939/ft1_filtered_4FGL_J2256.0-2740_daily_bin1720.fits" evtable="EVENTS" scfile=/scratch/kocevski/849939/ft2_4FGL_J2256.0-2740_daily_bin1720.fits sctable="SC_DATA" outfile=/scratch/kocevski/849939/ltcube_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.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/849939/ft2_4FGL_J2256.0-2740_daily_bin1720.fits
.....................!
real 15.21
user 14.73
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849939/ft1_filtered_4FGL_J2256.0-2740_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/849939/ft2_4FGL_J2256.0-2740_daily_bin1720.fits sctable="SC_DATA" expcube=/scratch/kocevski/849939/ltcube_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.fits outfile=/scratch/kocevski/849939/expmap_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.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/849939/ltcube_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.fits
.....................!
real 193.75
user 186.73
sys 4.63

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/849939/ft1_filtered_4FGL_J2256.0-2740_daily_bin1720.fits scfile=/scratch/kocevski/849939/ft2_4FGL_J2256.0-2740_daily_bin1720.fits outfile=/scratch/kocevski/849939/cmap_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849939/ft1_filtered_4FGL_J2256.0-2740_daily_bin1720.fits scfile=/scratch/kocevski/849939/ft2_4FGL_J2256.0-2740_daily_bin1720.fits outfile=/scratch/kocevski/849939/cmap_HighResolution_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/849939/ft1_filtered_4FGL_J2256.0-2740_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/849939/ft2_4FGL_J2256.0-2740_daily_bin1720.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/849939/Model_4FGL_J2256.0-2740_daily_bin1720.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/849939/ft1_filtered_4FGL_J2256.0-2740_daily_bin1720.fits......................!
real 25.66
user 24.12
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/849939/ft1_filtered_4FGL_J2256.0-2740_daily_bin1720.fits', '/scratch/kocevski/849939/ft2_4FGL_J2256.0-2740_daily_bin1720.fits', expMap='/scratch/kocevski/849939/expmap_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.fits', expCube='/scratch/kocevski/849939/ltcube_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/849939/Model_4FGL_J2256.0-2740_daily_bin1720.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  0.000e+00  1.000e+06 ( 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/849939/ft1_filtered_4FGL_J2256.0-2740_daily_bin1720.fits
Spacecraft file(s): /scratch/kocevski/849939/ft2_4FGL_J2256.0-2740_daily_bin1720.fits
Exposure map: /scratch/kocevski/849939/expmap_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.fits
Exposure cube: /scratch/kocevski/849939/ltcube_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/849939/Model_4FGL_J2256.0-2740_daily_bin1720.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) = 2095.62976466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49766E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.3855       1.0000          .0000       .10000E+07
     3 'norm      '    .32515E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10046E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .25803E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .25037E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    73.590       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.305       1.0000          .0000       .10000E+07
     9 'norm      '    .46331E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.9537       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.7374       1.0000          .0000       .10000E+07
    12 'norm      '    .25591E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    13.173       1.0000          .0000       .10000E+07
    14 'Prefactor '    .51976E-04   1.0000          .0000       .10000E+07
    15 'norm      '    22.620       1.0000          .0000       .10000E+07
    16 'Prefactor '    61.417       1.0000          .0000       .10000E+07
    17 'norm      '    .26034       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .32954       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2095.593     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1817 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36082E-08    6.3042        .14293E-07** at limit **
   2  Prefactor     1.3500        18.920        .95691E-06    .10112E-02
   3  norm          .47906E-07    19.998       -.72490E-05** at limit **
   4  Prefactor     .45797E-07    17.530        .90963E-05** at limit **
   5  Prefactor     .77716E-09    5.5919        .33393E-05** at limit **
   6  norm          .55511E-10    1.5318        .39976E-06** at limit **
   7  Prefactor     75.153        58.218       -.27277E-05    .66441E-01
   8  Prefactor     12.339        2.1848        .19554E-06    .65670E-01
   9  norm          .55511E-10    10.913        .52356E-05** at limit **
  10  Prefactor     4.6221        17.071       -.72015E-05   -.55757E-01
  11  Prefactor     7.8619        11.835        .85649E-06    .22668E-01
  12  norm           .0000        .32436       -.18269E-06** at limit **
  13  Prefactor     13.535        23.281       -.76070E-05    .69650E-01
  14  Prefactor     .88818E-09    6.0658        .97429E-06** at limit **
  15  norm          22.604        1.4611        .19342E-06    .45209E-01
  16  Prefactor     62.740        47.265       -.16683E-05   -.98709E-01
  17  norm          .25641        15.716        .20745E-05    .10544E-02
  18  Normalizat    1.2191        .32272       -.10768E-04   -.61937E-05
  19  Prefactor     .33091        .28047        .51278E-04   -.10869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.60822e-09
  Prefactor  = 1.35004
  norm       = 4.79061e-08
  Prefactor  = 4.57967e-08
  Prefactor  = 7.77156e-10
  norm       = 5.55112e-11
  Prefactor  = 75.1528
  Prefactor  = 12.3388
  norm       = 5.55112e-11
  Prefactor  = 4.62209
  Prefactor  = 7.86187
  norm       = 0
  Prefactor  = 13.5353
  Prefactor  = 8.88178e-10
  norm       = 22.6035
  Prefactor  = 62.7397
  norm       = 0.256411
  Normalizat = 1.21908
  Prefactor  = 0.330908
 **********
 **   18 **HESSE 
 **********

 FCN=   2095.593     FROM HESSE     STATUS=OK           308 CALLS     2125 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36082E-08    6.3142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3500        18.749        .92361E-03   -1.5685    
   3  norm          .47906E-07    20.062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45797E-07    17.663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .77716E-09    5.5862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    1.5295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     75.153        71.010        .11658E-03   -1.5535    
   8  Prefactor     12.339        15.736        .28531E-03   -1.5638    
   9  norm          .55511E-10    10.940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6221        31.329        .45163E-03   -1.5665    
  11  Prefactor     7.8619        14.269        .36026E-03   -1.5652    
  12  norm           .0000        .32726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.535        32.526        .27572E-03   -1.5634    
  14  Prefactor     .88818E-09    6.0775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.604        17.047        .21031E-03   -1.5613    
  16  Prefactor     62.740        74.464        .12761E-03   -1.5550    
  17  norm          .25641        3.6553        .49240E-02   -1.5698    
  18  Normalizat    1.2191        .29341        .34381E-01   -.86015    
  19  Prefactor     .33091        .25297        .70762E-01   -1.2049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08034e-06
Minuit parameter uncertainties:
  1  0.000302301
  2  10.0622
  3  0.00196095
  4  0.00179856
  5  0.000134044
  6  1.47989e-05
  7  71.0104
  8  15.7363
  9  5.59656e-05
  10  24.067
  11  14.2691
  12  5.12155e-07
  13  32.5267
  14  0.000148698
  15  17.047
  16  74.4652
  17  1.93625
  18  0.293811
  19  0.253826
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.862e+00  1.427e+01  0.000e+00  1.000e+06 ( 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:  3.309e-01  2.538e-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.219e+00  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/849939/likelihoodResults_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.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) = 2093.70081362
delta logL = 1.8921929714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2093.61731613
delta logL = 1.97569046863

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19691       1.0000          .0000       .10000E+07
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    1.1110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41231       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=   2093.617     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      363 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19681        3.9836        .26706E-03** at limit **
   2  Index        10.0000        9.0850        .50000    ** at limit **
   3  Normalizat    1.1106        .22700        .37568E-01   -.61846E-06
   4  Prefactor     .41292        .21243        .63820E-01    .12673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.196812
  Index      = 10
  Normalizat = 1.11064
  Prefactor  = 0.412916
 **********
 **   18 **HESSE 
 **********

 FCN=   2093.617     FROM HESSE     STATUS=OK            33 CALLS      396 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19681        .12237        .11888E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        8.4307        .30689E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1106        .30033        .19007E-03   -.89411    
   4  Prefactor     .41292        .27950        .28248E-03   -1.1615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51747e-13
Minuit parameter uncertainties:
  1  0.122366
  2  1.25414e-05
  3  0.300792
  4  0.280426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849939': 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) = 2093.61730959
delta logL = 1.9756970077

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.968e-01  1.224e-01  0.000e+00  1.000e+06 ( 1.000e-11)
341        Index:  1.000e+01  1.254e-05  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:  4.129e-01  2.804e-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.111e+00  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.77
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.34e-07 +/- 8.06e-08
Energy Flux (Free Index): 1.50e-05 +/- 9.07e-06

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/849939/cmap_HighResolution_685152001_685411201_4FGL_J2256.0-2740_daily_bin1720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', comment='SUCCESS', energy_flux2='1.50e-05', dlogl='1.98e+00', photon_flux2='1.34e-07', job_status='DONE', time_completed='2022-09-21 01:05:31.402374', photon_index_error2='0.00', photon_index2='10.00', ts='0.58', fit_tolerance='1e-08', GAL='0.33', photon_index_error='0.00', photon_flux_upper_limit='2.23e-07', energy_flux_error2='9.07e-06', EG='1.22', time_epoch_completed='1663747531.4', return_code='0', job_id='849939', GAL2='0.41', EG2='1.11', return_code2='0', photon_flux_error2='8.06e-08', ts2='4.77', photon_index='3.02' WHERE bin_id='1720' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 21 01:05:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 849939: <4FGL_J2256.0-2740_daily_bin1720> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1720> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 21 00:55:20 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 21 00:57:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 21 00:57:02 2022
Terminated at Wed Sep 21 01:05:32 2022
Results reported at Wed Sep 21 01:05:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1720 344.025 -27.6739 685152001 685411201 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 :                                   410.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   511 sec.
    Turnaround time :                            612 sec.

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

