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


Performing analysis on: 4FGL_J0056.6-5317_monthly_bin171
RA = 14.1591, Dec = -53.2956
tmin = 680227201, tmax = 682819201
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='17682', job_status='RUN', time_executed='2022-09-16 11:05:37.053067', time_epoch_executed='1663351537.05' WHERE source_name='4FGL J0056.6-5317' and cadence='monthly' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17682

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17682/ft1_4FGL_J0056.6-5317_monthly_bin171.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17682/ft1_4FGL_J0056.6-5317_monthly_bin171.fits outfile=/scratch/kocevski/17682/ft1_filteredMKT_4FGL_J0056.6-5317_monthly_bin171.fits ra=14.1591 dec=-53.2956 rad=12.0 tmin=680227201.0 tmax=682819201.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 29.03
user 28.48
sys 0.49

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.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/17682/ft1_filteredMKT_4FGL_J0056.6-5317_monthly_bin171.fits evtable="EVENTS" outfile="/scratch/kocevski/17682/ft1_filtered_4FGL_J0056.6-5317_monthly_bin171.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.85
user 0.67
sys 0.17

Number of photons that the gtmktime cut: 4907

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17682/ft1_filtered_4FGL_J0056.6-5317_monthly_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/17682/ltcube_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.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/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.fits
.....................!
real 145.06
user 144.30
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17682/ft1_filtered_4FGL_J0056.6-5317_monthly_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/17682/ltcube_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.fits outfile=/scratch/kocevski/17682/expmap_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.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/17682/ltcube_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.fits
.....................!
real 192.26
user 187.13
sys 4.74

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
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 188 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0056.6-5317 @ 14.1591 -53.2956

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17682/ft1_filtered_4FGL_J0056.6-5317_monthly_bin171.fits scfile=/scratch/kocevski/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.fits outfile=/scratch/kocevski/17682/cmap_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.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=14.1591 yref=-53.2956 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.79
user 0.60
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17682/ft1_filtered_4FGL_J0056.6-5317_monthly_bin171.fits scfile=/scratch/kocevski/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.fits outfile=/scratch/kocevski/17682/cmap_HighResolution_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.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=14.1591 yref=-53.2956 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.80
user 0.61
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17682/ft1_filtered_4FGL_J0056.6-5317_monthly_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17682/Model_4FGL_J0056.6-5317_monthly_bin171.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
adding source SMC-Galaxy
Working on...
/scratch/kocevski/17682/ft1_filtered_4FGL_J0056.6-5317_monthly_bin171.fits.....................!
real 13571.92
user 13544.65
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17682/ft1_filtered_4FGL_J0056.6-5317_monthly_bin171.fits', '/scratch/kocevski/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.fits', expMap='/scratch/kocevski/17682/expmap_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.fits', expCube='/scratch/kocevski/17682/ltcube_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17682/Model_4FGL_J0056.6-5317_monthly_bin171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0056.6-5317'

4FGL J0056.6-5317
   Spectrum: PowerLaw
150    Prefactor:  5.894e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
151        Index:  2.177e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
152        Scale:  1.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17682/ft1_filtered_4FGL_J0056.6-5317_monthly_bin171.fits
Spacecraft file(s): /scratch/kocevski/17682/ft2_4FGL_J0056.6-5317_monthly_bin171.fits
Exposure map: /scratch/kocevski/17682/expmap_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.fits
Exposure cube: /scratch/kocevski/17682/ltcube_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17682/Model_4FGL_J0056.6-5317_monthly_bin171.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) = 53683.4657364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13764E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    20.332       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9648       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8963       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30681E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.3356       1.0000          .0000       .10000E+07
     7 'norm      '    7.0993       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.221       1.0000          .0000       .10000E+07
     9 'norm      '    9.4486       1.0000          .0000       .10000E+07
    10 'norm      '    .32612E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.191       1.0000          .0000       .10000E+07
    12 'norm      '    5.5765       1.0000          .0000       .10000E+07
    13 'Prefactor '    .38106E-04   1.0000          .0000       .10000E+07
    14 'norm      '    18.382       1.0000          .0000       .10000E+07
    15 'Prefactor '    .65667       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.3644       1.0000          .0000       .10000E+07
    17 'norm      '    .96806E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.5088       1.0000          .0000       .10000E+07
    19 'norm      '    3.0272       1.0000          .0000       .10000E+07
    20 'Prefactor '    .27708E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    4.5017       1.0000          .0000       .10000E+07
    22 'Prefactor '    .18430E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    .34095E-01   1.0000          .0000       .10000E+07
    24 'norm      '    9.2519       1.0000          .0000       .10000E+07
    25 'Prefactor '    .22705E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .37192E-08   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1343       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   53683.44     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1966 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19840E-06    1.7006        .13931E-05** at limit **
   2  Prefactor     20.384        1.4149       -.20570E-07    .21318E-01
   3  Prefactor     2.9700        2.4604        .73938E-07   -.11036E-03
   4  Prefactor     2.8993        1.9744        .16303E-06   -.53204E-03
   5  Prefactor     .55511E-10    1.0611        .29550E-06** at limit **
   6  Prefactor     8.3378        2.5925       -.43126E-07   -.15732E-02
   7  norm          7.1008        1.0242        .33860E-07    .15421E-01
   8  Prefactor     12.221        1.8445        .11003E-06    .48907E-02
   9  norm          9.4378        2.3386        .99431E-07    .16506E-02
  10  norm          .18269E-06    1.7346        .13901E-05** at limit **
  11  Prefactor     13.204        1.0201        .24942E-07    .17627E-01
  12  norm          5.5774        1.6957       -.76465E-07    .12174E-02
  13  Prefactor      .0000        8.9663        .64321E-06** at limit **
  14  norm          18.389        2.9672        .54520E-07   -.10079E-02
  15  Prefactor     .65655        .75264       -.14026E-06   -.16806E-02
  16  Prefactor     2.3647        1.5262       -.49729E-06   -.69866E-02
  17  norm          .97190E-01    .50457       -.71858E-07** at limit **
  18  Prefactor     3.5089        1.2796        .66753E-07    .17930E-02
  19  norm          3.0269        .52417        .33818E-07   -.98308E-02
  20  Prefactor     .66613E-09    6.9320        .35861E-05** at limit **
  21  Prefactor     4.4971        5.3793       -.12268E-05   -.74203E-02
  22  Prefactor      .0000        .23034       -.16180E-06** at limit **
  23  Prefactor     .26487E-04    1.3853       -.55329E-06** at limit **
  24  norm          9.2863        5.8898        .28156E-06    .50612E-02
  25  Prefactor     .22204E-08    2.9530       -.25444E-06** at limit **
  26  Prefactor     .55511E-10    .80887       -.82631E-06** at limit **
  27  Normalizat    1.1343        .72760E-01   -.22982E-05   -.33517E-03
  28  Prefactor     .88814        .76117E-01    .92669E-05   -.16428E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98397e-07
  Prefactor  = 20.3843
  Prefactor  = 2.97003
  Prefactor  = 2.89933
  Prefactor  = 5.55112e-11
  Prefactor  = 8.33777
  norm       = 7.10082
  Prefactor  = 12.2214
  norm       = 9.43777
  norm       = 1.82687e-07
  Prefactor  = 13.2041
  norm       = 5.57739
  Prefactor  = 0
  norm       = 18.3893
  Prefactor  = 0.656555
  Prefactor  = 2.36475
  norm       = 0.0971904
  Prefactor  = 3.50885
  norm       = 3.02694
  Prefactor  = 6.66134e-10
  Prefactor  = 4.49705
  Prefactor  = 0
  Prefactor  = 2.6487e-05
  norm       = 9.2863
  Prefactor  = 2.22045e-09
  Prefactor  = 5.55112e-11
  Normalizat = 1.13432
  Prefactor  = 0.888144
 **********
 **   18 **HESSE 
 **********

 FCN=   53683.44     FROM HESSE     STATUS=OK           591 CALLS     2557 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19840E-06    3.4340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.384        13.427        .22184E-03   -1.5618    
   3  Prefactor     2.9700        2.4846        .58946E-03   -1.5673    
   4  Prefactor     2.8993        1.9871        .59684E-03   -1.5674    
   5  Prefactor     .55511E-10    1.0578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3378        2.5911        .34699E-03   -1.5650    
   7  norm          7.1008        9.6766        .37625E-03   -1.5655    
   8  Prefactor     12.221        1.8480        .28630E-03   -1.5638    
   9  norm          9.4378        2.3386        .32578E-03   -1.5647    
  10  norm          .18269E-06    3.2666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.204        10.074        .27553E-03   -1.5635    
  12  norm          5.5774        1.7007        .42520E-03   -1.5661    
  13  Prefactor      .0000        9.0469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.389        2.9686        .23333E-03   -1.5622    
  15  Prefactor     .65655        .75936        .64298E-03   -1.5692    
  16  Prefactor     2.3647        1.5302        .66616E-03   -1.5677    
  17  norm          .97190E-01    3.7049        .14016E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5089        1.2819        .53948E-03   -1.5670    
  19  norm          3.0269        .52547        .58299E-03   -1.5673    
  20  Prefactor     .66613E-09    6.9568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4971        5.3940        .47429E-03   -1.5666    
  22  Prefactor      .0000        .22983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .26487E-04    1.6430        .16242E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.2863        5.9205        .32925E-03   -1.5647    
  25  Prefactor     .22204E-08    2.8652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .55511E-10    .80806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1343        .61114E-01    .52856E-01   -.88657    
  28  Prefactor     .88814        .64046E-01    .44854E-01   -.96557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74928e-07
Minuit parameter uncertainties:
  1  0.00165083
  2  13.427
  3  2.4846
  4  1.98706
  5  1.69287e-05
  6  2.59115
  7  9.67663
  8  1.84801
  9  2.33861
  10  0.00154514
  11  10.0737
  12  1.70072
  13  2.46815e-07
  14  2.9686
  15  0.759362
  16  1.53024
  17  1.20014
  18  1.28187
  19  0.525471
  20  0.000135195
  21  5.39401
  22  7.07898e-08
  23  0.0131935
  24  5.92051
  25  0.000158891
  26  1.03523e-05
  27  0.0611178
  28  0.0640516
Done.

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

Extracting fit parameters...

4FGL J0056.6-5317
   Spectrum: PowerLaw
150    Prefactor:  1.320e+01  1.007e+01  0.000e+00  1.000e+06 ( 1.000e-14)
151        Index:  2.177e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
152        Scale:  1.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.881e-01  6.405e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.134e+00  6.112e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.49
Ra Dec: 14.159 -53.296
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.99e-09 +/- 4.57e-09
Energy Flux (Fixed Index): 2.81e-06 +/- 2.14e-06

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) = 53681.7924344
delta logL = 1.64953894418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 53681.7658817
delta logL = 1.67609159032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.561       1.0000          .0000       .10000E+07
     2 'Index     '    1.2204       1.0000          .0000       10.000    
     3 'Normalizat'    1.1380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88738       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+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=   53681.77     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      297 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.545        10.680        .11775E-04   -.22399E-03
   2  Index         1.2196        .46544        .20201E-01   -.60784E-04
   3  Normalizat    1.1381        .70988E-01    .23335E-03    .38976E-06
   4  Prefactor     .88724        .75599E-01    .27627E-03   -.58928E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5451
  Index      = 1.21955
  Normalizat = 1.13812
  Prefactor  = 0.887239
 **********
 **   18 **HESSE 
 **********

 FCN=   53681.77     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.545        11.352        .47101E-06   -1.5640    
   2  Index         1.2196        .49473        .80805E-03   -.85732    
   3  Normalizat    1.1381        .71066E-01    .93338E-05   -.88537    
   4  Prefactor     .88724        .75683E-01    .11051E-04   -.96588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59213e-12
Minuit parameter uncertainties:
  1  11.3517
  2  0.496637
  3  0.0710719
  4  0.0756923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17682': 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) = 53681.7658783
delta logL = 1.67609498773

Extracting fit parameters...

4FGL J0056.6-5317
   Spectrum: PowerLaw
150    Prefactor:  1.155e+01  1.135e+01  0.000e+00  1.000e+06 ( 1.000e-14)
151        Index:  1.220e+00  4.966e-01  0.000e+00  1.000e+01 (-1.000e+00)
152        Scale:  1.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.872e-01  7.569e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.138e+00  7.107e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.84
Ra Dec: 14.159 -53.296
Photon Index (Free Index): 1.22 +/- 0.50
Photon Flux (Free Index): 1.38e-09 +/- 1.49e-09
Energy Flux (Free Index): 1.09e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/17682/cmap_HighResolution_680227201_682819201_4FGL_J0056.6-5317_monthly_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.99e-09', energy_flux2='1.09e-05', photon_flux_error='4.57e-09', dlogl='1.68e+00', energy_flux='2.81e-06', photon_flux2='1.38e-09', job_status='DONE', time_completed='2022-09-16 15:38:55.018483', photon_index_error2='0.50', photon_index2='1.22', ts='6.49', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.13', time_epoch_completed='1663367935.02', return_code='0', job_id='17682', GAL2='0.89', EG2='1.14', return_code2='0', energy_flux_error='2.14e-06', photon_flux_error2='1.49e-09', ts2='9.84', photon_index='2.18' WHERE bin_id='171' AND source_name='4FGL J0056.6-5317' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:38:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 17682: <4FGL_J0056.6-5317_monthly_bin171> in cluster <slac> Done

Job <4FGL_J0056.6-5317_monthly_bin171> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 11:01:01 2022
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:03:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:03:18 2022
Terminated at Fri Sep 16 15:38:56 2022
Results reported at Fri Sep 16 15:38:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0056.6-5317_monthly_bin171 14.1591 -53.2956 680227201 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0056.6-5317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   16364.00 sec.
    Max Memory :                                 631 MB
    Average Memory :                             574.02 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   16537 sec.
    Turnaround time :                            16675 sec.

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

