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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1622
RA = 124.557, Dec = 42.3819
tmin = 659750401, tmax = 660009601
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='259237', job_status='RUN', time_executed='2021-12-07 18:56:20.924455', time_epoch_executed='1638932180.92' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259237

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259237/ft1_4FGL_J0818.2+4222_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259237/ft2_4FGL_J0818.2+4222_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259237/ft1_4FGL_J0818.2+4222_daily_bin1622.fits outfile=/scratch/kocevski/259237/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1622.fits ra=124.557 dec=42.3819 rad=12.0 tmin=659750401.0 tmax=660009601.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 1.95
user 1.77
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259237/ft2_4FGL_J0818.2+4222_daily_bin1622.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/259237/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/259237/ft1_filtered_4FGL_J0818.2+4222_daily_bin1622.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.43
user 0.29
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259237/ft1_filtered_4FGL_J0818.2+4222_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/259237/ft2_4FGL_J0818.2+4222_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/259237/ltcube_659750401_660009601_4FGL_J0818.2+4222_daily_bin1622.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/259237/ft2_4FGL_J0818.2+4222_daily_bin1622.fits
.....................!
real 11.15
user 10.82
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259237/ft1_filtered_4FGL_J0818.2+4222_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/259237/ft2_4FGL_J0818.2+4222_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/259237/ltcube_659750401_660009601_4FGL_J0818.2+4222_daily_bin1622.fits outfile=/scratch/kocevski/259237/expmap_659750401_660009601_4FGL_J0818.2+4222_daily_bin1622.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/259237/ltcube_659750401_660009601_4FGL_J0818.2+4222_daily_bin1622.fits
.....................!
real 158.55
user 154.14
sys 4.12

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/259237/ft1_filtered_4FGL_J0818.2+4222_daily_bin1622.fits scfile=/scratch/kocevski/259237/ft2_4FGL_J0818.2+4222_daily_bin1622.fits outfile=/scratch/kocevski/259237/cmap_659750401_660009601_4FGL_J0818.2+4222_daily_bin1622.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.46
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259237/ft1_filtered_4FGL_J0818.2+4222_daily_bin1622.fits scfile=/scratch/kocevski/259237/ft2_4FGL_J0818.2+4222_daily_bin1622.fits outfile=/scratch/kocevski/259237/cmap_HighResolution_659750401_660009601_4FGL_J0818.2+4222_daily_bin1622.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.47
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.568       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.307       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.051       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0685       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.200       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7388       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.335       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.522       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15107E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.890       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.414       1.0000         .10000E-03   10000.    
    20 'norm      '    8.7813       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .51385       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.652       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.5064       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .38043       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5622       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=   5166.712     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3939 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.567        14.820       -.33149E-07   -.13607E-04
   2  Prefactor     23.308        22.726       -.49620E-07    .11249E-05
   3  Prefactor     26.052        45.309       -.11315E-06    .45693E-05
   4  Prefactor     5.0664        15.586        .10215E-06   -.15059E-04
   5  Prefactor     .10000E-03    7.9984       -.98580E-07** at limit **
   6  norm          .10000E-03    12.741       -.30806E-06** at limit **
   7  norm          .10000E-03    2.0053       -.49192E-07** at limit **
   8  Prefactor     .10000E-03    20.384        .58599E-06** at limit **
   9  Prefactor     39.200        49.233        .36448E-06   -.19207E-06
  10  Prefactor     9.7382        7.8807        .19795E-06   -.59247E-04
  11  norm          .10000E-03    3.0195       -.41105E-07** at limit **
  12  norm          .10000E-03    .84870       -.17825E-07** at limit **
  13  norm          .10000E-03    .32128       -.90573E-07** at limit **
  14  Prefactor     26.335        30.182       -.10725E-06   -.24748E-04
  15  Prefactor     11.516        16.053        .60283E-06   -.99808E-04
  16  Prefactor     .10001E-03    2.6057        .41376E-06** at limit **
  17  Prefactor     .10000E-03    26.650       -.38057E-06** at limit **
  18  Prefactor     15.892        17.361       -.18063E-06   -.20931E-04
  19  Prefactor     17.414        13.537       -.75232E-07   -.28138E-04
  20  norm          8.7825        8.2624       -.30774E-06   -.11472E-03
  21  norm          .10000E-03    3.1975        .74779E-07** at limit **
  22  Prefactor     .51311        3.6078        .23056E-05    .90482E-04
  23  Prefactor     19.675        77.807       -.23865E-06    .41725E-04
  24  Prefactor     .10000E-03    16.112       -.10967E-07** at limit **
  25  Prefactor     .10000E-03    1.6856       -.89405E-07** at limit **
  26  Prefactor     .10000E-03    14.748       -.22553E-06** at limit **
  27  norm          3.5064        .90862       -.38292E-07   -.46061E-03
  28  Prefactor     .10000E-03    5.0445       -.89734E-08** at limit **
  29  Normalizat    .38031        .26221        .45212E-06   -.98696E-04
  30  Prefactor     1.5623        .20372       -.11499E-06   -.11493E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.5668
  Prefactor  = 23.308
  Prefactor  = 26.0521
  Prefactor  = 5.06643
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.2002
  Prefactor  = 9.73818
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.3345
  Prefactor  = 11.5155
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 15.8919
  Prefactor  = 17.414
  norm       = 8.78247
  norm       = 0.0001
  Prefactor  = 0.513113
  Prefactor  = 19.675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.50639
  Prefactor  = 0.0001
  Normalizat = 0.380307
  Prefactor  = 1.56231
 **********
 **   18 **HESSE 
 **********

 FCN=   5166.712     FROM HESSE     STATUS=OK           586 CALLS     4525 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.567        14.838        .10151E-03   -1.4919    
   2  Prefactor     23.308        22.714        .82971E-04   -1.4742    
   3  Prefactor     26.052        45.230        .78487E-04   -1.4687    
   4  Prefactor     5.0664        15.512        .17860E-03   -1.5258    
   5  Prefactor     .10000E-03    8.0098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0444        .99286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.200        49.144        .64019E-04   -1.4455    
  10  Prefactor     9.7382        7.8008        .12841E-03   -1.5084    
  11  norm          .10000E-03    3.0488        .12196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .85674        .64654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .63320        .77658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.335        30.152        .78063E-04   -1.4681    
  15  Prefactor     11.516        15.436        .11802E-03   -1.5029    
  16  Prefactor     .10001E-03    9.1594        .20345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.892        17.259        .10047E-03   -1.4910    
  19  Prefactor     17.414        13.482        .95979E-04   -1.4873    
  20  norm          8.7825        8.2544        .13526E-03   -1.5115    
  21  norm          .10000E-03    3.2036        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .51311        3.5653        .25106E-03   -1.5565    
  23  Prefactor     19.675        79.266        .90350E-04   -1.4821    
  24  Prefactor     .10000E-03    16.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.7261        .18207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.5064        .90259        .33133E-04   -1.5333    
  28  Prefactor     .10000E-03    5.1150        .31328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .38031        .25818        .45865E-03   -1.1833    
  30  Prefactor     1.5623        .21107        .20418E-03   -.75809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28433e-09
Minuit parameter uncertainties:
  1  14.8417
  2  22.7222
  3  45.2896
  4  15.5248
  5  2.3214e-05
  6  6.62427e-05
  7  1.17132e-06
  8  0.000174966
  9  49.1946
  10  7.80164
  11  7.1745e-07
  12  1.58802e-08
  13  1.95818e-06
  14  30.1698
  15  15.4414
  16  0.000600846
  17  0.000199827
  18  17.2644
  19  13.4841
  20  8.25547
  21  1.55397e-07
  22  2.70507
  23  79.1655
  24  1.45764e-05
  25  9.55427e-07
  26  4.45305e-05
  27  0.902592
  28  1.50019e-05
  29  0.25899
  30  0.211184
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.000e-04  1.958e-06  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.562e+00  2.112e-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:  3.803e-01  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 124.557 42.382
Photon Flux Upper Limit: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259237/likelihoodResults_659750401_660009601_4FGL_J0818.2+4222_daily_bin1622.txt

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) = 5166.71983439
delta logL = -0.00744898411176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5166.71238435
delta logL = 1.04792798084e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0139       1.0000          .0000       5.0000    
     3 'Normalizat'    .38030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5623       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=   5166.712     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      226 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4449        .16901E-01** at limit **
   2  alpha         2.2067        3.4155        .42180       -.32006E-05
   3  Normalizat    .38031        .11322E-01    .10350        .78763E-04
   4  Prefactor     1.5623        .96959E-02    .46195E-01    .10367E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.20674
  Normalizat = 0.380308
  Prefactor  = 1.5623
 **********
 **   18 **HESSE 
 **********

 FCN=   5166.712     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      257 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    151.37        .82510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2067        3.5938        .16872       -.11758    
   3  Normalizat    .38031        .14763        .45866E-03   -1.1833    
   4  Prefactor     1.5623        .12724        .20418E-03   -.75809    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.66852e-07
Minuit parameter uncertainties:
  1  0.000522353
  2  861.275
  3  0.147777
  4  0.127266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259237': 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): 102
logL (Free Index) = 5166.71237877
delta logL = 6.63012542645e-06

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.000e-04  5.224e-04  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.207e+00  8.613e+02  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.562e+00  1.273e-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:  3.803e-01  1.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 124.557 42.382

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/259237/cmap_HighResolution_659750401_660009601_4FGL_J0818.2+4222_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-05', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-12-07 19:07:15.867086', job_id='259237', GAL2='1.56', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1638932835.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.56', dlogl='6.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1622' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 19:07:15 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 259237: <4FGL_J0818.2+4222_daily_bin1622> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1622> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec  7 18:55:20 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 18:56:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 18:56:07 2021
Terminated at Tue Dec  7 19:07:16 2021
Results reported at Tue Dec  7 19:07:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1622 124.557 42.3819 659750401 660009601 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 :                                   653.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             392.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            716 sec.

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

