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 86 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_J0850.0+4855_monthly_bin169
RA = 132.508, Dec = 48.9217
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='164217', job_status='RUN', time_executed='2022-06-23 02:03:29.322426', time_epoch_executed='1655975009.32' WHERE source_name='4FGL J0850.0+4855' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164217

Creating custom pfile directory:
/scratch/kocevski/164217/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/164217/ft1_4FGL_J0850.0+4855_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/164217/ft2_4FGL_J0850.0+4855_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164217/ft1_4FGL_J0850.0+4855_monthly_bin169.fits outfile=/scratch/kocevski/164217/ft1_filteredMKT_4FGL_J0850.0+4855_monthly_bin169.fits ra=132.508 dec=48.9217 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.65
user 26.90
sys 0.66

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164217/ft2_4FGL_J0850.0+4855_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164217/ft2_4FGL_J0850.0+4855_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/164217/ft1_filteredMKT_4FGL_J0850.0+4855_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/164217/ft1_filtered_4FGL_J0850.0+4855_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.85
user 0.67
sys 0.17

Number of photons that the gtmktime cut: 6385

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164217/ft1_filtered_4FGL_J0850.0+4855_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/164217/ft2_4FGL_J0850.0+4855_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/164217/ltcube_675043201_677635201_4FGL_J0850.0+4855_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/164217/ft2_4FGL_J0850.0+4855_monthly_bin169.fits
.....................!
real 135.83
user 135.07
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164217/ft1_filtered_4FGL_J0850.0+4855_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/164217/ft2_4FGL_J0850.0+4855_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/164217/ltcube_675043201_677635201_4FGL_J0850.0+4855_monthly_bin169.fits outfile=/scratch/kocevski/164217/expmap_675043201_677635201_4FGL_J0850.0+4855_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/164217/ltcube_675043201_677635201_4FGL_J0850.0+4855_monthly_bin169.fits
.....................!
real 192.12
user 186.58
sys 5.15

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

Setting source of interest to:
4FGL J0850.0+4855 @ 132.508 48.9217

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164217/ft1_filtered_4FGL_J0850.0+4855_monthly_bin169.fits scfile=/scratch/kocevski/164217/ft2_4FGL_J0850.0+4855_monthly_bin169.fits outfile=/scratch/kocevski/164217/cmap_675043201_677635201_4FGL_J0850.0+4855_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=132.508 yref=48.9217 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.79
user 0.59
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164217/ft1_filtered_4FGL_J0850.0+4855_monthly_bin169.fits scfile=/scratch/kocevski/164217/ft2_4FGL_J0850.0+4855_monthly_bin169.fits outfile=/scratch/kocevski/164217/cmap_HighResolution_675043201_677635201_4FGL_J0850.0+4855_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=132.508 yref=48.9217 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.80
user 0.62
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164217/ft1_filtered_4FGL_J0850.0+4855_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/164217/ft2_4FGL_J0850.0+4855_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164217/Model_4FGL_J0850.0+4855_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/164217/ft1_filtered_4FGL_J0850.0+4855_monthly_bin169.fits.....................!
real 550.11
user 546.84
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164217/ft1_filtered_4FGL_J0850.0+4855_monthly_bin169.fits', '/scratch/kocevski/164217/ft2_4FGL_J0850.0+4855_monthly_bin169.fits', expMap='/scratch/kocevski/164217/expmap_675043201_677635201_4FGL_J0850.0+4855_monthly_bin169.fits', expCube='/scratch/kocevski/164217/ltcube_675043201_677635201_4FGL_J0850.0+4855_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164217/Model_4FGL_J0850.0+4855_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0850.0+4855'

4FGL J0850.0+4855
   Spectrum: LogParabola
358         norm:  6.004e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
359        alpha:  2.141e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
360         beta:  5.369e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.550e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164217/ft1_filtered_4FGL_J0850.0+4855_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/164217/ft2_4FGL_J0850.0+4855_monthly_bin169.fits
Exposure map: /scratch/kocevski/164217/expmap_675043201_677635201_4FGL_J0850.0+4855_monthly_bin169.fits
Exposure cube: /scratch/kocevski/164217/ltcube_675043201_677635201_4FGL_J0850.0+4855_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164217/Model_4FGL_J0850.0+4855_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) = 68669.4730928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30862       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .83771       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5326       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2739       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35712       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0667       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9927       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3460       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2588       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4282       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41939       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4798       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9764       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6351       1.0000         .10000E-03   10000.    
    19 'norm      '    .32870       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4374       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3406       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .68559E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23737E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3120       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5629       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .28366E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.0728       1.0000         .10000E-03   10000.    
    29 'norm      '    2.8244       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .41996       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.3255       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.9587       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .18455E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    1.1014       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    37 'norm      '    5.8386       1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    1.0170       1.0000         .10000E-01   10.000    
    40 'Prefactor '    1.1184       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   68669.39     FROM MIGRAD    STATUS=CONVERGED   1286 CALLS     5697 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30886        .27017         .0000        .85131E-02
   2  Prefactor     .82715        1.8388         .0000        .40345E-02
   3  Prefactor     5.5382        5.0103         .0000        .35924E-02
   4  norm          1.2741        .73534         .0000        .40070E-02
   5  Prefactor     .35653        .86616         .0000        .93263E-02
   6  Prefactor     7.0611        12.690         .0000        .42637E-03
   7  Prefactor     3.9951        1.8154         .0000        .38720E-02
   8  norm          1.3456        .77537         .0000        .15183E-02
   9  norm          1.4861        .45110         .0000        .41939E-03
  10  Prefactor     .10000E-03    .51098         .0000    ** at limit **
  11  norm          1.2588        .22087         .0000        .21008E-02
  12  Prefactor     5.9464        4.2255         .0000        .42270E-02
  13  Prefactor     3.4315        1.7686         .0000        .12800    
  14  Prefactor     .42041        .67095         .0000        .11137E-01
  15  Prefactor     13.824        8.9991         .0000       -.30767E-03
  16  Prefactor     1.4826        2.8552         .0000        .95285E-01
  17  Prefactor     4.9759        1.9380         .0000        .26367E-01
  18  norm          1.6317        1.6304         .0000        .91894E-02
  19  norm          .32688        .66381         .0000        .10846E-01
  20  Prefactor     3.4390        2.4541         .0000        .36219E-02
  21  Prefactor     1.3403        .74276         .0000        .83174E-02
  22  Prefactor     .10001E-03    1.2241         .0000    ** at limit **
  23  Prefactor     .10000E-03    7.7543         .0000    ** at limit **
  24  Prefactor     2.3421        5.9078         .0000        .14186E-01
  25  Prefactor     1.5627        .74152         .0000        .40430E-02
  26  Prefactor     .10000E-03    1.6518         .0000    ** at limit **
  27  norm          .28448E-01    .83331E-01     .0000        .29528E-01
  28  Prefactor     2.0720        1.1495         .0000        .70668E-02
  29  norm          2.8283        1.8626         .0000        .66500E-01
  30  Prefactor     .41992        .44524         .0000        .74275E-02
  31  Prefactor     4.3209        2.1627         .0000        .91498E-03
  32  Prefactor     1.9591        .83665         .0000        .43990E-02
  33  Prefactor     .10000E-03    1.3408         .0000    ** at limit **
  34  norm          1.0983        2.7497         .0000        .46033E-02
  35  Prefactor     .10000E-03    1.4193         .0000    ** at limit **
  36  Prefactor     .10000E-03    .45248         .0000    ** at limit **
  37  norm          5.8347        2.9236         .0000        .18895E-01
  38  Prefactor     .10000E-03    .29196         .0000    ** at limit **
  39  Normalizat    1.0170        .59685E-01     .0000        .99903E-04
  40  Prefactor     1.1185        .52419E-01     .0000        .27427E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.308863
  Prefactor  = 0.827148
  Prefactor  = 5.53819
  norm       = 1.27412
  Prefactor  = 0.356527
  Prefactor  = 7.06108
  Prefactor  = 3.99508
  norm       = 1.34562
  norm       = 1.48612
  Prefactor  = 0.0001
  norm       = 1.25885
  Prefactor  = 5.94643
  Prefactor  = 3.43148
  Prefactor  = 0.420413
  Prefactor  = 13.8245
  Prefactor  = 1.48258
  Prefactor  = 4.97587
  norm       = 1.6317
  norm       = 0.326878
  Prefactor  = 3.43898
  Prefactor  = 1.34031
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 2.34208
  Prefactor  = 1.56266
  Prefactor  = 0.0001
  norm       = 0.0284479
  Prefactor  = 2.07198
  norm       = 2.82828
  Prefactor  = 0.41992
  Prefactor  = 4.32095
  Prefactor  = 1.95911
  Prefactor  = 0.000100003
  norm       = 1.09826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.83465
  Prefactor  = 0.0001
  Normalizat = 1.01697
  Prefactor  = 1.11851
 **********
 **   18 **HESSE 
 **********

 FCN=   68669.39     FROM HESSE     STATUS=OK          1047 CALLS     6744 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30886        .21208        .12265E-02   -1.5597    
   2  Prefactor     .82715        4.2198        .48715E-02   -1.5526    
   3  Prefactor     5.5382        4.9776        .17081E-03   -1.5237    
   4  norm          1.2741        .72270        .15980E-03   -1.5482    
   5  Prefactor     .35653        1.1625        .35211E-02   -1.5589    
   6  Prefactor     7.0611        12.359        .15091E-03   -1.5176    
   7  Prefactor     3.9951        1.7962        .20184E-03   -1.5308    
   8  norm          1.3456        .77086        .16799E-03   -1.5476    
   9  norm          1.4861        .45017        .93269E-04   -1.5464    
  10  Prefactor     .10000E-03    2.8891        .35747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2588        .21818        .47638E-04   -1.5484    
  12  Prefactor     5.9464        4.1188        .16436E-03   -1.5220    
  13  Prefactor     3.4315        1.7406        .10923E-02   -1.5337    
  14  Prefactor     .42041        .89584        .23618E-02   -1.5578    
  15  Prefactor     13.824        8.8717        .10786E-03   -1.4964    
  16  Prefactor     1.4826        2.8032        .17643E-02   -1.5464    
  17  Prefactor     4.9759        1.9288        .90139E-03   -1.5262    
  18  norm          1.6317        1.6003        .31357E-03   -1.5452    
  19  norm          .32688        .85542        .28572E-02   -1.5594    
  20  Prefactor     3.4390        2.4484        .21816E-03   -1.5337    
  21  Prefactor     1.3403        .72794        .15667E-03   -1.5476    
  22  Prefactor     .10001E-03    1.2509        .91438E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.8048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3421        5.8921        .13491E-02   -1.5402    
  25  Prefactor     1.5627        .72591        .14466E-03   -1.5458    
  26  Prefactor     .10000E-03    1.6677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .28448E-01    .16525        .82428E-03   -1.5674    
  28  Prefactor     2.0720        1.1243        .12922E-03   -1.5420    
  29  norm          2.8283        1.8421        .12100E-02   -1.5372    
  30  Prefactor     .41992        .40626        .16335E-02   -1.5578    
  31  Prefactor     4.3209        2.1575        .19369E-03   -1.5292    
  32  Prefactor     1.9591        .82118        .14634E-03   -1.5428    
  33  Prefactor     .10000E-03    1.4607        .83798E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          1.0983        2.6947        .45252E-03   -1.5498    
  35  Prefactor     .10000E-03    1.4239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10000E-03    3.4146        .32294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  norm          5.8347        2.9191        .83103E-03   -1.5225    
  38  Prefactor     .10000E-03    .59059        .26976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    1.0170        .67350E-01    .25979E-03   -.92464    
  40  Prefactor     1.1185        .61015E-01    .24167E-03   -.88877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8607e-06
Minuit parameter uncertainties:
  1  0.212083
  2  3.7367
  3  4.97797
  4  0.722707
  5  1.16257
  6  12.3634
  7  1.79625
  8  0.770863
  9  0.450167
  10  1.72288e-06
  11  0.218182
  12  4.11897
  13  1.74065
  14  0.895867
  15  8.87258
  16  2.80345
  17  1.92885
  18  1.60038
  19  0.85545
  20  2.44848
  21  0.727948
  22  0.000197952
  23  0.000100931
  24  5.89355
  25  0.725915
  26  3.74667e-06
  27  0.136887
  28  1.12427
  29  1.84217
  30  0.406261
  31  2.15759
  32  0.821187
  33  0.0001288
  34  2.69495
  35  3.27615e-06
  36  3.61155e-05
  37  2.91916
  38  1.38622e-06
  39  0.0673559
  40  0.0610191
Done.

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

Extracting fit parameters...

4FGL J0850.0+4855
   Spectrum: LogParabola
358         norm:  1.632e+00  1.600e+00  1.000e-04  1.000e+04 ( 1.000e-12)
359        alpha:  2.141e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
360         beta:  5.369e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.550e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
733    Prefactor:  1.119e+00  6.102e-02  0.000e+00  1.000e+01 ( 1.000e+00)
734        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
735        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  1.017e+00  6.736e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 132.508 48.922
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.29e-09 +/- 7.15e-09
Energy Flux (Fixed Index): 3.26e-06 +/- 3.20e-06

TS (Fixed Index): 1.27
Ra Dec: 132.508 48.922
Photon Flux Upper Limit: 2.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.58e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164217/likelihoodResults_675043201_677635201_4FGL_J0850.0+4855_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): 102
logL (Free Index) = 68666.886789
delta logL = 2.49847270812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 68666.8531834
delta logL = 2.53207830378

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89373       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7795       1.0000          .0000       5.0000    
     3 'Normalizat'    .98030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1397       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   68666.85     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      227 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89333        2.9143        .12785E-01    .12404E-01
   2  alpha         3.7805        1.6584        .50000        .58752E-03
   3  Normalizat    .98026        .11485E-01    .45920E-01    .15269E-03
   4  Prefactor     1.1397        .11206E-01    .54213E-01    .63926E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.893332
  alpha      = 3.78053
  Normalizat = 0.980262
  Prefactor  = 1.13972
 **********
 **   18 **HESSE 
 **********

 FCN=   68666.85     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89333        7.7660        .10112E-03   -1.5519    
   2  alpha         3.7805        4.3402        .28936E-01    .53776    
   3  Normalizat    .98026        .53706E-01    .26408E-03   -.93695    
   4  Prefactor     1.1397        .52840E-01    .23970E-03   -.88207    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.90286e-08
Minuit parameter uncertainties:
  1  5.26849
  2  3.91745
  3  0.0537087
  4  0.0528428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164217': 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): 102
logL (Free Index) = 68666.8531801
delta logL = 2.53208165235

Extracting fit parameters...

4FGL J0850.0+4855
   Spectrum: LogParabola
358         norm:  8.933e-01  5.268e+00  1.000e-04  1.000e+04 ( 1.000e-12)
359        alpha:  3.781e+00  3.917e+00  0.000e+00  5.000e+00 ( 1.000e+00)
360         beta:  5.369e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.550e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
733    Prefactor:  1.140e+00  5.284e-02  0.000e+00  1.000e+01 ( 1.000e+00)
734        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
735        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  9.803e-01  5.371e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.63
Ra Dec: 132.508 48.922
Photon Index (Free Index): 3.78 +/- 3.92
Photon Flux (Free Index): 3.45e-08 +/- 1.43e-08
Energy Flux (Free Index): 5.49e-06 +/- 5.06e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/164217/cmap_HighResolution_675043201_677635201_4FGL_J0850.0+4855_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-06', comment='SUCCESS', photon_flux='7.29e-09', energy_flux2='5.49e-06', photon_flux_error='7.15e-09', dlogl='2.53e+00', energy_flux='3.26e-06', photon_flux2='3.45e-08', job_status='DONE', time_completed='2022-06-23 05:37:48.130049', photon_index_error2='3.92', photon_index2='3.78', ts='1.27', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='2.14e-08', energy_flux_error2='5.06e-06', EG='1.02', time_epoch_completed='1655987868.13', return_code='0', job_id='164217', GAL2='1.14', EG2='0.98', return_code2='102', energy_flux_error='3.20e-06', photon_flux_error2='1.43e-08', ts2='6.63', photon_index='2.14' WHERE bin_id='169' AND source_name='4FGL J0850.0+4855' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:37:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 164217: <4FGL_J0850.0+4855_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0850.0+4855_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 01:30:27 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:01:54 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:01:54 2022
Terminated at Thu Jun 23 05:37:49 2022
Results reported at Thu Jun 23 05:37:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.0+4855_monthly_bin169 132.508 48.9217 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0850.0+4855 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12799.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             419.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   12954 sec.
    Turnaround time :                            14842 sec.

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

