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 76 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0849.1+6607_monthly_bin168
RA = 132.275, Dec = 66.1204
tmin = 672451201, tmax = 675043201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='625854', job_status='RUN', time_executed='2022-05-24 02:39:52.879960', time_epoch_executed='1653385192.88' WHERE source_name='4FGL J0849.1+6607' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625854

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625854/ft1_4FGL_J0849.1+6607_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625854/ft1_4FGL_J0849.1+6607_monthly_bin168.fits outfile=/scratch/kocevski/625854/ft1_filteredMKT_4FGL_J0849.1+6607_monthly_bin168.fits ra=132.275 dec=66.1204 rad=12.0 tmin=672451201.0 tmax=675043201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 28.82
user 27.91
sys 0.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/625854/ft1_filteredMKT_4FGL_J0849.1+6607_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/625854/ft1_filtered_4FGL_J0849.1+6607_monthly_bin168.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.85
user 0.66
sys 0.18

Number of photons that the gtmktime cut: 11938

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625854/ft1_filtered_4FGL_J0849.1+6607_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/625854/ltcube_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits
.....................!
real 135.38
user 134.16
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625854/ft1_filtered_4FGL_J0849.1+6607_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/625854/ltcube_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.fits outfile=/scratch/kocevski/625854/expmap_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/625854/ltcube_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.fits
.....................!
real 193.00
user 187.53
sys 4.20

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

Setting source of interest to:
4FGL J0849.1+6607 @ 132.275 66.1204

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/625854/ft1_filtered_4FGL_J0849.1+6607_monthly_bin168.fits scfile=/scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits outfile=/scratch/kocevski/625854/cmap_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=132.275 yref=66.1204 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.65
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625854/ft1_filtered_4FGL_J0849.1+6607_monthly_bin168.fits scfile=/scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits outfile=/scratch/kocevski/625854/cmap_HighResolution_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=132.275 yref=66.1204 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.65
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625854/ft1_filtered_4FGL_J0849.1+6607_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625854/Model_4FGL_J0849.1+6607_monthly_bin168.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/625854/ft1_filtered_4FGL_J0849.1+6607_monthly_bin168.fits.....................!
real 1185.96
user 1177.25
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/625854/ft1_filtered_4FGL_J0849.1+6607_monthly_bin168.fits', '/scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits', expMap='/scratch/kocevski/625854/expmap_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.fits', expCube='/scratch/kocevski/625854/ltcube_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/625854/Model_4FGL_J0849.1+6607_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0849.1+6607'

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  7.311e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.974e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/625854/ft1_filtered_4FGL_J0849.1+6607_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/625854/ft2_4FGL_J0849.1+6607_monthly_bin168.fits
Exposure map: /scratch/kocevski/625854/expmap_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.fits
Exposure cube: /scratch/kocevski/625854/ltcube_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/625854/Model_4FGL_J0849.1+6607_monthly_bin168.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2540       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4618       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1159       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2535       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6466       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27499       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4884       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9879       1.0000         .10000E-03   10000.    
    11 'norm      '    .53969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2385       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9968       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9071       1.0000         .10000E-03   10000.    
    16 'norm      '    .92545       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .78482       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33616       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .96669       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7734       1.0000         .10000E-03   10000.    
    22 'norm      '    9.0897       1.0000         .10000E-03   10000.    
    23 'norm      '    20.814       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16229       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8615       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.584       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.3351       1.0000         .10000E-03   10000.    
    28 'norm      '    1.1148       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96359       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0823       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   125327.0     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     3441 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2541        .18751        .80230E-08    .77193E-03
   2  Prefactor     .10005E-03    17.123       -.28375E-05** at limit **
   3  Prefactor     .10000E-03    4.1864       -.28261E-05** at limit **
   4  Prefactor     6.4616        1.0041       -.16554E-07    .18305E-03
   5  norm          1.1159        .59465        .10625E-07    .12097E-04
   6  Prefactor     2.2536        .81634       -.10134E-06   -.61347E-03
   7  Prefactor     1.6469        1.2968       -.34863E-06    .12157E-02
   8  Prefactor     .27504        .27105        .92422E-07    .53791E-03
   9  Prefactor     4.4885        1.2681        .25214E-06    .13401E-02
  10  Prefactor     3.9880        1.4848       -.10461E-06    .36546E-04
  11  norm          .53975        .41335        .67720E-08   -.25027E-04
  12  Prefactor     8.2386        1.0220       -.48058E-08   -.37461E-04
  13  Prefactor     2.9969        2.0849        .76191E-06    .30042E-02
  14  Prefactor     .10000E-03    1.2325       -.54254E-06** at limit **
  15  Prefactor     1.9072        1.3858       -.11028E-06   -.21750E-03
  16  norm          .92546        .19621        .35072E-07    .11157E-02
  17  Prefactor     .78534        1.2291        .79816E-07   -.47690E-03
  18  Prefactor     .33633        .71995       -.28955E-06   -.32256E-03
  19  Prefactor     .10000E-03    .62794        .35926E-06** at limit **
  20  norm          .96663        .94595        .13865E-06    .23200E-03
  21  Prefactor     8.7742        1.0215       -.20920E-07    .87106E-03
  22  norm          9.0897        .33144       -.11838E-07   -.20196E-02
  23  norm          20.814        1.0456       -.11317E-07    .43961E-03
  24  Prefactor     .14933        5.2142       -.55971E-06    .11884E-02
  25  Prefactor     8.8784        2.2643        .41615E-06   -.96613E-02
  26  Prefactor     15.583        1.0815        .70568E-07   -.44648E-02
  27  Prefactor     8.3347        1.0102       -.18348E-07    .55680E-03
  28  norm          1.1148        .19875        .74190E-08    .26407E-03
  29  Normalizat    .96359        .51643E-01   -.76660E-07   -.12116E-03
  30  Prefactor     1.0823        .40761E-01   -.44485E-07   -.17166E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.25406
  Prefactor  = 0.000100055
  Prefactor  = 0.0001
  Prefactor  = 6.46164
  norm       = 1.11595
  Prefactor  = 2.25359
  Prefactor  = 1.64694
  Prefactor  = 0.275038
  Prefactor  = 4.48846
  Prefactor  = 3.98801
  norm       = 0.539749
  Prefactor  = 8.23858
  Prefactor  = 2.99695
  Prefactor  = 0.0001
  Prefactor  = 1.90719
  norm       = 0.925463
  Prefactor  = 0.785341
  Prefactor  = 0.336331
  Prefactor  = 0.0001
  norm       = 0.966633
  Prefactor  = 8.77421
  norm       = 9.08969
  norm       = 20.8137
  Prefactor  = 0.149331
  Prefactor  = 8.87839
  Prefactor  = 15.5827
  Prefactor  = 8.33472
  norm       = 1.11479
  Normalizat = 0.963591
  Prefactor  = 1.08232
 **********
 **   18 **HESSE 
 **********

 FCN=   125327.0     FROM HESSE     STATUS=OK           678 CALLS     4119 TOTAL
                     EDM=   .53E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2541        .18789        .68415E-02   -1.5408    
   2  Prefactor     .10005E-03    17.387        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4616        3.7794        .39471E-02   -1.5200    
   5  norm          1.1159        .61778        .11144E-01   -1.5497    
   6  Prefactor     2.2536        .81740        .68423E-02   -1.5408    
   7  Prefactor     1.6469        3.5997        .82282E-02   -1.5451    
   8  Prefactor     .27504        .24937        .31395E-01   -1.5603    
   9  Prefactor     4.4885        2.1807        .47512E-02   -1.5284    
  10  Prefactor     3.9880        1.6203        .50491E-02   -1.5309    
  11  norm          .53975        .42064        .11432E-01   -1.5561    
  12  Prefactor     8.2386        5.1703        .34919E-02   -1.5134    
  13  Prefactor     2.9969        2.2418        .58622E-02   -1.5362    
  14  Prefactor     .10000E-03    1.2236        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9072        1.3958        .75270E-02   -1.5432    
  16  norm          .92546        .20441        .12900E-01   -1.5516    
  17  Prefactor     .78534        1.6908        .12383E-01   -1.5531    
  18  Prefactor     .33633        .64799        .10583       -1.5592    
  19  Prefactor     .10000E-03    .61191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .96663        1.1231        .78598E-01   -1.5511    
  21  Prefactor     8.7742        8.0545        .33831E-02   -1.5115    
  22  norm          9.0897        .33285        .33234E-02   -1.5105    
  23  norm          20.814        4.5037        .21949E-02   -1.4795    
  24  Prefactor     .14933        .54559        .98041E-01   -1.5631    
  25  Prefactor     8.8784        6.2647        .33662E-02   -1.5112    
  26  Prefactor     15.583        9.6404        .25364E-02   -1.4918    
  27  Prefactor     8.3347        16.373        .34715E-02   -1.5130    
  28  norm          1.1148        .20317        .11156E-01   -1.5497    
  29  Normalizat    .96359        .47117E-01    .67815E-01   -.94260    
  30  Prefactor     1.0823        .36046E-01    .38300E-01   -.90034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30586e-05
Minuit parameter uncertainties:
  1  0.187893
  2  0.00195534
  3  5.33685e-05
  4  3.77949
  5  0.617781
  6  0.817406
  7  3.60015
  8  0.249372
  9  2.18078
  10  1.62032
  11  0.420641
  12  5.17053
  13  2.2419
  14  9.90808e-06
  15  1.39578
  16  0.204408
  17  1.69093
  18  0.648002
  19  4.76904e-06
  20  1.12316
  21  8.05548
  22  0.332846
  23  4.5038
  24  0.545609
  25  6.26516
  26  9.6414
  27  16.382
  28  0.203174
  29  0.0471195
  30  0.0360466
Done.

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

Extracting fit parameters...

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  8.239e+00  5.171e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.974e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  1.082e+00  3.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  9.636e-01  4.712e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 132.275 66.120
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 5.22e-09 +/- 3.28e-09
Energy Flux (Fixed Index): 3.85e-06 +/- 2.42e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 125326.945014
delta logL = 0.0239557425666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 125326.944162
delta logL = 0.024808037997

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   125326.9     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      228 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4535        18.814        .34469E-02   -.88418E-03
   2  Index         1.8661        .14175        .50000        .11195E-04
   3  Normalizat    .96422        .40034E-02    .67795E-01    .28502E-03
   4  Prefactor     1.0824        .32475E-02    .38298E-01   -.11481E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.45345
  Index      = 1.86614
  Normalizat = 0.964218
  Prefactor  = 1.08239
 **********
 **   18 **HESSE 
 **********

 FCN=   125326.9     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4535        5.4881        .13788E-03   -1.5126    
   2  Index         1.8661        .48971        .36461E-02   -.67740    
   3  Normalizat    .96422        .49719E-01    .29990E-03   -.94239    
   4  Prefactor     1.0824        .40564E-01    .23106E-03   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13164e-10
Minuit parameter uncertainties:
  1  5.48839
  2  0.491009
  3  0.049721
  4  0.0405647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625854': 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) = 125326.944162
delta logL = 0.0248080474412

Extracting fit parameters...

4FGL J0849.1+6607
   Spectrum: PowerLaw
320    Prefactor:  8.453e+00  5.488e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.866e+00  4.910e-01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  2.593e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  1.082e+00  4.056e-02  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  9.642e-01  4.972e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.30
Ra Dec: 132.275 66.120
Photon Index (Free Index): 1.87 +/- 0.49
Photon Flux (Free Index): 4.24e-09 +/- 5.02e-09
Energy Flux (Free Index): 4.18e-06 +/- 3.19e-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/625854/cmap_HighResolution_672451201_675043201_4FGL_J0849.1+6607_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.22e-09', energy_flux2='4.18e-06', photon_flux_error='3.28e-09', dlogl='2.48e-02', energy_flux='3.85e-06', photon_flux2='4.24e-09', job_status='DONE', time_completed='2022-05-24 06:11:32.577959', photon_index_error2='0.49', photon_index2='1.87', ts='6.26', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.19e-06', EG='0.96', time_epoch_completed='1653397892.58', return_code='0', job_id='625854', GAL2='1.08', EG2='0.96', return_code2='0', energy_flux_error='2.42e-06', photon_flux_error2='5.02e-09', ts2='6.30', photon_index='1.97' WHERE bin_id='168' AND source_name='4FGL J0849.1+6607' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:11:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 625854: <4FGL_J0849.1+6607_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0849.1+6607_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 02:35:35 2022
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:38:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:38:27 2022
Terminated at Tue May 24 06:11:33 2022
Results reported at Tue May 24 06:11:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0849.1+6607_monthly_bin168 132.275 66.1204 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0849.1+6607 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11991.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             521.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12786 sec.
    Turnaround time :                            12958 sec.

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

