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 160 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_J1307.6-4259_monthly_bin169
RA = 196.91, Dec = -42.995
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='167503', job_status='RUN', time_executed='2022-06-23 02:27:23.925676', time_epoch_executed='1655976443.93' WHERE source_name='4FGL J1307.6-4259' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/167503

Creating custom pfile directory:
/scratch/kocevski/167503/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/167503/ft1_4FGL_J1307.6-4259_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/167503/ft2_4FGL_J1307.6-4259_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/167503/ft1_4FGL_J1307.6-4259_monthly_bin169.fits outfile=/scratch/kocevski/167503/ft1_filteredMKT_4FGL_J1307.6-4259_monthly_bin169.fits ra=196.91 dec=-42.995 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 24.26
user 21.78
sys 0.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/167503/ft2_4FGL_J1307.6-4259_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/167503/ft2_4FGL_J1307.6-4259_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/167503/ft1_filteredMKT_4FGL_J1307.6-4259_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/167503/ft1_filtered_4FGL_J1307.6-4259_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.95
user 0.57
sys 0.16

Number of photons that the gtmktime cut: 11199

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/167503/ft1_filtered_4FGL_J1307.6-4259_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/167503/ft2_4FGL_J1307.6-4259_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/167503/ltcube_675043201_677635201_4FGL_J1307.6-4259_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/167503/ft2_4FGL_J1307.6-4259_monthly_bin169.fits
.....................!
real 127.69
user 111.23
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/167503/ft1_filtered_4FGL_J1307.6-4259_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/167503/ft2_4FGL_J1307.6-4259_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/167503/ltcube_675043201_677635201_4FGL_J1307.6-4259_monthly_bin169.fits outfile=/scratch/kocevski/167503/expmap_675043201_677635201_4FGL_J1307.6-4259_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/167503/ltcube_675043201_677635201_4FGL_J1307.6-4259_monthly_bin169.fits
.....................!
real 174.89
user 153.88
sys 4.24

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 CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 272 point sources and 6 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 J1307.6-4259 @ 196.91 -42.995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/167503/ft1_filtered_4FGL_J1307.6-4259_monthly_bin169.fits scfile=/scratch/kocevski/167503/ft2_4FGL_J1307.6-4259_monthly_bin169.fits outfile=/scratch/kocevski/167503/cmap_675043201_677635201_4FGL_J1307.6-4259_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=196.91 yref=-42.995 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.76
user 0.51
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/167503/ft1_filtered_4FGL_J1307.6-4259_monthly_bin169.fits scfile=/scratch/kocevski/167503/ft2_4FGL_J1307.6-4259_monthly_bin169.fits outfile=/scratch/kocevski/167503/cmap_HighResolution_675043201_677635201_4FGL_J1307.6-4259_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=196.91 yref=-42.995 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.75
user 0.53
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/167503/ft1_filtered_4FGL_J1307.6-4259_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/167503/ft2_4FGL_J1307.6-4259_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/167503/Model_4FGL_J1307.6-4259_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 CenA Lobes
adding source EG_v02
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/scratch/kocevski/167503/ft1_filtered_4FGL_J1307.6-4259_monthly_bin169.fits.....................!
real 2006.10
user 1781.14
sys 2.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/167503/ft1_filtered_4FGL_J1307.6-4259_monthly_bin169.fits', '/scratch/kocevski/167503/ft2_4FGL_J1307.6-4259_monthly_bin169.fits', expMap='/scratch/kocevski/167503/expmap_675043201_677635201_4FGL_J1307.6-4259_monthly_bin169.fits', expCube='/scratch/kocevski/167503/ltcube_675043201_677635201_4FGL_J1307.6-4259_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/167503/Model_4FGL_J1307.6-4259_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1307.6-4259'

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  2.721e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/167503/ft1_filtered_4FGL_J1307.6-4259_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/167503/ft2_4FGL_J1307.6-4259_monthly_bin169.fits
Exposure map: /scratch/kocevski/167503/expmap_675043201_677635201_4FGL_J1307.6-4259_monthly_bin169.fits
Exposure cube: /scratch/kocevski/167503/ltcube_675043201_677635201_4FGL_J1307.6-4259_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/167503/Model_4FGL_J1307.6-4259_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) = 114154.593654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9985       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2003       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1040       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3111       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.840       1.0000         .10000E-03   10000.    
     9 'norm      '    .31190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11223E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.7167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49979       1.0000         .10000E-03   10000.    
    14 'norm      '    19.173       1.0000         .10000E-03   10000.    
    15 'norm      '    4.7476       1.0000         .10000E-03   10000.    
    16 'norm      '    19.189       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.772       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34186E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    4.9548       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9364       1.0000         .10000E-03   10000.    
    21 'Prefactor '    49.299       1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.530       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7122       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89293       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   114154.6     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     1991 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1215        .63572E-06** at limit **
   2  Prefactor     1.9986        1.0623       -.25409E-07    .21988E-02
   3  Prefactor     .10000E-03    8.9033        .58750E-06** at limit **
   4  Prefactor     3.2003        .78813       -.62666E-07   -.40809E-03
   5  Prefactor     .10000E-03    30.057        .12368E-05** at limit **
   6  Prefactor     1.1042        1.5316       -.10699E-06   -.25564E-04
   7  Prefactor     2.3111        2.4857        .45876E-06    .63859E-03
   8  Prefactor     17.841        1.0057        .76664E-08    .99878E-03
   9  norm          .31200        .81882       -.43548E-06   -.13972E-03
  10  Prefactor     1.9876        2.1739        .26855E-07    .70598E-04
  11  Prefactor     .10000E-03    3.4015        .36579E-06** at limit **
  12  norm          4.7165        1.2099        .12595E-06   -.16144E-02
  13  Prefactor     .50016        1.1277       -.61291E-06   -.81881E-04
  14  norm          19.173        2.8930       -.15538E-06    .38377E-03
  15  norm          4.7476        1.7302       -.40131E-07   -.26587E-04
  16  norm          19.189        2.3261        .70781E-07   -.16980E-03
  17  Prefactor     51.756        1.6557       -.14845E-06    .57861E-02
  18  Prefactor     .10002E-03    202.04       -.22071E-04** at limit **
  19  norm          4.9561        1.0532       -.61597E-07    .42590E-02
  20  Prefactor     4.9317        1.0302       -.18012E-07   -.18058E-02
  21  Prefactor     49.299        1.0008        .45169E-08   -.20774E-03
  22  Prefactor     35.531        1.0006        .19391E-08    .49083E-03
  23  Normalizat    1.7122        .99457E-01   -.65329E-06    .46076E-04
  24  Prefactor     .89292        .28173E-01    .34969E-06    .39515E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.99863
  Prefactor  = 0.0001
  Prefactor  = 3.20033
  Prefactor  = 0.0001
  Prefactor  = 1.10417
  Prefactor  = 2.31107
  Prefactor  = 17.8414
  norm       = 0.312004
  Prefactor  = 1.98759
  Prefactor  = 0.0001
  norm       = 4.71648
  Prefactor  = 0.50016
  norm       = 19.1731
  norm       = 4.74763
  norm       = 19.1888
  Prefactor  = 51.756
  Prefactor  = 0.000100021
  norm       = 4.95607
  Prefactor  = 4.93167
  Prefactor  = 49.299
  Prefactor  = 35.5307
  Normalizat = 1.71224
  Prefactor  = 0.89292
 **********
 **   18 **HESSE 
 **********

 FCN=   114154.6     FROM HESSE     STATUS=OK           473 CALLS     2464 TOTAL
                     EDM=   .82E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1143        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9986        15.542        .73245E-02   -1.5425    
   3  Prefactor     .10000E-03    8.8892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2003        1.2736        .56622E-02   -1.5350    
   5  Prefactor     .10000E-03    29.536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1042        1.5649        .11282E-01   -1.5498    
   7  Prefactor     2.3111        2.6978        .67469E-02   -1.5404    
   8  Prefactor     17.841        13.821        .23706E-02   -1.4863    
   9  norm          .31200        .57754        .61621E-01   -1.5596    
  10  Prefactor     1.9876        2.1863        .73479E-02   -1.5426    
  11  Prefactor     .10000E-03    .55881        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7165        2.5842        .46320E-02   -1.5274    
  13  Prefactor     .50016        1.1507        .11270E-01   -1.5567    
  14  norm          19.173        2.8927        .22868E-02   -1.4832    
  15  norm          4.7476        1.7328        .46165E-02   -1.5272    
  16  norm          19.189        2.3228        .22858E-02   -1.4832    
  17  Prefactor     51.756        49.031        .13935E-02   -1.4268    
  18  Prefactor     .10002E-03    4.9109        .25808       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.9561        6.2850        .45170E-02   -1.5263    
  20  Prefactor     4.9317        13.576        .45255E-02   -1.5264    
  21  Prefactor     49.299        55.544        .14278E-02   -1.4303    
  22  Prefactor     35.531        17.043        .16808E-02   -1.4515    
  23  Normalizat    1.7122        .87480E-01    .10228       -.71977    
  24  Prefactor     .89292        .24084E-01    .44915E-01   -.96389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19407e-05
Minuit parameter uncertainties:
  1  5.41677e-06
  2  11.1504
  3  1.54199e-05
  4  1.27364
  5  2.25542e-05
  6  1.56499
  7  2.69793
  8  13.8231
  9  0.577555
  10  2.18639
  11  1.95043e-06
  12  2.58427
  13  1.15077
  14  2.89273
  15  1.73283
  16  2.32279
  17  49.069
  18  0.00064836
  19  6.28583
  20  13.585
  21  55.6023
  22  17.0457
  23  0.0874878
  24  0.0240839
Done.

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

Extracting fit parameters...

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  5.002e-01  1.151e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
956    Prefactor:  8.929e-01  2.408e-02  0.000e+00  1.000e+01 ( 1.000e+00)
957        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
958        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
944   Normalization:  1.712e+00  8.749e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 196.910 -42.995
Photon Flux Upper Limit: 1.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/167503/likelihoodResults_675043201_677635201_4FGL_J1307.6-4259_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) = 114154.274472
delta logL = 0.300348094504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 114154.263808
delta logL = 0.311011884813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37233       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7235       1.0000          .0000       10.000    
     3 'Normalizat'    1.7017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89391       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9650E+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.

 FCN=   114154.3     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      262 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37202        24.799        .22690E-03    .86581E-04
   2  Index         2.7237        5.8935        .11989E-01    .81231E-04
   3  Normalizat    1.7016        .11471        .45417E-03   -.40051E-05
   4  Prefactor     .89391        .26063E-01    .16607E-03   -.65719E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.372023
  Index      = 2.72369
  Normalizat = 1.70164
  Prefactor  = 0.893913
 **********
 **   18 **HESSE 
 **********

 FCN=   114154.3     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .78E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37202        .85652        .90760E-05   -1.5586    
   2  Index         2.7237        1.0730        .47956E-03   -.47267    
   3  Normalizat    1.7016        .99564E-01    .18167E-04   -.72259    
   4  Prefactor     .89391        .27317E-01    .66428E-05   -.96354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83433e-14
Minuit parameter uncertainties:
  1  0.856551
  2  1.08364
  3  0.0995759
  4  0.0273176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/167503': 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) = 114154.263808
delta logL = 0.311012000588

Extracting fit parameters...

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  3.720e-01  8.566e-01  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.724e+00  1.084e+00  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
956    Prefactor:  8.939e-01  2.732e-02  0.000e+00  1.000e+01 ( 1.000e+00)
957        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
958        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
944   Normalization:  1.702e+00  9.958e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 196.910 -42.995

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/167503/cmap_HighResolution_675043201_677635201_4FGL_J1307.6-4259_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-03', job_status='DONE', photon_flux_upper_limit='1.80e-08', time_completed='2022-06-23 05:25:52.120965', job_id='167503', GAL2='0.89', fit_tolerance='1e-08', EG2='1.70', EG='1.71', time_epoch_completed='1655987152.12', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.11e-01', ts2='0.85', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='169' AND source_name='4FGL J1307.6-4259' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:25:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 167503: <4FGL_J1307.6-4259_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1307.6-4259_monthly_bin169> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Jun 23 01:40:32 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:24:29 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:24:29 2022
Terminated at Thu Jun 23 05:25:54 2022
Results reported at Thu Jun 23 05:25:54 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   9925.00 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             557.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10884 sec.
    Turnaround time :                            13522 sec.

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

