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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin702
RA = 124.557, Dec = 42.3819
tmin = 421286401, tmax = 421545601
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='398562', job_status='RUN', time_executed='2021-08-29 16:42:00.999501', time_epoch_executed='1630280521.0' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/398562

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/398562/ft1_4FGL_J0818.2+4222_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/398562/ft2_4FGL_J0818.2+4222_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/398562/ft1_4FGL_J0818.2+4222_daily_bin702.fits outfile=/scratch/kocevski/398562/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin702.fits ra=124.557 dec=42.3819 rad=12.0 tmin=421286401.0 tmax=421545601.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.12
user 3.37
sys 1.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/398562/ft2_4FGL_J0818.2+4222_daily_bin702.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/398562/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin702.fits evtable="EVENTS" outfile="/scratch/kocevski/398562/ft1_filtered_4FGL_J0818.2+4222_daily_bin702.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.87
user 0.30
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/398562/ft1_filtered_4FGL_J0818.2+4222_daily_bin702.fits" evtable="EVENTS" scfile=/scratch/kocevski/398562/ft2_4FGL_J0818.2+4222_daily_bin702.fits sctable="SC_DATA" outfile=/scratch/kocevski/398562/ltcube_421286401_421545601_4FGL_J0818.2+4222_daily_bin702.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/398562/ft2_4FGL_J0818.2+4222_daily_bin702.fits
.....................!
real 14.56
user 12.03
sys 1.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/398562/ft1_filtered_4FGL_J0818.2+4222_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/398562/ft2_4FGL_J0818.2+4222_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/398562/ltcube_421286401_421545601_4FGL_J0818.2+4222_daily_bin702.fits outfile=/scratch/kocevski/398562/expmap_421286401_421545601_4FGL_J0818.2+4222_daily_bin702.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/398562/ltcube_421286401_421545601_4FGL_J0818.2+4222_daily_bin702.fits
.....................!
real 194.49
user 185.56
sys 7.05

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/398562/ft1_filtered_4FGL_J0818.2+4222_daily_bin702.fits scfile=/scratch/kocevski/398562/ft2_4FGL_J0818.2+4222_daily_bin702.fits outfile=/scratch/kocevski/398562/cmap_421286401_421545601_4FGL_J0818.2+4222_daily_bin702.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.84
user 0.35
sys 1.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/398562/ft1_filtered_4FGL_J0818.2+4222_daily_bin702.fits scfile=/scratch/kocevski/398562/ft2_4FGL_J0818.2+4222_daily_bin702.fits outfile=/scratch/kocevski/398562/cmap_HighResolution_421286401_421545601_4FGL_J0818.2+4222_daily_bin702.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.84
user 0.37
sys 1.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5981       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1345       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4276       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .48057       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5138       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.0172       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8737       1.0000         .10000E-03   10000.    
    13 'norm      '    .37799       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2088       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.403       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .94956       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.7170       1.0000         .10000E-03   10000.    
    21 'norm      '    14.010       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0339       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    62.106       1.0000         .10000E-03   10000.    
    27 'norm      '    .14610       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0096       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0213       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=   8138.484     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3409 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5986        4.9856        .12139E-05   -.22294E-03
   2  Prefactor     4.1342        5.2304       -.28159E-07   -.15260E-05
   3  Prefactor     .10000E-03    49.587        .19202E-05** at limit **
   4  Prefactor     4.4262        8.3578        .69651E-06   -.11959E-03
   5  Prefactor     .10000E-03    3.1662       -.12146E-07** at limit **
   6  norm          .10000E-03    6.6546       -.16136E-06** at limit **
   7  norm          .47944        2.0457       -.59735E-07   -.32171E-03
   8  Prefactor     1.5137        3.2403       -.23861E-07   -.61320E-05
   9  Prefactor     .10000E-03    8.6480        .73686E-07** at limit **
  10  Prefactor     .10000E-03    .80685       -.25775E-07** at limit **
  11  norm          7.0169        4.5924       -.14171E-08   -.39803E-04
  12  norm          3.8736        1.9325        .58486E-08   -.63294E-04
  13  norm          .37799        .31896        .89851E-09   -.29905E-03
  14  Prefactor     .10000E-03    11.406       -.28842E-06** at limit **
  15  Prefactor     7.2097        8.3414        .72623E-07   -.43067E-04
  16  Prefactor     1.8733        2.6128       -.42720E-07   -.68930E-04
  17  Prefactor     20.414        21.635        .54084E-06   -.97675E-04
  18  Prefactor     .99411        8.6906       -.39967E-06   -.20166E-03
  19  Prefactor     .10000E-03    2.5287       -.19793E-07** at limit **
  20  norm          6.7175        5.1480       -.45758E-07    .69021E-05
  21  norm          14.010        6.2230       -.45706E-07    .22831E-04
  22  Prefactor     4.0339        2.3405       -.62942E-07   -.51401E-05
  23  Prefactor     .10000E-03    37.941       -.13117E-05** at limit **
  24  Prefactor     .10000E-03    17.321        .76120E-06** at limit **
  25  Prefactor     .10000E-03    2.9382        .93969E-06** at limit **
  26  Prefactor     62.093        28.394       -.12035E-06   -.78879E-04
  27  norm          .14585        .25590        .23710E-06    .24467E-02
  28  Prefactor     .10000E-03    1.2270       -.33713E-06** at limit **
  29  Normalizat    1.0100        .16855       -.48960E-07   -.14430E-03
  30  Prefactor     1.0211        .12987        .40217E-06   -.24986E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.59858
  Prefactor  = 4.13417
  Prefactor  = 0.0001
  Prefactor  = 4.42625
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.479436
  Prefactor  = 1.51374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.0169
  norm       = 3.8736
  norm       = 0.377985
  Prefactor  = 0.0001
  Prefactor  = 7.20969
  Prefactor  = 1.87325
  Prefactor  = 20.414
  Prefactor  = 0.994112
  Prefactor  = 0.0001
  norm       = 6.71745
  norm       = 14.0096
  Prefactor  = 4.03391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.0932
  norm       = 0.145855
  Prefactor  = 0.0001
  Normalizat = 1.00998
  Prefactor  = 1.02115
 **********
 **   18 **HESSE 
 **********

 FCN=   8138.484     FROM HESSE     STATUS=OK           600 CALLS     4009 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5986        5.0663        .16772E-02   -1.5455    
   2  Prefactor     4.1342        5.2260        .19824E-03   -1.5301    
   3  Prefactor     .10000E-03    49.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4262        8.1765        .19138E-03   -1.5287    
   5  Prefactor     .10000E-03    3.1682        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .47944        3.8597        .23111E-02   -1.5569    
   8  Prefactor     1.5137        3.1946        .23117E-03   -1.5462    
   9  Prefactor     .10000E-03    8.6519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .80953        .79124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0169        4.5944        .14561E-03   -1.5178    
  12  norm          3.8736        1.9327        .82522E-04   -1.5314    
  13  norm          .37799        .32785        .44940E-03   -1.5585    
  14  Prefactor     .10000E-03    11.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2097        8.2914        .14940E-03   -1.5171    
  16  Prefactor     1.8733        2.5833        .15877E-03   -1.5434    
  17  Prefactor     20.414        21.388        .88672E-04   -1.4804    
  18  Prefactor     .99411        24.639        .46077E-02   -1.5509    
  19  Prefactor     .10000E-03    2.5337        .14009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.7175        5.1428        .15482E-03   -1.5190    
  21  norm          14.010        6.2220        .10701E-03   -1.4959    
  22  Prefactor     4.0339        2.3381        .10047E-03   -1.5306    
  23  Prefactor     .10000E-03    38.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.8735        .29190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     62.093        28.530        .50917E-04   -1.4130    
  27  norm          .14585        .23527        .67134E-03   -1.5632    
  28  Prefactor     .10000E-03    2.0684        .19212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0100        .18937        .27278E-03   -.92697    
  30  Prefactor     1.0211        .14634        .21710E-03   -.92028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77959e-08
Minuit parameter uncertainties:
  1  5.06762
  2  5.22655
  3  0.000242464
  4  8.17855
  5  1.30339e-06
  6  3.602e-07
  7  2.7206
  8  3.19499
  9  7.32512e-08
  10  3.12721e-07
  11  4.59465
  12  1.93274
  13  0.327851
  14  3.42312e-06
  15  8.29268
  16  2.58342
  17  21.3962
  18  9.90227
  19  1.78371e-07
  20  5.14319
  21  6.22225
  22  2.33815
  23  1.59131e-05
  24  3.51508e-05
  25  4.99851e-05
  26  28.5363
  27  0.235267
  28  3.26453e-05
  29  0.189496
  30  0.146396
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  3.780e-01  3.279e-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.021e+00  1.464e-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.010e+00  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.29
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.89e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 9.22e-06

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) = 8138.32359735
delta logL = 0.160788555457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8138.29226355
delta logL = 0.192122358934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28453       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4982       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0205       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=   8138.292     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28451        .25406        .99248E-02   -.44521E-03
   2  alpha         1.4980        .50737        .46389       -.40944E-04
   3  Normalizat    1.0168        .15707        .43859E-01    .17410E-04
   4  Prefactor     1.0205        .12619        .42089E-01    .67058E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.284512
  alpha      = 1.49803
  Normalizat = 1.01683
  Prefactor  = 1.02052
 **********
 **   18 **HESSE 
 **********

 FCN=   8138.292     FROM HESSE     STATUS=OK            35 CALLS      238 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28451        .34483        .41083E-03   -1.5601    
   2  alpha         1.4980        .76336        .19252E-01   -.41238    
   3  Normalizat    1.0168        .17683        .27197E-03   -.92469    
   4  Prefactor     1.0205        .14225        .21721E-03   -.92049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13004e-09
Minuit parameter uncertainties:
  1  0.344829
  2  0.778244
  3  0.176936
  4  0.142299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/398562': 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) = 8138.29226353
delta logL = 0.192122381562

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.845e-01  3.448e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.498e+00  7.782e-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.021e+00  1.423e-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.017e+00  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.68
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.50 +/- 0.78
Photon Flux (Free Index): 9.84e-09 +/- 1.41e-08
Energy Flux (Free Index): 1.66e-05 +/- 2.21e-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/398562/cmap_HighResolution_421286401_421545601_4FGL_J0818.2+4222_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.89e-08', energy_flux2='1.66e-05', photon_flux_error='1.64e-08', dlogl='1.92e-01', energy_flux='1.06e-05', photon_flux2='9.84e-09', job_status='DONE', time_completed='2021-08-29 16:57:40.029192', photon_index_error2='0.78', photon_index2='1.50', ts='5.29', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='1.01', time_epoch_completed='1630281460.03', return_code='0', job_id='398562', GAL2='1.02', EG2='1.02', return_code2='0', energy_flux_error='9.22e-06', photon_flux_error2='1.41e-08', ts2='5.68', photon_index='2.00' WHERE bin_id='702' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:57:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 398562: <4FGL_J0818.2+4222_daily_bin702> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin702> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 16:41:03 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:41:05 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:41:05 2021
Terminated at Sun Aug 29 16:57:41 2021
Results reported at Sun Aug 29 16:57:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin702 124.557 42.3819 421286401 421545601 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 :                                   942.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            998 sec.

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

