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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin60
RA = 124.557, Dec = 42.3819
tmin = 254880001, tmax = 255139201
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='395521', job_status='RUN', time_executed='2021-08-29 16:34:07.084048', time_epoch_executed='1630280047.08' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395521

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395521/ft1_4FGL_J0818.2+4222_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395521/ft2_4FGL_J0818.2+4222_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395521/ft1_4FGL_J0818.2+4222_daily_bin60.fits outfile=/scratch/kocevski/395521/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin60.fits ra=124.557 dec=42.3819 rad=12.0 tmin=254880001.0 tmax=255139201.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 3.32
user 1.23
sys 2.04

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395521/ft1_filtered_4FGL_J0818.2+4222_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/395521/ft2_4FGL_J0818.2+4222_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/395521/ltcube_254880001_255139201_4FGL_J0818.2+4222_daily_bin60.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/395521/ft2_4FGL_J0818.2+4222_daily_bin60.fits
.....................!
real 15.25
user 12.79
sys 2.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395521/ft1_filtered_4FGL_J0818.2+4222_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/395521/ft2_4FGL_J0818.2+4222_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/395521/ltcube_254880001_255139201_4FGL_J0818.2+4222_daily_bin60.fits outfile=/scratch/kocevski/395521/expmap_254880001_255139201_4FGL_J0818.2+4222_daily_bin60.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/395521/ltcube_254880001_255139201_4FGL_J0818.2+4222_daily_bin60.fits
.....................!
real 195.62
user 187.63
sys 6.88

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/395521/ft1_filtered_4FGL_J0818.2+4222_daily_bin60.fits scfile=/scratch/kocevski/395521/ft2_4FGL_J0818.2+4222_daily_bin60.fits outfile=/scratch/kocevski/395521/cmap_254880001_255139201_4FGL_J0818.2+4222_daily_bin60.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 2.35
user 0.35
sys 1.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395521/ft1_filtered_4FGL_J0818.2+4222_daily_bin60.fits scfile=/scratch/kocevski/395521/ft2_4FGL_J0818.2+4222_daily_bin60.fits outfile=/scratch/kocevski/395521/cmap_HighResolution_254880001_255139201_4FGL_J0818.2+4222_daily_bin60.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 2.41
user 0.37
sys 1.97

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13077E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0932       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.509       1.0000         .10000E-03   10000.    
     6 'norm      '    .34308E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .19763       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.219       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .95788       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4496       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3512       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4302       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.382       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22671E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.9059       1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.492       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3649       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.7741       1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.226       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .66268       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2861       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=   5815.749     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4055 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.888        .34556E-06** at limit **
   2  Prefactor     .10001E-03    39.213       -.15853E-04** at limit **
   3  Prefactor     5.0880        23.694       -.42712E-06   -.37941E-04
   4  Prefactor     .10000E-03    19.525        .73064E-06** at limit **
   5  Prefactor     21.508        23.501       -.18821E-06   -.83775E-04
   6  norm          .10001E-03    8.3410       -.74890E-06** at limit **
   7  norm          .20605        1.7089       -.27568E-06    .35253E-06
   8  Prefactor     .10000E-03    7.0008       -.55894E-06** at limit **
   9  Prefactor     18.130        48.194        .17068E-06   -.22459E-04
  10  Prefactor     .10000E-03    3.0320        .25155E-06** at limit **
  11  norm          .10000E-03    4.6469       -.13377E-07** at limit **
  12  norm          .95781        1.3430        .56575E-06    .22640E-02
  13  norm          1.4497        .86251        .15330E-07   -.35106E-03
  14  Prefactor     .10000E-03    9.5341        .83598E-07** at limit **
  15  Prefactor     9.3512        13.811       -.17329E-05   -.74162E-04
  16  Prefactor     .10000E-03    1.4643        .64280E-06** at limit **
  17  Prefactor     6.4222        46.762        .12588E-05   -.31515E-05
  18  Prefactor     17.384        15.268        .23588E-07    .25749E-04
  19  Prefactor     .10000E-03    23.303       -.36185E-06** at limit **
  20  norm          8.9061        7.9378        .30085E-06    .28412E-03
  21  norm          .10000E-03    2.9649       -.22193E-06** at limit **
  22  Prefactor     .10000E-03    1.7438       -.50729E-06** at limit **
  23  Prefactor     36.678        91.949       -.25298E-05   -.61624E-04
  24  Prefactor     .10000E-03    16.533       -.26065E-08** at limit **
  25  Prefactor     2.3644        4.0435       -.16304E-06    .63844E-04
  26  Prefactor     .10000E-03    10.862        .19783E-06** at limit **
  27  norm          2.7739        1.3274       -.41814E-07    .12330E-02
  28  Prefactor     13.229        9.5677        .35078E-06    .24595E-03
  29  Normalizat    .66247        .21916       -.16949E-05   -.15307E-03
  30  Prefactor     1.2864        .16708        .48192E-06    .31837E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 5.08797
  Prefactor  = 0.0001
  Prefactor  = 21.5084
  norm       = 0.000100005
  norm       = 0.206048
  Prefactor  = 0.0001
  Prefactor  = 18.1297
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.957814
  norm       = 1.44969
  Prefactor  = 0.0001
  Prefactor  = 9.35124
  Prefactor  = 0.0001
  Prefactor  = 6.4222
  Prefactor  = 17.3836
  Prefactor  = 0.0001
  norm       = 8.90611
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.6779
  Prefactor  = 0.0001
  Prefactor  = 2.36441
  Prefactor  = 0.0001
  norm       = 2.77389
  Prefactor  = 13.2286
  Normalizat = 0.662466
  Prefactor  = 1.28635
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.749     FROM HESSE     STATUS=OK           594 CALLS     4649 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    39.142        .36779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0880        23.668        .17816E-03   -1.5257    
   4  Prefactor     .10000E-03    19.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.508        23.462        .86365E-04   -1.4780    
   6  norm          .10001E-03    62.714        .42000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .20605        7.9315        .19086E-02   -1.5617    
   8  Prefactor     .10000E-03    7.0052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.130        48.034        .93833E-04   -1.4856    
  10  Prefactor     .10000E-03    3.0603        .12967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7283        .16034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .95781        1.2002        .10642E-02   -1.5512    
  13  norm          1.4497        .85580        .49530E-04   -1.5467    
  14  Prefactor     .10000E-03    9.5452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.3512        13.808        .65528E-03   -1.5096    
  16  Prefactor     .10000E-03    1.5338        .18174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4222        45.966        .15828E-03   -1.5201    
  18  Prefactor     17.384        15.166        .96067E-04   -1.4874    
  19  Prefactor     .10000E-03    24.275        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.9061        7.9403        .13431E-03   -1.5111    
  21  norm          .10000E-03    2.9731        .12813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7481        .97655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.678        91.976        .66343E-04   -1.4496    
  24  Prefactor     .10000E-03    16.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.3644        4.0025        .18363E-03   -1.5400    
  26  Prefactor     .10000E-03    10.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.7739        1.4219        .42747E-04   -1.5375    
  28  Prefactor     13.229        10.304        .11014E-03   -1.4980    
  29  Normalizat    .66247        .23887        .33845E-03   -1.0539    
  30  Prefactor     1.2864        .18419        .20460E-03   -.83714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74932e-09
Minuit parameter uncertainties:
  1  0.000123026
  2  0.00147297
  3  21.9615
  4  0.00012781
  5  23.4719
  6  0.00115808
  7  2.55652
  8  4.63383e-05
  9  48.1368
  10  2.76656e-05
  11  4.3332e-05
  12  1.2002
  13  0.855803
  14  2.39698e-07
  15  13.8131
  16  4.27355e-05
  17  34.4
  18  15.1695
  19  2.67694e-05
  20  7.94128
  21  1.06609e-05
  22  1.96927e-05
  23  92.3347
  24  1.56807e-05
  25  4.00292
  26  1.59102e-05
  27  1.42187
  28  10.3053
  29  0.239241
  30  0.184284
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.450e+00  8.558e-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.286e+00  1.843e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  6.625e-01  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.98
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.24e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 4.08e-05 +/- 2.41e-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) = 5815.74835954
delta logL = 0.00056515191045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5815.74832849
delta logL = 0.000596210352342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4518       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0130       1.0000          .0000       5.0000    
     3 'Normalizat'    .66116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2868       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=   5815.748     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      224 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4519        18.339        .89376E-02    .33305E-03
   2  alpha         2.0130        3.1684        .33087        .29925E-05
   3  Normalizat    .66117        .13501        .76517E-01    .27916E-04
   4  Prefactor     1.2868        .88599E-01    .32844E-01   -.22386E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45188
  alpha      = 2.01305
  Normalizat = 0.661174
  Prefactor  = 1.28676
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.748     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4519        .81266        .49271E-04   -1.5467    
   2  alpha         2.0130        .49234        .12172E-01   -.19604    
   3  Normalizat    .66117        .21920        .33876E-03   -1.0545    
   4  Prefactor     1.2868        .17823        .20456E-03   -.83702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86678e-12
Minuit parameter uncertainties:
  1  0.812666
  2  0.495704
  3  0.219489
  4  0.178316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395521': 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) = 5815.74832847
delta logL = 0.000596227378992

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.452e+00  8.127e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.013e+00  4.957e-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.287e+00  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  6.612e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.98
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.01 +/- 0.50
Photon Flux (Free Index): 7.37e-08 +/- 5.63e-08
Energy Flux (Free Index): 4.03e-05 +/- 2.61e-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/395521/cmap_HighResolution_254880001_255139201_4FGL_J0818.2+4222_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.24e-08', energy_flux2='4.03e-05', photon_flux_error='4.27e-08', dlogl='5.96e-04', energy_flux='4.08e-05', photon_flux2='7.37e-08', job_status='DONE', time_completed='2021-08-29 16:47:18.240795', photon_index_error2='0.50', photon_index2='2.01', ts='9.98', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='0.66', time_epoch_completed='1630280838.24', return_code='0', job_id='395521', GAL2='1.29', EG2='0.66', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='5.63e-08', ts2='9.98', photon_index='2.00' WHERE bin_id='60' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:47:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 395521: <4FGL_J0818.2+4222_daily_bin60> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin60> 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) <bullet0212>, 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:47:19 2021
Results reported at Sun Aug 29 16:47:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin60 124.557 42.3819 254880001 255139201 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 :                                   818.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

