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


Performing analysis on: 4FGL_J0841.3+7053_daily_bin1229
RA = 130.342, Dec = 70.8887
tmin = 557884801, tmax = 558144001
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='625607', job_status='RUN', time_executed='2021-08-30 04:03:52.709529', time_epoch_executed='1630321432.71' WHERE source_name='4FGL J0841.3+7053' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625607/ft1_4FGL_J0841.3+7053_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625607/ft1_4FGL_J0841.3+7053_daily_bin1229.fits outfile=/scratch/kocevski/625607/ft1_filteredMKT_4FGL_J0841.3+7053_daily_bin1229.fits ra=130.342 dec=70.8887 rad=12.0 tmin=557884801.0 tmax=558144001.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.00
user 3.79
sys 0.78

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.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/625607/ft1_filteredMKT_4FGL_J0841.3+7053_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/625607/ft1_filtered_4FGL_J0841.3+7053_daily_bin1229.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 1.30
user 0.34
sys 0.73

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625607/ft1_filtered_4FGL_J0841.3+7053_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/625607/ltcube_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.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/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.fits
.....................!
real 13.49
user 12.32
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625607/ft1_filtered_4FGL_J0841.3+7053_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/625607/ltcube_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.fits outfile=/scratch/kocevski/625607/expmap_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.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/625607/ltcube_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.fits
.....................!
real 192.77
user 185.31
sys 5.88

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 J0841.3+7053 @ 130.342 70.8887

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/625607/ft1_filtered_4FGL_J0841.3+7053_daily_bin1229.fits scfile=/scratch/kocevski/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.fits outfile=/scratch/kocevski/625607/cmap_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.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=130.342 yref=70.8887 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.29
user 0.39
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625607/ft1_filtered_4FGL_J0841.3+7053_daily_bin1229.fits scfile=/scratch/kocevski/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.fits outfile=/scratch/kocevski/625607/cmap_HighResolution_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.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=130.342 yref=70.8887 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.27
user 0.39
sys 0.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625607/ft1_filtered_4FGL_J0841.3+7053_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625607/Model_4FGL_J0841.3+7053_daily_bin1229.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/625607/ft1_filtered_4FGL_J0841.3+7053_daily_bin1229.fits...........!
real 16.27
user 13.53
sys 1.92

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/625607/ft1_filtered_4FGL_J0841.3+7053_daily_bin1229.fits', '/scratch/kocevski/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.fits', expMap='/scratch/kocevski/625607/expmap_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.fits', expCube='/scratch/kocevski/625607/ltcube_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/625607/Model_4FGL_J0841.3+7053_daily_bin1229.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0841.3+7053'

4FGL J0841.3+7053
   Spectrum: LogParabola
321         norm:  7.490e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
322        alpha:  2.775e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
323         beta:  2.313e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
324           Eb:  3.737e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/625607/ft1_filtered_4FGL_J0841.3+7053_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/625607/ft2_4FGL_J0841.3+7053_daily_bin1229.fits
Exposure map: /scratch/kocevski/625607/expmap_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.fits
Exposure cube: /scratch/kocevski/625607/ltcube_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/625607/Model_4FGL_J0841.3+7053_daily_bin1229.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) = 104.300385874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95686E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    127.61       1.0000         .10000E-03   10000.    
     3 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    14.455       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .22029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11415E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12933E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .59799E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '    449.01       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'Prefactor '    117.73       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12715E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .29023E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.084       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18881E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10663E-03   1.0000         .10000E-03   10000.    
    29 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    30 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .22979       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+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=   93.45454     FROM MIGRAD    STATUS=CONVERGED   1507 CALLS     5746 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    613.36        .20791E-02** at limit **
   2  Prefactor     127.22        192.61        .17819E-03    .99192E-06
   3  norm          .10000E-03    156.55        .11879E-02** at limit **
   4  norm          14.449        9.0452        .22488E-04   -.90965E-04
   5  Prefactor     .10028E-03    479.92        .20908E-02** at limit **
   6  Prefactor     .10000E-03    151.38        .11679E-02** at limit **
   7  norm          .10001E-03    224.83        .14250E-02** at limit **
   8  Prefactor    10000.0        8412.0        .19620E-02** at limit **
   9  Prefactor     .10017E-03    251.12        .15069E-02** at limit **
  10  norm          .10000E-03    54.743        .70107E-03** at limit **
  11  Prefactor     .10000E-03    61.367        .74304E-03** at limit **
  12  Prefactor     .10018E-03    585.72        .21066E-02** at limit **
  13  Prefactor    10000.0        6456.1        .20774E-02** at limit **
  14  norm          .10000E-03    30.748        .52526E-03** at limit **
  15  Prefactor    10000.0        5378.2        .20608E-02** at limit **
  16  Prefactor     447.65        808.91        .96578E-04    .12250E-05
  17  Prefactor    10000.0        5982.6        .18397E-02** at limit **
  18  norm         10000.0        8427.8        .21053E-02** at limit **
  19  Prefactor    10000.0        9605.5        .18402E-02** at limit **
  20  Prefactor    10000.0        5163.4        .18542E-01** at limit **
  21  Prefactor    10000.0        5730.3        .18232E-02** at limit **
  22  norm         10000.0        6775.5        .20552E-02** at limit **
  23  Prefactor     .10008E-03    305.76        .16641E-02** at limit **
  24  Prefactor     .10008E-03    811.32        .18142E-02** at limit **
  25  Prefactor     .10001E-03    2092.3        .21404E-02** at limit **
  26  Prefactor    10000.0        9380.2        .39219E-02** at limit **
  27  Prefactor     .10009E-03    212.66        .13856E-02** at limit **
  28  norm          .10000E-03    42.738        .61936E-03** at limit **
  29  norm         10000.0        7048.8        .20654E-02** at limit **
  30  Prefactor    10000.0        8498.9        .21279E-02** at limit **
  31  Normalizat    .10000E-01    .37111        .18353E-02** at limit **
  32  Prefactor     .22942        .36817        .23430E-03   -.71257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 127.224
  norm       = 0.000100002
  norm       = 14.4491
  Prefactor  = 0.000100282
  Prefactor  = 0.000100005
  norm       = 0.000100008
  Prefactor  = 10000
  Prefactor  = 0.000100174
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100177
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 447.654
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000100079
  Prefactor  = 0.000100079
  Prefactor  = 0.000100013
  Prefactor  = 10000
  Prefactor  = 0.000100094
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.22942
 **********
 **   18 **HESSE 
 **********

 FCN=   93.45454     FROM HESSE     STATUS=OK           625 CALLS     6371 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    613.36        .41582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     127.22        192.61        .71275E-05   -1.3447    
   3  norm          .10000E-03    156.55        .23757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.449        9.0452        .44977E-05   -1.4948    
   5  Prefactor     .10028E-03    479.92        .41817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    151.38        .23357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    224.83        .28501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        8453.1        .39241E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10017E-03    251.12        .30139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    54.743        .14021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    61.367        .14861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10018E-03    585.72        .42132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        6455.7        .41548E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    30.748        .10505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        5399.5        .41215E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     447.65        808.91        .19316E-04   -1.1444    
  17  Prefactor    10000.0        6008.6        .36795E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm         10000.0        8427.0        .42106E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        9599.6        .36805E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        5163.5        .37085E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        5700.5        .36464E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm         10000.0        6775.3        .41104E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10008E-03    305.76        .33282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10008E-03    811.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    2092.3        .42807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        9380.1        .78437E-03    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10009E-03    212.66        .27711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    42.738        .12387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm         10000.0        7047.6        .41307E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor    10000.0        8498.9        .42558E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .37102        .36706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .22942        .36815        .46861E-04   -1.2667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51771e-09
Minuit parameter uncertainties:
  1  0.00144591
  2  193.568
  3  0.00106665
  4  9.04609
  5  0.0234715
  6  0.00168683
  7  0.00274438
  8  0.784804
  9  0.0132753
  10  0.00038819
  11  0.000627842
  12  0.0205482
  13  0.0384583
  14  5.86854e-05
  15  0.896688
  16  831.103
  17  0.701896
  18  0.0804072
  19  0.281032
  20  0.433944
  21  0.912993
  22  0.026564
  23  0.00985017
  24  0.0162601
  25  0.0108194
  26  50.4776
  27  0.00898546
  28  0.00012171
  29  0.0756992
  30  0.0147472
  31  1.0944e-05
  32  0.371964
Done.

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

Extracting fit parameters...

4FGL J0841.3+7053
   Spectrum: LogParabola
321         norm:  1.000e-04  5.869e-05  1.000e-04  1.000e+04 ( 1.000e-11)
322        alpha:  2.775e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
323         beta:  2.313e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
324           Eb:  3.737e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  2.294e-01  3.720e-01  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.000e-02  1.094e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 130.342 70.889
Photon Flux Upper Limit: 3.27e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625607/likelihoodResults_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.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) = 93.4546885305
delta logL = -0.000151717357312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 93.4545405422
delta logL = -3.72904166568e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2294       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+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=   93.45454     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      263 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    48.972        .29591E-02** at limit **
   2  alpha         1.6744        3.1910        .20000E-01   -.88640E-08
   3  Normalizat    .10000E-01    .37111        .18344E-02** at limit **
   4  Prefactor     .22942        .36566        .23435E-03   -.35187E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.67444
  Normalizat = 0.01
  Prefactor  = 0.229423
 **********
 **   18 **HESSE 
 **********

 FCN=   93.45454     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    46.869        .59182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6744        3.2399        .80000E-03   -.33654    
   3  Normalizat    .10000E-01    .37111        .36688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22942        .36566        .46870E-04   -1.2667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30573e-11
Minuit parameter uncertainties:
  1  0.000153441
  2  970.985
  3  9.37098e-07
  4  0.369392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625607': 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) = 93.4545362537
delta logL = 5.59416733381e-07

Extracting fit parameters...

4FGL J0841.3+7053
   Spectrum: LogParabola
321         norm:  1.000e-04  1.534e-04  1.000e-04  1.000e+04 ( 1.000e-11)
322        alpha:  1.674e+00  9.710e+02  0.000e+00  5.000e+00 ( 1.000e+00)
323         beta:  2.313e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
324           Eb:  3.737e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  2.294e-01  3.694e-01  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.000e-02  9.371e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 130.342 70.889

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/625607/cmap_HighResolution_557884801_558144001_4FGL_J0841.3+7053_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-04', job_status='DONE', photon_flux_upper_limit='3.27e-06', time_completed='2021-08-30 04:10:13.831061', job_id='625607', GAL2='0.23', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630321813.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.23', dlogl='5.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1229' AND source_name='4FGL J0841.3+7053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 04:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 625607: <4FGL_J0841.3+7053_daily_bin1229> in cluster <slac> Done

Job <4FGL_J0841.3+7053_daily_bin1229> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 30 04:00:53 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 04:00:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 04:00:54 2021
Terminated at Mon Aug 30 04:10:16 2021
Results reported at Mon Aug 30 04:10:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0841.3+7053_daily_bin1229 130.342 70.8887 557884801 558144001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0841.3+7053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   382.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            563 sec.

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

