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


Performing analysis on: 4FGL_J1109.6+3735_monthly_bin169
RA = 167.409, Dec = 37.5868
tmin = 675043201, tmax = 677635201
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='165921', job_status='RUN', time_executed='2022-06-23 02:06:42.954546', time_epoch_executed='1655975202.95' WHERE source_name='4FGL J1109.6+3735' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165921

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165921/ft1_4FGL_J1109.6+3735_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165921/ft1_4FGL_J1109.6+3735_monthly_bin169.fits outfile=/scratch/kocevski/165921/ft1_filteredMKT_4FGL_J1109.6+3735_monthly_bin169.fits ra=167.409 dec=37.5868 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.75
user 26.93
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.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/165921/ft1_filteredMKT_4FGL_J1109.6+3735_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/165921/ft1_filtered_4FGL_J1109.6+3735_monthly_bin169.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.88
user 0.66
sys 0.20

Number of photons that the gtmktime cut: 7496

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165921/ft1_filtered_4FGL_J1109.6+3735_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/165921/ltcube_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.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/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.fits
.....................!
real 154.48
user 153.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165921/ft1_filtered_4FGL_J1109.6+3735_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/165921/ltcube_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.fits outfile=/scratch/kocevski/165921/expmap_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.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/165921/ltcube_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.fits
.....................!
real 193.80
user 187.83
sys 5.33

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1109.6+3735 @ 167.409 37.5868

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/165921/ft1_filtered_4FGL_J1109.6+3735_monthly_bin169.fits scfile=/scratch/kocevski/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.fits outfile=/scratch/kocevski/165921/cmap_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.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=167.409 yref=37.5868 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.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165921/ft1_filtered_4FGL_J1109.6+3735_monthly_bin169.fits scfile=/scratch/kocevski/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.fits outfile=/scratch/kocevski/165921/cmap_HighResolution_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.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=167.409 yref=37.5868 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.64
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165921/ft1_filtered_4FGL_J1109.6+3735_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165921/Model_4FGL_J1109.6+3735_monthly_bin169.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/165921/ft1_filtered_4FGL_J1109.6+3735_monthly_bin169.fits.....................!
real 542.17
user 538.48
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/165921/ft1_filtered_4FGL_J1109.6+3735_monthly_bin169.fits', '/scratch/kocevski/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.fits', expMap='/scratch/kocevski/165921/expmap_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.fits', expCube='/scratch/kocevski/165921/ltcube_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/165921/Model_4FGL_J1109.6+3735_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1109.6+3735'

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.001e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.855e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  4.801e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/165921/ft1_filtered_4FGL_J1109.6+3735_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/165921/ft2_4FGL_J1109.6+3735_monthly_bin169.fits
Exposure map: /scratch/kocevski/165921/expmap_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.fits
Exposure cube: /scratch/kocevski/165921/ltcube_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/165921/Model_4FGL_J1109.6+3735_monthly_bin169.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) = 80799.2702306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2804       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6559       1.0000         .10000E-03   10000.    
     4 'norm      '    6.5448       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3402       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0316       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3768       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1693       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.276       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4924       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7396       1.0000         .10000E-03   10000.    
    18 'norm      '    .23922E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4658       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5015       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9907       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2545       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .98896       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .83537       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.1225       1.0000         .10000E-03   10000.    
    26 'norm      '    1.9352       1.0000         .10000E-03   10000.    
    27 'norm      '    5.1785       1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.585       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13186E-01   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0102       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0051       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   80798.26     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     3661 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2805        1.0267       -.10801E-07   -.12948E-03
   2  Prefactor     6.8394        5.3349       -.10957E-06   -.18400E-04
   3  Prefactor     1.6561        1.1412        .21934E-08   -.21371E-03
   4  norm          6.5450        2.2729       -.96364E-08   -.13661E-03
   5  Prefactor     .10000E-03    3.8101        .54567E-07** at limit **
   6  Prefactor     11.305        6.1752       -.10119E-05   -.41007E-03
   7  Prefactor     .10000E-03    .28407       -.15385E-07** at limit **
   8  Prefactor     .10000E-03    .29072        .17929E-06** at limit **
   9  Prefactor     2.3404        3.4886        .10033E-05   -.13615E-04
  10  Prefactor     .10000E-03    1.5372        .25188E-08** at limit **
  11  Prefactor     .10000E-03    4.9717       -.84138E-07** at limit **
  12  Prefactor     6.0317        2.6679       -.12104E-06   -.23387E-04
  13  norm          1.3768        .92476E-01   -.80726E-09   -.12693E-02
  14  Prefactor     3.1694        .80579        .87296E-09   -.73523E-04
  15  Prefactor     11.279        3.7831       -.11456E-06   -.22985E-03
  16  Prefactor     1.4928        1.7780        .73969E-08   -.30458E-04
  17  Prefactor     6.7362        14.384       -.19002E-05   -.16063E-06
  18  norm          .12321E-01    .61584        .11720E-06   -.55712E-03
  19  Prefactor     4.4658        .76699        .87868E-07   -.63526E-03
  20  Prefactor     5.5007        7.1393       -.28768E-05   -.44674E-04
  21  Prefactor     3.9899        3.1325        .53059E-06   -.64094E-04
  22  norm          2.2546        .59305        .22948E-08   -.27027E-03
  23  Prefactor     .99014        .24329       -.91603E-07   -.49884E-03
  24  Prefactor     .83665        1.3188        .39810E-06    .39134E-03
  25  Prefactor     9.1228        8.2987        .39133E-05    .44112E-04
  26  norm          1.9351        .29263       -.82100E-07    .76258E-03
  27  norm          5.1783        1.7839       -.31199E-07    .89064E-04
  28  Prefactor     21.584        7.3801       -.25159E-05   -.96219E-04
  29  Prefactor     .10009E-03    2.3646       -.29403E-06** at limit **
  30  Normalizat    1.0102        .47170E-01    .12220E-06   -.51860E-03
  31  Prefactor     1.0052        .54819E-01    .31240E-07   -.27524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28046
  Prefactor  = 6.8394
  Prefactor  = 1.65609
  norm       = 6.54503
  Prefactor  = 0.0001
  Prefactor  = 11.3054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.03166
  norm       = 1.37682
  Prefactor  = 3.16938
  Prefactor  = 11.2795
  Prefactor  = 1.49279
  Prefactor  = 6.73622
  norm       = 0.0123211
  Prefactor  = 4.46582
  Prefactor  = 5.50075
  Prefactor  = 3.98991
  norm       = 2.2546
  Prefactor  = 0.99014
  Prefactor  = 0.836654
  Prefactor  = 9.12275
  norm       = 1.93515
  norm       = 5.17826
  Prefactor  = 21.5838
  Prefactor  = 0.000100089
  Normalizat = 1.01017
  Prefactor  = 1.00518
 **********
 **   18 **HESSE 
 **********

 FCN=   80798.26     FROM HESSE     STATUS=OK           660 CALLS     4321 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2805        .98276        .22668E-03   -1.5482    
   2  Prefactor     6.8394        5.3321        .15342E-03   -1.5185    
   3  Prefactor     1.6561        1.1000        .21905E-03   -1.5451    
   4  norm          6.5450        2.2680        .15687E-03   -1.5196    
   5  Prefactor     .10000E-03    3.8234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.305        5.8207        .11916E-03   -1.5035    
   7  Prefactor     .10000E-03    .29610        .29533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .79004        .27588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3404        3.4691        .26802E-03   -1.5402    
  10  Prefactor     .10000E-03    1.5507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0317        2.6588        .16349E-03   -1.5217    
  13  norm          1.3768        .92739E-01    .21106E-04   -1.5473    
  14  Prefactor     3.1694        .80218        .11851E-03   -1.5352    
  15  Prefactor     11.279        3.7785        .11930E-03   -1.5036    
  16  Prefactor     1.4928        1.7558        .35085E-03   -1.5464    
  17  Prefactor     6.7362        14.380        .15456E-03   -1.5189    
  18  norm          .12321E-01    .79525        .72784E-01   -1.5686    
  19  Prefactor     4.4658        .75801        .89988E-04   -1.5285    
  20  Prefactor     5.5007        7.1125        .17130E-03   -1.5239    
  21  Prefactor     3.9899        3.1674        .10095E-02   -1.5308    
  22  norm          2.2546        .58718        .10358E-03   -1.5408    
  23  Prefactor     .99014        2.4640        .26253E-02   -1.5509    
  24  Prefactor     .83665        1.3117        .37007E-03   -1.5525    
  25  Prefactor     9.1228        8.2800        .13270E-03   -1.5104    
  26  norm          1.9351        .29142        .53611E-04   -1.5430    
  27  norm          5.1783        1.7841        .88328E-03   -1.5253    
  28  Prefactor     21.584        7.3585        .86212E-04   -1.4778    
  29  Prefactor     .10009E-03    2.4291        .14249       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0102        .55625E-01    .23526E-03   -.92690    
  31  Prefactor     1.0052        .64670E-01    .28671E-03   -.92557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51411e-08
Minuit parameter uncertainties:
  1  0.982772
  2  5.33248
  3  1.10001
  4  2.26807
  5  9.99757e-07
  6  5.82097
  7  6.27096e-07
  8  1.55667e-05
  9  3.46943
  10  5.81313e-07
  11  2.12167e-06
  12  2.65887
  13  0.0927387
  14  0.802185
  15  3.77855
  16  1.75586
  17  14.3874
  18  0.197171
  19  0.758012
  20  7.11357
  21  3.16756
  22  0.587177
  23  2.4642
  24  1.31177
  25  8.28099
  26  0.291422
  27  1.78416
  28  7.35885
  29  0.000930708
  30  0.0556283
  31  0.0646753
Done.

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

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  1.493e+00  1.756e+00  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  1.855e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  4.801e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.005e+00  6.468e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.010e+00  5.563e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 167.409 37.587
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.29e-09 +/- 2.69e-09
Energy Flux (Fixed Index): 2.33e-06 +/- 2.74e-06

TS (Fixed Index): 1.29
Ra Dec: 167.409 37.587
Photon Flux Upper Limit: 9.43e-09 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/165921/likelihoodResults_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.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) = 80797.8907424
delta logL = 0.364733116847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 80797.890371
delta logL = 0.365104481447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74232       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5415       1.0000          .0000       10.000    
     3 'Normalizat'    1.0047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   80797.89     FROM MIGRAD    STATUS=FAILED       103 CALLS      314 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74237        27.307        .20690E-03    .79123E-04
   2  Index         2.5413        6.2413        .21053E-01    .55564E-03
   3  Normalizat    1.0047        .47262E-01    .23574E-03    .84878E-05
   4  Prefactor     1.0080        .41314E-01    .28627E-03    .13344E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   80797.89     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      400 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74237        27.307        .84776E-04    .79123E-04
   2  Index         2.5413        6.2413        .70097E-03    .55564E-03
   3  Normalizat    1.0047        .47262E-01    .35410E-04    .84878E-05
   4  Prefactor     1.0080        .41314E-01    .66636E-04    .13344E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   80797.89     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      430 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74237        1.3527        .82762E-05    .61540E-04
   2  Index         2.5413        .80316        .84212E-03    .88560E-05
   3  Normalizat    1.0047        .53661E-01    .94295E-05    .77161E-05
   4  Prefactor     1.0080        .64626E-01    .11451E-04    .12708E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.742375
  Index      = 2.54133
  Normalizat = 1.00474
  Prefactor  = 1.00804
 **********
 **   18 **HESSE 
 **********

 FCN=   80797.89     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .50E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74237        1.2941        .16552E-05   -1.5536    
   2  Index         2.5413        .76834        .33685E-04   -.51408    
   3  Normalizat    1.0047        .53591E-01    .18859E-05   -.92872    
   4  Prefactor     1.0080        .64597E-01    .22902E-05   -.92462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99145e-13
Minuit parameter uncertainties:
  1  1.29413
  2  0.772381
  3  0.0535936
  4  0.0646018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165921': 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) = 80797.890371
delta logL = 0.365104544413

Extracting fit parameters...

4FGL J1109.6+3735
   Spectrum: PowerLaw
332    Prefactor:  7.424e-01  1.294e+00  1.000e-04  1.000e+04 ( 1.000e-14)
333        Index:  2.541e+00  7.724e-01  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  4.801e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.008e+00  6.460e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.005e+00  5.359e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 167.409 37.587
Photon Index (Free Index): 2.54 +/- 0.77
Photon Flux (Free Index): 9.04e-09 +/- 1.17e-08
Energy Flux (Free Index): 2.51e-06 +/- 2.20e-06

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/165921/cmap_HighResolution_675043201_677635201_4FGL_J1109.6+3735_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-04', comment='SUCCESS', photon_flux='2.29e-09', energy_flux2='2.51e-06', photon_flux_error='2.69e-09', dlogl='3.65e-01', energy_flux='2.33e-06', photon_flux2='9.04e-09', job_status='DONE', time_completed='2022-06-23 04:40:25.809794', photon_index_error2='0.77', photon_index2='2.54', ts='1.29', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.43e-09', energy_flux_error2='2.20e-06', EG='1.01', time_epoch_completed='1655984425.81', return_code='0', job_id='165921', GAL2='1.01', EG2='1.00', return_code2='0', energy_flux_error='2.74e-06', photon_flux_error2='1.17e-08', ts2='2.05', photon_index='1.85' WHERE bin_id='169' AND source_name='4FGL J1109.6+3735' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:40:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 165921: <4FGL_J1109.6+3735_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1109.6+3735_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:35:25 2022
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:05:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:05:50 2022
Terminated at Thu Jun 23 04:40:26 2022
Results reported at Thu Jun 23 04:40:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1109.6+3735_monthly_bin169 167.409 37.5868 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1109.6+3735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9167.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             422.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9279 sec.
    Turnaround time :                            11101 sec.

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

