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 125 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_J1245.1+5709_monthly_bin169
RA = 191.288, Dec = 57.158
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='167457', job_status='RUN', time_executed='2022-06-23 02:21:37.137238', time_epoch_executed='1655976097.14' WHERE source_name='4FGL J1245.1+5709' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/167457

Creating custom pfile directory:
/scratch/kocevski/167457/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/167457/ft1_4FGL_J1245.1+5709_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/167457/ft2_4FGL_J1245.1+5709_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/167457/ft1_4FGL_J1245.1+5709_monthly_bin169.fits outfile=/scratch/kocevski/167457/ft1_filteredMKT_4FGL_J1245.1+5709_monthly_bin169.fits ra=191.288 dec=57.158 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.83
user 27.14
sys 0.59

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/167457/ft2_4FGL_J1245.1+5709_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/167457/ft2_4FGL_J1245.1+5709_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/167457/ft1_filteredMKT_4FGL_J1245.1+5709_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/167457/ft1_filtered_4FGL_J1245.1+5709_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.86
user 0.68
sys 0.18

Number of photons that the gtmktime cut: 8312

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/167457/ft1_filtered_4FGL_J1245.1+5709_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/167457/ft2_4FGL_J1245.1+5709_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/167457/ltcube_675043201_677635201_4FGL_J1245.1+5709_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/167457/ft2_4FGL_J1245.1+5709_monthly_bin169.fits
.....................!
real 143.42
user 142.66
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/167457/ft1_filtered_4FGL_J1245.1+5709_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/167457/ft2_4FGL_J1245.1+5709_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/167457/ltcube_675043201_677635201_4FGL_J1245.1+5709_monthly_bin169.fits outfile=/scratch/kocevski/167457/expmap_675043201_677635201_4FGL_J1245.1+5709_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/167457/ltcube_675043201_677635201_4FGL_J1245.1+5709_monthly_bin169.fits
.....................!
real 193.08
user 187.34
sys 5.22

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/167457/ft1_filtered_4FGL_J1245.1+5709_monthly_bin169.fits scfile=/scratch/kocevski/167457/ft2_4FGL_J1245.1+5709_monthly_bin169.fits outfile=/scratch/kocevski/167457/cmap_675043201_677635201_4FGL_J1245.1+5709_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=191.288 yref=57.158 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.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/167457/ft1_filtered_4FGL_J1245.1+5709_monthly_bin169.fits scfile=/scratch/kocevski/167457/ft2_4FGL_J1245.1+5709_monthly_bin169.fits outfile=/scratch/kocevski/167457/cmap_HighResolution_675043201_677635201_4FGL_J1245.1+5709_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=191.288 yref=57.158 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.64
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/167457/ft1_filtered_4FGL_J1245.1+5709_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/167457/ft2_4FGL_J1245.1+5709_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/167457/Model_4FGL_J1245.1+5709_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/167457/ft1_filtered_4FGL_J1245.1+5709_monthly_bin169.fits.....................!
real 619.08
user 615.37
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/167457/ft1_filtered_4FGL_J1245.1+5709_monthly_bin169.fits', '/scratch/kocevski/167457/ft2_4FGL_J1245.1+5709_monthly_bin169.fits', expMap='/scratch/kocevski/167457/expmap_675043201_677635201_4FGL_J1245.1+5709_monthly_bin169.fits', expCube='/scratch/kocevski/167457/ltcube_675043201_677635201_4FGL_J1245.1+5709_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/167457/Model_4FGL_J1245.1+5709_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/167457/ft1_filtered_4FGL_J1245.1+5709_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/167457/ft2_4FGL_J1245.1+5709_monthly_bin169.fits
Exposure map: /scratch/kocevski/167457/expmap_675043201_677635201_4FGL_J1245.1+5709_monthly_bin169.fits
Exposure cube: /scratch/kocevski/167457/ltcube_675043201_677635201_4FGL_J1245.1+5709_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/167457/Model_4FGL_J1245.1+5709_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) = 90027.0692088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3395       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.737       1.0000         .10000E-03   10000.    
     3 'norm      '    .91479       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66233       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2683       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3506       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.131       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6764       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9840       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0918       1.0000         .10000E-03   10000.    
    15 'norm      '    4.6481       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9505       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1390       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3664       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4386       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .51509       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9203       1.0000         .10000E-03   10000.    
    24 'norm      '    2.2456       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.935       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .62597       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .49822       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.7591       1.0000         .10000E-03   10000.    
    29 'norm      '    12.664       1.0000         .10000E-03   10000.    
    30 'norm      '    1.4900       1.0000         .10000E-03   10000.    
    31 'Prefactor '    41.997       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .99368       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0355       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   90027.00     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4041 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3395        1.3822         .0000        .65789E-02
   2  Prefactor     10.737        4.4730         .0000        .51616E-03
   3  norm          .91498        1.2593         .0000        .47899E-02
   4  Prefactor     .66242        .57693         .0000        .84171E-02
   5  norm          .10000E-03    .19737         .0000    ** at limit **
   6  Prefactor     15.142        4.9750         .0000       -.12067E-02
   7  Prefactor     3.2684        1.5793         .0000        .11046    
   8  Prefactor     5.3502        4.3246         .0000        .13999E-01
   9  norm          1.2758        .47629         .0000        .10913E-01
  10  Prefactor     10.130        4.2527         .0000        .84737E-02
  11  Prefactor     6.6767        7.8967         .0000        .48121E-03
  12  norm          1.0487        1.2720         .0000        .14124E-01
  13  Prefactor     7.9860        4.6760         .0000        .84206E-02
  14  Prefactor     1.0918        .88919         .0000        .43127E-02
  15  norm          4.6481        .62975         .0000        .13392E-02
  16  Prefactor     .10000E-03    1.4936         .0000    ** at limit **
  17  norm          1.9505        .45021         .0000        .52387E-03
  18  Prefactor     2.1391        6.0432         .0000        .87727E-03
  19  Prefactor     1.3666        1.5542         .0000        .26101    
  20  norm          1.4386        .65069         .0000        .44594E-02
  21  Prefactor     .10000E-03    3.1990         .0000    ** at limit **
  22  Prefactor     .51549        4.9207         .0000        .74364E-01
  23  Prefactor     9.9202        4.1010         .0000        .10658E-01
  24  norm          2.2456        .89463         .0000        .54818E-02
  25  Prefactor     11.934        11.410         .0000       -.21509E-02
  26  Prefactor     .62612        .80575         .0000        .17153E-01
  27  Prefactor     .48718        1.8930         .0000        .23008E-02
  28  Prefactor     2.7590        1.8501         .0000        .10038    
  29  norm          12.664        9.0848         .0000        .12230E-03
  30  norm          1.4901        .90103         .0000        .11239E-01
  31  Prefactor     41.997        40.859         .0000        .35287E-04
  32  Normalizat    .99369        .42177E-01     .0000       -.62827E-03
  33  Prefactor     1.0355        .50478E-01     .0000       -.36382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33953
  Prefactor  = 10.7372
  norm       = 0.914978
  Prefactor  = 0.662422
  norm       = 0.0001
  Prefactor  = 15.1415
  Prefactor  = 3.2684
  Prefactor  = 5.35019
  norm       = 1.27577
  Prefactor  = 10.1305
  Prefactor  = 6.67669
  norm       = 1.04868
  Prefactor  = 7.98604
  Prefactor  = 1.09178
  norm       = 4.6481
  Prefactor  = 0.0001
  norm       = 1.95049
  Prefactor  = 2.13912
  Prefactor  = 1.36661
  norm       = 1.4386
  Prefactor  = 0.0001
  Prefactor  = 0.515494
  Prefactor  = 9.92024
  norm       = 2.24557
  Prefactor  = 11.9342
  Prefactor  = 0.626125
  Prefactor  = 0.487176
  Prefactor  = 2.75902
  norm       = 12.6638
  norm       = 1.49007
  Prefactor  = 41.997
  Normalizat = 0.993687
  Prefactor  = 1.03552
 **********
 **   18 **HESSE 
 **********

 FCN=   90027.00     FROM HESSE     STATUS=OK           723 CALLS     4764 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3395        1.3802        .21725E-03   -1.5342    
   2  Prefactor     10.737        4.4700        .12227E-03   -1.5052    
   3  norm          .91498        1.2593        .25722E-03   -1.5517    
   4  Prefactor     .66242        .56105        .19619E-03   -1.5545    
   5  norm          .10000E-03    .19752        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.142        4.8924        .10293E-03   -1.4930    
   7  Prefactor     3.2684        1.5689        .11200E-02   -1.5346    
   8  Prefactor     5.3502        4.2986        .86870E-03   -1.5245    
   9  norm          1.2758        .46969        .12005E-03   -1.5482    
  10  Prefactor     10.130        4.2542        .62946E-03   -1.5071    
  11  Prefactor     6.6767        7.8840        .15530E-03   -1.5191    
  12  norm          1.0487        1.2216        .33885E-03   -1.5503    
  13  Prefactor     7.9860        4.5846        .14190E-03   -1.5143    
  14  Prefactor     1.0918        .87963        .24077E-03   -1.5499    
  15  norm          4.6481        .62533        .82180E-04   -1.5277    
  16  Prefactor     .10000E-03    1.5124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9505        .44926        .93707E-04   -1.5429    
  18  Prefactor     2.1391        6.0378        .28183E-03   -1.5415    
  19  Prefactor     1.3666        1.5343        .18662E-02   -1.5474    
  20  norm          1.4386        .64612        .15731E-03   -1.5468    
  21  Prefactor     .10000E-03    3.2090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51549        4.9788        .22664E-02   -1.5564    
  23  Prefactor     9.9202        4.0744        .63612E-03   -1.5078    
  24  norm          2.2456        .88520        .16147E-03   -1.5408    
  25  Prefactor     11.934        11.397        .11595E-03   -1.5017    
  26  Prefactor     .62612        .74930        .26014E-03   -1.5550    
  27  Prefactor     .48718        2.2045        .12223       -1.5568    
  28  Prefactor     2.7590        1.7595        .12252E-02   -1.5376    
  29  norm          12.664        9.0828        .11256E-03   -1.4996    
  30  norm          1.4901        .88991        .20897E-03   -1.5464    
  31  Prefactor     41.997        40.861        .61858E-04   -1.4411    
  32  Normalizat    .99369        .50259E-01    .21946E-03   -.93242    
  33  Prefactor     1.0355        .60197E-01    .27214E-03   -.91555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05683e-08
Minuit parameter uncertainties:
  1  1.38018
  2  4.47015
  3  1.25935
  4  0.561054
  5  5.54645e-07
  6  4.89251
  7  1.56892
  8  4.29886
  9  0.469688
  10  4.25436
  11  7.88525
  12  1.22166
  13  4.5848
  14  0.879639
  15  0.625332
  16  5.32456e-06
  17  0.44926
  18  6.03955
  19  1.53435
  20  0.646125
  21  1.74527e-05
  22  3.20414
  23  4.07447
  24  0.885208
  25  11.3995
  26  0.749314
  27  2.07258
  28  1.75955
  29  9.08374
  30  0.889921
  31  40.8886
  32  0.0502618
  33  0.060201
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.092e+00  8.796e-01  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.036e+00  6.020e-02  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  9.937e-01  5.026e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.75
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.77e-09 +/- 3.84e-09
Energy Flux (Fixed Index): 2.47e-06 +/- 1.99e-06

TS (Fixed Index): 3.75
Ra Dec: 191.288 57.158
Photon Flux Upper Limit: 1.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/167457/likelihoodResults_675043201_677635201_4FGL_J1245.1+5709_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) = 90026.520336
delta logL = 0.483213747764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 90026.5186396
delta logL = 0.484910145329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81638       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6882       1.0000          .0000       10.000    
     3 'Normalizat'    .98493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0412       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+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=   90026.52     FROM MIGRAD    STATUS=FAILED        93 CALLS      297 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81632        .95653        .15362E-03   -.48547E-04
   2  Index         2.6884        .67684        .80265E-02    .22207E-02
   3  Normalizat    .98493        .48764E-01    .22029E-03    .41286E-05
   4  Prefactor     1.0412        .60432E-01    .27145E-03   -.73711E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   90026.52     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      375 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81632        .95653        .24724E-04   -1.5527    
   2  Index         2.6884        .67684        .42786E-03   -.48062    
   3  Normalizat    .98493        .48764E-01    .36143E-04   -.93537    
   4  Prefactor     1.0412        .60432E-01    .58918E-04   -.91367    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   90026.52     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      402 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81632        .75645        .61449E-05   -.65124E-04
   2  Index         2.6884        .53549        .16053E-02    .83896E-04
   3  Normalizat    .98493        .48420E-01    .88116E-05    .41286E-05
   4  Prefactor     1.0412        .60260E-01    .10858E-04   -.67010E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.816322
  Index      = 2.68837
  Normalizat = 0.984925
  Prefactor  = 1.04124
 **********
 **   18 **HESSE 
 **********

 FCN=   90026.52     FROM HESSE     STATUS=OK            25 CALLS      427 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81632        .73605        .12290E-05   -1.5527    
   2  Index         2.6884        .52068        .32106E-03   -.48062    
   3  Normalizat    .98493        .48382E-01    .17623E-05   -.93537    
   4  Prefactor     1.0412        .60219E-01    .21716E-05   -.91367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48242e-13
Minuit parameter uncertainties:
  1  0.736056
  2  0.521889
  3  0.0483846
  4  0.0602225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/167457': 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) = 90026.5186395
delta logL = 0.484910278494

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  8.163e-01  7.361e-01  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.688e+00  5.219e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.041e+00  6.022e-02  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  9.849e-01  4.838e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.75
Ra Dec: 191.288 57.158
Photon Index (Free Index): 2.69 +/- 0.52
Photon Flux (Free Index): 1.22e-08 +/- 9.65e-09
Energy Flux (Free Index): 2.97e-06 +/- 1.78e-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/167457/cmap_HighResolution_675043201_677635201_4FGL_J1245.1+5709_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-03', comment='SUCCESS', photon_flux='4.77e-09', energy_flux2='2.97e-06', photon_flux_error='3.84e-09', dlogl='4.85e-01', energy_flux='2.47e-06', photon_flux2='1.22e-08', job_status='DONE', time_completed='2022-06-23 05:35:17.950132', photon_index_error2='0.52', photon_index2='2.69', ts='3.75', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.34e-08', energy_flux_error2='1.78e-06', EG='0.99', time_epoch_completed='1655987717.95', return_code='0', job_id='167457', GAL2='1.04', EG2='0.98', return_code2='0', energy_flux_error='1.99e-06', photon_flux_error2='9.65e-09', ts2='4.75', photon_index='2.13' WHERE bin_id='169' AND source_name='4FGL J1245.1+5709' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:35:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 167457: <4FGL_J1245.1+5709_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1245.1+5709_monthly_bin169> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Jun 23 01:40:29 2022
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:19:23 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:19:23 2022
Terminated at Thu Jun 23 05:35:19 2022
Results reported at Thu Jun 23 05:35:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_monthly_bin169 191.288 57.158 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1245.1+5709 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11560.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             440.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11755 sec.
    Turnaround time :                            14090 sec.

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

