/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 1 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 = 7533
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1841.8+3218_daily_bin1216
RA = 280.453, Dec = 32.301
tmin = 554515201, tmax = 554774401
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='280166', job_status='RUN', time_executed='2021-09-21 09:15:46.250588', time_epoch_executed='1632240946.25' WHERE source_name='4FGL J1841.8+3218' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280166

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280166/ft1_4FGL_J1841.8+3218_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280166/ft2_4FGL_J1841.8+3218_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280166/ft1_4FGL_J1841.8+3218_daily_bin1216.fits outfile=/scratch/kocevski/280166/ft1_filteredMKT_4FGL_J1841.8+3218_daily_bin1216.fits ra=280.453 dec=32.301 rad=12.0 tmin=554515201.0 tmax=554774401.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.11
user 3.85
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280166/ft1_filtered_4FGL_J1841.8+3218_daily_bin1216.fits" evtable="EVENTS" scfile=/scratch/kocevski/280166/ft2_4FGL_J1841.8+3218_daily_bin1216.fits sctable="SC_DATA" outfile=/scratch/kocevski/280166/ltcube_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.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/280166/ft2_4FGL_J1841.8+3218_daily_bin1216.fits
.....................!
real 12.10
user 11.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280166/ft1_filtered_4FGL_J1841.8+3218_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/280166/ft2_4FGL_J1841.8+3218_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/280166/ltcube_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.fits outfile=/scratch/kocevski/280166/expmap_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.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/280166/ltcube_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.fits
.....................!
real 192.95
user 187.38
sys 5.25

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/280166/ft1_filtered_4FGL_J1841.8+3218_daily_bin1216.fits scfile=/scratch/kocevski/280166/ft2_4FGL_J1841.8+3218_daily_bin1216.fits outfile=/scratch/kocevski/280166/cmap_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280166/ft1_filtered_4FGL_J1841.8+3218_daily_bin1216.fits scfile=/scratch/kocevski/280166/ft2_4FGL_J1841.8+3218_daily_bin1216.fits outfile=/scratch/kocevski/280166/cmap_HighResolution_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/280166/ft1_filtered_4FGL_J1841.8+3218_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/280166/ft2_4FGL_J1841.8+3218_daily_bin1216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/280166/Model_4FGL_J1841.8+3218_daily_bin1216.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/280166/ft1_filtered_4FGL_J1841.8+3218_daily_bin1216.fits........................!
real 22.23
user 20.97
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/280166/ft1_filtered_4FGL_J1841.8+3218_daily_bin1216.fits', '/scratch/kocevski/280166/ft2_4FGL_J1841.8+3218_daily_bin1216.fits', expMap='/scratch/kocevski/280166/expmap_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.fits', expCube='/scratch/kocevski/280166/ltcube_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/280166/Model_4FGL_J1841.8+3218_daily_bin1216.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/280166/ft1_filtered_4FGL_J1841.8+3218_daily_bin1216.fits
Spacecraft file(s): /scratch/kocevski/280166/ft2_4FGL_J1841.8+3218_daily_bin1216.fits
Exposure map: /scratch/kocevski/280166/expmap_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.fits
Exposure cube: /scratch/kocevski/280166/ltcube_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/280166/Model_4FGL_J1841.8+3218_daily_bin1216.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 592.354067605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 591.575346642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46271E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.899       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .31955       1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7973       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.441       1.0000         .10000E-03   10000.    
     7 'norm      '    .15847E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.154       1.0000         .10000E-03   10000.    
    10 'norm      '    .99208E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37758E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5020       1.0000         .10000E-03   10000.    
    13 'norm      '    .37126E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31872E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2261       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8354       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4976       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4889       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67167       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   591.5632     FROM MIGRAD    STATUS=CONVERGED    253 CALLS      679 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.665        .96537E-02** at limit **
   2  Prefactor     65.161        115.54        .12360E-02    .10402E-01
   3  Prefactor     .10000E-03    151.32        .10510E-01** at limit **
   4  norm          .10000E-03    3.5445        .90712E-02** at limit **
   5  norm          .14790E-02    784.42        .38474E-02** at limit **
   6  Prefactor     10.431        78.634        .31000E-02   -.86517E-02
   7  norm          .10000E-03    14.886        .90712E-02** at limit **
   8  Prefactor     .10000E-03    13.144        .90712E-02** at limit **
   9  Prefactor     9.3650        175.32        .31436E-02   -.67531E-03
  10  norm          .10000E-03    107.84        .95075E-02** at limit **
  11  Prefactor     .10000E-03    33.320        .97825E-02** at limit **
  12  norm          .12616E-03    535.15        .87335E-02** at limit **
  13  norm          .10000E-03    30.817        .97927E-02** at limit **
  14  norm          .10000E-03    17.536        .90712E-02** at limit **
  15  Prefactor     .10000E-03    145.11        .91812E-02** at limit **
  16  Prefactor     .46397E-03    1792.3        .49004E-02** at limit **
  17  Prefactor     1.1157        9889.2        .66928E-02    .25745E-02
  18  Prefactor     .54294E-03    808.55        .41563E-02** at limit **
  19  Prefactor     1.4976        1.0708         .0000         .0000    
  20  Prefactor     8.4889        1.0017         .0000         .0000    
  21  Normalizat    .10000E-01    .25505       -.45124E-04** at limit **
  22  Prefactor     .67239        1.0217        .11205E-05    .68099E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 65.1608
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.00147895
  Prefactor  = 10.431
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.36499
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000126162
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000463974
  Prefactor  = 1.11565
  Prefactor  = 0.00054294
  Prefactor  = 1.49756
  Prefactor  = 8.48893
  Normalizat = 0.01
  Prefactor  = 0.67239
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   591.5632     FROM HESSE     STATUS=FAILED        45 CALLS      724 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.665        .96537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     65.161        115.54        .12360E-02   -1.4092    
   3  Prefactor     .10000E-03    151.32        .10510E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.5445        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .14790E-02    784.42        .38474E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.431        78.634        .31000E-02   -1.5062    
   7  norm          .10000E-03    14.886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.144        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.3650        175.32        .31436E-02   -1.5096    
  10  norm          .10000E-03    107.84        .95075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.320        .97825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .12616E-03    535.15        .87335E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    30.817        .97927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    145.11        .91812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .46397E-03    1792.3        .49004E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1157        9889.2        .66928E-02   -1.5497    
  18  Prefactor     .54294E-03    808.55        .41563E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     577.85        576.16         .0000       -1.5463    
  20  Prefactor     8.4889        1.0017         .0000       -1.5125    
  21  Normalizat    .10000E-01    .25505       -.45124E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .67239        1.0217        .11205E-05   -1.0462    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.13484e-09
Minuit parameter uncertainties:
  1  9.69605e-05
  2  115.94
  3  0.000285846
  4  9.8284e-07
  5  2.10827
  6  57.3846
  7  7.59144e-06
  8  1.1378e-05
  9  81.3176
  10  0.000331476
  11  1.03122e-05
  12  0.238814
  13  4.63812e-05
  14  7.13938e-06
  15  0.00114674
  16  1.66801
  17  302.552
  18  1.21364
  19  1.07077
  20  1.00174
  21  2.06792e-06
  22  1.0524
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 591.563175219

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  1.262e-04  2.388e-01  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:  6.724e-01  1.052e+00  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.000e-02  2.068e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.453 32.301
Photon Flux Upper Limit: 5.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280166/likelihoodResults_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.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) = 591.563186977
delta logL = -1.17575373224e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 591.563178688
delta logL = -3.46851311406e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45859E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3610       1.0000          .0000       5.0000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67239       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.

 FCN=   591.5632     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      295 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12291E-03    2298.1        .21200E-01** at limit **
   2  alpha         1.9785        3.3864        .16493        .42411E-06
   3  Normalizat    .10000E-01    .19863E-01    .11626E-01** at limit **
   4  Prefactor     .67239        .12503E-01    .10236E-03    .55531E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000122915
  alpha      = 1.9785
  Normalizat = 0.01
  Prefactor  = 0.67239
 **********
 **   18 **HESSE 
 **********

 FCN=   591.5632     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      318 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12291E-03    9559.4        .42399E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9785        3.7493        .65972E-02   -.21014    
   3  Normalizat    .10000E-01    .13790        .23252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .67239        .32975E-01    .40946E-05   -1.0462    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33194e-07
Minuit parameter uncertainties:
  1  1.21537
  2  11350.1
  3  1.37164e-07
  4  0.0329764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280166': 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) = 591.563175267
delta logL = -4.73947920909e-08

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  1.229e-04  1.215e+00  1.000e-04  1.000e+04 ( 1.000e-14)
366        alpha:  1.978e+00  1.135e+04  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:  6.724e-01  3.298e-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.000e-02  1.372e-07  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/280166/cmap_HighResolution_554515201_554774401_4FGL_J1841.8+3218_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-03', job_status='DONE', photon_flux_upper_limit='5.42e-07', time_completed='2021-09-21 09:21:59.104068', job_id='280166', GAL2='0.67', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632241319.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.67', dlogl='-4.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='1216' AND source_name='4FGL J1841.8+3218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 09:21:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 280166: <4FGL_J1841.8+3218_daily_bin1216> in cluster <slac> Done

Job <4FGL_J1841.8+3218_daily_bin1216> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 21 09:15:33 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 09:15:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 09:15:35 2021
Terminated at Tue Sep 21 09:21:59 2021
Results reported at Tue Sep 21 09:21:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1841.8+3218_daily_bin1216 280.453 32.301 554515201 554774401 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 :                                   359.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             450.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   384 sec.
    Turnaround time :                            386 sec.

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

