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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1156
RA = 124.557, Dec = 42.3819
tmin = 538963201, tmax = 539222401
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='402057', job_status='RUN', time_executed='2021-08-29 16:50:58.085273', time_epoch_executed='1630281058.09' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/402057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/402057/ft1_4FGL_J0818.2+4222_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/402057/ft1_4FGL_J0818.2+4222_daily_bin1156.fits outfile=/scratch/kocevski/402057/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1156.fits ra=124.557 dec=42.3819 rad=12.0 tmin=538963201.0 tmax=539222401.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.25
user 4.33
sys 0.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.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/402057/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1156.fits evtable="EVENTS" outfile="/scratch/kocevski/402057/ft1_filtered_4FGL_J0818.2+4222_daily_bin1156.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.19
user 0.34
sys 0.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/402057/ft1_filtered_4FGL_J0818.2+4222_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/402057/ltcube_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.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/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.fits
.....................!
real 16.35
user 15.16
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/402057/ft1_filtered_4FGL_J0818.2+4222_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/402057/ltcube_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.fits outfile=/scratch/kocevski/402057/expmap_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.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/402057/ltcube_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.fits
.....................!
real 190.53
user 185.07
sys 5.09

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

Setting source of interest to:
4FGL J0818.2+4222 @ 124.557 42.3819

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/402057/ft1_filtered_4FGL_J0818.2+4222_daily_bin1156.fits scfile=/scratch/kocevski/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.fits outfile=/scratch/kocevski/402057/cmap_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.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=124.557 yref=42.3819 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.38
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/402057/ft1_filtered_4FGL_J0818.2+4222_daily_bin1156.fits scfile=/scratch/kocevski/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.fits outfile=/scratch/kocevski/402057/cmap_HighResolution_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.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=124.557 yref=42.3819 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.24
user 0.36
sys 0.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/402057/ft1_filtered_4FGL_J0818.2+4222_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/402057/Model_4FGL_J0818.2+4222_daily_bin1156.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/402057/ft1_filtered_4FGL_J0818.2+4222_daily_bin1156.fits.....................!
real 58.21
user 55.61
sys 2.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/402057/ft1_filtered_4FGL_J0818.2+4222_daily_bin1156.fits', '/scratch/kocevski/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.fits', expMap='/scratch/kocevski/402057/expmap_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.fits', expCube='/scratch/kocevski/402057/ltcube_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/402057/Model_4FGL_J0818.2+4222_daily_bin1156.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.2+4222'

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.121e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/402057/ft1_filtered_4FGL_J0818.2+4222_daily_bin1156.fits
Spacecraft file(s): /scratch/kocevski/402057/ft2_4FGL_J0818.2+4222_daily_bin1156.fits
Exposure map: /scratch/kocevski/402057/expmap_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.fits
Exposure cube: /scratch/kocevski/402057/ltcube_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/402057/Model_4FGL_J0818.2+4222_daily_bin1156.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) = 5823.49871126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8730       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5781       1.0000         .10000E-03   10000.    
     6 'norm      '    8.5813       1.0000         .10000E-03   10000.    
     7 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0376       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8908       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42122       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0724       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28234       1.0000         .10000E-03   10000.    
    20 'norm      '    7.2269       1.0000         .10000E-03   10000.    
    21 'norm      '    .40128       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3337       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.082       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13884E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.128       1.0000         .10000E-03   10000.    
    27 'norm      '    2.1345       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .70211       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1420       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5823.425     FROM MIGRAD    STATUS=CONVERGED    796 CALLS     3440 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8726        4.2831        .87895E-06   -.67487E-04
   2  Prefactor     .10000E-03    11.665       -.57727E-05** at limit **
   3  Prefactor     .10000E-03    12.543        .92271E-06** at limit **
   4  Prefactor     .10000E-03    9.6648        .20853E-05** at limit **
   5  Prefactor     9.5768        12.215        .93450E-06   -.32464E-04
   6  norm          8.5794        9.5733       -.38241E-06   -.51397E-04
   7  norm          .10000E-03    1.2171       -.21330E-08** at limit **
   8  Prefactor     .10000E-03    4.1885       -.45464E-06** at limit **
   9  Prefactor     .10000E-03    15.452        .74428E-05** at limit **
  10  Prefactor     .10000E-03    3.8559       -.15399E-06** at limit **
  11  norm          1.0370        2.9167       -.89351E-06   -.11396E-02
  12  norm          1.8910        1.5768        .37952E-07    .15540E-03
  13  norm          1.2079        .62214       -.34863E-07    .17097E-03
  14  Prefactor     .10000E-03    15.573        .51423E-05** at limit **
  15  Prefactor     .10000E-03    4.0150        .34412E-06** at limit **
  16  Prefactor     .42247        1.8064       -.11605E-05   -.43706E-03
  17  Prefactor     8.0648        17.517        .11033E-05    .24683E-04
  18  Prefactor     .10000E-03    5.3094       -.28662E-06** at limit **
  19  Prefactor     .14925        8.2603       -.32430E-06    .16971E-03
  20  norm          7.2275        5.8495        .19789E-06    .16013E-03
  21  norm          .41024        5.8027       -.20237E-05   -.35043E-04
  22  Prefactor     4.3316        3.2630        .58545E-08    .35035E-04
  23  Prefactor     .10000E-03    49.822        .95929E-06** at limit **
  24  Prefactor     12.074        38.198       -.97549E-05    .36060E-04
  25  Prefactor     .10024E-03    1.7575       -.93906E-06** at limit **
  26  Prefactor     18.122        22.537        .54795E-06    .13104E-03
  27  norm          2.1338        .79851       -.35524E-07    .99035E-03
  28  Prefactor     .10000E-03    6.8700       -.67276E-07** at limit **
  29  Normalizat    .70232        .18391        .18110E-05    .38082E-03
  30  Prefactor     1.1420        .14419        .17991E-08    .50035E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.87258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.5768
  norm       = 8.57943
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03697
  norm       = 1.89097
  norm       = 1.2079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.422467
  Prefactor  = 8.06479
  Prefactor  = 0.0001
  Prefactor  = 0.149245
  norm       = 7.2275
  norm       = 0.410245
  Prefactor  = 4.33156
  Prefactor  = 0.0001
  Prefactor  = 12.0743
  Prefactor  = 0.00010024
  Prefactor  = 18.1225
  norm       = 2.13377
  Prefactor  = 0.0001
  Normalizat = 0.702321
  Prefactor  = 1.14199
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.425     FROM HESSE     STATUS=OK           604 CALLS     4044 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8726        4.2629        .16106E-03   -1.5314    
   2  Prefactor     .10000E-03    11.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5768        12.179        .12949E-03   -1.5089    
   6  norm          8.5794        9.5818        .13684E-03   -1.5122    
   7  norm          .10000E-03    1.9952        .16354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2260        .15251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0088        .29227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0370        2.7387        .21565E-02   -1.5504    
  12  norm          1.8910        1.5577        .83506E-04   -1.5433    
  13  norm          1.2079        .61345        .41372E-04   -1.5488    
  14  Prefactor     .10000E-03    15.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0199        .14928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .42247        3.3671        .19575E-02   -1.5578    
  17  Prefactor     8.0648        17.475        .14112E-03   -1.5140    
  18  Prefactor     .10000E-03    5.3466        .17170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14925        16.439        .65295E-01   -1.5631    
  20  norm          7.2275        5.8251        .14921E-03   -1.5170    
  21  norm          .41024        17.409        .33085E-02   -1.5580    
  22  Prefactor     4.3316        3.2631        .11233E-03   -1.5292    
  23  Prefactor     .10000E-03    49.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.074        37.931        .11525E-03   -1.5013    
  25  Prefactor     .10024E-03    16.435        .18855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.122        22.323        .94070E-04   -1.4856    
  27  norm          2.1338        .78976        .39678E-04   -1.5416    
  28  Prefactor     .10000E-03    7.0327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .70232        .20674        .29703E-03   -1.0380    
  30  Prefactor     1.1420        .16406        .19371E-03   -.88136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88575e-08
Minuit parameter uncertainties:
  1  4.26325
  2  4.27648e-06
  3  1.28873e-05
  4  2.82599e-05
  5  12.1826
  6  9.58352
  7  2.67155e-05
  8  1.14648e-05
  9  1.56617e-05
  10  4.07739e-06
  11  2.73906
  12  1.5577
  13  0.613453
  14  1.35716e-05
  15  6.32638e-06
  16  2.38527
  17  17.4856
  18  6.68611e-06
  19  3.13251
  20  5.82558
  21  5.34588
  22  3.26323
  23  9.35284e-07
  24  38.007
  25  0.00397332
  26  22.3331
  27  0.789766
  28  1.71264e-05
  29  0.206967
  30  0.16413
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.208e+00  6.135e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.142e+00  1.641e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  7.023e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.03
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.03e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 1.73e-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) = 5823.39342644
delta logL = 0.0310751192528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5823.39040106
delta logL = 0.0341005035298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1617       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1039       1.0000          .0000       5.0000    
     3 'Normalizat'    .69668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5823.390     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1623        12.756        .89679E-02    .22461E-03
   2  alpha         2.1037        3.4030        .26289        .23685E-04
   3  Normalizat    .69680        .10144        .67369E-01    .24290E-04
   4  Prefactor     1.1445        .77740E-01    .36096E-01    .10433E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16231
  alpha      = 2.10366
  Normalizat = 0.696799
  Prefactor  = 1.14448
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.390     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1623        .62892        .40067E-04   -1.5492    
   2  alpha         2.1037        .42096        .10662E-01   -.15921    
   3  Normalizat    .69680        .19829        .29810E-03   -1.0402    
   4  Prefactor     1.1445        .16198        .19352E-03   -.88057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64766e-13
Minuit parameter uncertainties:
  1  0.628921
  2  0.423032
  3  0.198494
  4  0.162051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/402057': 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) = 5823.39040039
delta logL = 0.034101173339

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.162e+00  6.289e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.104e+00  4.230e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.144e+00  1.621e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  6.968e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.07
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.10 +/- 0.42
Photon Flux (Free Index): 6.49e-08 +/- 3.64e-08
Energy Flux (Free Index): 3.07e-05 +/- 1.95e-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/402057/cmap_HighResolution_538963201_539222401_4FGL_J0818.2+4222_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.03e-08', energy_flux2='3.07e-05', photon_flux_error='3.06e-08', dlogl='3.41e-02', energy_flux='3.40e-05', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-08-29 17:03:27.966032', photon_index_error2='0.42', photon_index2='2.10', ts='8.03', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='0.70', time_epoch_completed='1630281807.97', return_code='0', job_id='402057', GAL2='1.14', EG2='0.70', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='3.64e-08', ts2='8.07', photon_index='2.00' WHERE bin_id='1156' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:03:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 402057: <4FGL_J0818.2+4222_daily_bin1156> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1156> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 16:50:28 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:50:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 16:50:30 2021
Terminated at Sun Aug 29 17:03:28 2021
Results reported at Sun Aug 29 17:03:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1156 124.557 42.3819 538963201 539222401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.2+4222 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   755.47 sec.
    Max Memory :                                 1174 MB
    Average Memory :                             328.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

