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 51 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 = 7616
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1841.8+3218_daily_bin1693
RA = 280.453, Dec = 32.301
tmin = 678153601, tmax = 678412801
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='541773', job_status='RUN', time_executed='2022-07-02 02:41:23.753530', time_epoch_executed='1656754883.75' WHERE source_name='4FGL J1841.8+3218' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541773

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541773/ft1_4FGL_J1841.8+3218_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541773/ft1_4FGL_J1841.8+3218_daily_bin1693.fits outfile=/scratch/kocevski/541773/ft1_filteredMKT_4FGL_J1841.8+3218_daily_bin1693.fits ra=280.453 dec=32.301 rad=12.0 tmin=678153601.0 tmax=678412801.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.25
user 3.97
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.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/541773/ft1_filteredMKT_4FGL_J1841.8+3218_daily_bin1693.fits evtable="EVENTS" outfile="/scratch/kocevski/541773/ft1_filtered_4FGL_J1841.8+3218_daily_bin1693.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.52
user 0.36
sys 0.15

Number of photons that the gtmktime cut: 1366

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541773/ft1_filtered_4FGL_J1841.8+3218_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/541773/ltcube_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.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/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.fits
.....................!
real 14.88
user 14.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541773/ft1_filtered_4FGL_J1841.8+3218_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/541773/ltcube_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.fits outfile=/scratch/kocevski/541773/expmap_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.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/541773/ltcube_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.fits
.....................!
real 192.93
user 186.37
sys 5.58

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Added 236 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1841.8+3218 @ 280.453 32.301

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/541773/ft1_filtered_4FGL_J1841.8+3218_daily_bin1693.fits scfile=/scratch/kocevski/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.fits outfile=/scratch/kocevski/541773/cmap_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.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=280.453 yref=32.301 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.62
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541773/ft1_filtered_4FGL_J1841.8+3218_daily_bin1693.fits scfile=/scratch/kocevski/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.fits outfile=/scratch/kocevski/541773/cmap_HighResolution_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.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=280.453 yref=32.301 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/541773/ft1_filtered_4FGL_J1841.8+3218_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/541773/Model_4FGL_J1841.8+3218_daily_bin1693.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
adding source W 51C
adding source gamma Cygni
Working on...
/scratch/kocevski/541773/ft1_filtered_4FGL_J1841.8+3218_daily_bin1693.fits.....................!
real 238.75
user 234.50
sys 2.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/541773/ft1_filtered_4FGL_J1841.8+3218_daily_bin1693.fits', '/scratch/kocevski/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.fits', expMap='/scratch/kocevski/541773/expmap_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.fits', expCube='/scratch/kocevski/541773/ltcube_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/541773/Model_4FGL_J1841.8+3218_daily_bin1693.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1841.8+3218'

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  4.939e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
366        alpha:  1.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  2.467e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/541773/ft1_filtered_4FGL_J1841.8+3218_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/541773/ft2_4FGL_J1841.8+3218_daily_bin1693.fits
Exposure map: /scratch/kocevski/541773/expmap_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.fits
Exposure cube: /scratch/kocevski/541773/ltcube_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/541773/Model_4FGL_J1841.8+3218_daily_bin1693.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) = 13693.8932333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4680       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6173       1.0000         .10000E-03   10000.    
     7 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55896       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.044       1.0000         .10000E-03   10000.    
    10 'norm      '    8.5040       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2482       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11637E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    144.98       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4114       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93469       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13693.88     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2363 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4663        16.257       -.17379E-06   -.28571E-04
   2  Prefactor     .10000E-03    11.394       -.18138E-05** at limit **
   3  Prefactor     .10000E-03    18.013        .61155E-06** at limit **
   4  norm          .10000E-03    .61520       -.35389E-08** at limit **
   5  norm          .10000E-03    23.811       -.44879E-05** at limit **
   6  Prefactor     3.6173        4.8188       -.21051E-07   -.32069E-03
   7  norm          .10000E-03    2.6568       -.21870E-07** at limit **
   8  Prefactor     .55370        5.0081       -.12338E-05   -.16482E-03
   9  Prefactor     18.055        18.727        .22081E-05    .54039E-04
  10  norm          8.5038        21.440       -.25425E-06   -.11889E-04
  11  Prefactor     1.2474        1.1358        .14769E-06   -.11144E-02
  12  norm          .10000E-03    11.698        .18398E-05** at limit **
  13  norm          .10000E-03    1.2795       -.44891E-07** at limit **
  14  norm          .10000E-03    .88341       -.10822E-07** at limit **
  15  Prefactor     .10000E-03    3.7671        .11749E-07** at limit **
  16  Prefactor     .10000E-03    27.018        .44101E-05** at limit **
  17  Prefactor     .10000E-03    8.3394        .23995E-07** at limit **
  18  Prefactor     144.94        145.70       -.34153E-04    .25540E-05
  19  Prefactor     .10000E-03    4.6985        .45873E-08** at limit **
  20  Prefactor     .10000E-03    47.111       -.47765E-06** at limit **
  21  Normalizat    1.4117        .20645       -.59971E-06    .11164E-03
  22  Prefactor     .93462        .56937E-01    .67982E-06   -.15781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.46631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.61733
  norm       = 0.0001
  Prefactor  = 0.553703
  Prefactor  = 18.0547
  norm       = 8.5038
  Prefactor  = 1.24742
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 144.936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.41172
  Prefactor  = 0.934619
 **********
 **   18 **HESSE 
 **********

 FCN=   13693.88     FROM HESSE     STATUS=OK           340 CALLS     2703 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4663        16.357        .85917E-03   -1.5240    
   2  Prefactor     .10000E-03    11.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .61982        .89600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    23.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6173        4.9004        .10622E-02   -1.5328    
   7  norm          .10000E-03    2.6596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55370        5.0083        .46037E-03   -1.5559    
   9  Prefactor     18.055        18.549        .94289E-04   -1.4858    
  10  norm          8.5038        21.445        .68732E-03   -1.5125    
  11  Prefactor     1.2474        4.8536        .20026E-02   -1.5485    
  12  norm          .10000E-03    11.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.9146        .25504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .91083        .21352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     144.94        145.59        .16732E-03   -1.3294    
  19  Prefactor     .10000E-03    4.7010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    47.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4117        .23049        .42265E-03   -.80290    
  22  Prefactor     .93462        .63190E-01    .14290E-03   -.94942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40514e-09
Minuit parameter uncertainties:
  1  16.3702
  2  3.31533e-06
  3  3.33775e-06
  4  2.72204e-07
  5  7.00124e-07
  6  4.90092
  7  3.72118e-06
  8  3.33061
  9  18.555
  10  21.4646
  11  4.85513
  12  1.51688e-07
  13  2.66358e-06
  14  2.63842e-07
  15  2.11728e-06
  16  1.72464e-06
  17  2.95698e-06
  18  145.951
  19  1.21793e-06
  20  4.22583e-06
  21  0.230655
  22  0.0631947
Done.

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

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  1.000e-04  1.517e-07  1.000e-04  1.000e+04 ( 1.000e-14)
366        alpha:  1.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  2.467e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
821    Prefactor:  9.346e-01  6.319e-02  0.000e+00  1.000e+01 ( 1.000e+00)
822        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
823        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
820   Normalization:  1.412e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.453 32.301
Photon Flux Upper Limit: 1.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541773/likelihoodResults_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.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) = 13693.881971
delta logL = -0.000381457462936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13693.8815896
delta logL = 1.24910002341e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13693.88     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10146E-03    1455.8        .18142E-02** at limit **
   2  alpha         1.4084        2.8728        .18309        .20923E-05
   3  Normalizat    1.4117        .76692E-01    .42265E-03    .48417E-06
   4  Prefactor     .93462        .21806E-01    .14290E-03    .95470E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13693.88     FROM SIMPLEX   STATUS=UNCHANGED    150 CALLS      388 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10146E-03    1455.8        .60023E-03** at limit **
   2  alpha         1.4084        2.8728        .14108E-04    .20923E-05
   3  Normalizat    1.4117        .76692E-01    .47947E-06    .48417E-06
   4  Prefactor     .93462        .21806E-01    .72388E-07    .95470E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13693.88     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      429 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.677        .36285E-03** at limit **
   2  alpha         1.2226        2.7296        .73237E-01    .65197E-08
   3  Normalizat    1.4117        .21712        .16906E-04   -.26899E-06
   4  Prefactor     .93462        .61767E-01    .57159E-05   -.79558E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.22258
  Normalizat = 1.41171
  Prefactor  = 0.93462
 **********
 **   18 **HESSE 
 **********

 FCN=   13693.88     FROM HESSE     STATUS=OK            23 CALLS      452 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.504        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2226        2.8720        .29295E-02   -.53631    
   3  Normalizat    1.4117        .21725        .33812E-05   -.80290    
   4  Prefactor     .93462        .61819E-01    .11432E-05   -.94942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69072e-12
Minuit parameter uncertainties:
  1  1.07461e-06
  2  449.159
  3  0.217397
  4  0.061824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541773': 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) = 13693.8815893
delta logL = 2.75707861874e-07

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  1.000e-04  1.075e-06  1.000e-04  1.000e+04 ( 1.000e-14)
366        alpha:  1.223e+00  4.492e+02  0.000e+00  5.000e+00 ( 1.000e+00)
367         beta:  2.467e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
821    Prefactor:  9.346e-01  6.182e-02  0.000e+00  1.000e+01 ( 1.000e+00)
822        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
823        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
820   Normalization:  1.412e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 280.453 32.301

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/541773/cmap_HighResolution_678153601_678412801_4FGL_J1841.8+3218_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', job_status='DONE', photon_flux_upper_limit='1.19e-08', time_completed='2022-07-02 03:07:15.696052', job_id='541773', GAL2='0.93', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1656756435.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='1693' AND source_name='4FGL J1841.8+3218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 03:07:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 541773: <4FGL_J1841.8+3218_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1841.8+3218_daily_bin1693> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul  2 00:07:08 2022
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:40:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:40:21 2022
Terminated at Sat Jul  2 03:07:16 2022
Results reported at Sat Jul  2 03:07:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1841.8+3218_daily_bin1693 280.453 32.301 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1841.8+3218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1550.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             356.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1615 sec.
    Turnaround time :                            10808 sec.

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

