/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 143 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 = 6705
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.2+4222_daily_bin59
RA = 124.557, Dec = 42.3819
tmin = 254620801, tmax = 254880001
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='395519', job_status='RUN', time_executed='2021-08-29 16:34:28.291658', time_epoch_executed='1630280068.29' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395519

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395519/ft1_4FGL_J0818.2+4222_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395519/ft2_4FGL_J0818.2+4222_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395519/ft1_4FGL_J0818.2+4222_daily_bin59.fits outfile=/scratch/kocevski/395519/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin59.fits ra=124.557 dec=42.3819 rad=12.0 tmin=254620801.0 tmax=254880001.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 1.73
user 1.16
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395519/ft2_4FGL_J0818.2+4222_daily_bin59.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/395519/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/395519/ft1_filtered_4FGL_J0818.2+4222_daily_bin59.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.85
user 0.32
sys 0.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395519/ft1_filtered_4FGL_J0818.2+4222_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/395519/ft2_4FGL_J0818.2+4222_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/395519/ltcube_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.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/395519/ft2_4FGL_J0818.2+4222_daily_bin59.fits
.....................!
real 12.00
user 11.34
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395519/ft1_filtered_4FGL_J0818.2+4222_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/395519/ft2_4FGL_J0818.2+4222_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/395519/ltcube_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.fits outfile=/scratch/kocevski/395519/expmap_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.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/395519/ltcube_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.fits
.....................!
real 190.67
user 185.20
sys 4.89

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/395519/ft1_filtered_4FGL_J0818.2+4222_daily_bin59.fits scfile=/scratch/kocevski/395519/ft2_4FGL_J0818.2+4222_daily_bin59.fits outfile=/scratch/kocevski/395519/cmap_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.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 0.97
user 0.37
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395519/ft1_filtered_4FGL_J0818.2+4222_daily_bin59.fits scfile=/scratch/kocevski/395519/ft2_4FGL_J0818.2+4222_daily_bin59.fits outfile=/scratch/kocevski/395519/cmap_HighResolution_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.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.22
user 0.37
sys 0.49

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395519/ft1_filtered_4FGL_J0818.2+4222_daily_bin59.fits', '/scratch/kocevski/395519/ft2_4FGL_J0818.2+4222_daily_bin59.fits', expMap='/scratch/kocevski/395519/expmap_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.fits', expCube='/scratch/kocevski/395519/ltcube_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395519/Model_4FGL_J0818.2+4222_daily_bin59.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/395519/ft1_filtered_4FGL_J0818.2+4222_daily_bin59.fits
Spacecraft file(s): /scratch/kocevski/395519/ft2_4FGL_J0818.2+4222_daily_bin59.fits
Exposure map: /scratch/kocevski/395519/expmap_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.fits
Exposure cube: /scratch/kocevski/395519/ltcube_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395519/Model_4FGL_J0818.2+4222_daily_bin59.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) = 4779.6053883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77946       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5755       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.009       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0277       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4844       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3369       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0502       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13238E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0046       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3459       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11243E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.242       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.1745       1.0000         .10000E-03   10000.    
    21 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5601       1.0000         .10000E-03   10000.    
    23 'Prefactor '    99.896       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .52173       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12919E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.9494       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.9236       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82145       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0517       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4779.590     FROM MIGRAD    STATUS=CONVERGED    241 CALLS     3489 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78155        14.758       -.94643E-05   -.24525E-04
   2  Prefactor     4.5884        14.609       -.11378E-04   -.20180E-02
   3  Prefactor     41.082        19.427       -.23541E-05    .16307E-01
   4  Prefactor     7.0314        2.4944        .12956E-06   -.87945E-03
   5  Prefactor     9.3363        27.272       -.14462E-04    .92707E-03
   6  norm          4.3484        12.279        .79770E-05    .49191E-03
   7  norm          3.0451        3.4877        .48492E-06    .27958E-04
   8  Prefactor     .10000E-03    27.709       -.23362E-04** at limit **
   9  Prefactor     1.6429        514.25       -.59755E-04   -.60988E-04
  10  Prefactor     .10000E-03    1.5911       -.16839E-06** at limit **
  11  norm          .10000E-03    4.4772        .66121E-06** at limit **
  12  norm          1.0046        2.1742       -.51795E-06   -.92326E-05
  13  norm          2.3431        .91488        .99679E-07    .28316E-03
  14  Prefactor     .10000E-03    9.2878       -.39766E-06** at limit **
  15  Prefactor     .10000E-03    10.854       -.75546E-06** at limit **
  16  Prefactor     .10000E-03    1.0508        .37167E-06** at limit **
  17  Prefactor     .10007E-03    59.457       -.16673E-04** at limit **
  18  Prefactor     13.237        17.730       -.10566E-04   -.81458E-02
  19  Prefactor     .10000E-03    5.7308        .52377E-06** at limit **
  20  norm          5.1769        7.9813       -.10651E-05    .29842E-04
  21  norm          .10000E-03    3.8027        .34693E-06** at limit **
  22  Prefactor     3.5628        3.2882       -.19762E-06    .79088E-05
  23  Prefactor     99.919        2.0067        .50726E-06   -.30617E-02
  24  Prefactor     .49183        600.14        .14437E-03   -.49406E-03
  25  Prefactor     .10000E-03    3.3460        .96110E-07** at limit **
  26  Prefactor     .10006E-03    56.026        .22421E-05** at limit **
  27  norm          2.9493        1.6642       -.15588E-05   -.68554E-04
  28  Prefactor     4.9274        11.687        .11160E-04    .35055E-03
  29  Normalizat    .82054        .25211       -.50415E-05    .69823E-04
  30  Prefactor     1.0518        .19001        .40946E-05    .75917E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.781554
  Prefactor  = 4.5884
  Prefactor  = 41.0821
  Prefactor  = 7.03145
  Prefactor  = 9.33635
  norm       = 4.34836
  norm       = 3.04507
  Prefactor  = 0.0001
  Prefactor  = 1.64291
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.00462
  norm       = 2.34314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100068
  Prefactor  = 13.2369
  Prefactor  = 0.0001
  norm       = 5.17689
  norm       = 0.0001
  Prefactor  = 3.56279
  Prefactor  = 99.919
  Prefactor  = 0.491827
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  norm       = 2.94933
  Prefactor  = 4.92739
  Normalizat = 0.820539
  Prefactor  = 1.05181
 **********
 **   18 **HESSE 
 **********

 FCN=   4779.590     FROM HESSE     STATUS=OK           666 CALLS     4155 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78155        6.8377        .59050E-01   -1.5531    
   2  Prefactor     4.5884        14.806        .47046E-02   -1.5280    
   3  Prefactor     41.082        48.325        .15649E-02   -1.4425    
   4  Prefactor     7.0314        17.590        .37832E-02   -1.5178    
   5  Prefactor     9.3363        27.672        .32532E-02   -1.5097    
   6  norm          4.3484        12.327        .48356E-02   -1.5291    
   7  norm          3.0451        3.6169        .58076E-02   -1.5359    
   8  Prefactor     .10000E-03    26.752        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6429        544.68        .90712E-02   -1.5452    
  10  Prefactor     .10000E-03    1.5868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.4536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0046        2.4093        .33868E-01   -1.5508    
  13  norm          2.3431        .92277        .66914E-02   -1.5402    
  14  Prefactor     .10000E-03    9.2889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.783        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10007E-03    59.457        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.237        18.628        .27519E-02   -1.4980    
  19  Prefactor     .10000E-03    5.7249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.1769        8.0781        .44181E-02   -1.5253    
  21  norm          .10000E-03    3.7845        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.5628        3.3181        .53551E-02   -1.5330    
  23  Prefactor     99.919        96.273        .10056E-02   -1.3705    
  24  Prefactor     .49183        37.877        .15332       -1.5568    
  25  Prefactor     .10000E-03    3.2669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10006E-03    54.393        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.9493        1.4651        .59120E-02   -1.5364    
  28  Prefactor     4.9274        10.277        .45315E-02   -1.5264    
  29  Normalizat    .82054        .22345        .66974E-01   -.99311    
  30  Prefactor     1.0518        .16599        .39813E-01   -.91022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80669e-06
Minuit parameter uncertainties:
  1  4.62384
  2  14.8177
  3  48.3714
  4  17.6028
  5  27.7102
  6  12.334
  7  3.61713
  8  0.000115421
  9  60.3889
  10  2.97361e-07
  11  6.21025e-07
  12  2.40954
  13  0.922775
  14  1.95151e-06
  15  1.01494e-06
  16  1.2008e-07
  17  0.00402049
  18  18.6357
  19  4.699e-07
  20  8.07977
  21  4.77466e-07
  22  3.31822
  23  96.424
  24  8.63704
  25  2.10527e-07
  26  0.00347625
  27  1.46509
  28  10.2811
  29  0.223698
  30  0.166075
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.343e+00  9.228e-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.052e+00  1.661e-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:  8.205e-01  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.68
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 4.61e-08
Energy Flux (Fixed Index): 6.59e-05 +/- 2.59e-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) = 4779.46136952
delta logL = 0.129090504468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4779.45463832
delta logL = 0.135821699739

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4779.455     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      261 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2348        .90126        .36510E-04    .11064E-02
   2  alpha         2.1974        .39084        .86808E-02    .28282E-04
   3  Normalizat    .79683        .23535        .30005E-03    .24325E-04
   4  Prefactor     1.0615        .18423        .20859E-03    .89483E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23483
  alpha      = 2.19739
  Normalizat = 0.79683
  Prefactor  = 1.06154
 **********
 **   18 **HESSE 
 **********

 FCN=   4779.455     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2348        .89137        .14604E-05   -1.5409    
   2  alpha         2.1974        .38632        .34723E-03   -.12134    
   3  Normalizat    .79683        .23540        .12002E-04   -1.0019    
   4  Prefactor     1.0615        .18430        .41718E-04   -.90705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98201e-11
Minuit parameter uncertainties:
  1  0.891374
  2  0.387897
  3  0.235705
  4  0.184409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395519': 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) = 4779.45463714
delta logL = 0.135822885831

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.235e+00  8.914e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.197e+00  3.879e-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.062e+00  1.844e-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.968e-01  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.86
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.20 +/- 0.39
Photon Flux (Free Index): 1.39e-07 +/- 6.53e-08
Energy Flux (Free Index): 5.73e-05 +/- 2.49e-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/395519/cmap_HighResolution_254620801_254880001_4FGL_J0818.2+4222_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='5.73e-05', photon_flux_error='4.61e-08', dlogl='1.36e-01', energy_flux='6.59e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-08-29 16:45:22.596549', photon_index_error2='0.39', photon_index2='2.20', ts='21.68', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.49e-05', EG='0.82', time_epoch_completed='1630280722.6', return_code='0', job_id='395519', GAL2='1.06', EG2='0.80', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='6.53e-08', ts2='21.86', photon_index='2.00' WHERE bin_id='59' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:45:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 395519: <4FGL_J0818.2+4222_daily_bin59> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin59> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 16:31:42 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:31:43 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:31:43 2021
Terminated at Sun Aug 29 16:45:23 2021
Results reported at Sun Aug 29 16:45:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin59 124.557 42.3819 254620801 254880001 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 :                                   659.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

