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


Performing analysis on: 4FGL_J0436.8-5223_daily_bin1704
RA = 69.2198, Dec = -52.3934
tmin = 681004801, tmax = 681264001
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='363808', job_status='RUN', time_executed='2022-08-04 01:45:59.540081', time_epoch_executed='1659602759.54' WHERE source_name='4FGL J0436.8-5223' and cadence='daily' and bin_id='1704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363808/ft1_4FGL_J0436.8-5223_daily_bin1704.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363808/ft1_4FGL_J0436.8-5223_daily_bin1704.fits outfile=/scratch/kocevski/363808/ft1_filteredMKT_4FGL_J0436.8-5223_daily_bin1704.fits ra=69.2198 dec=-52.3934 rad=12.0 tmin=681004801.0 tmax=681264001.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.02
user 2.77
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.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/363808/ft1_filteredMKT_4FGL_J0436.8-5223_daily_bin1704.fits evtable="EVENTS" outfile="/scratch/kocevski/363808/ft1_filtered_4FGL_J0436.8-5223_daily_bin1704.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.15

Number of photons that the gtmktime cut: 923

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363808/ft1_filtered_4FGL_J0436.8-5223_daily_bin1704.fits" evtable="EVENTS" scfile=/scratch/kocevski/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.fits sctable="SC_DATA" outfile=/scratch/kocevski/363808/ltcube_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.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/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.fits
.....................!
real 16.75
user 16.00
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363808/ft1_filtered_4FGL_J0436.8-5223_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.fits sctable="SC_DATA" expcube=/scratch/kocevski/363808/ltcube_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.fits outfile=/scratch/kocevski/363808/expmap_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.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/363808/ltcube_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.fits
.....................!
real 196.42
user 188.68
sys 5.22

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 LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Added 199 point sources and 5 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 J0436.8-5223 @ 69.2198 -52.3934

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/363808/ft1_filtered_4FGL_J0436.8-5223_daily_bin1704.fits scfile=/scratch/kocevski/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.fits outfile=/scratch/kocevski/363808/cmap_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.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=69.2198 yref=-52.3934 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363808/ft1_filtered_4FGL_J0436.8-5223_daily_bin1704.fits scfile=/scratch/kocevski/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.fits outfile=/scratch/kocevski/363808/cmap_HighResolution_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.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=69.2198 yref=-52.3934 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/363808/ft1_filtered_4FGL_J0436.8-5223_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363808/Model_4FGL_J0436.8-5223_daily_bin1704.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 Fornax A
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/363808/ft1_filtered_4FGL_J0436.8-5223_daily_bin1704.fits.....................!
real 5754.36
user 5676.62
sys 4.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/363808/ft1_filtered_4FGL_J0436.8-5223_daily_bin1704.fits', '/scratch/kocevski/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.fits', expMap='/scratch/kocevski/363808/expmap_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.fits', expCube='/scratch/kocevski/363808/ltcube_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/363808/Model_4FGL_J0436.8-5223_daily_bin1704.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0436.8-5223'

4FGL J0436.8-5223
   Spectrum: PowerLaw
284    Prefactor:  8.224e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.807e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  5.405e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/363808/ft1_filtered_4FGL_J0436.8-5223_daily_bin1704.fits
Spacecraft file(s): /scratch/kocevski/363808/ft2_4FGL_J0436.8-5223_daily_bin1704.fits
Exposure map: /scratch/kocevski/363808/expmap_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.fits
Exposure cube: /scratch/kocevski/363808/ltcube_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/363808/Model_4FGL_J0436.8-5223_daily_bin1704.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) = 9878.99713445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.465       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.0759       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6424       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0117       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1883       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7956       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .48057       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.944       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0433       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5284       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6585       1.0000         .10000E-03   10000.    
    20 'norm      '    .10415E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12898E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.011       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1907       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1257       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9878.992     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2727 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.457        27.335       -.11398E-04    .23182E-05
   2  Prefactor     .10000E-03    10.672       -.83005E-05** at limit **
   3  Prefactor     .10000E-03    7.1268        .40400E-05** at limit **
   4  Prefactor     .10000E-03    48.115       -.11461E-05** at limit **
   5  norm          .10000E-03    1.9056        .24009E-06** at limit **
   6  norm          7.0758        4.9439       -.20141E-06   -.21256E-04
   7  Prefactor     6.6235        53.754       -.52790E-04    .20300E-05
   8  Prefactor     4.0110        2.6253        .23782E-06    .24394E-03
   9  norm          .10000E-03    6.1829       -.23668E-05** at limit **
  10  Prefactor     .10000E-03    11.895        .66603E-05** at limit **
  11  norm          2.1883        1.3843        .13491E-06    .15922E-03
  12  Prefactor     3.7948        3.0110       -.73186E-06    .18530E-03
  13  Prefactor     .10000E-03    4.7191        .18241E-06** at limit **
  14  norm          .48021        .22672        .41369E-07   -.22798E-02
  15  Prefactor     12.943        18.863       -.59002E-06    .17374E-04
  16  Prefactor     13.665        13.723       -.40005E-06   -.80245E-06
  17  Prefactor     7.0432        2.4080       -.61572E-07    .12475E-03
  18  norm          5.5286        4.0013        .23740E-06   -.79065E-05
  19  norm          1.6573        2.2491       -.14241E-06    .20416E-05
  20  norm          .10000E-03    1.0861       -.23571E-07** at limit **
  21  Prefactor     .10000E-03    1.5103       -.19638E-06** at limit **
  22  norm          11.014        6.5764       -.44994E-07    .47978E-04
  23  Normalizat    1.1907        .15761        .26206E-05   -.21610E-04
  24  Prefactor     1.1257        .15101        .45952E-07    .24641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.07577
  Prefactor  = 6.62347
  Prefactor  = 4.01097
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18826
  Prefactor  = 3.79484
  Prefactor  = 0.0001
  norm       = 0.480215
  Prefactor  = 12.943
  Prefactor  = 13.6647
  Prefactor  = 7.04324
  norm       = 5.5286
  norm       = 1.65726
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0135
  Normalizat = 1.19071
  Prefactor  = 1.1257
 **********
 **   18 **HESSE 
 **********

 FCN=   9878.992     FROM HESSE     STATUS=OK           407 CALLS     3134 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.457        27.337        .10185E-03   -1.4921    
   2  Prefactor     .10000E-03    10.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    48.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9827        .26790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.0758        4.9416        .15081E-03   -1.5176    
   7  Prefactor     6.6235        53.954        .15570E-03   -1.5193    
   8  Prefactor     4.0110        2.6127        .11811E-03   -1.5307    
   9  norm          .10000E-03    6.2364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1883        1.3869        .83441E-04   -1.5412    
  12  Prefactor     3.7948        3.0254        .12671E-03   -1.5318    
  13  Prefactor     .10000E-03    4.7294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .48021        3.0227        .16594E-02   -1.5569    
  15  Prefactor     12.943        18.868        .11134E-03   -1.4988    
  16  Prefactor     13.665        13.704        .10835E-03   -1.4968    
  17  Prefactor     7.0432        2.4066        .86166E-04   -1.5177    
  18  norm          5.5286        3.9969        .15378E-03   -1.5238    
  19  norm          1.6573        2.1783        .16404E-03   -1.5450    
  20  norm          .10000E-03    1.8328        .19679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2118        .23503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.014        6.5611        .12074E-03   -1.5044    
  23  Normalizat    1.1907        .18852        .26620E-03   -.86890    
  24  Prefactor     1.1257        .18054        .26608E-03   -.88649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19333e-09
Minuit parameter uncertainties:
  1  27.3591
  2  8.04617e-06
  3  1.06883e-05
  4  0.000135514
  5  2.35093e-05
  6  4.94192
  7  37.8544
  8  2.61274
  9  1.11154e-05
  10  5.5128e-06
  11  1.38691
  12  3.02548
  13  7.24141e-06
  14  2.40952
  15  18.8768
  16  13.7074
  17  2.40662
  18  3.99711
  19  2.17844
  20  1.06173e-05
  21  3.07216e-05
  22  6.56148
  23  0.188627
  24  0.180641
Done.

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

Extracting fit parameters...

4FGL J0436.8-5223
   Spectrum: PowerLaw
284    Prefactor:  6.623e+00  3.785e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.807e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  5.405e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
643    Prefactor:  1.126e+00  1.806e-01  0.000e+00  1.000e+01 ( 1.000e+00)
644        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
645        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  1.191e+00  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 69.220 -52.393
Photon Flux Upper Limit: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363808/likelihoodResults_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.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) = 9878.82620848
delta logL = 0.165677542138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9878.81911735
delta logL = 0.172768672894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.916       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9521       1.0000          .0000       10.000    
     3 'Normalizat'    1.1920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1204       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+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=   9878.819     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      331 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.916        51.085        .75825E-04    .15293E-04
   2  Index         1.9521        .90115        .12853E-01   -.15771E-04
   3  Normalizat    1.1918        .18011        .26608E-03   -.34609E-04
   4  Prefactor     1.1205        .17618        .26658E-03    .69342E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.9163
  Index      = 1.95214
  Normalizat = 1.19181
  Prefactor  = 1.12051
 **********
 **   18 **HESSE 
 **********

 FCN=   9878.819     FROM HESSE     STATUS=OK            25 CALLS      356 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.916        51.316        .30330E-05   -1.4651    
   2  Index         1.9521        .90759        .51411E-03   -.65552    
   3  Normalizat    1.1918        .18029        .10643E-04   -.86856    
   4  Prefactor     1.1205        .17632        .10663E-04   -.88814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70199e-11
Minuit parameter uncertainties:
  1  51.3971
  2  0.915714
  3  0.18038
  4  0.176415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363808': 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) = 9878.8191169
delta logL = 0.172769119676

Extracting fit parameters...

4FGL J0436.8-5223
   Spectrum: PowerLaw
284    Prefactor:  2.792e+01  5.140e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.952e+00  9.157e-01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  5.405e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
643    Prefactor:  1.121e+00  1.764e-01  0.000e+00  1.000e+01 ( 1.000e+00)
644        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
645        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  1.192e+00  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 69.220 -52.393

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/363808/cmap_HighResolution_681004801_681264001_4FGL_J0436.8-5223_daily_bin1704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2022-08-04 03:38:34.644518', job_id='363808', GAL2='1.12', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1659609514.64', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.73e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1704' AND source_name='4FGL J0436.8-5223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug  4 03:38:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 363754: <4FGL_J0436.8-5223_daily_bin1704> in cluster <slac> Done

Job <4FGL_J0436.8-5223_daily_bin1704> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug  4 00:05:55 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 01:44:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 01:44:10 2022
Terminated at Thu Aug  4 03:34:20 2022
Results reported at Thu Aug  4 03:34:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0436.8-5223_daily_bin1704 69.2198 -52.3934 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0436.8-5223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6537.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             570.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   6610 sec.
    Turnaround time :                            12505 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 363808: <4FGL_J0436.8-5223_daily_bin1704> in cluster <slac> Done

Job <4FGL_J0436.8-5223_daily_bin1704> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug  4 00:05:58 2022
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 01:44:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 01:44:54 2022
Terminated at Thu Aug  4 03:38:35 2022
Results reported at Thu Aug  4 03:38:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0436.8-5223_daily_bin1704 69.2198 -52.3934 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0436.8-5223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6678.00 sec.
    Max Memory :                                 1102 MB
    Average Memory :                             572.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   6820 sec.
    Turnaround time :                            12757 sec.

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

