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


Performing analysis on: 4FGL_J0841.3+7053_daily_bin1224
RA = 130.342, Dec = 70.8887
tmin = 556588801, tmax = 556848001
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='624157', job_status='RUN', time_executed='2021-08-30 03:57:52.502715', time_epoch_executed='1630321072.5' WHERE source_name='4FGL J0841.3+7053' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624157

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624157/ft1_4FGL_J0841.3+7053_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624157/ft2_4FGL_J0841.3+7053_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624157/ft1_4FGL_J0841.3+7053_daily_bin1224.fits outfile=/scratch/kocevski/624157/ft1_filteredMKT_4FGL_J0841.3+7053_daily_bin1224.fits ra=130.342 dec=70.8887 rad=12.0 tmin=556588801.0 tmax=556848001.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 3.72
user 3.37
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/624157/ft2_4FGL_J0841.3+7053_daily_bin1224.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/624157/ft1_filteredMKT_4FGL_J0841.3+7053_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/624157/ft1_filtered_4FGL_J0841.3+7053_daily_bin1224.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624157/ft1_filtered_4FGL_J0841.3+7053_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/624157/ft2_4FGL_J0841.3+7053_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/624157/ltcube_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.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/624157/ft2_4FGL_J0841.3+7053_daily_bin1224.fits
.....................!
real 12.43
user 12.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624157/ft1_filtered_4FGL_J0841.3+7053_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/624157/ft2_4FGL_J0841.3+7053_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/624157/ltcube_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.fits outfile=/scratch/kocevski/624157/expmap_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.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/624157/ltcube_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.fits
.....................!
real 191.23
user 185.42
sys 5.16

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/624157/ft1_filtered_4FGL_J0841.3+7053_daily_bin1224.fits scfile=/scratch/kocevski/624157/ft2_4FGL_J0841.3+7053_daily_bin1224.fits outfile=/scratch/kocevski/624157/cmap_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.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 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624157/ft1_filtered_4FGL_J0841.3+7053_daily_bin1224.fits scfile=/scratch/kocevski/624157/ft2_4FGL_J0841.3+7053_daily_bin1224.fits outfile=/scratch/kocevski/624157/cmap_HighResolution_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.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 0.57
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/624157/ft1_filtered_4FGL_J0841.3+7053_daily_bin1224.fits', '/scratch/kocevski/624157/ft2_4FGL_J0841.3+7053_daily_bin1224.fits', expMap='/scratch/kocevski/624157/expmap_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.fits', expCube='/scratch/kocevski/624157/ltcube_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/624157/Model_4FGL_J0841.3+7053_daily_bin1224.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/624157/ft1_filtered_4FGL_J0841.3+7053_daily_bin1224.fits
Spacecraft file(s): /scratch/kocevski/624157/ft2_4FGL_J0841.3+7053_daily_bin1224.fits
Exposure map: /scratch/kocevski/624157/expmap_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.fits
Exposure cube: /scratch/kocevski/624157/ltcube_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/624157/Model_4FGL_J0841.3+7053_daily_bin1224.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) = 2674.62283029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.686       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.5930       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13674E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    127.17       1.0000         .10000E-03   10000.    
    10 'norm      '    7.4139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3825       1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.275       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.159       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1455       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    351.59       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.8071       1.0000         .10000E-03   10000.    
    28 'norm      '    .21865       1.0000         .10000E-03   10000.    
    29 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .95062       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0511       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.

 FCN=   2674.593     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4367 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.674        36.594        .33001E-06   -.20079E-07
   2  Prefactor     .10000E-03    49.883       -.40030E-06** at limit **
   3  norm          .10000E-03    20.840        .19005E-06** at limit **
   4  norm          6.5930        1.7964        .34050E-07   -.32707E-04
   5  Prefactor     .10002E-03    6496.3       -.20960E-04** at limit **
   6  Prefactor     .10000E-03    33.527        .68664E-07** at limit **
   7  norm          .10000E-03    37.919        .46266E-06** at limit **
   8  Prefactor     .10000E-03    62.621       -.57001E-06** at limit **
   9  Prefactor     127.20        90.197        .19124E-05   -.11276E-04
  10  norm          7.4142        6.5104       -.55119E-08   -.12464E-04
  11  Prefactor     .10000E-03    6.4293        .36886E-06** at limit **
  12  Prefactor     .10000E-03    60.807        .27024E-07** at limit **
  13  Prefactor     .10000E-03    1.1293       -.78173E-07** at limit **
  14  norm          4.3827        4.9486        .26622E-06   -.19054E-04
  15  Prefactor     58.260        100.67        .57107E-06   -.60967E-05
  16  Prefactor     44.170        49.416        .50932E-06   -.85206E-05
  17  Prefactor     2.1450        37.205        .20459E-05    .31008E-05
  18  norm          1.3737        2.0378        .11980E-06   -.10783E-04
  19  Prefactor     .10000E-03    15.512       -.24495E-07** at limit **
  20  Prefactor     .10000E-03    26.840       -.28855E-07** at limit **
  21  Prefactor     .10000E-03    12.398       -.22630E-07** at limit **
  22  norm          .10000E-03    .91135        .60937E-07** at limit **
  23  Prefactor     .10000E-03    24.557        .45331E-07** at limit **
  24  Prefactor     .10000E-03    31.420       -.16580E-08** at limit **
  25  Prefactor     .10000E-03    58.455        .21509E-07** at limit **
  26  Prefactor     351.89        573.76        .26435E-05   -.52486E-05
  27  Prefactor     3.8140        8.1086       -.76889E-06   -.15671E-03
  28  norm          .21790        1.3087        .10072E-05    .30201E-03
  29  norm          .10000E-03    3.0091        .54387E-06** at limit **
  30  Prefactor     .10000E-03    8.9799        .58043E-06** at limit **
  31  Normalizat    .95006        .38450       -.75106E-05   -.57420E-05
  32  Prefactor     1.0515        .25765        .23046E-05   -.15423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6736
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.593
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 127.198
  norm       = 7.41422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.38269
  Prefactor  = 58.2602
  Prefactor  = 44.1705
  Prefactor  = 2.14495
  norm       = 1.37366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 351.887
  Prefactor  = 3.81399
  norm       = 0.217897
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.950055
  Prefactor  = 1.05154
 **********
 **   18 **HESSE 
 **********

 FCN=   2674.593     FROM HESSE     STATUS=OK           645 CALLS     5012 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.674        36.850        .84098E-04   -1.4755    
   2  Prefactor     .10000E-03    50.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    20.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.5930        1.7971        .34619E-04   -1.5194    
   5  Prefactor     .10002E-03    6509.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    37.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    62.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     127.20        90.017        .35698E-04   -1.3448    
  10  norm          7.4142        6.5146        .11780E-03   -1.5163    
  11  Prefactor     .10000E-03    6.4629        .12801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    60.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1313        .53625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3827        4.9406        .10631E-03   -1.5289    
  15  Prefactor     58.260        100.70        .52554E-04   -1.4180    
  16  Prefactor     44.170        49.417        .60331E-04   -1.4378    
  17  Prefactor     2.1450        36.751        .28135E-03   -1.5415    
  18  norm          1.3737        1.9908        .84648E-04   -1.5474    
  19  Prefactor     .10000E-03    15.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.413        .17786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .95559        .96458E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    31.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    58.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     351.89        573.34        .10859E-03   -1.1934    
  27  Prefactor     3.8140        7.7622        .16885E-03   -1.5317    
  28  norm          .21790        1.2316        .96140E-04   -1.5615    
  29  norm          .10000E-03    3.0230        .87405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.0035        .15122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .95006        .41162        .32060E-03   -.94723    
  32  Prefactor     1.0515        .28906        .22500E-03   -.91031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58352e-10
Minuit parameter uncertainties:
  1  36.8865
  2  8.02089e-05
  3  1.99164e-05
  4  1.79714
  5  0.0151615
  6  3.45039e-05
  7  1.16601e-05
  8  7.62239e-05
  9  90.1146
  10  6.51519
  11  6.11159e-06
  12  2.94143e-05
  13  2.86868e-06
  14  4.94102
  15  101
  16  49.4627
  17  17.7697
  18  1.99086
  19  1.41657e-05
  20  1.02522e-05
  21  1.25034e-05
  22  4.53008e-06
  23  5.31102e-05
  24  1.63084e-05
  25  3.37009e-05
  26  583.019
  27  7.76428
  28  1.03586
  29  1.35497e-06
  30  4.22674e-06
  31  0.413
  32  0.289494
Done.

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

Extracting fit parameters...

4FGL J0841.3+7053
   Spectrum: LogParabola
321         norm:  4.383e+00  4.941e+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

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  1.052e+00  2.895e-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:  9.501e-01  4.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 130.342 70.889
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 7.88e-08 +/- 8.88e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.97e-05

TS (Fixed Index): 1.34
Ra Dec: 130.342 70.889
Photon Flux Upper Limit: 2.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624157/likelihoodResults_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2674.28119224
delta logL = 0.311636869619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2674.26293751
delta logL = 0.329891604818

Fit tolerance = 1e-08

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

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

 FCN=   2674.263     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1043        4.9610        .44516E-02   -.36161E-04
   2  alpha         1.7993        .82030        .43421        .85303E-05
   3  Normalizat    .99807        .32676        .70897E-01    .59654E-04
   4  Prefactor     1.0226        .23995        .41897E-01   -.50713E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.10432
  alpha      = 1.7993
  Normalizat = 0.998066
  Prefactor  = 1.02256
 **********
 **   18 **HESSE 
 **********

 FCN=   2674.263     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1043        5.1857        .10701E-03   -1.5256    
   2  alpha         1.7993        .97760        .17046E-01   -.28409    
   3  Normalizat    .99807        .37924        .31365E-03   -.93095    
   4  Prefactor     1.0226        .27798        .22749E-03   -.91981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66995e-10
Minuit parameter uncertainties:
  1  5.18618
  2  1.00688
  3  0.380271
  4  0.278371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624157': 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) = 2674.26293485
delta logL = 0.329894256618

Extracting fit parameters...

4FGL J0841.3+7053
   Spectrum: LogParabola
321         norm:  5.104e+00  5.186e+00  1.000e-04  1.000e+04 ( 1.000e-11)
322        alpha:  1.799e+00  1.007e+00  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:  1.023e+00  2.784e-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:  9.981e-01  3.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 130.342 70.889
Photon Index (Free Index): 1.80 +/- 1.01
Photon Flux (Free Index): 5.47e-08 +/- 6.29e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.48e-05

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/624157/cmap_HighResolution_556588801_556848001_4FGL_J0841.3+7053_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-05', comment='SUCCESS', photon_flux='7.88e-08', energy_flux2='2.42e-05', photon_flux_error='8.88e-08', dlogl='3.30e-01', energy_flux='1.74e-05', photon_flux2='5.47e-08', job_status='DONE', time_completed='2021-08-30 04:09:19.656305', photon_index_error2='1.01', photon_index2='1.80', ts='1.34', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='2.64e-07', energy_flux_error2='2.48e-05', EG='0.95', time_epoch_completed='1630321759.66', return_code='0', job_id='624157', GAL2='1.02', EG2='1.00', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='6.29e-08', ts2='1.99', photon_index='2.77' WHERE bin_id='1224' AND source_name='4FGL J0841.3+7053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 04:09:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 624157: <4FGL_J0841.3+7053_daily_bin1224> in cluster <slac> Done

Job <4FGL_J0841.3+7053_daily_bin1224> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 03:55:27 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:55:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 03:55:28 2021
Terminated at Mon Aug 30 04:09:20 2021
Results reported at Mon Aug 30 04:09:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0841.3+7053_daily_bin1224 130.342 70.8887 556588801 556848001 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 :                                   680.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

