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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1588
RA = 124.557, Dec = 42.3819
tmin = 650937601, tmax = 651196801
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='405137', job_status='RUN', time_executed='2021-08-29 16:56:39.680124', time_epoch_executed='1630281399.68' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405137/ft1_4FGL_J0818.2+4222_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405137/ft2_4FGL_J0818.2+4222_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405137/ft1_4FGL_J0818.2+4222_daily_bin1588.fits outfile=/scratch/kocevski/405137/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1588.fits ra=124.557 dec=42.3819 rad=12.0 tmin=650937601.0 tmax=651196801.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.36
user 3.37
sys 0.97

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405137/ft1_filtered_4FGL_J0818.2+4222_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/405137/ft2_4FGL_J0818.2+4222_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/405137/ltcube_650937601_651196801_4FGL_J0818.2+4222_daily_bin1588.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/405137/ft2_4FGL_J0818.2+4222_daily_bin1588.fits
.....................!
real 12.99
user 11.78
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405137/ft1_filtered_4FGL_J0818.2+4222_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/405137/ft2_4FGL_J0818.2+4222_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/405137/ltcube_650937601_651196801_4FGL_J0818.2+4222_daily_bin1588.fits outfile=/scratch/kocevski/405137/expmap_650937601_651196801_4FGL_J0818.2+4222_daily_bin1588.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/405137/ltcube_650937601_651196801_4FGL_J0818.2+4222_daily_bin1588.fits
.....................!
real 191.76
user 185.95
sys 5.47

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/405137/ft1_filtered_4FGL_J0818.2+4222_daily_bin1588.fits scfile=/scratch/kocevski/405137/ft2_4FGL_J0818.2+4222_daily_bin1588.fits outfile=/scratch/kocevski/405137/cmap_650937601_651196801_4FGL_J0818.2+4222_daily_bin1588.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.27
user 0.37
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405137/ft1_filtered_4FGL_J0818.2+4222_daily_bin1588.fits scfile=/scratch/kocevski/405137/ft2_4FGL_J0818.2+4222_daily_bin1588.fits outfile=/scratch/kocevski/405137/cmap_HighResolution_650937601_651196801_4FGL_J0818.2+4222_daily_bin1588.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.28
user 0.37
sys 0.89

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2225       1.0000         .10000E-03   10000.    
     6 'norm      '    .10668E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5598       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3253       1.0000         .10000E-03   10000.    
    13 'norm      '    .90822       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29502E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.534       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4104       1.0000         .10000E-03   10000.    
    21 'norm      '    3.2363       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .73007       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .53856E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.7884       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .71791       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0094       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1081       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=   7420.540     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     3425 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2605        .34588E-07** at limit **
   2  Prefactor     .10000E-03    3.3628        .15061E-07** at limit **
   3  Prefactor     .10000E-03    69.737       -.61656E-06** at limit **
   4  Prefactor     .10000E-03    48.553        .21790E-06** at limit **
   5  Prefactor     8.2220        12.337        .86784E-07   -.13183E-04
   6  norm          .10000E-03    24.983       -.10453E-05** at limit **
   7  norm          3.1518        2.5122        .44874E-06   -.95411E-04
   8  Prefactor     5.5598        8.8545        .34611E-06   -.24667E-04
   9  Prefactor     .10000E-03    66.416       -.16374E-06** at limit **
  10  Prefactor     .10000E-03    2.5035        .33821E-07** at limit **
  11  norm          .10000E-03    4.6802       -.16477E-06** at limit **
  12  norm          1.3238        2.1096        .44147E-06    .43126E-05
  13  norm          .90824        .52116        .28783E-07   -.16812E-03
  14  Prefactor     .10000E-03    51.072        .59241E-06** at limit **
  15  Prefactor     .10000E-03    18.275        .97562E-06** at limit **
  16  Prefactor     .26577E-01    1.2843        .99917E-07   -.12943E-04
  17  Prefactor     35.530        25.975        .11566E-06   -.47291E-04
  18  Prefactor     .10000E-03    3.0517        .29947E-08** at limit **
  19  Prefactor     .10000E-03    14.456       -.46676E-06** at limit **
  20  norm          4.4103        6.2006        .48092E-07   -.13318E-04
  21  norm          3.2341        5.3300        .35823E-06    .10962E-03
  22  Prefactor     .73014        2.5073        .11514E-05   -.66720E-04
  23  Prefactor     .10000E-03    52.268        .39289E-06** at limit **
  24  Prefactor     .10000E-03    12.370        .13541E-06** at limit **
  25  Prefactor     .38961E-02    1.2833       -.34795E-06    .76777E-03
  26  Prefactor     .10000E-03    6.1776        .43605E-08** at limit **
  27  norm          1.7886        .84768       -.11518E-06   -.42785E-03
  28  Prefactor     .71246        6.0336        .27023E-06   -.95679E-04
  29  Normalizat    1.0092        .19044       -.12125E-05   -.79441E-04
  30  Prefactor     1.1082        .14168       -.39683E-07   -.12954E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.222
  norm       = 0.000100001
  norm       = 3.15182
  Prefactor  = 5.55982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.32381
  norm       = 0.908241
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0265773
  Prefactor  = 35.5304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.41034
  norm       = 3.23406
  Prefactor  = 0.730139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00389606
  Prefactor  = 0.0001
  norm       = 1.78862
  Prefactor  = 0.712464
  Normalizat = 1.00923
  Prefactor  = 1.10822
 **********
 **   18 **HESSE 
 **********

 FCN=   7420.540     FROM HESSE     STATUS=OK           600 CALLS     4025 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3672        .15428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    70.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    50.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2220        12.316        .13981E-03   -1.5134    
   6  norm          .10000E-03    26.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1518        2.5038        .58702E-03   -1.5353    
   8  Prefactor     5.5598        8.8253        .17039E-03   -1.5236    
   9  Prefactor     .10000E-03    66.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5472        .13299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7532        .18113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3238        2.0948        .15099E-03   -1.5478    
  13  norm          .90824        .51776        .45080E-04   -1.5517    
  14  Prefactor     .10000E-03    51.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .26577E-01    3.5115        .31989E-01   -1.5675    
  17  Prefactor     35.530        25.985        .67229E-04   -1.4515    
  18  Prefactor     .10000E-03    3.0552        .14695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4103        6.1389        .19176E-03   -1.5288    
  21  norm          3.2341        5.3065        .22516E-03   -1.5348    
  22  Prefactor     .73014        2.4597        .23095E-03   -1.5537    
  23  Prefactor     .10000E-03    52.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .38961E-02    1.7364        .35264E-01   -1.5696    
  26  Prefactor     .10000E-03    6.1808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.7886        .89987        .40455E-04   -1.5440    
  28  Prefactor     .71246        13.163        .29375E-02   -1.5539    
  29  Normalizat    1.0092        .21533        .28733E-03   -.92722    
  30  Prefactor     1.1082        .16117        .21554E-03   -.89204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25805e-08
Minuit parameter uncertainties:
  1  7.52117e-06
  2  1.85169e-06
  3  0.00050148
  4  0.000155466
  5  12.3193
  6  0.000289972
  7  2.50384
  8  8.82737
  9  9.20393e-05
  10  3.17153e-06
  11  1.80727e-05
  12  2.09495
  13  0.517763
  14  0.00034096
  15  0.000351242
  16  0.609874
  17  25.9929
  18  1.38115e-06
  19  0.000166797
  20  6.13973
  21  5.3073
  22  2.46
  23  0.000279821
  24  4.87917e-05
  25  0.162379
  26  3.45264e-06
  27  0.899878
  28  6.126
  29  0.215514
  30  0.161241
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.082e-01  5.178e-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.108e+00  1.612e-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.009e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.87
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.53e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.46e-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) = 7420.52355495
delta logL = 0.0168584230105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7420.52336369
delta logL = 0.0170496831215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90453       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0956       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1102       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=   7420.523     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      197 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90480        9.6624        .99406E-02    .11034E-04
   2  alpha         2.0965        3.3364        .41074        .62323E-05
   3  Normalizat    1.0042        .86239E-01    .46220E-01    .73344E-05
   4  Prefactor     1.1102        .54355E-01    .37213E-01   -.11253E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.904796
  alpha      = 2.09646
  Normalizat = 1.00416
  Prefactor  = 1.11018
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90480        .50736        .44099E-04   -1.5518    
   2  alpha         2.0965        .54498        .14136E-01   -.16212    
   3  Normalizat    1.0042        .20278        .28794E-03   -.92891    
   4  Prefactor     1.1102        .15814        .21536E-03   -.89142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15794e-12
Minuit parameter uncertainties:
  1  0.507358
  2  0.549515
  3  0.202938
  4  0.158203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405137': 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) = 7420.52336231
delta logL = 0.0170510648013

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.048e-01  5.074e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.096e+00  5.495e-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.110e+00  1.582e-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.004e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.10 +/- 0.55
Photon Flux (Free Index): 5.02e-08 +/- 3.78e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.55e-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/405137/cmap_HighResolution_650937601_651196801_4FGL_J0818.2+4222_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.53e-08', energy_flux2='2.40e-05', photon_flux_error='2.58e-08', dlogl='1.71e-02', energy_flux='2.55e-05', photon_flux2='5.02e-08', job_status='DONE', time_completed='2021-08-29 17:10:31.936934', photon_index_error2='0.55', photon_index2='2.10', ts='8.87', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='1.01', time_epoch_completed='1630282231.94', return_code='0', job_id='405137', GAL2='1.11', EG2='1.00', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='3.78e-08', ts2='8.90', photon_index='2.00' WHERE bin_id='1588' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:10:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 405137: <4FGL_J0818.2+4222_daily_bin1588> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1588> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 16:56:07 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:56:08 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:56:08 2021
Terminated at Sun Aug 29 17:10:32 2021
Results reported at Sun Aug 29 17:10:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1588 124.557 42.3819 650937601 651196801 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 :                                   840.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

