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


Performing analysis on: 4FGL_J1509.8-2906_monthly_bin178
RA = 227.463, Dec = -29.1069
tmin = 698371201, tmax = 700963201
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='127440', job_status='RUN', time_executed='2023-03-20 05:02:45.372602', time_epoch_executed='1679313765.37' WHERE source_name='4FGL J1509.8-2906' and cadence='monthly' and bin_id='178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/127440

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/127440/ft1_4FGL_J1509.8-2906_monthly_bin178.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/127440/ft1_4FGL_J1509.8-2906_monthly_bin178.fits outfile=/scratch/kocevski/127440/ft1_filteredMKT_4FGL_J1509.8-2906_monthly_bin178.fits ra=227.463 dec=-29.1069 rad=12.0 tmin=698371201.0 tmax=700963201.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 32.74
user 31.84
sys 0.81

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.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/127440/ft1_filteredMKT_4FGL_J1509.8-2906_monthly_bin178.fits evtable="EVENTS" outfile="/scratch/kocevski/127440/ft1_filtered_4FGL_J1509.8-2906_monthly_bin178.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.16

Number of photons that the gtmktime cut: 15430

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/127440/ft1_filtered_4FGL_J1509.8-2906_monthly_bin178.fits" evtable="EVENTS" scfile=/scratch/kocevski/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.fits sctable="SC_DATA" outfile=/scratch/kocevski/127440/ltcube_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.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/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.fits
.....................!
real 113.92
user 113.26
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/127440/ft1_filtered_4FGL_J1509.8-2906_monthly_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.fits sctable="SC_DATA" expcube=/scratch/kocevski/127440/ltcube_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.fits outfile=/scratch/kocevski/127440/expmap_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.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/127440/ltcube_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.fits
.....................!
real 190.94
user 185.89
sys 4.71

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 FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 228 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 J1509.8-2906 @ 227.463 -29.1069

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/127440/ft1_filtered_4FGL_J1509.8-2906_monthly_bin178.fits scfile=/scratch/kocevski/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.fits outfile=/scratch/kocevski/127440/cmap_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.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=227.463 yref=-29.1069 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.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/127440/ft1_filtered_4FGL_J1509.8-2906_monthly_bin178.fits scfile=/scratch/kocevski/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.fits outfile=/scratch/kocevski/127440/cmap_HighResolution_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.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=227.463 yref=-29.1069 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.83
user 0.66
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/127440/ft1_filtered_4FGL_J1509.8-2906_monthly_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/127440/Model_4FGL_J1509.8-2906_monthly_bin178.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 FHES J1626.9-2431
adding source GAL_V02
Working on...
/scratch/kocevski/127440/ft1_filtered_4FGL_J1509.8-2906_monthly_bin178.fits.....................!
real 1391.72
user 1387.63
sys 1.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/127440/ft1_filtered_4FGL_J1509.8-2906_monthly_bin178.fits', '/scratch/kocevski/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.fits', expMap='/scratch/kocevski/127440/expmap_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.fits', expCube='/scratch/kocevski/127440/ltcube_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/127440/Model_4FGL_J1509.8-2906_monthly_bin178.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1509.8-2906'

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  3.269e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  2.711e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.617e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/127440/ft1_filtered_4FGL_J1509.8-2906_monthly_bin178.fits
Spacecraft file(s): /scratch/kocevski/127440/ft2_4FGL_J1509.8-2906_monthly_bin178.fits
Exposure map: /scratch/kocevski/127440/expmap_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.fits
Exposure cube: /scratch/kocevski/127440/ltcube_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/127440/Model_4FGL_J1509.8-2906_monthly_bin178.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) = 157715.752231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27756E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    25.361       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.5512       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4463       1.0000          .0000       .10000E+07
     5 'norm      '    15.319       1.0000          .0000       .10000E+07
     6 'Prefactor '    41.483       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.019       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.4616       1.0000          .0000       .10000E+07
     9 'norm      '    .17739       1.0000          .0000       .10000E+07
    10 'Prefactor '    .86026       1.0000          .0000       .10000E+07
    11 'Prefactor '    .21772       1.0000          .0000       .10000E+07
    12 'norm      '    .58842E-08   1.0000          .0000       .10000E+07
    13 'norm      '    1.6475       1.0000          .0000       .10000E+07
    14 'norm      '    1.2674       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.4575       1.0000          .0000       .10000E+07
    16 'norm      '    3.9269       1.0000          .0000       .10000E+07
    17 'Prefactor '    8.6088       1.0000          .0000       .10000E+07
    18 'norm      '    2.3070       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.7880       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0969       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   157715.7     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1904 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .32615        .47216E-09** at limit **
   2  Prefactor     25.361        8.4950       -.71286E-09   -.24102E-02
   3  Prefactor     8.5491        7.7715        .32075E-08   -.62948E-02
   4  Prefactor     2.4529        3.9432        .66963E-08   -.91392E-02
   5  norm          15.319        2.1598        .17039E-08   -.30421E-01
   6  Prefactor     41.432        26.352       -.14162E-07    .12830E-01
   7  Prefactor     10.019        2.6998        .15815E-09   -.40744E-02
   8  Prefactor     7.4608        4.7939        .10075E-07   -.64842E-01
   9  norm          .17744        .13338       -.25557E-09** at limit **
  10  Prefactor     .86021        1.1943        .13771E-09    .15008E-02
  11  Prefactor     .22027        5.0110       -.15750E-07** at limit **
  12  norm           .0000        .55522        .25495E-09** at limit **
  13  norm          1.6472        2.5450        .16880E-08    .56346E-03
  14  norm          1.2674        .16928        .26202E-10   -.12724E-01
  15  Prefactor     2.4572        1.3600        .75474E-09   -.58536E-03
  16  norm          3.9269        .79267       -.10070E-11   -.91117E-02
  17  Prefactor     8.6097        4.2482       -.17992E-07    .15153    
  18  norm          2.3069        1.4786       -.71414E-10   -.12695E-02
  19  Prefactor     1.7879        .51643        .37570E-09   -.28100E-02
  20  Normalizat    1.0968        .80194E-01   -.66739E-08    .24893E-04
  21  Prefactor     .95003        .20871E-01    .50286E-08   -.19922E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 25.3606
  Prefactor  = 8.54912
  Prefactor  = 2.45288
  norm       = 15.3186
  Prefactor  = 41.4317
  Prefactor  = 10.0194
  Prefactor  = 7.46081
  norm       = 0.177444
  Prefactor  = 0.86021
  Prefactor  = 0.220274
  norm       = 0
  norm       = 1.6472
  norm       = 1.26738
  Prefactor  = 2.45723
  norm       = 3.92689
  Prefactor  = 8.60965
  norm       = 2.30688
  Prefactor  = 1.78793
  Normalizat = 1.0968
  Prefactor  = 0.950035
 **********
 **   18 **HESSE 
 **********

 FCN=   157715.7     FROM HESSE     STATUS=OK           381 CALLS     2285 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .32205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.361        8.5174        .19861E-03   -1.5607    
   3  Prefactor     8.5491        7.8146        .34256E-03   -1.5649    
   4  Prefactor     2.4529        3.9946        .65380E-03   -1.5677    
   5  norm          15.319        3.0451        .25564E-03   -1.5630    
   6  Prefactor     41.432        26.422        .15528E-03   -1.5579    
   7  Prefactor     10.019        2.6989        .31633E-03   -1.5645    
   8  Prefactor     7.4608        4.8514        .36692E-03   -1.5653    
   9  norm          .17744        .12145        .29453E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .86021        1.2087        .48547E-03   -1.5689    
  11  Prefactor     .22027        .57512        .83402E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .54869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6472        3.2464        .82243E-03   -1.5682    
  14  norm          1.2674        .17117        .98869E-03   -1.5685    
  15  Prefactor     2.4572        1.3764        .65217E-03   -1.5677    
  16  norm          3.9269        .79880        .50884E-03   -1.5668    
  17  Prefactor     8.6097        4.2986        .34140E-03   -1.5649    
  18  norm          2.3069        1.4798        .67528E-03   -1.5678    
  19  Prefactor     1.7879        .51938        .78204E-03   -1.5681    
  20  Normalizat    1.0968        .72340E-01    .11082       -.89854    
  21  Prefactor     .95003        .18537E-01    .31698E-01   -.94414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59278e-06
Minuit parameter uncertainties:
  1  1.18513e-06
  2  8.51742
  3  7.81462
  4  3.99463
  5  3.04509
  6  26.4224
  7  2.69891
  8  4.85138
  9  0.121449
  10  1.20866
  11  0.575122
  12  9.63851e-07
  13  3.24645
  14  0.171168
  15  1.37641
  16  0.798804
  17  4.29865
  18  1.47984
  19  0.519381
  20  0.072347
  21  0.0185373
Done.

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

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  2.203e-01  5.751e-01  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  2.711e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.617e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
777    Prefactor:  9.500e-01  1.854e-02  0.000e+00  1.000e+01 ( 1.000e+00)
778        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
779        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
772   Normalization:  1.097e+00  7.235e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 227.463 -29.107
Photon Flux Upper Limit: 2.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/127440/likelihoodResults_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.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): 102
logL (Free Index) = 157715.727628
delta logL = 0.016039424343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 157715.711545
delta logL = 0.0321232127026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55594       1.0000          .0000       .10000E+07
     2 'Index     '    2.1496       1.0000          .0000       10.000    
     3 'Normalizat'    1.0972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94979       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7800E+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=   157715.7     FROM MIGRAD    STATUS=FAILED        99 CALLS      296 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55596        2.0830        .14654E-03   -.36218E-01
   2  Index         2.1498        1.4485        .38431E-01   -.90646E-03
   3  Normalizat    1.0972        .76659E-01    .49123E-03    .21625E-04
   4  Prefactor     .94980        .20656E-01    .14008E-03   -.25971E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   157715.7     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      371 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55596        2.0830        .15014E-04   -1.5693    
   2  Index         2.1498        1.4485        .12961E-02   -.60654    
   3  Normalizat    1.0972        .76659E-01    .83376E-04   -.89843    
   4  Prefactor     .94980        .20656E-01    .28286E-04   -.94422    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   157715.7     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      403 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55618        2.1315        .58617E-05    .49651E-04
   2  Index         2.1498        1.4997        .76862E-02   -.64749E-04
   3  Normalizat    1.0972        .76711E-01    .98247E-04   -.51841E-04
   4  Prefactor     .94980        .20664E-01    .56031E-05   -.16881E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.556176
  Index      = 2.14985
  Normalizat = 1.09715
  Prefactor  = 0.949795
 **********
 **   18 **HESSE 
 **********

 FCN=   157715.7     FROM HESSE     STATUS=OK            23 CALLS      426 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55618        2.1608        .11723E-05   -1.5693    
   2  Index         2.1498        1.5202        .30745E-03   -.60654    
   3  Normalizat    1.0972        .76630E-01    .39299E-05   -.89843    
   4  Prefactor     .94980        .20642E-01    .11206E-05   -.94422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74063e-10
Minuit parameter uncertainties:
  1  2.16084
  2  1.55721
  3  0.0766377
  4  0.0206418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/127440': 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) = 157715.711544
delta logL = 0.0321233221912

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  5.562e-01  2.161e+00  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  2.150e+00  1.557e+00  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  5.617e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
777    Prefactor:  9.498e-01  2.064e-02  0.000e+00  1.000e+01 ( 1.000e+00)
778        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
779        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
772   Normalization:  1.097e+00  7.664e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 227.463 -29.107

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/127440/cmap_HighResolution_698371201_700963201_4FGL_J1509.8-2906_monthly_bin178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-03', job_status='DONE', photon_flux_upper_limit='2.82e-08', time_completed='2023-03-20 08:13:02.796207', job_id='127440', GAL2='0.95', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1679325182.8', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.21e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='178' AND source_name='4FGL J1509.8-2906' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Mar 20 08:13:02 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 127440: <4FGL_J1509.8-2906_monthly_bin178> in cluster <slac> Done

Job <4FGL_J1509.8-2906_monthly_bin178> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Mar 20 05:00:25 2023
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 05:00:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 05:00:26 2023
Terminated at Mon Mar 20 08:13:04 2023
Results reported at Mon Mar 20 08:13:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1509.8-2906_monthly_bin178 227.463 -29.1069 698371201 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1509.8-2906 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11375.00 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             573.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11557 sec.
    Turnaround time :                            11559 sec.

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

