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


Performing analysis on: 4FGL_J1223.8+8039_daily_bin1171
RA = 185.971, Dec = 80.6598
tmin = 542851201, tmax = 543110401
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='560596', job_status='RUN', time_executed='2021-09-05 11:34:03.802105', time_epoch_executed='1630866843.8' WHERE source_name='4FGL J1223.8+8039' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/560596

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/560596/ft1_4FGL_J1223.8+8039_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/560596/ft2_4FGL_J1223.8+8039_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/560596/ft1_4FGL_J1223.8+8039_daily_bin1171.fits outfile=/scratch/kocevski/560596/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin1171.fits ra=185.971 dec=80.6598 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.78
user 0.60
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/560596/ft2_4FGL_J1223.8+8039_daily_bin1171.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/560596/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/560596/ft1_filtered_4FGL_J1223.8+8039_daily_bin1171.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.47
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/560596/ft1_filtered_4FGL_J1223.8+8039_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/560596/ft2_4FGL_J1223.8+8039_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/560596/ltcube_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.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/560596/ft2_4FGL_J1223.8+8039_daily_bin1171.fits
.....................!
real 1.83
user 1.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/560596/ft1_filtered_4FGL_J1223.8+8039_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/560596/ft2_4FGL_J1223.8+8039_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/560596/ltcube_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.fits outfile=/scratch/kocevski/560596/expmap_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.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/560596/ltcube_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.fits
.....................!
real 190.24
user 185.66
sys 4.22

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/560596/ft1_filtered_4FGL_J1223.8+8039_daily_bin1171.fits scfile=/scratch/kocevski/560596/ft2_4FGL_J1223.8+8039_daily_bin1171.fits outfile=/scratch/kocevski/560596/cmap_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.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.55
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/560596/ft1_filtered_4FGL_J1223.8+8039_daily_bin1171.fits scfile=/scratch/kocevski/560596/ft2_4FGL_J1223.8+8039_daily_bin1171.fits outfile=/scratch/kocevski/560596/cmap_HighResolution_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.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.52
user 0.36
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/560596/ft1_filtered_4FGL_J1223.8+8039_daily_bin1171.fits', '/scratch/kocevski/560596/ft2_4FGL_J1223.8+8039_daily_bin1171.fits', expMap='/scratch/kocevski/560596/expmap_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.fits', expCube='/scratch/kocevski/560596/ltcube_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/560596/Model_4FGL_J1223.8+8039_daily_bin1171.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/560596/ft1_filtered_4FGL_J1223.8+8039_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/560596/ft2_4FGL_J1223.8+8039_daily_bin1171.fits
Exposure map: /scratch/kocevski/560596/expmap_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.fits
Exposure cube: /scratch/kocevski/560596/ltcube_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/560596/Model_4FGL_J1223.8+8039_daily_bin1171.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) = 376.893099603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10829E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11962E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    89.900       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15560E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    230.47       1.0000         .10000E-03   10000.    
     9 'norm      '    .13747E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4253       1.0000         .10000E-03   10000.    
    12 'norm      '    .37951E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.831       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11628E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    28.264       1.0000         .10000E-03   10000.    
    19 'norm      '    20.267       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23845E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11380E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11204E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11712E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .11958E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    505.21       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1163       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=   376.7869     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     4835 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.987        .15676E-05** at limit **
   2  norm          .10000E-03    63.756        .36540E-05** at limit **
   3  Prefactor     .10000E-03    118.18        .25536E-05** at limit **
   4  Prefactor     .10000E-03    115.29        .87727E-05** at limit **
   5  Prefactor     .10009E-03    196.59       -.16553E-04** at limit **
   6  Prefactor     90.104        100.80       -.21190E-04   -.10205E-03
   7  Prefactor     .10001E-03    241.85       -.21313E-05** at limit **
   8  Prefactor     229.88        383.30       -.33477E-04    .33522E-06
   9  norm          .10163E-03    123.53        .32758E-04** at limit **
  10  Prefactor     .10006E-03    102.15       -.40239E-05** at limit **
  11  norm          5.4439        8.9672        .23493E-05   -.55779E-04
  12  norm          .10000E-03    105.86       -.12445E-05** at limit **
  13  Prefactor     .10000E-03    68.626        .47137E-06** at limit **
  14  Prefactor     49.830        87.665        .59258E-06    .16400E-04
  15  Prefactor     .10000E-03    77.190       -.43166E-05** at limit **
  16  Prefactor     .10000E-03    29.293        .35517E-06** at limit **
  17  Prefactor     .10000E-03    278.06        .90058E-05** at limit **
  18  norm          28.149        135.83       -.64042E-05   -.12224E-04
  19  norm          20.272        21.549       -.26086E-06   -.29674E-04
  20  Prefactor     .10000E-03    919.77       -.91162E-05** at limit **
  21  Prefactor     .10000E-03    43.847        .10256E-05** at limit **
  22  Prefactor     .10000E-03    945.61       -.11405E-04** at limit **
  23  Prefactor     .10000E-03    44.963       -.11443E-05** at limit **
  24  Prefactor     .10000E-03    144.71       -.44994E-05** at limit **
  25  Prefactor     .10000E-03    340.72        .19131E-04** at limit **
  26  Prefactor     .10000E-03    200.42       -.60295E-05** at limit **
  27  Prefactor     .10000E-03    248.00        .28719E-05** at limit **
  28  norm          .10000E-03    207.37       -.48210E-05** at limit **
  29  Prefactor     505.20        548.91        .10919E-04   -.25097E-04
  30  Normalizat    .10000E-01    .32770        .10209E-04** at limit **
  31  Prefactor     1.1159        .35468       -.11173E-04   -.11750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100091
  Prefactor  = 90.104
  Prefactor  = 0.000100013
  Prefactor  = 229.883
  norm       = 0.00010163
  Prefactor  = 0.000100056
  norm       = 5.44387
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 49.8297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.1491
  norm       = 20.2725
  Prefactor  = 0.000100001
  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  = 505.204
  Normalizat = 0.01
  Prefactor  = 1.11587
 **********
 **   18 **HESSE 
 **********

 FCN=   376.7869     FROM HESSE     STATUS=OK           602 CALLS     5437 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    92.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    63.750        .15162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    118.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    116.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10009E-03    194.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     90.104        102.45        .21189E-03   -1.3807    
   7  Prefactor     .10001E-03    242.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     229.88        382.63        .13329E-03   -1.2664    
   9  norm          .10163E-03    820.80        .37002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10006E-03    102.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.4439        8.9628        .58832E-04   -1.5241    
  12  norm          .10000E-03    105.89        .19371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    68.649        .15730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.830        87.171        .56809E-04   -1.4295    
  15  Prefactor     .10000E-03    77.189        .16684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.292        .10271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    278.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          28.149        137.47        .75358E-04   -1.4646    
  19  norm          20.272        21.568        .88969E-04   -1.4807    
  20  Prefactor     .10000E-03    920.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    43.851        .12570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    945.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    44.962        .12729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    144.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    340.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    200.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    248.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    207.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     505.20        556.58        .18263E-04   -1.1174    
  30  Normalizat    .10000E-01    .34866        .68215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.1159        .36174        .17364E-03   -.88961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40087e-09
Minuit parameter uncertainties:
  1  3.46361e-05
  2  3.39074e-05
  3  3.10362e-05
  4  8.02382e-05
  5  0.00843691
  6  102.652
  7  0.00356936
  8  386.918
  9  0.0741851
  10  0.00478991
  11  8.96504
  12  0.000848252
  13  0.000250756
  14  87.3957
  15  4.94862e-05
  16  4.33807e-07
  17  0.00028568
  18  124.878
  19  21.5766
  20  0.00183004
  21  3.2699e-05
  22  0.000420008
  23  7.56783e-06
  24  0.000169842
  25  0.000433691
  26  1.36065e-05
  27  0.000154469
  28  0.00019585
  29  562.756
  30  2.6074e-05
  31  0.362541
Done.

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

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  2.027e+01  2.158e+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:  1.116e+00  3.625e-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  2.607e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.99
Ra Dec: 185.971 80.660
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 1.62e-07
Energy Flux (Fixed Index): 7.38e-05 +/- 7.86e-05

TS (Fixed Index): 2.99
Ra Dec: 185.971 80.660
Photon Flux Upper Limit: 6.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/560596/likelihoodResults_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.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) = 376.290576041
delta logL = 0.496309878597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 376.274128997
delta logL = 0.512756922086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.795       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3150       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1223       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=   376.2741     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.814        27.146        .17568E-05   -.21510E-05
   2  alpha         1.3164        .73748        .50985E-04   -.98124E-07
   3  Normalizat    .10000E-01    .34549       -.67198E-06** at limit **
   4  Prefactor     1.1221        .29758       -.85297E-06   -.67920E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.8142
  alpha      = 1.31636
  Normalizat = 0.01
  Prefactor  = 1.12207
 **********
 **   18 **HESSE 
 **********

 FCN=   376.2741     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.814        27.143        .80446E-04   -1.4711    
   2  alpha         1.3164        .73729        .60440E-03   -.49321    
   3  Normalizat    .10000E-01    .35767        .68875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1221        .28914        .17296E-03   -.88764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61332e-13
Minuit parameter uncertainties:
  1  27.156
  2  0.751809
  3  1.99931e-07
  4  0.289542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/560596': 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) = 376.274127172
delta logL = 0.512758747165

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  2.481e+01  2.716e+01  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  1.316e+00  7.518e-01  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:  1.122e+00  2.895e-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.999e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.99
Ra Dec: 185.971 80.660
Photon Index (Free Index): 1.32 +/- 0.75
Photon Flux (Free Index): 9.74e-08 +/- 1.14e-07
Energy Flux (Free Index): 2.29e-04 +/- 3.77e-04

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/560596/cmap_HighResolution_542851201_543110401_4FGL_J1223.8+8039_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-04', comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='2.29e-04', photon_flux_error='1.62e-07', dlogl='5.13e-01', energy_flux='7.38e-05', photon_flux2='9.74e-08', job_status='DONE', time_completed='2021-09-05 11:39:55.591992', photon_index_error2='0.75', photon_index2='1.32', ts='2.99', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='6.88e-07', energy_flux_error2='3.77e-04', EG='0.01', time_epoch_completed='1630867195.59', return_code='0', job_id='560596', GAL2='1.12', EG2='0.01', return_code2='0', energy_flux_error='7.86e-05', photon_flux_error2='1.14e-07', ts2='3.99', photon_index='2.12' WHERE bin_id='1171' AND source_name='4FGL J1223.8+8039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:39:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 560596: <4FGL_J1223.8+8039_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1223.8+8039_daily_bin1171> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:30:35 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:30:36 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:36 2021
Terminated at Sun Sep  5 11:39:56 2021
Results reported at Sun Sep  5 11:39:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_daily_bin1171 185.971 80.6598 542851201 543110401 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 :                                   353.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             234.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            561 sec.

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

