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


Performing analysis on: 4FGL_J1223.8+8039_daily_bin1170
RA = 185.971, Dec = 80.6598
tmin = 542592001, tmax = 542851201
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='560595', job_status='RUN', time_executed='2021-09-05 11:33:46.686845', time_epoch_executed='1630866826.69' WHERE source_name='4FGL J1223.8+8039' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/560595

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/560595/ft1_4FGL_J1223.8+8039_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/560595/ft2_4FGL_J1223.8+8039_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/560595/ft1_4FGL_J1223.8+8039_daily_bin1170.fits outfile=/scratch/kocevski/560595/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin1170.fits ra=185.971 dec=80.6598 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.77
user 6.49
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/560595/ft1_filtered_4FGL_J1223.8+8039_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/560595/ft2_4FGL_J1223.8+8039_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/560595/ltcube_542592001_542851201_4FGL_J1223.8+8039_daily_bin1170.fits outfile=/scratch/kocevski/560595/expmap_542592001_542851201_4FGL_J1223.8+8039_daily_bin1170.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/560595/ltcube_542592001_542851201_4FGL_J1223.8+8039_daily_bin1170.fits
.....................!
real 191.01
user 184.97
sys 5.56

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/560595/ft1_filtered_4FGL_J1223.8+8039_daily_bin1170.fits scfile=/scratch/kocevski/560595/ft2_4FGL_J1223.8+8039_daily_bin1170.fits outfile=/scratch/kocevski/560595/cmap_542592001_542851201_4FGL_J1223.8+8039_daily_bin1170.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.53
user 0.41
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/560595/ft1_filtered_4FGL_J1223.8+8039_daily_bin1170.fits scfile=/scratch/kocevski/560595/ft2_4FGL_J1223.8+8039_daily_bin1170.fits outfile=/scratch/kocevski/560595/cmap_HighResolution_542592001_542851201_4FGL_J1223.8+8039_daily_bin1170.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.748       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3358       1.0000         .10000E-03   10000.    
     3 'Prefactor '    95.561       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.724       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11878E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .23467E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1215       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.279       1.0000         .10000E-03   10000.    
    17 'Prefactor '    94.657       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.612       1.0000         .10000E-03   10000.    
    22 'Prefactor '    122.87       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.442       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    63.956       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .52238       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95607       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=   3836.100     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     4155 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.697        69.076       -.33360E-05   -.63115E-04
   2  norm          7.3322        23.117       -.46684E-06    .74314E-05
   3  Prefactor     95.588        75.821        .16447E-05    .90695E-05
   4  Prefactor     .10000E-03    3.0733       -.22194E-07** at limit **
   5  Prefactor     10.725        10.523        .13449E-06   -.66248E-04
   6  Prefactor     .10000E-03    16.901        .24100E-06** at limit **
   7  Prefactor     .10000E-03    11.745        .11546E-06** at limit **
   8  Prefactor     .10000E-03    18.349        .86559E-07** at limit **
   9  norm          .10000E-03    7.4999        .20905E-05** at limit **
  10  Prefactor     .10000E-03    3.9776        .57340E-07** at limit **
  11  norm          .10000E-03    .60046        .86097E-07** at limit **
  12  norm          2.1233        3.7685       -.46748E-07   -.11311E-03
  13  Prefactor     .10000E-03    7.6788        .21130E-06** at limit **
  14  Prefactor     .10000E-03    10.110       -.93888E-07** at limit **
  15  Prefactor     5.4620        6.4204        .34258E-06    .49102E-04
  16  Prefactor     71.302        29.841       -.59287E-06   -.42058E-03
  17  Prefactor     94.634        143.88       -.13515E-07   -.28684E-04
  18  norm          .10000E-03    4.4979       -.31873E-08** at limit **
  19  norm          .10000E-03    2.9064        .25470E-06** at limit **
  20  Prefactor     .10000E-03    48.804       -.45974E-06** at limit **
  21  Prefactor     44.591        39.540       -.79133E-06   -.94526E-04
  22  Prefactor     122.91        237.76        .25391E-05    .69564E-05
  23  Prefactor     27.442        34.226        .57556E-06   -.24136E-05
  24  Prefactor     .10000E-03    21.135        .92755E-07** at limit **
  25  Prefactor     .10000E-03    113.92       -.68306E-06** at limit **
  26  Prefactor     63.963        70.500        .45928E-06    .98922E-05
  27  Prefactor     .10000E-03    76.300        .55993E-06** at limit **
  28  norm          .10000E-03    15.721       -.96074E-07** at limit **
  29  Prefactor     .10000E-03    68.573       -.64053E-08** at limit **
  30  Normalizat    .52192        .28771       -.11537E-04   -.17319E-03
  31  Prefactor     .95638        .18053        .50833E-05   -.48239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.6966
  norm       = 7.33219
  Prefactor  = 95.5876
  Prefactor  = 0.0001
  Prefactor  = 10.7252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.12331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.46201
  Prefactor  = 71.3021
  Prefactor  = 94.634
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.591
  Prefactor  = 122.908
  Prefactor  = 27.4416
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 63.9629
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.521921
  Prefactor  = 0.956382
 **********
 **   18 **HESSE 
 **********

 FCN=   3836.100     FROM HESSE     STATUS=OK           606 CALLS     4761 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.697        68.855        .52343E-04   -1.4174    
   2  norm          7.3322        23.091        .14809E-03   -1.5166    
   3  Prefactor     95.588        75.860        .41116E-04   -1.3749    
   4  Prefactor     .10000E-03    3.0758        .10603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.725        10.484        .12235E-03   -1.5053    
   6  Prefactor     .10000E-03    16.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    17.276        .30944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0167        .12032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.5346        .84445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1233        3.4122        .13973E-03   -1.5417    
  13  Prefactor     .10000E-03    7.6922        .16756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.188        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4620        6.4247        .83008E-03   -1.5241    
  16  Prefactor     71.302        29.503        .47549E-04   -1.4017    
  17  Prefactor     94.634        143.89        .41310E-04   -1.3759    
  18  norm          .10000E-03    4.5002        .12829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.9367        .10314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    48.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.591        39.471        .60025E-04   -1.4371    
  22  Prefactor     122.91        237.85        .18155E-03   -1.3486    
  23  Prefactor     27.442        34.232        .76476E-04   -1.4660    
  24  Prefactor     .10000E-03    21.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    114.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     63.963        70.514        .50180E-04   -1.4107    
  27  Prefactor     .10000E-03    76.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    15.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    68.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .52192        .28898        .37944E-03   -1.1141    
  31  Prefactor     .95638        .17777        .17819E-03   -.94198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51541e-10
Minuit parameter uncertainties:
  1  68.9489
  2  23.1193
  3  75.937
  4  5.76703e-07
  5  10.4859
  6  2.39597e-06
  7  3.32962e-05
  8  3.18156e-05
  9  0.000256732
  10  8.54089e-06
  11  3.60533e-05
  12  3.41246
  13  1.09084e-05
  14  5.40239e-07
  15  6.42554
  16  29.5091
  17  144.422
  18  1.98844e-06
  19  1.04515e-05
  20  0.000307688
  21  39.4939
  22  239.734
  23  34.2562
  24  4.94577e-05
  25  0.000720714
  26  70.6065
  27  0.000491424
  28  3.63155e-05
  29  0.000336595
  30  0.289817
  31  0.177878
Done.

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

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.000e-04  1.045e-05  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.564e-01  1.779e-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:  5.219e-01  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.971 80.660
Photon Flux Upper Limit: 8.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/560595/likelihoodResults_542592001_542851201_4FGL_J1223.8+8039_daily_bin1170.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): 102
logL (Free Index) = 3836.10202121
delta logL = -0.00161648909761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3836.10040483
delta logL = -1.13594978757e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1033       1.0000          .0000       5.0000    
     3 'Normalizat'    .52183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95645       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3836.100     FROM MIGRAD    STATUS=FAILED       100 CALLS      234 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    100.31        .38366E-01** at limit **
   2  alpha         1.2439        2.8666        .50000       -.19109E-05
   3  Normalizat    .52192        .41581E-01    .37946E-03    .45734E-04
   4  Prefactor     .95638        .26228E-01    .17819E-03    .15011E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3836.100     FROM SIMPLEX   STATUS=UNCHANGED    167 CALLS      401 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    100.31        .33053E-03** at limit **
   2  alpha         1.2439        2.8666        .72064E-05   -.19109E-05
   3  Normalizat    .52192        .41581E-01    .87777E-07    .45734E-04
   4  Prefactor     .95638        .26228E-01    .77328E-08    .15011E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3836.100     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      474 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7496        .37694E-03** at limit **
   2  alpha         1.2445        4.3697        .50000       -.18526E-05
   3  Normalizat    .52192        .25411        .30357E-05    .46064E-04
   4  Prefactor     .95638        .16003        .71276E-05    .15073E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.24455
  Normalizat = 0.521921
  Prefactor  = 0.956384
 **********
 **   18 **HESSE 
 **********

 FCN=   3836.100     FROM HESSE     STATUS=OK            27 CALLS      501 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6046        .75387E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2445        3.9375        .50000       -.52612    
   3  Normalizat    .52192        .25157        .60714E-06   -1.1141    
   4  Prefactor     .95638        .15867        .14255E-05   -.94198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2429e-08
Minuit parameter uncertainties:
  1  3.91326e-05
  2  129.431
  3  0.252121
  4  0.158743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/560595': 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) = 3836.10039864
delta logL = 6.07532456343e-06

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.000e-04  3.913e-05  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  1.245e+00  1.294e+02  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:  9.564e-01  1.587e-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:  5.219e-01  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/560595/cmap_HighResolution_542592001_542851201_4FGL_J1223.8+8039_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-05', job_status='DONE', photon_flux_upper_limit='8.50e-08', time_completed='2021-09-05 11:47:10.365883', job_id='560595', GAL2='0.96', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1630867630.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1170' AND source_name='4FGL J1223.8+8039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:47:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 560595: <4FGL_J1223.8+8039_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1223.8+8039_daily_bin1170> 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) <bullet0104>, 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:47:11 2021
Results reported at Sun Sep  5 11:47:11 2021

Your job looked like:

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

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

