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


Performing analysis on: 4FGL_J1841.0+6115_daily_bin1008
RA = 280.253, Dec = 61.2522
tmin = 500601601, tmax = 500860801
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='266470', job_status='RUN', time_executed='2021-09-21 08:30:32.012675', time_epoch_executed='1632238232.01' WHERE source_name='4FGL J1841.0+6115' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266470/ft1_4FGL_J1841.0+6115_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266470/ft1_4FGL_J1841.0+6115_daily_bin1008.fits outfile=/scratch/kocevski/266470/ft1_filteredMKT_4FGL_J1841.0+6115_daily_bin1008.fits ra=280.253 dec=61.2522 rad=12.0 tmin=500601601.0 tmax=500860801.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 5.13
user 4.88
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.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/266470/ft1_filteredMKT_4FGL_J1841.0+6115_daily_bin1008.fits evtable="EVENTS" outfile="/scratch/kocevski/266470/ft1_filtered_4FGL_J1841.0+6115_daily_bin1008.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266470/ft1_filtered_4FGL_J1841.0+6115_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/266470/ltcube_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.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/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.fits
.....................!
real 12.15
user 11.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266470/ft1_filtered_4FGL_J1841.0+6115_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/266470/ltcube_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.fits outfile=/scratch/kocevski/266470/expmap_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.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/266470/ltcube_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.fits
.....................!
real 191.79
user 186.77
sys 4.66

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 HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 188 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.0+6115 @ 280.253 61.2522

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/266470/ft1_filtered_4FGL_J1841.0+6115_daily_bin1008.fits scfile=/scratch/kocevski/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.fits outfile=/scratch/kocevski/266470/cmap_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.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.253 yref=61.2522 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266470/ft1_filtered_4FGL_J1841.0+6115_daily_bin1008.fits scfile=/scratch/kocevski/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.fits outfile=/scratch/kocevski/266470/cmap_HighResolution_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.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.253 yref=61.2522 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/266470/ft1_filtered_4FGL_J1841.0+6115_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266470/Model_4FGL_J1841.0+6115_daily_bin1008.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 FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/266470/ft1_filtered_4FGL_J1841.0+6115_daily_bin1008.fits.....................!
real 73.26
user 71.92
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/266470/ft1_filtered_4FGL_J1841.0+6115_daily_bin1008.fits', '/scratch/kocevski/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.fits', expMap='/scratch/kocevski/266470/expmap_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.fits', expCube='/scratch/kocevski/266470/ltcube_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/266470/Model_4FGL_J1841.0+6115_daily_bin1008.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1841.0+6115'

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  3.678e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/266470/ft1_filtered_4FGL_J1841.0+6115_daily_bin1008.fits
Spacecraft file(s): /scratch/kocevski/266470/ft2_4FGL_J1841.0+6115_daily_bin1008.fits
Exposure map: /scratch/kocevski/266470/expmap_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.fits
Exposure cube: /scratch/kocevski/266470/ltcube_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/266470/Model_4FGL_J1841.0+6115_daily_bin1008.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) = 5763.85940398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.960       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.593       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0161       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1227       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.3068       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12246       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1366       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .73508E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14540E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.1502       1.0000         .10000E-03   10000.    
    22 'norm      '    5.4992       1.0000         .10000E-03   10000.    
    23 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10618E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.936       1.0000         .10000E-03   10000.    
    26 'norm      '    8.0770       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .33381       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5441       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71347       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+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=   5763.813     FROM MIGRAD    STATUS=CONVERGED   1387 CALLS     3988 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.963        20.011        .81833E-04   -.24729E-04
   2  Prefactor     .10004E-03    20.315        .34107E-02** at limit **
   3  Prefactor     12.591        11.506        .11288E-03   -.18562E-03
   4  Prefactor     .10000E-03    43.801        .18142E-02** at limit **
   5  Prefactor     .10000E-03    130.70        .18142E-02** at limit **
   6  Prefactor     .10000E-03    109.17        .18142E-02** at limit **
   7  norm          2.0163        2.1981        .11281E-03   -.25094E-04
   8  Prefactor     .10000E-03    40.412        .18142E-02** at limit **
   9  Prefactor     1.1302        59.421        .47112E-02    .45379E-04
  10  Prefactor     .10000E-03    15.020        .18142E-02** at limit **
  11  norm          9.3075        4.8682        .11433E-03   -.14419E-03
  12  Prefactor     .10000E-03    16.207        .18142E-02** at limit **
  13  Prefactor     .10000E-03    82.260        .18142E-02** at limit **
  14  Prefactor     .11330        25.599        .28702E-02    .15156E-03
  15  norm          1.1210        35.969        .21846E-02   -.83514E-04
  16  Prefactor     .10000E-03    232.29        .37240E-03** at limit **
  17  Prefactor     .10000E-03    24.526        .18142E-02** at limit **
  18  Prefactor     .10000E-03    105.85        .59061E-02** at limit **
  19  Prefactor     .10000E-03    19.782        .18142E-02** at limit **
  20  Prefactor     .10000E-03    67.955        .18142E-02** at limit **
  21  norm          6.1506        3.9644        .57535E-03   -.69603E-03
  22  norm          5.4998        4.7857        .15078E-03   -.23374E-04
  23  norm          .10000E-03    6.6041        .18142E-02** at limit **
  24  norm          .10000E-03    42.589        .18142E-02** at limit **
  25  Prefactor     23.937        23.023        .81875E-04    .10053E-03
  26  norm          8.0752        2.7031        .62526E-04    .94577E-03
  27  norm          .10000E-03    13.081        .18142E-02** at limit **
  28  Prefactor     .38070        48.625        .88748E-01    .17303E-03
  29  Normalizat    1.5443        .30351        .31479E-03   -.33689E-03
  30  Prefactor     .71329        .14116        .21977E-03    .26538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9627
  Prefactor  = 0.000100041
  Prefactor  = 12.5913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01631
  Prefactor  = 0.0001
  Prefactor  = 1.13023
  Prefactor  = 0.0001
  norm       = 9.30748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.113297
  norm       = 1.12098
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.1506
  norm       = 5.49979
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.9371
  norm       = 8.07516
  norm       = 0.0001
  Prefactor  = 0.380698
  Normalizat = 1.54431
  Prefactor  = 0.713288
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.813     FROM HESSE     STATUS=OK           572 CALLS     4560 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.963        20.005        .32733E-05   -1.4729    
   2  Prefactor     .10004E-03    20.511        .68215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.591        11.501        .45152E-05   -1.4998    
   4  Prefactor     .10000E-03    43.803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    130.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    109.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0163        2.1978        .45123E-05   -1.5424    
   8  Prefactor     .10000E-03    40.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1302        58.590        .18845E-03   -1.5495    
  10  Prefactor     .10000E-03    15.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.3075        4.8602        .45731E-05   -1.5098    
  12  Prefactor     .10000E-03    16.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    82.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11330        26.139        .11481E-03   -1.5641    
  15  norm          1.1210        35.821        .87384E-04   -1.5496    
  16  Prefactor     .10000E-03    232.31        .74479E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.530        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    108.09        .23624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    67.956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.1506        3.9544        .23014E-04   -1.5212    
  22  norm          5.4998        4.7853        .60310E-05   -1.5239    
  23  norm          .10000E-03    6.6047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    42.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.937        22.974        .32750E-05   -1.4729    
  26  norm          8.0752        2.6795        .12505E-04   -1.5140    
  27  norm          .10000E-03    13.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .38070        38.505        .10002       -1.5585    
  29  Normalizat    1.5443        .30032        .62957E-04   -.76541    
  30  Prefactor     .71329        .14075        .87908E-05   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20463e-09
Minuit parameter uncertainties:
  1  20.0101
  2  0.00183862
  3  11.5031
  4  1.01348e-05
  5  1.81062e-05
  6  3.04677e-05
  7  2.19785
  8  2.70847e-05
  9  16.2913
  10  2.99594e-05
  11  4.86036
  12  1.73883e-05
  13  3.21615e-05
  14  3.44176
  15  12.6812
  16  0.00190441
  17  8.49167e-06
  18  0.000795523
  19  1.23488e-05
  20  0.000205033
  21  3.95457
  22  4.78563
  23  2.48058e-06
  24  4.45803e-05
  25  22.9824
  26  2.6795
  27  1.04089e-05
  28  7.66142
  29  0.300672
  30  0.140823
Done.

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

Extracting fit parameters...

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  8.492e-06  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
627    Prefactor:  7.133e-01  1.408e-01  0.000e+00  1.000e+01 ( 1.000e+00)
628        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
629        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.544e+00  3.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.253 61.252
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266470/likelihoodResults_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.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) = 5763.81278452
delta logL = -0.000194242299585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5763.81259059
delta logL = -3.17129888572e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5763.813     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    631.69        .90712E-02** at limit **
   2  Index         2.4951        7.1182        .50000       -.15698E-04
   3  Normalizat    1.5443        .38083E-01    .71151E-01    .16012E-04
   4  Prefactor     .71328        .19003E-01    .42578E-01    .51014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.49513
  Normalizat = 1.54432
  Prefactor  = 0.713285
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.813     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1832.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4951        7.4348        .50000       -.52472    
   3  Normalizat    1.5443        .71683E-01    .31479E-03   -.76540    
   4  Prefactor     .71328        .35794E-01    .21977E-03   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.54112e-09
Minuit parameter uncertainties:
  1  0.00882349
  2  40.6451
  3  0.0716881
  4  0.0357956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266470': 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) = 5763.81259047
delta logL = -1.9757408154e-07

Extracting fit parameters...

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  8.823e-03  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.495e+00  4.065e+01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
627    Prefactor:  7.133e-01  3.580e-02  0.000e+00  1.000e+01 ( 1.000e+00)
628        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
629        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.544e+00  7.169e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 280.253 61.252

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/266470/cmap_HighResolution_500601601_500860801_4FGL_J1841.0+6115_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-21 08:45:44.930006', job_id='266470', GAL2='0.71', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1632239144.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-1.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1008' AND source_name='4FGL J1841.0+6115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 08:45:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 266470: <4FGL_J1841.0+6115_daily_bin1008> in cluster <slac> Done

Job <4FGL_J1841.0+6115_daily_bin1008> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 21 08:30:13 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 08:30:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 08:30:15 2021
Terminated at Tue Sep 21 08:45:45 2021
Results reported at Tue Sep 21 08:45:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1841.0+6115_daily_bin1008 280.253 61.2522 500601601 500860801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1841.0+6115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   910.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

