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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1201
RA = 120.888, Dec = 20.7678
tmin = 550627201, tmax = 550886401
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='75227', job_status='RUN', time_executed='2021-08-28 23:06:21.130817', time_epoch_executed='1630217181.13' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75227

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75227/ft1_4FGL_J0803.5+2046_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75227/ft1_4FGL_J0803.5+2046_daily_bin1201.fits outfile=/scratch/kocevski/75227/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1201.fits ra=120.888 dec=20.7678 rad=12.0 tmin=550627201.0 tmax=550886401.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.23
user 3.70
sys 1.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.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/75227/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1201.fits evtable="EVENTS" outfile="/scratch/kocevski/75227/ft1_filtered_4FGL_J0803.5+2046_daily_bin1201.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.72
user 0.32
sys 1.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75227/ft1_filtered_4FGL_J0803.5+2046_daily_bin1201.fits" evtable="EVENTS" scfile=/scratch/kocevski/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.fits sctable="SC_DATA" outfile=/scratch/kocevski/75227/ltcube_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.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/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.fits
.....................!
real 12.98
user 11.29
sys 1.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75227/ft1_filtered_4FGL_J0803.5+2046_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/75227/ltcube_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.fits outfile=/scratch/kocevski/75227/expmap_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.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/75227/ltcube_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.fits
.....................!
real 191.65
user 185.51
sys 5.62

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J0803.5+2046 @ 120.888 20.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75227/ft1_filtered_4FGL_J0803.5+2046_daily_bin1201.fits scfile=/scratch/kocevski/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.fits outfile=/scratch/kocevski/75227/cmap_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.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=120.888 yref=20.7678 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.75
user 0.38
sys 1.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75227/ft1_filtered_4FGL_J0803.5+2046_daily_bin1201.fits scfile=/scratch/kocevski/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.fits outfile=/scratch/kocevski/75227/cmap_HighResolution_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.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=120.888 yref=20.7678 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.73
user 0.38
sys 1.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75227/ft1_filtered_4FGL_J0803.5+2046_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75227/Model_4FGL_J0803.5+2046_daily_bin1201.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/75227/ft1_filtered_4FGL_J0803.5+2046_daily_bin1201.fits.....................!
real 99.24
user 96.29
sys 2.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75227/ft1_filtered_4FGL_J0803.5+2046_daily_bin1201.fits', '/scratch/kocevski/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.fits', expMap='/scratch/kocevski/75227/expmap_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.fits', expCube='/scratch/kocevski/75227/ltcube_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75227/Model_4FGL_J0803.5+2046_daily_bin1201.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0803.5+2046'

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  9.736e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75227/ft1_filtered_4FGL_J0803.5+2046_daily_bin1201.fits
Spacecraft file(s): /scratch/kocevski/75227/ft2_4FGL_J0803.5+2046_daily_bin1201.fits
Exposure map: /scratch/kocevski/75227/expmap_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.fits
Exposure cube: /scratch/kocevski/75227/ltcube_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75227/Model_4FGL_J0803.5+2046_daily_bin1201.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) = 9275.33352805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0320       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2823       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3455       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8957       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50560E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    110.21       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.627       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8392       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    175.52       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0986       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.890       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6925       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90114       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9275.239     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2921 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0314        14.223        .37666E-06    .88863E-06
   2  norm          1.2824        .93985        .17393E-07   -.60197E-04
   3  norm          2.3454        1.3817       -.12412E-07   -.11322E-03
   4  Prefactor     .10000E-03    4.0455       -.21184E-06** at limit **
   5  norm          2.9004        5.2272        .57424E-05   -.23192E-03
   6  Prefactor     .10005E-03    77.413       -.85230E-05** at limit **
   7  Prefactor     4.1087        30.491       -.96823E-05   -.17522E-04
   8  Prefactor     110.20        52.720        .62311E-06    .16443E-04
   9  Prefactor     .10000E-03    1.0552        .32102E-07** at limit **
  10  Prefactor     17.512        37.803        .93008E-06    .10886E-03
  11  norm          .10000E-03    3.6753        .59069E-08** at limit **
  12  Prefactor     7.8394        6.4595        .86132E-08   -.10873E-04
  13  Prefactor     .10000E-03    46.237        .74912E-06** at limit **
  14  norm          175.52        119.25        .88352E-07    .38428E-05
  15  Prefactor     .10000E-03    35.653       -.33126E-06** at limit **
  16  Prefactor     .10000E-03    20.339        .94820E-07** at limit **
  17  Prefactor     .10000E-03    208.45       -.34039E-05** at limit **
  18  Prefactor     6.0981        8.9791        .63890E-07   -.57804E-05
  19  Prefactor     .10000E-03    7.1621        .28148E-07** at limit **
  20  norm          .10000E-03    .26582        .12986E-07** at limit **
  21  Prefactor     .10000E-03    8.6312        .10854E-06** at limit **
  22  Prefactor     20.889        9.1306        .17933E-07   -.17506E-04
  23  Prefactor     .10000E-03    18.034        .30563E-07** at limit **
  24  Normalizat    1.6927        .19813        .18806E-06    .35809E-03
  25  Prefactor     .90095        .14252       -.50149E-06    .23606E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.03142
  norm       = 1.28235
  norm       = 2.34537
  Prefactor  = 0.0001
  norm       = 2.90036
  Prefactor  = 0.000100046
  Prefactor  = 4.10869
  Prefactor  = 110.202
  Prefactor  = 0.0001
  Prefactor  = 17.5122
  norm       = 0.0001
  Prefactor  = 7.83936
  Prefactor  = 0.0001
  norm       = 175.517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.09813
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8891
  Prefactor  = 0.0001
  Normalizat = 1.69271
  Prefactor  = 0.900949
 **********
 **   18 **HESSE 
 **********

 FCN=   9275.239     FROM HESSE     STATUS=OK           421 CALLS     3342 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0314        14.314        .23304E-03   -1.5360    
   2  norm          1.2824        .93403        .76978E-04   -1.5481    
   3  norm          2.3454        1.3788        .83267E-04   -1.5402    
   4  Prefactor     .10000E-03    4.0643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9004        5.2572        .11940E-02   -1.5367    
   6  Prefactor     .10005E-03    80.432        .21152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1087        30.498        .19854E-03   -1.5303    
   8  Prefactor     110.20        52.879        .38314E-04   -1.3605    
   9  Prefactor     .10000E-03    2.0749        .19091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.512        38.011        .95397E-04   -1.4871    
  11  norm          .10000E-03    3.6766        .18031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8394        6.4557        .14321E-03   -1.5148    
  13  Prefactor     .10000E-03    46.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          175.52        119.29        .30461E-04   -1.3050    
  15  Prefactor     .10000E-03    35.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    209.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0981        8.9808        .16258E-03   -1.5214    
  19  Prefactor     .10000E-03    7.1724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .26833        .48473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.8029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.889        9.1770        .87634E-04   -1.4794    
  23  Prefactor     .10000E-03    18.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6927        .23247        .28164E-03   -.72498    
  25  Prefactor     .90095        .16624        .26747E-03   -.96108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48812e-10
Minuit parameter uncertainties:
  1  13.1795
  2  0.934044
  3  1.37883
  4  2.98317e-05
  5  5.25799
  6  0.00386223
  7  22.4037
  8  52.9013
  9  4.56595e-07
  10  38.0633
  11  6.60652e-07
  12  6.45631
  13  1.27267e-05
  14  119.451
  15  1.84177e-05
  16  5.96634e-06
  17  0.00134126
  18  8.98281
  19  2.57066e-06
  20  4.50133e-07
  21  1.68505e-05
  22  9.17765
  23  1.70193e-05
  24  0.232618
  25  0.166337
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.755e+02  1.195e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.009e-01  1.663e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.693e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.12
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.21e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.15e-05

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) = 9271.78663766
delta logL = 3.45249011235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9271.78497804
delta logL = 3.454149736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    117.44       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1096       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95043       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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=   9271.785     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      293 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          117.41        88.585        .37129E-04    .29762E-04
   2  alpha         4.1093        .67827        .16295E-02    .16995E-04
   3  Normalizat    1.5428        .23236        .29147E-03    .47685E-03
   4  Prefactor     .95036        .16341        .26052E-03    .26428E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 117.407
  alpha      = 4.10926
  Normalizat = 1.54283
  Prefactor  = 0.950359
 **********
 **   18 **HESSE 
 **********

 FCN=   9271.785     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          117.41        87.414        .74258E-05   -1.3537    
   2  alpha         4.1093        .66964        .65181E-04    .69933    
   3  Normalizat    1.5428        .23242        .58294E-04   -.76582    
   4  Prefactor     .95036        .16347        .10421E-04   -.94403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48683e-10
Minuit parameter uncertainties:
  1  87.51
  2  0.684126
  3  0.232578
  4  0.163552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75227': 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) = 9271.7849764
delta logL = 3.45415137728

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.174e+02  8.751e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  4.109e+00  6.841e-01  0.000e+00  5.000e+00 ( 1.000e+00)
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.504e-01  1.636e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.543e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.14
Ra Dec: 120.888 20.768
Photon Index (Free Index): 4.11 +/- 0.68
Photon Flux (Free Index): 1.74e-07 +/- 8.03e-08
Energy Flux (Free Index): 3.66e-05 +/- 1.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/75227/cmap_HighResolution_550627201_550886401_4FGL_J0803.5+2046_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.21e-08', energy_flux2='3.66e-05', photon_flux_error='2.18e-08', dlogl='3.45e+00', energy_flux='1.69e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-08-28 23:19:38.002867', photon_index_error2='0.68', photon_index2='4.11', ts='4.12', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.69', time_epoch_completed='1630217978.0', return_code='0', job_id='75227', GAL2='0.95', EG2='1.54', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='8.03e-08', ts2='11.14', photon_index='2.00' WHERE bin_id='1201' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:19:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 75227: <4FGL_J0803.5+2046_daily_bin1201> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1201> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:05:43 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:05:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 23:05:44 2021
Terminated at Sat Aug 28 23:19:38 2021
Results reported at Sat Aug 28 23:19:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1201 120.888 20.7678 550627201 550886401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0803.5+2046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   808.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            835 sec.

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

