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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin95
RA = 124.557, Dec = 42.3819
tmin = 263952001, tmax = 264211201
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='395572', job_status='RUN', time_executed='2021-08-29 16:34:25.922165', time_epoch_executed='1630280065.92' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395572

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395572/ft1_4FGL_J0818.2+4222_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395572/ft2_4FGL_J0818.2+4222_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395572/ft1_4FGL_J0818.2+4222_daily_bin95.fits outfile=/scratch/kocevski/395572/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin95.fits ra=124.557 dec=42.3819 rad=12.0 tmin=263952001.0 tmax=264211201.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 2.02
user 1.51
sys 0.48

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395572/ft1_filtered_4FGL_J0818.2+4222_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/395572/ft2_4FGL_J0818.2+4222_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/395572/ltcube_263952001_264211201_4FGL_J0818.2+4222_daily_bin95.fits outfile=/scratch/kocevski/395572/expmap_263952001_264211201_4FGL_J0818.2+4222_daily_bin95.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/395572/ltcube_263952001_264211201_4FGL_J0818.2+4222_daily_bin95.fits
.....................!
real 191.23
user 185.21
sys 4.92

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/395572/ft1_filtered_4FGL_J0818.2+4222_daily_bin95.fits scfile=/scratch/kocevski/395572/ft2_4FGL_J0818.2+4222_daily_bin95.fits outfile=/scratch/kocevski/395572/cmap_263952001_264211201_4FGL_J0818.2+4222_daily_bin95.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.88
user 0.36
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395572/ft1_filtered_4FGL_J0818.2+4222_daily_bin95.fits scfile=/scratch/kocevski/395572/ft2_4FGL_J0818.2+4222_daily_bin95.fits outfile=/scratch/kocevski/395572/cmap_HighResolution_263952001_264211201_4FGL_J0818.2+4222_daily_bin95.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.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.8414       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8460       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4342       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14150E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9919       1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.813       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13040       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .84559E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4467       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10495E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0775       1.0000         .10000E-03   10000.    
    23 'Prefactor '    158.67       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.470       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4278       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.7266       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90800       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2862       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=   6535.661     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     4016 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7202        .25846E-07** at limit **
   2  Prefactor     3.8366        15.081        .23711E-05    .90961E-04
   3  Prefactor     .10000E-03    12.839        .29478E-06** at limit **
   4  Prefactor     .10000E-03    5.1776       -.34729E-08** at limit **
   5  Prefactor     .10000E-03    7.1640       -.46754E-06** at limit **
   6  norm          1.8798        27.140        .13717E-05   -.27042E-04
   7  norm          .10000E-03    1.3143        .25287E-08** at limit **
   8  Prefactor     7.4317        7.7259        .13439E-05   -.87722E-04
   9  Prefactor     .10000E-03    25.813       -.10983E-06** at limit **
  10  Prefactor     .10000E-03    6.0141       -.35607E-07** at limit **
  11  norm          .10000E-03    3.9006        .70428E-07** at limit **
  12  norm          .10000E-03    1.2674        .25419E-07** at limit **
  13  norm          2.9934        .85482       -.99494E-08    .71241E-04
  14  Prefactor     72.800        35.600        .48838E-06    .69495E-04
  15  Prefactor     .11040E-03    8.4111       -.92774E-07** at limit **
  16  Prefactor     .88766E-01    1.3893       -.19009E-08    .47180E-04
  17  Prefactor     .10000E-03    9.7174        .38908E-06** at limit **
  18  Prefactor     1.4463        24.292        .19461E-05   -.25529E-04
  19  Prefactor     .10000E-03    5.9133       -.43502E-06** at limit **
  20  norm          .10001E-03    4.7483       -.11362E-05** at limit **
  21  norm          .10000E-03    1.8792        .87794E-08** at limit **
  22  Prefactor     1.0767        2.2850        .44211E-06    .12616E-03
  23  Prefactor     158.68        99.354        .32865E-06    .81613E-04
  24  Prefactor     30.478        35.146       -.16061E-05   -.14219E-03
  25  Prefactor     1.4269        2.0269        .20075E-06   -.95273E-05
  26  Prefactor     .10000E-03    6.6518        .54365E-06** at limit **
  27  norm          3.7277        .87652        .13549E-07   -.16651E-03
  28  Prefactor     .10000E-03    5.5487        .28221E-06** at limit **
  29  Normalizat    .90844        .20092       -.69434E-06    .29946E-04
  30  Prefactor     1.2861        .15807       -.41150E-06    .52758E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.83655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87978
  norm       = 0.0001
  Prefactor  = 7.43167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 2.99338
  Prefactor  = 72.8002
  Prefactor  = 0.0001104
  Prefactor  = 0.0887657
  Prefactor  = 0.0001
  Prefactor  = 1.44627
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 0.0001
  Prefactor  = 1.07672
  Prefactor  = 158.681
  Prefactor  = 30.4782
  Prefactor  = 1.42691
  Prefactor  = 0.0001
  norm       = 3.72765
  Prefactor  = 0.0001
  Normalizat = 0.90844
  Prefactor  = 1.28612
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.661     FROM HESSE     STATUS=OK           594 CALLS     4610 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7239        .13022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8366        15.258        .20591E-03   -1.5316    
   3  Prefactor     .10000E-03    12.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1887        .17965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8798        27.734        .30692E-03   -1.5434    
   7  norm          .10000E-03    1.3476        .18098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4317        7.8814        .73547E-03   -1.5163    
   9  Prefactor     .10000E-03    25.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    33.906        .30859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2931        .17704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9934        .85370        .37970E-04   -1.5362    
  14  Prefactor     72.800        35.689        .47049E-04   -1.3999    
  15  Prefactor     .11040E-03    11.935        .72830E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .88766E-01    9.7881        .17822E-02   -1.5648    
  17  Prefactor     .10000E-03    9.7600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4463        25.043        .35838E-03   -1.5467    
  19  Prefactor     .10000E-03    5.9987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    11.104        .31788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.8814        .10822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0767        2.2406        .17045E-03   -1.5500    
  23  Prefactor     158.68        98.610        .32010E-04   -1.3182    
  24  Prefactor     30.478        36.125        .72585E-04   -1.4603    
  25  Prefactor     1.4269        1.9970        .13315E-03   -1.5469    
  26  Prefactor     .10000E-03    6.7288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.7277        .87094        .35249E-04   -1.5322    
  28  Prefactor     .10000E-03    5.6751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .90844        .23095        .31583E-03   -.96164    
  30  Prefactor     1.2861        .18363        .21955E-03   -.83721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03633e-09
Minuit parameter uncertainties:
  1  1.77261e-06
  2  15.2739
  3  3.67135e-05
  4  9.47452e-07
  5  4.1713e-05
  6  14.4484
  7  7.44882e-07
  8  7.88251
  9  2.68424e-05
  10  2.37624e-06
  11  0.000286862
  12  1.95779e-06
  13  0.8537
  14  35.6994
  15  0.022287
  16  1.86351
  17  4.56339e-05
  18  12.042
  19  3.02674e-05
  20  0.000582309
  21  1.20443e-06
  22  2.24081
  23  98.7123
  24  36.1512
  25  1.99707
  26  5.48219e-05
  27  0.870941
  28  1.62951e-05
  29  0.2312
  30  0.183721
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.993e+00  8.537e-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.837e-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.084e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.46
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.49e-07 +/- 4.26e-08
Energy Flux (Fixed Index): 8.42e-05 +/- 2.40e-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) = 6535.01848663
delta logL = 0.642296629729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6535.01483636
delta logL = 0.645946896456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0197       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7013       1.0000          .0000       5.0000    
     3 'Normalizat'    .94352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2718       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=   6535.015     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0197        .89976        .58386E-02    .36954E-02
   2  alpha         1.7013        .24468        .18504        .29574E-04
   3  Normalizat    .94350        .19244        .70225E-01    .30213E-04
   4  Prefactor     1.2718        .15564        .49917E-01   -.25261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.01965
  alpha      = 1.7013
  Normalizat = 0.943504
  Prefactor  = 1.27183
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.015     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0197        .89203        .39597E-04   -1.5360    
   2  alpha         1.7013        .25175        .78641E-02   -.32518    
   3  Normalizat    .94350        .22325        .31069E-03   -.94948    
   4  Prefactor     1.2718        .18092        .22067E-03   -.84149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28548e-10
Minuit parameter uncertainties:
  1  0.892035
  2  0.252226
  3  0.223467
  4  0.181006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395572': 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) = 6535.01483636
delta logL = 0.645946900328

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  3.020e+00  8.920e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.701e+00  2.522e-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.272e+00  1.810e-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.435e-01  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.76
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.70 +/- 0.25
Photon Flux (Free Index): 1.17e-07 +/- 4.32e-08
Energy Flux (Free Index): 1.20e-04 +/- 5.48e-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/395572/cmap_HighResolution_263952001_264211201_4FGL_J0818.2+4222_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-07', energy_flux2='1.20e-04', photon_flux_error='4.26e-08', dlogl='6.46e-01', energy_flux='8.42e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-08-29 16:48:12.422871', photon_index_error2='0.25', photon_index2='1.70', ts='45.46', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='5.48e-05', EG='0.91', time_epoch_completed='1630280892.42', return_code='0', job_id='395572', GAL2='1.27', EG2='0.94', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='4.32e-08', ts2='46.76', photon_index='2.00' WHERE bin_id='95' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:48:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 395572: <4FGL_J0818.2+4222_daily_bin95> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin95 124.557 42.3819 263952001 264211201 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 :                                   829.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

