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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin175
RA = 124.557, Dec = 42.3819
tmin = 284688001, tmax = 284947201
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='395686', job_status='RUN', time_executed='2021-08-29 16:32:17.659582', time_epoch_executed='1630279937.66' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395686

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395686/ft1_4FGL_J0818.2+4222_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395686/ft2_4FGL_J0818.2+4222_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395686/ft1_4FGL_J0818.2+4222_daily_bin175.fits outfile=/scratch/kocevski/395686/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin175.fits ra=124.557 dec=42.3819 rad=12.0 tmin=284688001.0 tmax=284947201.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 4.05
user 3.42
sys 0.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395686/ft2_4FGL_J0818.2+4222_daily_bin175.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/395686/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin175.fits evtable="EVENTS" outfile="/scratch/kocevski/395686/ft1_filtered_4FGL_J0818.2+4222_daily_bin175.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.84
user 0.33
sys 0.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395686/ft1_filtered_4FGL_J0818.2+4222_daily_bin175.fits" evtable="EVENTS" scfile=/scratch/kocevski/395686/ft2_4FGL_J0818.2+4222_daily_bin175.fits sctable="SC_DATA" outfile=/scratch/kocevski/395686/ltcube_284688001_284947201_4FGL_J0818.2+4222_daily_bin175.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/395686/ft2_4FGL_J0818.2+4222_daily_bin175.fits
.....................!
real 14.53
user 13.66
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395686/ft1_filtered_4FGL_J0818.2+4222_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/395686/ft2_4FGL_J0818.2+4222_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/395686/ltcube_284688001_284947201_4FGL_J0818.2+4222_daily_bin175.fits outfile=/scratch/kocevski/395686/expmap_284688001_284947201_4FGL_J0818.2+4222_daily_bin175.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/395686/ltcube_284688001_284947201_4FGL_J0818.2+4222_daily_bin175.fits
.....................!
real 193.92
user 187.62
sys 5.34

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/395686/ft1_filtered_4FGL_J0818.2+4222_daily_bin175.fits scfile=/scratch/kocevski/395686/ft2_4FGL_J0818.2+4222_daily_bin175.fits outfile=/scratch/kocevski/395686/cmap_284688001_284947201_4FGL_J0818.2+4222_daily_bin175.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.87
user 0.36
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395686/ft1_filtered_4FGL_J0818.2+4222_daily_bin175.fits scfile=/scratch/kocevski/395686/ft2_4FGL_J0818.2+4222_daily_bin175.fits outfile=/scratch/kocevski/395686/cmap_HighResolution_284688001_284947201_4FGL_J0818.2+4222_daily_bin175.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 0.87
user 0.37
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0842       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2688       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8390       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.0803       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2621       1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.349       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.554       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3437       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6152       1.0000         .10000E-03   10000.    
    20 'norm      '    6.9294       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3444       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23930       1.0000         .10000E-03   10000.    
    23 'Prefactor '    63.452       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.3071       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.612       1.0000         .10000E-03   10000.    
    27 'norm      '    .89450       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3166       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97351       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1456       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=   7393.451     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3969 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0802        8.6938        .17111E-05    .16379E-04
   2  Prefactor     2.2666        20.768        .12848E-05    .52626E-05
   3  Prefactor     .10000E-03    23.789        .21751E-06** at limit **
   4  Prefactor     .10000E-03    7.2739        .12598E-06** at limit **
   5  Prefactor     8.8367        17.865       -.22284E-06   -.33264E-05
   6  norm          .10000E-03    3.5334        .45162E-07** at limit **
   7  norm          3.0800        2.8167       -.20246E-07   -.19264E-04
   8  Prefactor     .10000E-03    4.8072        .10283E-06** at limit **
   9  Prefactor     .10000E-03    16.332        .51801E-07** at limit **
  10  Prefactor     1.2613        5.1669        .41381E-07   -.74277E-05
  11  norm          .10000E-03    2.5258        .11130E-06** at limit **
  12  norm          .10000E-03    .45812        .30549E-07** at limit **
  13  norm          1.5767        .77980       -.10263E-08   -.23487E-04
  14  Prefactor     31.348        24.432       -.66518E-07    .45170E-05
  15  Prefactor     27.564        20.209       -.21367E-06    .36641E-04
  16  Prefactor     .10000E-03    2.0325       -.17746E-06** at limit **
  17  Prefactor     .10000E-03    46.950       -.20706E-06** at limit **
  18  Prefactor     3.3461        13.277        .44691E-06    .21165E-04
  19  Prefactor     7.6198        10.701       -.18395E-06    .30020E-04
  20  norm          6.9343        7.5027        .35265E-06    .16691E-03
  21  norm          1.3407        9.1705        .14101E-05    .40006E-05
  22  Prefactor     .24270        1.9205       -.46282E-06   -.15735E-03
  23  Prefactor     63.575        105.74        .21363E-05    .18740E-04
  24  Prefactor     9.2929        36.594        .29217E-06    .12444E-04
  25  Prefactor     .10000E-03    1.6696        .25403E-06** at limit **
  26  Prefactor     17.618        17.871       -.11434E-06    .95713E-06
  27  norm          .89452        .58207       -.16278E-07    .63538E-03
  28  Prefactor     2.3203        4.5276        .79906E-06    .17170E-03
  29  Normalizat    .97295        .21408        .27546E-05    .35620E-04
  30  Prefactor     1.1460        .15484       -.16110E-05    .26035E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.08024
  Prefactor  = 2.2666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.83675
  norm       = 0.0001
  norm       = 3.08003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26132
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.57674
  Prefactor  = 31.3481
  Prefactor  = 27.5636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.34612
  Prefactor  = 7.61982
  norm       = 6.93432
  norm       = 1.34073
  Prefactor  = 0.242704
  Prefactor  = 63.5745
  Prefactor  = 9.29289
  Prefactor  = 0.0001
  Prefactor  = 17.6178
  norm       = 0.894517
  Prefactor  = 2.32034
  Normalizat = 0.972954
  Prefactor  = 1.14602
 **********
 **   18 **HESSE 
 **********

 FCN=   7393.451     FROM HESSE     STATUS=OK           594 CALLS     4563 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0802        8.6834        .14301E-02   -1.5419    
   2  Prefactor     2.2666        20.766        .13633E-02   -1.5407    
   3  Prefactor     .10000E-03    23.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8367        17.861        .13482E-03   -1.5113    
   6  norm          .10000E-03    3.5408        .15784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.0800        2.8076        .13227E-03   -1.5357    
   8  Prefactor     .10000E-03    4.8371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2613        4.9965        .34944E-03   -1.5483    
  11  norm          .10000E-03    2.5620        .13332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .45946        .56810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5767        .77076        .47560E-04   -1.5457    
  14  Prefactor     31.348        24.435        .71563E-04   -1.4588    
  15  Prefactor     27.564        19.915        .76320E-04   -1.4657    
  16  Prefactor     .10000E-03    2.0599        .11910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3461        13.240        .22133E-03   -1.5342    
  19  Prefactor     7.6198        10.689        .14532E-03   -1.5156    
  20  norm          6.9343        7.5137        .15241E-03   -1.5181    
  21  norm          1.3407        9.2598        .18888E-02   -1.5476    
  22  Prefactor     .24270        4.0812        .21755E-02   -1.5609    
  23  Prefactor     63.575        106.77        .25189E-03   -1.4112    
  24  Prefactor     9.2929        36.619        .13137E-03   -1.5098    
  25  Prefactor     .10000E-03    1.7287        .21593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.618        17.848        .95437E-04   -1.4868    
  27  norm          .89452        .59697        .44891E-04   -1.5519    
  28  Prefactor     2.3203        4.6993        .21280E-03   -1.5403    
  29  Normalizat    .97295        .22851        .30150E-03   -.93942    
  30  Prefactor     1.1460        .16751        .21858E-03   -.88009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78718e-08
Minuit parameter uncertainties:
  1  8.50219
  2  13.7272
  3  8.68583e-06
  4  6.6983e-06
  5  17.8713
  6  5.33101e-07
  7  2.80774
  8  3.02368e-06
  9  1.00893e-05
  10  4.99817
  11  5.03423e-06
  12  6.20978e-07
  13  0.770767
  14  24.4432
  15  19.9193
  16  4.6735e-06
  17  0.000122749
  18  13.2518
  19  10.6921
  20  7.51467
  21  7.04825
  22  1.99026
  23  107.09
  24  36.7081
  25  6.6267e-06
  26  17.8539
  27  0.596976
  28  4.70006
  29  0.228742
  30  0.167587
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.577e+00  7.708e-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.146e+00  1.676e-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:  9.730e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.66
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.87e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 4.43e-05 +/- 2.17e-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) = 7393.435674
delta logL = 0.0152393324397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7393.43514759
delta logL = 0.0157657418367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5690       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0628       1.0000          .0000       5.0000    
     3 'Normalizat'    .96805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1479       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=   7393.435     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      201 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5691        14.904        .84858E-02    .26070E-03
   2  alpha         2.0627        3.3946        .28402        .13527E-04
   3  Normalizat    .96821        .15046        .68297E-01    .19983E-04
   4  Prefactor     1.1477        .10782        .35999E-01    .32999E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56911
  alpha      = 2.06269
  Normalizat = 0.968211
  Prefactor  = 1.14772
 **********
 **   18 **HESSE 
 **********

 FCN=   7393.435     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5691        .71518        .46819E-04   -1.5457    
   2  alpha         2.0627        .37741        .11277E-01   -.17583    
   3  Normalizat    .96821        .20619        .30212E-03   -.94103    
   4  Prefactor     1.1477        .16083        .21842E-03   -.87956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13014e-13
Minuit parameter uncertainties:
  1  0.715179
  2  0.378904
  3  0.206362
  4  0.160902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395686': 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) = 7393.43514725
delta logL = 0.0157660899195

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.569e+00  7.152e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.063e+00  3.789e-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.148e+00  1.609e-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:  9.682e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.72
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.06 +/- 0.38
Photon Flux (Free Index): 8.39e-08 +/- 4.71e-08
Energy Flux (Free Index): 4.23e-05 +/- 2.23e-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/395686/cmap_HighResolution_284688001_284947201_4FGL_J0818.2+4222_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.87e-08', energy_flux2='4.23e-05', photon_flux_error='3.85e-08', dlogl='1.58e-02', energy_flux='4.43e-05', photon_flux2='8.39e-08', job_status='DONE', time_completed='2021-08-29 16:47:12.245389', photon_index_error2='0.38', photon_index2='2.06', ts='11.66', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='0.97', time_epoch_completed='1630280832.25', return_code='0', job_id='395686', GAL2='1.15', EG2='0.97', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='4.71e-08', ts2='11.72', photon_index='2.00' WHERE bin_id='175' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:47:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 395686: <4FGL_J0818.2+4222_daily_bin175> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin175 124.557 42.3819 284688001 284947201 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 :                                   894.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

