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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1323
RA = 124.557, Dec = 42.3819
tmin = 582249601, tmax = 582508801
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='402342', job_status='RUN', time_executed='2021-08-29 16:51:02.271240', time_epoch_executed='1630281062.27' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/402342

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/402342/ft1_4FGL_J0818.2+4222_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/402342/ft2_4FGL_J0818.2+4222_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/402342/ft1_4FGL_J0818.2+4222_daily_bin1323.fits outfile=/scratch/kocevski/402342/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1323.fits ra=124.557 dec=42.3819 rad=12.0 tmin=582249601.0 tmax=582508801.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.59
user 5.04
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/402342/ft1_filtered_4FGL_J0818.2+4222_daily_bin1323.fits" evtable="EVENTS" scfile=/scratch/kocevski/402342/ft2_4FGL_J0818.2+4222_daily_bin1323.fits sctable="SC_DATA" outfile=/scratch/kocevski/402342/ltcube_582249601_582508801_4FGL_J0818.2+4222_daily_bin1323.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/402342/ft2_4FGL_J0818.2+4222_daily_bin1323.fits
.....................!
real 11.79
user 11.14
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/402342/ft1_filtered_4FGL_J0818.2+4222_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/402342/ft2_4FGL_J0818.2+4222_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/402342/ltcube_582249601_582508801_4FGL_J0818.2+4222_daily_bin1323.fits outfile=/scratch/kocevski/402342/expmap_582249601_582508801_4FGL_J0818.2+4222_daily_bin1323.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/402342/ltcube_582249601_582508801_4FGL_J0818.2+4222_daily_bin1323.fits
.....................!
real 189.97
user 185.16
sys 4.38

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/402342/ft1_filtered_4FGL_J0818.2+4222_daily_bin1323.fits scfile=/scratch/kocevski/402342/ft2_4FGL_J0818.2+4222_daily_bin1323.fits outfile=/scratch/kocevski/402342/cmap_582249601_582508801_4FGL_J0818.2+4222_daily_bin1323.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.98
user 0.38
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/402342/ft1_filtered_4FGL_J0818.2+4222_daily_bin1323.fits scfile=/scratch/kocevski/402342/ft2_4FGL_J0818.2+4222_daily_bin1323.fits outfile=/scratch/kocevski/402342/cmap_HighResolution_582249601_582508801_4FGL_J0818.2+4222_daily_bin1323.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.23
user 0.38
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.265       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4404       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1153       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0143       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .85777       1.0000         .10000E-03   10000.    
    13 'norm      '    .62257       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6713       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2775       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0835       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12354E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1820       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.183       1.0000         .10000E-03   10000.    
    21 'norm      '    6.2209       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9223       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .39534       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.8583       1.0000         .10000E-03   10000.    
    27 'norm      '    .77085E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.5515       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1221       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0741       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6934.863     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3402 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.266        8.3101         .0000        .52636E-04
   2  Prefactor     .10007E-03    21.232         .0000    ** at limit **
   3  Prefactor     2.4346        44.612         .0000        .14286E-02
   4  Prefactor     .10000E-03    5.9079         .0000    ** at limit **
   5  Prefactor     8.1146        19.442         .0000        .11528E-03
   6  norm          .10000E-03    9.2586         .0000    ** at limit **
   7  norm          .10000E-03    .87409         .0000    ** at limit **
   8  Prefactor     .10000E-03    5.3116         .0000    ** at limit **
   9  Prefactor     .10002E-03    25.423         .0000    ** at limit **
  10  Prefactor     2.0145        6.0183         .0000        .96203E-03
  11  norm          .10000E-03    1.5506         .0000    ** at limit **
  12  norm          .85787        1.2843         .0000        .44859E-03
  13  norm          .62244        .59514         .0000        .20474E-03
  14  Prefactor     6.6680        24.045         .0000        .25818E-03
  15  Prefactor     2.2730        22.364         .0000        .37300E-02
  16  Prefactor     5.0831        3.5311         .0000        .55670E-03
  17  Prefactor     .10000E-03    87.659         .0000    ** at limit **
  18  Prefactor     1.1731        21.228         .0000        .11115E-01
  19  Prefactor     .10000E-03    3.0852         .0000    ** at limit **
  20  norm          12.183        7.3791         .0000        .20516E-03
  21  norm          6.2210        6.5403         .0000        .32741E-03
  22  Prefactor     1.9220        2.7960         .0000        .87764E-03
  23  Prefactor     .10002E-03    18.881         .0000    ** at limit **
  24  Prefactor     .10000E-03    12.217         .0000    ** at limit **
  25  Prefactor     .39710        2.1216         .0000        .60297E-03
  26  Prefactor     7.8562        16.159         .0000       -.15749E-03
  27  norm          .77286E-01    .58720         .0000        .27878E-02
  28  Prefactor     2.5495        6.4871         .0000        .75102E-03
  29  Normalizat    1.1221        .20105         .0000        .25624E-03
  30  Prefactor     1.0741        .14522         .0000        .24655E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.2657
  Prefactor  = 0.00010007
  Prefactor  = 2.43456
  Prefactor  = 0.0001
  Prefactor  = 8.11462
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 2.01455
  norm       = 0.0001
  norm       = 0.85787
  norm       = 0.62244
  Prefactor  = 6.66796
  Prefactor  = 2.27297
  Prefactor  = 5.08311
  Prefactor  = 0.0001
  Prefactor  = 1.17311
  Prefactor  = 0.0001
  norm       = 12.1829
  norm       = 6.22102
  Prefactor  = 1.92205
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.397096
  Prefactor  = 7.85621
  norm       = 0.0772856
  Prefactor  = 2.54954
  Normalizat = 1.12207
  Prefactor  = 1.07408
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.863     FROM HESSE     STATUS=OK           600 CALLS     4002 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.266        8.3162        .96390E-04   -1.4877    
   2  Prefactor     .10007E-03    21.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4346        44.711        .13095E-02   -1.5396    
   4  Prefactor     .10000E-03    5.9351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.1146        19.431        .14074E-03   -1.5138    
   6  norm          .10000E-03    9.3369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .88303        .76011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    25.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0145        5.9061        .29165E-03   -1.5424    
  11  norm          .10000E-03    1.5619        .10123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .85787        1.0655        .11167E-02   -1.5523    
  13  norm          .62244        .56328        .57221E-03   -1.5550    
  14  Prefactor     6.6680        24.033        .15536E-03   -1.5191    
  15  Prefactor     2.2730        21.394        .13604E-02   -1.5406    
  16  Prefactor     5.0831        3.4971        .11746E-03   -1.5257    
  17  Prefactor     .10000E-03    89.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1731        21.443        .21014E-02   -1.5491    
  19  Prefactor     .10000E-03    3.0899        .14283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.183        7.3723        .11477E-03   -1.5010    
  21  norm          6.2210        6.5393        .16095E-03   -1.5209    
  22  Prefactor     1.9220        2.7709        .15685E-03   -1.5431    
  23  Prefactor     .10002E-03    18.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .39710        7.4175        .22094E-02   -1.5582    
  26  Prefactor     7.8562        16.149        .14304E-03   -1.5147    
  27  norm          .77286E-01    1.1249        .90205E-03   -1.5652    
  28  Prefactor     2.5495        7.2611        .22925E-03   -1.5389    
  29  Normalizat    1.1221        .23273        .28496E-03   -.89046    
  30  Prefactor     1.0741        .16814        .22382E-03   -.90299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.44278e-08
Minuit parameter uncertainties:
  1  8.31672
  2  0.00245422
  3  20.8841
  4  5.82689e-06
  5  19.4459
  6  4.6729e-05
  7  3.17868e-07
  8  2.00424e-05
  9  0.001291
  10  5.90781
  11  5.203e-07
  12  1.06556
  13  0.563287
  14  24.0678
  15  13.9529
  16  3.49722
  17  2.07813e-05
  18  10.0346
  19  3.65488e-06
  20  7.37284
  21  6.54008
  22  2.77105
  23  0.00124865
  24  0.000109593
  25  3.43252
  26  16.1581
  27  0.589341
  28  7.26359
  29  0.232944
  30  0.168224
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  6.224e-01  5.633e-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.074e+00  1.682e-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:  1.122e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.62
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.58e-05

TS (Fixed Index): 2.62
Ra Dec: 124.557 42.382
Photon Flux Upper Limit: 9.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/402342/likelihoodResults_582249601_582508801_4FGL_J0818.2+4222_daily_bin1323.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) = 6934.80121493
delta logL = 0.0622108289608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6934.79758054
delta logL = 0.0658452226371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66053       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2638       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0763       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=   6934.798     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66064        10.633        .11700E-01    .61857E-03
   2  alpha         2.2639        3.3968        .41386        .52582E-04
   3  Normalizat    1.1115        .60401E-01    .64671E-01    .93630E-04
   4  Prefactor     1.0762        .43393E-01    .38568E-01   -.57948E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.660637
  alpha      = 2.26387
  Normalizat = 1.11152
  Prefactor  = 1.07615
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.798     FROM HESSE     STATUS=OK            35 CALLS      238 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66064        .53248        .53538E-03   -1.5545    
   2  alpha         2.2639        .71088        .17214E-01   -.94592E-01
   3  Normalizat    1.1115        .21191        .28608E-03   -.89383    
   4  Prefactor     1.0762        .16244        .22357E-03   -.90232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24832e-10
Minuit parameter uncertainties:
  1  0.532485
  2  0.720924
  3  0.212077
  4  0.16251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/402342': 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) = 6934.79758028
delta logL = 0.0658454811673

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  6.606e-01  5.325e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.264e+00  7.209e-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.076e+00  1.625e-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:  1.112e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.26 +/- 0.72
Photon Flux (Free Index): 4.43e-08 +/- 4.79e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/402342/cmap_HighResolution_582249601_582508801_4FGL_J0818.2+4222_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-05', comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='1.68e-05', photon_flux_error='2.81e-08', dlogl='6.58e-02', energy_flux='1.75e-05', photon_flux2='4.43e-08', job_status='DONE', time_completed='2021-08-29 17:06:34.917937', photon_index_error2='0.72', photon_index2='2.26', ts='2.62', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.58e-08', energy_flux_error2='1.36e-05', EG='1.12', time_epoch_completed='1630281994.92', return_code='0', job_id='402342', GAL2='1.08', EG2='1.11', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='4.79e-08', ts2='2.75', photon_index='2.00' WHERE bin_id='1323' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:06:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 402342: <4FGL_J0818.2+4222_daily_bin1323> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1323> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 16:50:43 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:50:45 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:45 2021
Terminated at Sun Aug 29 17:06:35 2021
Results reported at Sun Aug 29 17:06:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1323 124.557 42.3819 582249601 582508801 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 :                                   932.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

