aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 68 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 = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1223.8+8039_monthly_bin169
RA = 185.971, Dec = 80.6598
tmin = 675043201, tmax = 677635201
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='166115', job_status='RUN', time_executed='2022-06-23 02:18:43.941828', time_epoch_executed='1655975923.94' WHERE source_name='4FGL J1223.8+8039' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166115

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166115/ft1_4FGL_J1223.8+8039_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166115/ft2_4FGL_J1223.8+8039_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166115/ft1_4FGL_J1223.8+8039_monthly_bin169.fits outfile=/scratch/kocevski/166115/ft1_filteredMKT_4FGL_J1223.8+8039_monthly_bin169.fits ra=185.971 dec=80.6598 rad=12.0 tmin=675043201.0 tmax=677635201.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 28.05
user 27.28
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166115/ft2_4FGL_J1223.8+8039_monthly_bin169.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/166115/ft1_filteredMKT_4FGL_J1223.8+8039_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/166115/ft1_filtered_4FGL_J1223.8+8039_monthly_bin169.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.86
user 0.66
sys 0.19

Number of photons that the gtmktime cut: 11726

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166115/ft1_filtered_4FGL_J1223.8+8039_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/166115/ft2_4FGL_J1223.8+8039_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/166115/ltcube_675043201_677635201_4FGL_J1223.8+8039_monthly_bin169.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/166115/ft2_4FGL_J1223.8+8039_monthly_bin169.fits
.....................!
real 132.95
user 131.98
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166115/ft1_filtered_4FGL_J1223.8+8039_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/166115/ft2_4FGL_J1223.8+8039_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/166115/ltcube_675043201_677635201_4FGL_J1223.8+8039_monthly_bin169.fits outfile=/scratch/kocevski/166115/expmap_675043201_677635201_4FGL_J1223.8+8039_monthly_bin169.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/166115/ltcube_675043201_677635201_4FGL_J1223.8+8039_monthly_bin169.fits
.....................!
real 192.69
user 187.02
sys 5.11

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/166115/ft1_filtered_4FGL_J1223.8+8039_monthly_bin169.fits scfile=/scratch/kocevski/166115/ft2_4FGL_J1223.8+8039_monthly_bin169.fits outfile=/scratch/kocevski/166115/cmap_675043201_677635201_4FGL_J1223.8+8039_monthly_bin169.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.80
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166115/ft1_filtered_4FGL_J1223.8+8039_monthly_bin169.fits scfile=/scratch/kocevski/166115/ft2_4FGL_J1223.8+8039_monthly_bin169.fits outfile=/scratch/kocevski/166115/cmap_HighResolution_675043201_677635201_4FGL_J1223.8+8039_monthly_bin169.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.81
user 0.62
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11482E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11645E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7597       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2931       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73267       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2379       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.412       1.0000         .10000E-03   10000.    
     9 'norm      '    8.5861       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3037       1.0000         .10000E-03   10000.    
    12 'norm      '    .43286       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .89686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.318       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3094       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7710       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .94711       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3346       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3483       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0292       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.548       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.742       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.287       1.0000         .10000E-03   10000.    
    28 'norm      '    3.2266       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.9176       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99431       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=   124301.5     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     3643 TOTAL
                     EDM=   .76E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7695         .0000    ** at limit **
   2  norm          .10000E-03    .70841         .0000    ** at limit **
   3  Prefactor     .10000E-03    15.347         .0000    ** at limit **
   4  Prefactor     6.7592        1.9568         .0000        .34236E-01
   5  Prefactor     1.2923        2.4219         .0000        .88202E-02
   6  Prefactor     .73277        1.9047         .0000        .13735E-01
   7  Prefactor     4.2396        4.4837         .0000        .79875E-02
   8  Prefactor     24.417        11.329         .0000       -.45576E-02
   9  norm          8.5846        1.9196         .0000        .85498E-01
  10  Prefactor     .10000E-03    .25567         .0000    ** at limit **
  11  norm          1.3038        .19690         .0000        .87535E-02
  12  norm          .43168        .99346         .0000        .21322E-01
  13  Prefactor     .89971        3.3836         .0000        .32450    
  14  Prefactor     10.316        3.3643         .0000        .38509E-02
  15  Prefactor     2.3092        .74708         .0000        .22349E-02
  16  Prefactor     4.7703        2.4132         .0000        .63072E-01
  17  Prefactor     .10000E-03    1.7178         .0000    ** at limit **
  18  norm          .94725        .72333         .0000        .13086E-01
  19  norm          1.3346        .54476         .0000        .54750E-02
  20  Prefactor     2.3445        5.6959         .0000        .86484E-03
  21  Prefactor     1.0297        2.4606         .0000        .23272    
  22  Prefactor     11.548        5.5026         .0000        .15523E-02
  23  Prefactor     .10000E-03    .86045         .0000    ** at limit **
  24  Prefactor     .10000E-03    1.0624         .0000    ** at limit **
  25  Prefactor     .10000E-03    3.5969         .0000    ** at limit **
  26  Prefactor     11.742        6.2347         .0000       -.16100E-03
  27  Prefactor     13.286        10.360         .0000        .85887E-03
  28  norm          3.2268        2.2883         .0000        .50054E-03
  29  Prefactor     4.9174        8.9160         .0000        .20335E-03
  30  Normalizat    1.0020        .39658E-01     .0000        .27021E-03
  31  Prefactor     .99432        .27287E-01     .0000        .17506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.75923
  Prefactor  = 1.29226
  Prefactor  = 0.732768
  Prefactor  = 4.23962
  Prefactor  = 24.4172
  norm       = 8.5846
  Prefactor  = 0.0001
  norm       = 1.30376
  norm       = 0.431684
  Prefactor  = 0.899708
  Prefactor  = 10.3161
  Prefactor  = 2.30925
  Prefactor  = 4.77025
  Prefactor  = 0.000100004
  norm       = 0.94725
  norm       = 1.33458
  Prefactor  = 2.3445
  Prefactor  = 1.02965
  Prefactor  = 11.5476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7418
  Prefactor  = 13.2858
  norm       = 3.22678
  Prefactor  = 4.91739
  Normalizat = 1.00202
  Prefactor  = 0.994318
 **********
 **   18 **HESSE 
 **********

 FCN=   124301.5     FROM HESSE     STATUS=OK           648 CALLS     4291 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.6733        .57781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7592        1.9577        .77164E-03   -1.5188    
   5  Prefactor     1.2923        2.2776        .38920E-03   -1.5481    
   6  Prefactor     .73277        1.8889        .48746E-03   -1.5537    
   7  Prefactor     4.2396        4.3097        .97868E-03   -1.5296    
   8  Prefactor     24.417        10.657        .81074E-04   -1.4719    
   9  norm          8.5846        1.6269        .68401E-03   -1.5122    
  10  Prefactor     .10000E-03    1.5500        .30245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3038        .18373        .50956E-04   -1.5480    
  12  norm          .43168        1.4630        .23977E-02   -1.5577    
  13  Prefactor     .89971        2.8416        .25592E-02   -1.5518    
  14  Prefactor     10.316        3.6283        .12474E-03   -1.5065    
  15  Prefactor     2.3092        .74658        .16829E-03   -1.5404    
  16  Prefactor     4.7703        2.3468        .92100E-03   -1.5271    
  17  Prefactor     .10000E-03    1.7196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .94725        .67379        .25118E-02   -1.5513    
  19  norm          1.3346        .53659        .15573E-03   -1.5477    
  20  Prefactor     2.3445        5.6935        .26750E-03   -1.5402    
  21  Prefactor     1.0297        2.4792        .25078E-02   -1.5505    
  22  Prefactor     11.548        5.5031        .58944E-03   -1.5028    
  23  Prefactor     .10000E-03    .89508        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.0832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.6253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.742        6.2343        .11691E-03   -1.5023    
  27  Prefactor     13.286        10.357        .10988E-03   -1.4979    
  28  norm          3.2268        2.2864        .22551E-03   -1.5349    
  29  Prefactor     4.9174        8.9243        .18137E-03   -1.5264    
  30  Normalizat    1.0020        .43631E-01    .27368E-03   -.92963    
  31  Prefactor     .99432        .30462E-01    .19551E-03   -.92919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75309e-07
Minuit parameter uncertainties:
  1  0.00011523
  2  1.92322e-05
  3  0.000196831
  4  1.95773
  5  2.27775
  6  1.88906
  7  4.30997
  8  10.6583
  9  1.62695
  10  3.93549e-05
  11  0.183734
  12  1.46311
  13  2.84198
  14  3.62842
  15  0.746585
  16  2.34685
  17  0.000156496
  18  0.673794
  19  0.536593
  20  5.69477
  21  2.47947
  22  5.50333
  23  2.49727e-06
  24  1.43522e-06
  25  1.16656e-05
  26  6.23469
  27  10.3587
  28  2.28643
  29  8.92666
  30  0.0436325
  31  0.030462
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.943e-01  3.046e-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.363e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.43
Ra Dec: 185.971 80.660
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.01e-08 +/- 4.04e-09
Energy Flux (Fixed Index): 4.86e-06 +/- 1.95e-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) = 124300.093994
delta logL = 1.38302782275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 124300.089741
delta logL = 1.38728120583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0078       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4675       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99475       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=   124300.1     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0078        .42129        .13291E-01   -.14418E-02
   2  alpha         1.4676        .24525        .46814       -.62841E-03
   3  Normalizat    1.0053        .37363E-01    .46233E-01    .32219E-03
   4  Prefactor     .99475        .26725E-01    .46201E-01    .93419E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00777
  alpha      = 1.46759
  Normalizat = 1.00531
  Prefactor  = 0.994755
 **********
 **   18 **HESSE 
 **********

 FCN=   124300.1     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0078        .51930        .14370E-03   -1.5507    
   2  alpha         1.4676        .35056        .36931E-01   -.42571    
   3  Normalizat    1.0053        .41525E-01    .27332E-03   -.92853    
   4  Prefactor     .99475        .29745E-01    .19549E-03   -.92905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77195e-07
Minuit parameter uncertainties:
  1  0.519302
  2  0.351965
  3  0.0415263
  4  0.0297456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166115': 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) = 124300.089741
delta logL = 1.38728124177

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.008e+00  5.193e-01  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  1.468e+00  3.520e-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:  9.948e-01  2.975e-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.005e+00  4.153e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.22
Ra Dec: 185.971 80.660
Photon Index (Free Index): 1.47 +/- 0.35
Photon Flux (Free Index): 4.19e-09 +/- 2.67e-09
Energy Flux (Free Index): 6.89e-06 +/- 3.65e-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/166115/cmap_HighResolution_675043201_677635201_4FGL_J1223.8+8039_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-08', energy_flux2='6.89e-06', photon_flux_error='4.04e-09', dlogl='1.39e+00', energy_flux='4.86e-06', photon_flux2='4.19e-09', job_status='DONE', time_completed='2022-06-23 05:31:11.121335', photon_index_error2='0.35', photon_index2='1.47', ts='14.43', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.65e-06', EG='1.00', time_epoch_completed='1655987471.12', return_code='0', job_id='166115', GAL2='0.99', EG2='1.01', return_code2='0', energy_flux_error='1.95e-06', photon_flux_error2='2.67e-09', ts2='17.22', photon_index='2.12' WHERE bin_id='169' AND source_name='4FGL J1223.8+8039' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:31:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 166115: <4FGL_J1223.8+8039_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1223.8+8039_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:35:37 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:17:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:17:25 2022
Terminated at Thu Jun 23 05:31:13 2022
Results reported at Thu Jun 23 05:31:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_monthly_bin169 185.971 80.6598 675043201 677635201 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 :                                   11505.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             502.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   11627 sec.
    Turnaround time :                            14136 sec.

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

