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


Performing analysis on: 4FGL_J0436.8-5223_monthly_bin168
RA = 69.2198, Dec = -52.3934
tmin = 672451201, tmax = 675043201
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='616115', job_status='RUN', time_executed='2022-05-24 02:08:38.245107', time_epoch_executed='1653383318.25' WHERE source_name='4FGL J0436.8-5223' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/616115

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/616115/ft1_4FGL_J0436.8-5223_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/616115/ft2_4FGL_J0436.8-5223_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/616115/ft1_4FGL_J0436.8-5223_monthly_bin168.fits outfile=/scratch/kocevski/616115/ft1_filteredMKT_4FGL_J0436.8-5223_monthly_bin168.fits ra=69.2198 dec=-52.3934 rad=12.0 tmin=672451201.0 tmax=675043201.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.21
user 28.35
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/616115/ft2_4FGL_J0436.8-5223_monthly_bin168.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/616115/ft1_filteredMKT_4FGL_J0436.8-5223_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/616115/ft1_filtered_4FGL_J0436.8-5223_monthly_bin168.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.86
user 0.66
sys 0.19

Number of photons that the gtmktime cut: 8093

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/616115/ft1_filtered_4FGL_J0436.8-5223_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/616115/ft2_4FGL_J0436.8-5223_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/616115/ltcube_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.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/616115/ft2_4FGL_J0436.8-5223_monthly_bin168.fits
.....................!
real 133.43
user 130.36
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/616115/ft1_filtered_4FGL_J0436.8-5223_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/616115/ft2_4FGL_J0436.8-5223_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/616115/ltcube_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.fits outfile=/scratch/kocevski/616115/expmap_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.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/616115/ltcube_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.fits
.....................!
real 193.23
user 187.10
sys 5.48

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/616115/ft1_filtered_4FGL_J0436.8-5223_monthly_bin168.fits scfile=/scratch/kocevski/616115/ft2_4FGL_J0436.8-5223_monthly_bin168.fits outfile=/scratch/kocevski/616115/cmap_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.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.81
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/616115/ft1_filtered_4FGL_J0436.8-5223_monthly_bin168.fits scfile=/scratch/kocevski/616115/ft2_4FGL_J0436.8-5223_monthly_bin168.fits outfile=/scratch/kocevski/616115/cmap_HighResolution_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.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.82
user 0.62
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/616115/ft1_filtered_4FGL_J0436.8-5223_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/616115/ft2_4FGL_J0436.8-5223_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/616115/Model_4FGL_J0436.8-5223_monthly_bin168.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/616115/ft1_filtered_4FGL_J0436.8-5223_monthly_bin168.fits.....................!
real 48699.39
user 48443.57
sys 32.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/616115/ft1_filtered_4FGL_J0436.8-5223_monthly_bin168.fits', '/scratch/kocevski/616115/ft2_4FGL_J0436.8-5223_monthly_bin168.fits', expMap='/scratch/kocevski/616115/expmap_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.fits', expCube='/scratch/kocevski/616115/ltcube_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/616115/Model_4FGL_J0436.8-5223_monthly_bin168.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/616115/ft1_filtered_4FGL_J0436.8-5223_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/616115/ft2_4FGL_J0436.8-5223_monthly_bin168.fits
Exposure map: /scratch/kocevski/616115/expmap_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.fits
Exposure cube: /scratch/kocevski/616115/ltcube_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/616115/Model_4FGL_J0436.8-5223_monthly_bin168.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) = 86581.3242364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.461       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.010       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9527       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8846       1.0000         .10000E-03   10000.    
     5 'norm      '    .42720       1.0000         .10000E-03   10000.    
     6 'norm      '    .71667       1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3043       1.0000         .10000E-03   10000.    
     9 'norm      '    30.079       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7159       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6662       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2863       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2146       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.057       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7020       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2539       1.0000         .10000E-03   10000.    
    19 'norm      '    4.7285       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .80583       1.0000         .10000E-03   10000.    
    22 'norm      '    15.140       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0112       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99895       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=   86581.19     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2371 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.460        13.172       -.28569E-06    .25141E-05
   2  Prefactor     20.010        6.7611       -.77844E-06    .44051E-06
   3  Prefactor     3.9531        2.9720        .41997E-06    .16822E-03
   4  Prefactor     4.8843        6.4700       -.11083E-05   -.11779E-04
   5  norm          .42680        .72293       -.57178E-06   -.15457E-02
   6  norm          .71679        1.0318        .52317E-07   -.32880E-03
   7  Prefactor     53.256        15.611        .18113E-05    .14830E-03
   8  Prefactor     2.3043        .79839        .49269E-07    .73782E-04
   9  norm          30.079        3.6106       -.12863E-06    .52939E-04
  10  Prefactor     3.7160        5.4372        .10993E-06   -.31423E-03
  11  norm          1.6662        .37769        .46903E-08    .17835E-03
  12  Prefactor     2.7771        .88374        .17069E-07    .21588E-04
  13  Prefactor     2.2856        3.0280       -.14440E-05   -.19514E-03
  14  norm          4.2153        .89033        .22183E-06   -.32132E-02
  15  Prefactor     .10000E-03    .89269       -.14630E-08** at limit **
  16  Prefactor     10.057        3.9544       -.46972E-06   -.14608E-04
  17  Prefactor     1.7020        .56348       -.17174E-07   -.27262E-03
  18  norm          6.2539        1.1168        .31245E-07    .36574E-05
  19  norm          4.7285        1.0239       -.18567E-07   -.49549E-04
  20  norm          .10000E-03    .15744        .12349E-08** at limit **
  21  Prefactor     .80601        .86262       -.79510E-07   -.74465E-03
  22  norm          15.140        2.3816       -.56806E-07    .59672E-04
  23  Normalizat    1.0112        .50897E-01    .68266E-08    .33980E-03
  24  Prefactor     .99892        .47750E-01   -.35539E-08    .26939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.4605
  Prefactor  = 20.0101
  Prefactor  = 3.95311
  Prefactor  = 4.88432
  norm       = 0.426799
  norm       = 0.716787
  Prefactor  = 53.2559
  Prefactor  = 2.3043
  norm       = 30.0789
  Prefactor  = 3.71596
  norm       = 1.6662
  Prefactor  = 2.77709
  Prefactor  = 2.28558
  norm       = 4.21531
  Prefactor  = 0.0001
  Prefactor  = 10.0567
  Prefactor  = 1.70198
  norm       = 6.25391
  norm       = 4.72854
  norm       = 0.0001
  Prefactor  = 0.806014
  norm       = 15.1402
  Normalizat = 1.01119
  Prefactor  = 0.998917
 **********
 **   18 **HESSE 
 **********

 FCN=   86581.19     FROM HESSE     STATUS=OK           415 CALLS     2786 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.460        13.174        .23745E-03   -1.4015    
   2  Prefactor     20.010        6.7588        .89537E-04   -1.4813    
   3  Prefactor     3.9531        2.9614        .20289E-03   -1.5310    
   4  Prefactor     4.8843        6.4693        .18200E-03   -1.5266    
   5  norm          .42680        .82595        .34516E-03   -1.5577    
   6  norm          .71679        1.0383        .24251E-03   -1.5539    
   7  Prefactor     53.256        15.700        .54962E-04   -1.4247    
   8  Prefactor     2.3043        .78755        .13836E-03   -1.5404    
   9  norm          30.079        3.5914        .73054E-04   -1.4611    
  10  Prefactor     3.7160        5.6959        .10474E-02   -1.5322    
  11  norm          1.6662        .37851        .78292E-04   -1.5450    
  12  Prefactor     2.7771        .87749        .12713E-03   -1.5375    
  13  Prefactor     2.2856        3.0863        .27150E-03   -1.5406    
  14  norm          4.2153        1.3498        .83366E-03   -1.5297    
  15  Prefactor     .10000E-03    .89722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.057        3.9454        .12635E-03   -1.5074    
  17  Prefactor     1.7020        .55763        .12019E-03   -1.5447    
  18  norm          6.2539        1.1156        .12325E-03   -1.5208    
  19  norm          4.7285        .98161        .12733E-03   -1.5273    
  20  norm          .10000E-03    .49558        .21723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .80601        .90064        .27425E-03   -1.5528    
  22  norm          15.140        2.3738        .10293E-03   -1.4930    
  23  Normalizat    1.0112        .59244E-01    .25899E-03   -.92657    
  24  Prefactor     .99892        .55358E-01    .25304E-03   -.92766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91468e-10
Minuit parameter uncertainties:
  1  13.1744
  2  6.7591
  3  2.96152
  4  6.47018
  5  0.825975
  6  1.03835
  7  15.7013
  8  0.787551
  9  3.59146
  10  5.69675
  11  0.378513
  12  0.877493
  13  3.08654
  14  1.34978
  15  1.15821e-07
  16  3.94555
  17  0.557631
  18  1.11562
  19  0.981617
  20  2.75736e-06
  21  0.900658
  22  2.3738
  23  0.0592482
  24  0.0553608
Done.

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

Extracting fit parameters...

4FGL J0436.8-5223
   Spectrum: PowerLaw
284    Prefactor:  5.326e+01  1.570e+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:  9.989e-01  5.536e-02  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.011e+00  5.925e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.28
Ra Dec: 69.220 -52.393
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 3.36e-08 +/- 9.90e-09
Energy Flux (Fixed Index): 7.50e-06 +/- 2.21e-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) = 86579.7341819
delta logL = 1.45167415023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 86579.6830022
delta logL = 1.50285382269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.781       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2965       1.0000          .0000       10.000    
     3 'Normalizat'    1.0287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98727       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.

 FCN=   86579.68     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      280 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.800        282.32        .12762E-02   -.22662E-04
   2  Index         2.2969        2.6966        .24322       -.17971E-03
   3  Normalizat    1.0287        .43992E-01    .42301E-01    .16176E-03
   4  Prefactor     .98728        .36968E-01    .46108E-01    .14409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.8004
  Index      = 2.29686
  Normalizat = 1.02865
  Prefactor  = 0.987278
 **********
 **   18 **HESSE 
 **********

 FCN=   86579.68     FROM HESSE     STATUS=OK            31 CALLS      311 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.800        19.200        .51050E-04   -1.4134    
   2  Index         2.2969        .27583        .13959E-01   -.57118    
   3  Normalizat    1.0287        .56453E-01    .25697E-03   -.92077    
   4  Prefactor     .98728        .54104E-01    .25429E-03   -.93155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29469e-09
Minuit parameter uncertainties:
  1  19.2014
  2  0.276025
  3  0.0564561
  4  0.0541072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/616115': 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) = 86579.6830009
delta logL = 1.50285511938

Extracting fit parameters...

4FGL J0436.8-5223
   Spectrum: PowerLaw
284    Prefactor:  6.180e+01  1.920e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.297e+00  2.760e-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:  9.873e-01  5.411e-02  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.029e+00  5.646e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.95
Ra Dec: 69.220 -52.393
Photon Index (Free Index): 2.30 +/- 0.28
Photon Flux (Free Index): 2.30e-08 +/- 9.76e-09
Energy Flux (Free Index): 8.74e-06 +/- 2.97e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/616115/cmap_HighResolution_672451201_675043201_4FGL_J0436.8-5223_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.36e-08', energy_flux2='8.74e-06', photon_flux_error='9.90e-09', dlogl='1.50e+00', energy_flux='7.50e-06', photon_flux2='2.30e-08', job_status='DONE', time_completed='2022-05-24 16:59:22.495202', photon_index_error2='0.28', photon_index2='2.30', ts='18.28', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.97e-06', EG='1.01', time_epoch_completed='1653436762.5', return_code='0', job_id='616115', GAL2='0.99', EG2='1.03', return_code2='0', energy_flux_error='2.21e-06', photon_flux_error2='9.76e-09', ts2='20.95', photon_index='2.81' WHERE bin_id='168' AND source_name='4FGL J0436.8-5223' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 16:59:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 616115: <4FGL_J0436.8-5223_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0436.8-5223_monthly_bin168> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue May 24 02:05:33 2022
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:06:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:06:51 2022
Terminated at Tue May 24 16:59:23 2022
Results reported at Tue May 24 16:59:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0436.8-5223_monthly_bin168 69.2198 -52.3934 672451201 675043201 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 :                                   53199.00 sec.
    Max Memory :                                 646 MB
    Average Memory :                             617.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   53552 sec.
    Turnaround time :                            53630 sec.

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

