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


Performing analysis on: 4FGL_J1223.8+8039_daily_bin1229
RA = 185.971, Dec = 80.6598
tmin = 557884801, tmax = 558144001
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='560687', job_status='RUN', time_executed='2021-09-05 11:31:22.819944', time_epoch_executed='1630866682.82' WHERE source_name='4FGL J1223.8+8039' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/560687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/560687/ft1_4FGL_J1223.8+8039_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/560687/ft1_4FGL_J1223.8+8039_daily_bin1229.fits outfile=/scratch/kocevski/560687/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin1229.fits ra=185.971 dec=80.6598 rad=12.0 tmin=557884801.0 tmax=558144001.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.03
user 3.79
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.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/560687/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/560687/ft1_filtered_4FGL_J1223.8+8039_daily_bin1229.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/560687/ft1_filtered_4FGL_J1223.8+8039_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/560687/ltcube_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.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/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.fits
.....................!
real 11.95
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/560687/ft1_filtered_4FGL_J1223.8+8039_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/560687/ltcube_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.fits outfile=/scratch/kocevski/560687/expmap_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.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/560687/ltcube_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.fits
.....................!
real 191.21
user 185.07
sys 5.77

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 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.8+8039 @ 185.971 80.6598

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/560687/ft1_filtered_4FGL_J1223.8+8039_daily_bin1229.fits scfile=/scratch/kocevski/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.fits outfile=/scratch/kocevski/560687/cmap_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.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=185.971 yref=80.6598 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.73
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/560687/ft1_filtered_4FGL_J1223.8+8039_daily_bin1229.fits scfile=/scratch/kocevski/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.fits outfile=/scratch/kocevski/560687/cmap_HighResolution_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.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=185.971 yref=80.6598 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.60
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/560687/ft1_filtered_4FGL_J1223.8+8039_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/560687/Model_4FGL_J1223.8+8039_daily_bin1229.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/560687/ft1_filtered_4FGL_J1223.8+8039_daily_bin1229.fits........!
real 14.87
user 13.11
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/560687/ft1_filtered_4FGL_J1223.8+8039_daily_bin1229.fits', '/scratch/kocevski/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.fits', expMap='/scratch/kocevski/560687/expmap_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.fits', expCube='/scratch/kocevski/560687/ltcube_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/560687/Model_4FGL_J1223.8+8039_daily_bin1229.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.8+8039'

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.610e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/560687/ft1_filtered_4FGL_J1223.8+8039_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/560687/ft2_4FGL_J1223.8+8039_daily_bin1229.fits
Exposure map: /scratch/kocevski/560687/expmap_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.fits
Exposure cube: /scratch/kocevski/560687/ltcube_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/560687/Model_4FGL_J1223.8+8039_daily_bin1229.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) = 78.1374512791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .85889E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12407E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34176E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    220.91       1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11410E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49517E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .24367E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.4391       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84718E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .41065E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .74686E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .19154E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    616.54       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   73.70165     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     4723 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    225.78       -.44704E-04** at limit **
   2  norm          .10000E-03    284.15       -.11069E-03** at limit **
   3  Prefactor     .10000E-03    495.90        .22964E-03** at limit **
   4  Prefactor     .10000E-03    64.071       -.14210E-05** at limit **
   5  Prefactor     .10000E-03    314.63       -.77389E-04** at limit **
   6  Prefactor     .10000E-03    122.99       -.13812E-03** at limit **
   7  Prefactor     .10000E-03    813.64        .26480E-03** at limit **
   8  Prefactor     .10000E-03    2123.6       -.25702E-03** at limit **
   9  norm          .10004E-03    82.982        .15152E-04** at limit **
  10  Prefactor     .10000E-03    211.80        .93638E-05** at limit **
  11  norm          .10000E-03    45.003        .35399E-07** at limit **
  12  norm         10000.0        6522.5        .13863E-03** at limit **
  13  Prefactor     221.32        218.88        .22879E-03    .95382E-05
  14  Prefactor    10000.0        7634.1        .13819E-02** at limit **
  15  Prefactor    10000.0        9880.9        .37859E-02** at limit **
  16  Prefactor     .10000E-03    259.99       -.10818E-03** at limit **
  17  Prefactor     .10000E-03    1684.9       -.16856E-03** at limit **
  18  norm          .10000E-03    673.47        .31038E-03** at limit **
  19  norm          6.1648        270.42       -.12066E-03    .16032E-04
  20  Prefactor     .10001E-03    1751.2       -.38777E-03** at limit **
  21  Prefactor     .10000E-03    184.79        .15228E-03** at limit **
  22  Prefactor     .10000E-03    6542.8       -.26688E-02** at limit **
  23  Prefactor     .10000E-03    265.74       -.11321E-03** at limit **
  24  Prefactor     .10000E-03    362.57       -.20210E-04** at limit **
  25  Prefactor     .10000E-03    1931.5       -.55037E-04** at limit **
  26  Prefactor     .10000E-03    749.73        .29316E-03** at limit **
  27  Prefactor     .10000E-03    767.33        .28646E-03** at limit **
  28  norm          .10000E-03    413.34        .10792E-03** at limit **
  29  Prefactor     615.93        702.20       -.24508E-03   -.51487E-06
  30  Normalizat    .10000E-01    .58127        .24972E-05** at limit **
  31  Prefactor     .90508        .56874        .13200E-04    .10251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100036
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 221.317
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.16478
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 615.934
  Normalizat = 0.01
  Prefactor  = 0.905079
 **********
 **   18 **HESSE 
 **********

 FCN=   73.70165     FROM HESSE     STATUS=OK           592 CALLS     5315 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    225.78        .12688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    284.14        .14248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    495.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.071        .67407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    314.62        .15001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    123.00        .93489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    813.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2123.6        .19683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10004E-03    82.897        .76719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    211.80        .12286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    45.002        .56475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm         10000.0        6522.9        .21164E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     221.32        218.89        .13607E-03   -1.2722    
  14  Prefactor    10000.0        7634.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        9880.9        .18491E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    260.00        .13618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1684.9        .19216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    673.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.1648        271.46        .15817E-03   -1.5211    
  20  Prefactor     .10001E-03    1751.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    184.83        .11471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6542.9        .18876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    265.74        .13774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    362.58        .16116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1931.5        .20943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    749.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    767.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    413.34        .17223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     615.93        702.07        .83151E-04   -1.0692    
  30  Normalizat    .10000E-01    .58164        .20470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .90508        .56829        .16623E-03   -.95964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10639e-10
Minuit parameter uncertainties:
  1  5.83973e-05
  2  6.05734e-05
  3  0.0002705
  4  6.72278e-07
  5  0.000212423
  6  0.000170844
  7  0.000303699
  8  0.000492103
  9  0.00346272
  10  6.7269e-05
  11  2.30759e-05
  12  0.00219415
  13  219.708
  14  0.00199213
  15  0.000519817
  16  0.00208914
  17  0.00078645
  18  8.00873e-05
  19  82.2167
  20  0.006169
  21  0.000461941
  22  3.28506e-05
  23  7.17823e-05
  24  0.000350924
  25  8.17862e-05
  26  6.89646e-05
  27  0.000134367
  28  1.12506e-05
  29  712.451
  30  5.9418e-06
  31  0.572072
Done.

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

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  6.165e+00  8.222e+01  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.051e-01  5.721e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.000e-02  5.942e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 185.971 80.660
Photon Flux Upper Limit: 2.54e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/560687/likelihoodResults_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.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) = 73.4415196342
delta logL = 0.260135217346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 73.4245786375
delta logL = 0.277076213999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1325       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5597       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   73.42457     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      270 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1324        13.776        .15565E-04    .97715E-03
   2  alpha         4.5622        4.7792        .55036E-03    .28087E-04
   3  Normalizat    .10000E-01    .52787        .19454E-02** at limit **
   4  Prefactor     .87528        .54896        .16390E-03   -.28450E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13242
  alpha      = 4.56218
  Normalizat = 0.01
  Prefactor  = 0.875278
 **********
 **   18 **HESSE 
 **********

 FCN=   73.42457     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1324        13.152        .31131E-05   -1.5495    
   2  alpha         4.5622        4.7811        .11007E-03    .96998    
   3  Normalizat    .10000E-01    .52787        .38908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .87528        .54896        .65561E-05   -.97010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35651e-10
Minuit parameter uncertainties:
  1  7.72015
  2  3.58438
  3  1.11606e-06
  4  0.552476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/560687': 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) = 73.4245749782
delta logL = 0.277079873362

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.132e+00  7.720e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  4.562e+00  3.584e+00  0.000e+00  5.000e+00 ( 1.000e+00)
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.753e-01  5.525e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.000e-02  1.116e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 185.971 80.660

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/560687/cmap_HighResolution_557884801_558144001_4FGL_J1223.8+8039_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-03', job_status='DONE', photon_flux_upper_limit='2.54e-06', time_completed='2021-09-05 11:37:27.289066', job_id='560687', GAL2='0.88', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630867047.29', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.77e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1229' AND source_name='4FGL J1223.8+8039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:37:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 560687: <4FGL_J1223.8+8039_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1223.8+8039_daily_bin1229> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:30:43 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:30:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 11:30:45 2021
Terminated at Sun Sep  5 11:37:28 2021
Results reported at Sun Sep  5 11:37:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_daily_bin1229 185.971 80.6598 557884801 558144001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.8+8039 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   350.03 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             237.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   402 sec.
    Turnaround time :                            405 sec.

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

