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


Performing analysis on: 4FGL_J1223.8+8039_monthly_bin52
RA = 185.971, Dec = 80.6598
tmin = 371779201, tmax = 374371201
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='813745', job_status='RUN', time_executed='2021-10-23 14:35:39.043517', time_epoch_executed='1635024939.04' WHERE source_name='4FGL J1223.8+8039' and cadence='monthly' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813745

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

Retrieving the FT1 file...

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

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

Retrieving 454 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813745/ft1_4FGL_J1223.8+8039_monthly_bin52.fits


Retrieving the FT1 file...

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

Retrieving 454 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813745/ft2_4FGL_J1223.8+8039_monthly_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/813745/ft1_4FGL_J1223.8+8039_monthly_bin52.fits outfile=/scratch/kocevski/813745/ft1_filteredMKT_4FGL_J1223.8+8039_monthly_bin52.fits ra=185.971 dec=80.6598 rad=12.0 tmin=371779201.0 tmax=374371201.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 33.64
user 32.81
sys 0.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/813745/ft2_4FGL_J1223.8+8039_monthly_bin52.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/813745/ft1_filteredMKT_4FGL_J1223.8+8039_monthly_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/813745/ft1_filtered_4FGL_J1223.8+8039_monthly_bin52.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.83
user 0.64
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/813745/ft1_filtered_4FGL_J1223.8+8039_monthly_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/813745/ft2_4FGL_J1223.8+8039_monthly_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/813745/ltcube_371779201_374371201_4FGL_J1223.8+8039_monthly_bin52.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/813745/ft2_4FGL_J1223.8+8039_monthly_bin52.fits
.....................!
real 108.45
user 107.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813745/ft1_filtered_4FGL_J1223.8+8039_monthly_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/813745/ft2_4FGL_J1223.8+8039_monthly_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/813745/ltcube_371779201_374371201_4FGL_J1223.8+8039_monthly_bin52.fits outfile=/scratch/kocevski/813745/expmap_371779201_374371201_4FGL_J1223.8+8039_monthly_bin52.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/813745/ltcube_371779201_374371201_4FGL_J1223.8+8039_monthly_bin52.fits
.....................!
real 191.39
user 186.34
sys 4.68

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/813745/ft1_filtered_4FGL_J1223.8+8039_monthly_bin52.fits scfile=/scratch/kocevski/813745/ft2_4FGL_J1223.8+8039_monthly_bin52.fits outfile=/scratch/kocevski/813745/cmap_371779201_374371201_4FGL_J1223.8+8039_monthly_bin52.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.79
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813745/ft1_filtered_4FGL_J1223.8+8039_monthly_bin52.fits scfile=/scratch/kocevski/813745/ft2_4FGL_J1223.8+8039_monthly_bin52.fits outfile=/scratch/kocevski/813745/cmap_HighResolution_371779201_374371201_4FGL_J1223.8+8039_monthly_bin52.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.78
user 0.62
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0283       1.0000         .10000E-03   10000.    
     2 'norm      '    .10408E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.223       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11254E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3256       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.209       1.0000         .10000E-03   10000.    
     9 'norm      '    4.2010       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90874       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9700       1.0000         .10000E-03   10000.    
    12 'norm      '    .65826E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5706       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1473       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .60565       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7744       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0130       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.126       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4612       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.220       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3375       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    34.064       1.0000         .10000E-03   10000.    
    28 'norm      '    .75881       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.4548       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0105       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0010       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   94502.91     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4328 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0283        4.5198         .0000        .12999E-01
   2  norm          .10000E-03    .81499         .0000    ** at limit **
   3  Prefactor     23.219        11.219         .0000       -.94450E-04
   4  Prefactor     .10000E-03    .38538         .0000    ** at limit **
   5  Prefactor     1.3286        2.5657         .0000        .15023    
   6  Prefactor     4.3256        2.7168         .0000        .20723E-02
   7  Prefactor     .10000E-03    3.6434         .0000    ** at limit **
   8  Prefactor     11.216        11.757         .0000        .54188E-03
   9  norm          4.2011        1.5736         .0000        .44507E-02
  10  Prefactor     .90613        1.0477         .0000        .84310E-02
  11  norm          2.9706        .30166         .0000        .14649E-02
  12  norm          .66517E-01    .21466         .0000        .93108E-02
  13  Prefactor     1.5708        2.8423         .0000        .74409E-02
  14  Prefactor     1.1470        1.9712         .0000        .16889E-01
  15  Prefactor     .60557        .57591         .0000       -.78461E-02
  16  Prefactor     1.7746        3.2002         .0000        .10534    
  17  Prefactor     .10000E-03    7.7755         .0000    ** at limit **
  18  norm          .10000E-03    .24115         .0000    ** at limit **
  19  norm          3.0130        .97362         .0000        .49249E-02
  20  Prefactor     13.126        7.9826         .0000       -.25857E-03
  21  Prefactor     2.4611        2.8692         .0000        .26561E-02
  22  Prefactor     13.219        7.4071         .0000       -.17826E-03
  23  Prefactor     .10000E-03    .74617         .0000    ** at limit **
  24  Prefactor     4.3375        3.2091         .0000        .10525E-02
  25  Prefactor     .10000E-03    4.5390         .0000    ** at limit **
  26  Prefactor     .10000E-03    3.0646         .0000    ** at limit **
  27  Prefactor     34.058        13.100         .0000        .27636E-02
  28  norm          .76530        1.5754         .0000        .84767E-02
  29  Prefactor     6.4548        6.6524         .0000       -.51632E-04
  30  Normalizat    1.0106        .46517E-01     .0000        .28520E-03
  31  Prefactor     1.0010        .31357E-01     .0000        .17990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.02826
  norm       = 0.000100004
  Prefactor  = 23.2187
  Prefactor  = 0.000100001
  Prefactor  = 1.3286
  Prefactor  = 4.32556
  Prefactor  = 0.000100002
  Prefactor  = 11.2155
  norm       = 4.20112
  Prefactor  = 0.906127
  norm       = 2.97057
  norm       = 0.0665172
  Prefactor  = 1.5708
  Prefactor  = 1.14702
  Prefactor  = 0.605575
  Prefactor  = 1.77462
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.01297
  Prefactor  = 13.1259
  Prefactor  = 2.46114
  Prefactor  = 13.2195
  Prefactor  = 0.0001
  Prefactor  = 4.33745
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 34.0576
  norm       = 0.765296
  Prefactor  = 6.45477
  Normalizat = 1.01056
  Prefactor  = 1.00103
 **********
 **   18 **HESSE 
 **********

 FCN=   94502.91     FROM HESSE     STATUS=OK           666 CALLS     4994 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0283        4.5232        .10046E-02   -1.5307    
   2  norm          .10000E-03    3.8061        .53731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.219        11.152        .83121E-04   -1.4744    
   4  Prefactor     .10000E-03    .85263        .59734E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3286        2.4909        .19048E-02   -1.5477    
   6  Prefactor     4.3256        2.7014        .19369E-03   -1.5292    
   7  Prefactor     .10000E-03    3.6505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.216        11.142        .11966E-03   -1.5038    
   9  norm          4.2011        1.4776        .17044E-03   -1.5298    
  10  Prefactor     .90613        .95886        .25082E-02   -1.5518    
  11  norm          2.9706        .27796        .42423E-04   -1.5363    
  12  norm          .66517E-01    3.4506        .19118E-02   -1.5656    
  13  Prefactor     1.5708        2.6162        .33921E-03   -1.5457    
  14  Prefactor     1.1470        3.0057        .41200E-03   -1.5494    
  15  Prefactor     .60557        .42476        .21983E-02   -1.5552    
  16  Prefactor     1.7746        3.0769        .15715E-02   -1.5442    
  17  Prefactor     .10000E-03    7.8335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .23982        .50910E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0130        .95028        .15151E-03   -1.5361    
  20  Prefactor     13.126        7.9810        .11056E-03   -1.4983    
  21  Prefactor     2.4611        2.8584        .26069E-03   -1.5394    
  22  Prefactor     13.219        7.4087        .11016E-03   -1.4981    
  23  Prefactor     .10000E-03    .76292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.3375        3.2059        .19341E-03   -1.5291    
  25  Prefactor     .10000E-03    4.5549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.0773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     34.058        13.103        .68659E-04   -1.4540    
  28  norm          .76530        2.1522        .53889E-02   -1.5533    
  29  Prefactor     6.4548        6.6549        .15797E-03   -1.5200    
  30  Normalizat    1.0106        .51369E-01    .27529E-03   -.92678    
  31  Prefactor     1.0010        .35115E-01    .19571E-03   -.92695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31358e-07
Minuit parameter uncertainties:
  1  4.52362
  2  0.000242232
  3  11.1533
  4  4.67979e-05
  5  2.49106
  6  2.70144
  7  0.000177241
  8  11.1436
  9  1.47762
  10  0.95888
  11  0.277958
  12  0.957506
  13  2.61643
  14  3.00609
  15  0.424765
  16  3.07722
  17  3.09129e-05
  18  1.11023e-06
  19  0.950286
  20  7.98168
  21  2.85857
  22  7.40923
  23  3.62859e-07
  24  3.20603
  25  0.000101112
  26  1.38549e-05
  27  13.1038
  28  2.15239
  29  6.65563
  30  0.0513713
  31  0.0351155
Done.

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

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  3.013e+00  9.503e-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.001e+00  3.512e-02  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.011e+00  5.137e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.99
Ra Dec: 185.971 80.660
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.27e-08 +/- 7.16e-09
Energy Flux (Fixed Index): 1.10e-05 +/- 3.46e-06

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) = 94502.1692305
delta logL = 0.737677665951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 94502.1659367
delta logL = 0.740971441774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6534       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4811       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0033       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.

 FCN=   94502.17     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      214 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6534        6.9424        .62563E-02    .53927E-02
   2  alpha         2.4811        1.4314        .41153        .55149E-03
   3  Normalizat    1.0015        .16953E-01    .46186E-01    .31846E-03
   4  Prefactor     1.0033        .99547E-02    .44601E-01    .54601E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.65338
  alpha      = 2.48113
  Normalizat = 1.0015
  Prefactor  = 1.00326
 **********
 **   18 **HESSE 
 **********

 FCN=   94502.17     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6534        .98132        .12976E-03   -1.5382    
   2  alpha         2.4811        .33002        .18504E-01   -.75469E-02
   3  Normalizat    1.0015        .48615E-01    .27634E-03   -.92980    
   4  Prefactor     1.0033        .34105E-01    .19549E-03   -.92621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20657e-10
Minuit parameter uncertainties:
  1  0.981324
  2  0.330988
  3  0.0486173
  4  0.0341058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813745': 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) = 94502.1659366
delta logL = 0.740971467822

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  2.653e+00  9.813e-01  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.481e+00  3.310e-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.003e+00  3.411e-02  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.002e+00  4.862e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.44
Ra Dec: 185.971 80.660
Photon Index (Free Index): 2.48 +/- 0.33
Photon Flux (Free Index): 3.27e-08 +/- 1.15e-08
Energy Flux (Free Index): 1.04e-05 +/- 2.92e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/813745/cmap_HighResolution_371779201_374371201_4FGL_J1223.8+8039_monthly_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.27e-08', energy_flux2='1.04e-05', photon_flux_error='7.16e-09', dlogl='7.41e-01', energy_flux='1.10e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-10-23 17:22:53.297883', photon_index_error2='0.33', photon_index2='2.48', ts='19.99', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.92e-06', EG='1.01', time_epoch_completed='1635034973.3', return_code='0', job_id='813745', GAL2='1.00', EG2='1.00', return_code2='0', energy_flux_error='3.46e-06', photon_flux_error2='1.15e-08', ts2='21.44', photon_index='2.12' WHERE bin_id='52' AND source_name='4FGL J1223.8+8039' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct 23 17:22:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 813745: <4FGL_J1223.8+8039_monthly_bin52> in cluster <slac> Done

Job <4FGL_J1223.8+8039_monthly_bin52> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Oct 23 14:35:20 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 23 14:35:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 23 14:35:23 2021
Terminated at Sat Oct 23 17:22:54 2021
Results reported at Sat Oct 23 17:22:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_monthly_bin52 185.971 80.6598 371779201 374371201 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 :                                   9934.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             456.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10050 sec.
    Turnaround time :                            10054 sec.

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

