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

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

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

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

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


Performing analysis on: 4FGL_J0850.0+4855_daily_bin1740
RA = 132.508, Dec = 48.9217
tmin = 690336001, tmax = 690595201
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='824172', job_status='RUN', time_executed='2022-11-20 00:24:31.330721', time_epoch_executed='1668932671.33' WHERE source_name='4FGL J0850.0+4855' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824172

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824172/ft1_4FGL_J0850.0+4855_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824172/ft2_4FGL_J0850.0+4855_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/824172/ft1_4FGL_J0850.0+4855_daily_bin1740.fits outfile=/scratch/kocevski/824172/ft1_filteredMKT_4FGL_J0850.0+4855_daily_bin1740.fits ra=132.508 dec=48.9217 rad=12.0 tmin=690336001.0 tmax=690595201.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 4.47
user 2.72
sys 0.22

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

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

Number of photons that the gtmktime cut: 729

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/824172/ft1_filtered_4FGL_J0850.0+4855_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/824172/ft2_4FGL_J0850.0+4855_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/824172/ltcube_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.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/824172/ft2_4FGL_J0850.0+4855_daily_bin1740.fits
.....................!
real 18.02
user 17.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824172/ft1_filtered_4FGL_J0850.0+4855_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/824172/ft2_4FGL_J0850.0+4855_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/824172/ltcube_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.fits outfile=/scratch/kocevski/824172/expmap_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.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/824172/ltcube_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.fits
.....................!
real 191.28
user 185.43
sys 5.34

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/824172/ft1_filtered_4FGL_J0850.0+4855_daily_bin1740.fits scfile=/scratch/kocevski/824172/ft2_4FGL_J0850.0+4855_daily_bin1740.fits outfile=/scratch/kocevski/824172/cmap_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.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 1.31
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824172/ft1_filtered_4FGL_J0850.0+4855_daily_bin1740.fits scfile=/scratch/kocevski/824172/ft2_4FGL_J0850.0+4855_daily_bin1740.fits outfile=/scratch/kocevski/824172/cmap_HighResolution_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/824172/ft1_filtered_4FGL_J0850.0+4855_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/824172/ft2_4FGL_J0850.0+4855_daily_bin1740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/824172/Model_4FGL_J0850.0+4855_daily_bin1740.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/824172/ft1_filtered_4FGL_J0850.0+4855_daily_bin1740.fits.....................!
real 72.38
user 70.78
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/824172/ft1_filtered_4FGL_J0850.0+4855_daily_bin1740.fits', '/scratch/kocevski/824172/ft2_4FGL_J0850.0+4855_daily_bin1740.fits', expMap='/scratch/kocevski/824172/expmap_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.fits', expCube='/scratch/kocevski/824172/ltcube_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/824172/Model_4FGL_J0850.0+4855_daily_bin1740.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  0.000e+00  1.000e+06 ( 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 -5.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/824172/ft1_filtered_4FGL_J0850.0+4855_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/824172/ft2_4FGL_J0850.0+4855_daily_bin1740.fits
Exposure map: /scratch/kocevski/824172/expmap_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.fits
Exposure cube: /scratch/kocevski/824172/ltcube_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/824172/Model_4FGL_J0850.0+4855_daily_bin1740.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) = 7880.01901602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2431       1.0000          .0000       .10000E+07
     2 'Prefactor '    .89417E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .74099       1.0000          .0000       .10000E+07
     4 'norm      '    .58338       1.0000          .0000       .10000E+07
     5 'Prefactor '    .22183E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .18888E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    15.481       1.0000          .0000       .10000E+07
     8 'norm      '    .69389E-08   1.0000          .0000       .10000E+07
     9 'norm      '    2.0941       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.9877       1.0000          .0000       .10000E+07
    11 'norm      '    .97543       1.0000          .0000       .10000E+07
    12 'Prefactor '    .47647E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .12336E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    9.4138       1.0000          .0000       .10000E+07
    15 'Prefactor '    75.026       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.1744       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.6948       1.0000          .0000       .10000E+07
    18 'norm      '    .13027E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .82379E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .54581E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .34528E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .12996E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    4.1872       1.0000          .0000       .10000E+07
    24 'Prefactor '    .89899E-05   1.0000          .0000       .10000E+07
    25 'norm      '    .67724E-08   1.0000          .0000       .10000E+07
    26 'Prefactor '    .70828E-05   1.0000          .0000       .10000E+07
    27 'norm      '    .88083E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    4.7820       1.0000          .0000       .10000E+07
    29 'Prefactor '    5.7857       1.0000          .0000       .10000E+07
    30 'Prefactor '    .21455E-06   1.0000          .0000       .10000E+07
    31 'Prefactor '    .15782E-06   1.0000          .0000       .10000E+07
    32 'norm      '    .94211E-04   1.0000          .0000       .10000E+07
    33 'Prefactor '    .12074E-03   1.0000          .0000       .10000E+07
    34 'Prefactor '    6.7716       1.0000          .0000       .10000E+07
    35 'norm      '    14.266       1.0000          .0000       .10000E+07
    36 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    37 'Normalizat'    .99546       1.0000         .10000E-01   10.000    
    38 'Prefactor '    .99144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7875.174     FROM MIGRAD    STATUS=CONVERGED    222 CALLS     2352 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2437        1.2513        .13888E-07    .18923E-02
   2  Prefactor     .41239E-06    3.9744        .49279E-07** at limit **
   3  Prefactor     .72220E-07    172.18       -.88008E-07** at limit **
   4  norm          .57471        3.3803       -.21213E-07   -.99849E-02
   5  Prefactor     .36082E-08    2.8060       -.17877E-07** at limit **
   6  Prefactor     .44409E-09    3.7019        .11467E-07** at limit **
   7  Prefactor     15.580        3.8760       -.60972E-08    .13631    
   8  norm           .0000        1.9117        .17062E-07** at limit **
   9  norm          2.0942        1.3884       -.14811E-07   -.27227E-02
  10  Prefactor     2.8854        1.1359       -.24260E-08   -.30553E-02
  11  norm          .97468        .64114        .12817E-07    .22649E-02
  12  Prefactor     .35788E-06    4.0502       -.28652E-07** at limit **
  13  Prefactor     .83267E-09    3.5652        .17875E-07** at limit **
  14  Prefactor     9.4098        4.0172        .19267E-07   -.91563E-02
  15  Prefactor     74.787        4.7189       -.43112E-07    .32915E-01
  16  Prefactor     6.2098        6.6157        .53314E-08    .99107E-02
  17  Prefactor     2.7269        4.7310       -.36999E-07   -.11373E-02
  18  norm          .96589E-08    1.2903        .10794E-07** at limit **
  19  norm           .0000        1.4312       -.24866E-08** at limit **
  20  Prefactor     .55511E-08    1.6912        .46749E-08** at limit **
  21  Prefactor     .11324E-07    1.7714        .94508E-08** at limit **
  22  Prefactor     .75495E-08    14.140       -.99993E-07** at limit **
  23  Prefactor     4.1853        2.8921        .75666E-08    .23855E-02
  24  Prefactor     .45575E-07    5.1357        .34721E-07** at limit **
  25  norm           .0000        .15485        .20713E-07** at limit **
  26  Prefactor      .0000        .95023       -.47964E-08** at limit **
  27  norm          .18890E-06    68.722       -.13306E-05** at limit **
  28  Prefactor     4.7810        2.2180        .42893E-07    .89400E-02
  29  Prefactor     5.7709        5.2348       -.68486E-08   -.40925E-02
  30  Prefactor      .0000        1.6831       -.24059E-08** at limit **
  31  Prefactor     .38858E-09    3.2288        .34705E-08** at limit **
  32  norm          .65781E-07    2.4648       -.38708E-07** at limit **
  33  Prefactor     .14766E-07    6.1267       -.10867E-06** at limit **
  34  Prefactor     6.7985        5.2702        .28055E-07   -.90662E-03
  35  norm          14.149        1.8887        .42473E-08    .26921E-02
  36  Prefactor      .0000        2.4417        .10404E-07** at limit **
  37  Normalizat    .99542        .18182        .72211E-06    .11652E-03
  38  Prefactor     .99207        .17217       -.53782E-06    .58104E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24371
  Prefactor  = 4.12392e-07
  Prefactor  = 7.222e-08
  norm       = 0.574711
  Prefactor  = 3.60822e-09
  Prefactor  = 4.44089e-10
  Prefactor  = 15.5797
  norm       = 0
  norm       = 2.09424
  Prefactor  = 2.88543
  norm       = 0.974678
  Prefactor  = 3.5788e-07
  Prefactor  = 8.32667e-10
  Prefactor  = 9.40978
  Prefactor  = 74.7871
  Prefactor  = 6.20984
  Prefactor  = 2.7269
  norm       = 9.65894e-09
  norm       = 0
  Prefactor  = 5.55112e-09
  Prefactor  = 1.13243e-08
  Prefactor  = 7.54952e-09
  Prefactor  = 4.18529
  Prefactor  = 4.55747e-08
  norm       = 0
  Prefactor  = 0
  norm       = 1.88904e-07
  Prefactor  = 4.78099
  Prefactor  = 5.77089
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  norm       = 6.57807e-08
  Prefactor  = 1.4766e-08
  Prefactor  = 6.79852
  norm       = 14.1494
  Prefactor  = 0
  Normalizat = 0.995415
  Prefactor  = 0.992069  **********
 **   18 **HESSE 
 **********

 FCN=   7875.174     FROM HESSE     STATUS=OK           972 CALLS     3324 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2437        1.2555        .10046E-02   -1.5686    
   2  Prefactor     .41239E-06    11.052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .72220E-07    169.16        .57441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .57471        3.4049        .70730E-03   -1.5693    
   5  Prefactor     .36082E-08    4.1764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .44409E-09    10.837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.580        7.6451        .25429E-03   -1.5629    
   8  norm           .0000        1.9095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0942        1.3881        .71301E-03   -1.5679    
  10  Prefactor     2.8854        9.3386        .58707E-03   -1.5674    
  11  norm          .97468        .65407        .42894E-03   -1.5688    
  12  Prefactor     .35788E-06    10.669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    3.8873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4098        4.0960        .32639E-03   -1.5647    
  15  Prefactor     74.787        33.996        .11546E-03   -1.5535    
  16  Prefactor     6.2098        6.7223        .40378E-03   -1.5658    
  17  Prefactor     2.7269        4.7528        .62034E-03   -1.5675    
  18  norm          .96589E-08    5.1789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.4322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-08    5.0262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11324E-07    5.0590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .75495E-08    14.210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.1853        2.9054        .49227E-03   -1.5667    
  24  Prefactor     .45575E-07    6.5070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        .14835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        .94574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .18890E-06    5.2001        .64287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.7810        2.2333        .45984E-03   -1.5664    
  29  Prefactor     5.7709        5.2405        .41731E-03   -1.5660    
  30  Prefactor      .0000        1.6757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .38858E-09    3.2414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .65781E-07    4.5863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .14766E-07    6.9732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     6.7985        5.2600        .38535E-03   -1.5656    
  35  norm          14.149        11.275        .26492E-03   -1.5633    
  36  Prefactor      .0000        2.4424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Normalizat    .99542        .16156        .46110E-01   -.93184    
  38  Prefactor     .99207        .15236        .46160E-01   -.92994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79117e-06
Minuit parameter uncertainties:
  1  1.25547
  2  0.00426976
  3  0.00699111
  4  2.79773
  5  0.000245698
  6  0.000140212
  7  7.64506
  8  9.5504e-06
  9  1.38806
  10  9.33868
  11  0.654072
  12  0.00390816
  13  0.000113027
  14  4.09596
  15  33.9958
  16  6.72229
  17  4.75279
  18  0.000447753
  19  1.1408e-06
  20  0.000334895
  21  0.000479175
  22  0.000654568
  23  2.90544
  24  0.001089
  25  1.41317e-06
  26  4.42191e-07
  27  0.00198216
  28  2.23334
  29  5.24048
  30  2.37951e-06
  31  7.32873e-05
  32  0.00109841
  33  0.000641689
  34  5.26002
  35  11.2746
  36  1.36848e-05
  37  0.161639
  38  0.152428DDone.

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

Extracting fit parameters...

4FGL J0850.0+4855
   Spectrum: LogParabola
358         norm:  9.659e-09  4.478e-04  0.000e+00  1.000e+06 ( 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 -5.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:  9.921e-01  1.524e-01  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.954e-01  1.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 132.508 48.922
Photon Flux Upper Limit: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/824172/likelihoodResults_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.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) = 7875.278707
delta logL = -0.105046785889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7875.17366055
delta logL = -3.3369542507e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10048E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    3.8201       1.0000          .0000       5.0000    
     3 'Normalizat'    .99554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99194       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7875.174     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      211 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.5361        .42118E-03** at limit **
   2  alpha         1.5919        1.1782       -.37499E-04     .0000    
   3  Normalizat    .99541        1.3254       -.14860E-05   -.37881E-04
   4  Prefactor     .99207        1.3316        .16937E-05   -.72419E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.59195
  Normalizat = 0.995414
  Prefactor  = 0.992069
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7875.174     FROM HESSE     STATUS=FAILED         7 CALLS      218 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.5361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .57041        1.1782       -.37499E-04   -.37172    
   3  Normalizat    .99541        1.3254       -.14860E-05   -.93184    
   4  Prefactor     .99207        1.3316        .16937E-05   -.92994    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.28523e-12
Minuit parameter uncertainties:
  1  1.22374e-05
  2  1.23534
  3  1.37355
  4  1.38009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824172': 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): 101
logL (Free Index) = 7875.17366021
delta logL = 9.33141564019e-10

Extracting fit parameters...

4FGL J0850.0+4855
   Spectrum: LogParabola
358         norm:  0.000e+00  1.224e-05  0.000e+00  1.000e+06 ( 1.000e-12)
359        alpha:  1.592e+00  1.235e+00  0.000e+00  5.000e+00 ( 1.000e+00)
360         beta:  5.369e-02  0.000e+00 -5.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:  9.921e-01  1.380e+00  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.954e-01  1.374e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 132.508 48.922

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/824172/cmap_HighResolution_690336001_690595201_4FGL_J0850.0+4855_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2022-11-20 00:42:08.758218', job_id='824172', GAL2='0.99', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1668933728.76', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.33e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1740' AND source_name='4FGL J0850.0+4855' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:42:08 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 824171: <4FGL_J0850.0+4855_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0850.0+4855_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:06:09 2022
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:20:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:20:51 2022
Terminated at Sun Nov 20 00:41:29 2022
Results reported at Sun Nov 20 00:41:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.0+4855_daily_bin1740 132.508 48.9217 690336001 690595201 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 :                                   1049.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1237 sec.
    Turnaround time :                            2120 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 824172: <4FGL_J0850.0+4855_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0850.0+4855_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:06:09 2022
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:20:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:20:52 2022
Terminated at Sun Nov 20 00:42:09 2022
Results reported at Sun Nov 20 00:42:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.0+4855_daily_bin1740 132.508 48.9217 690336001 690595201 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 :                                   1056.28 sec.
    Max Memory :                                 1091 MB
    Average Memory :                             313.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3375 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1277 sec.
    Turnaround time :                            2160 sec.

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

