/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 54 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 = 7461
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin761
RA = 186.228, Dec = 21.3814
tmin = 436579201, tmax = 436838401
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='601276', job_status='RUN', time_executed='2021-09-05 13:31:51.274763', time_epoch_executed='1630873911.27' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601276/ft1_4FGL_J1224.9+2122_daily_bin761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601276/ft2_4FGL_J1224.9+2122_daily_bin761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601276/ft1_4FGL_J1224.9+2122_daily_bin761.fits outfile=/scratch/kocevski/601276/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin761.fits ra=186.228 dec=21.3814 rad=12.0 tmin=436579201.0 tmax=436838401.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.19
user 5.26
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/601276/ft2_4FGL_J1224.9+2122_daily_bin761.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601276/ft2_4FGL_J1224.9+2122_daily_bin761.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/601276/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin761.fits evtable="EVENTS" outfile="/scratch/kocevski/601276/ft1_filtered_4FGL_J1224.9+2122_daily_bin761.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 1.02
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601276/ft1_filtered_4FGL_J1224.9+2122_daily_bin761.fits" evtable="EVENTS" scfile=/scratch/kocevski/601276/ft2_4FGL_J1224.9+2122_daily_bin761.fits sctable="SC_DATA" outfile=/scratch/kocevski/601276/ltcube_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.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/601276/ft2_4FGL_J1224.9+2122_daily_bin761.fits
.....................!
real 12.50
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601276/ft1_filtered_4FGL_J1224.9+2122_daily_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/601276/ft2_4FGL_J1224.9+2122_daily_bin761.fits sctable="SC_DATA" expcube=/scratch/kocevski/601276/ltcube_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.fits outfile=/scratch/kocevski/601276/expmap_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.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/601276/ltcube_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.fits
.....................!
real 191.87
user 185.66
sys 4.65

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

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/601276/ft1_filtered_4FGL_J1224.9+2122_daily_bin761.fits scfile=/scratch/kocevski/601276/ft2_4FGL_J1224.9+2122_daily_bin761.fits outfile=/scratch/kocevski/601276/cmap_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.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=186.228 yref=21.3814 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.85
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601276/ft1_filtered_4FGL_J1224.9+2122_daily_bin761.fits scfile=/scratch/kocevski/601276/ft2_4FGL_J1224.9+2122_daily_bin761.fits outfile=/scratch/kocevski/601276/cmap_HighResolution_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.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=186.228 yref=21.3814 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.68
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601276/ft1_filtered_4FGL_J1224.9+2122_daily_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/601276/ft2_4FGL_J1224.9+2122_daily_bin761.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601276/Model_4FGL_J1224.9+2122_daily_bin761.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/601276/ft1_filtered_4FGL_J1224.9+2122_daily_bin761.fits.....................!
real 64.47
user 62.59
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601276/ft1_filtered_4FGL_J1224.9+2122_daily_bin761.fits', '/scratch/kocevski/601276/ft2_4FGL_J1224.9+2122_daily_bin761.fits', expMap='/scratch/kocevski/601276/expmap_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.fits', expCube='/scratch/kocevski/601276/ltcube_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601276/Model_4FGL_J1224.9+2122_daily_bin761.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.9+2122'

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.090e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/601276/ft1_filtered_4FGL_J1224.9+2122_daily_bin761.fits
Spacecraft file(s): /scratch/kocevski/601276/ft2_4FGL_J1224.9+2122_daily_bin761.fits
Exposure map: /scratch/kocevski/601276/expmap_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.fits
Exposure cube: /scratch/kocevski/601276/ltcube_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601276/Model_4FGL_J1224.9+2122_daily_bin761.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) = 6359.39830589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.574       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.302       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7716       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.693       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2753       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3249       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4634       1.0000         .10000E-03   10000.    
    14 'norm      '    12.000       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1610       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38243E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.462       1.0000         .10000E-03   10000.    
    19 'Prefactor '    118.21       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.074       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.0258       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4699       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .38033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6359.340     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2913 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.582        21.622       -.34911E-06    .39117E-05
   2  Prefactor     14.303        14.088        .39825E-06    .19174E-05
   3  Prefactor     .10000E-03    .90544        .13253E-06** at limit **
   4  norm          1.7715        1.3104        .83528E-07   -.51778E-05
   5  Prefactor     16.695        17.259        .20380E-06   -.66718E-05
   6  Prefactor     .10000E-03    3.5348        .11724E-06** at limit **
   7  Prefactor     .10000E-03    52.462        .72349E-06** at limit **
   8  Prefactor     .10000E-03    1.1536        .77659E-07** at limit **
   9  Prefactor     7.2758        4.6718       -.63060E-07   -.31608E-04
  10  norm          5.1368        4.0892       -.10486E-06    .26882E-04
  11  Prefactor     4.3249        3.2569        .50914E-07   -.54618E-04
  12  Prefactor     .10000E-03    .97891        .42817E-07** at limit **
  13  Prefactor     9.4635        9.3546       -.15763E-05    .65649E-05
  14  norm          12.001        .92879       -.50869E-08   -.60048E-04
  15  norm          2.1617        5.4124        .63136E-05   -.14243E-03
  16  Prefactor     .10000E-03    23.668        .42227E-05** at limit **
  17  Prefactor     .10000E-03    8.7072       -.16113E-06** at limit **
  18  Prefactor     54.463        41.198       -.17609E-05   -.26648E-03
  19  Prefactor     118.12        114.69        .96190E-05   -.19139E-04
  20  Prefactor     12.075        10.953        .13274E-06    .13472E-05
  21  Prefactor     .10000E-03    23.264       -.55026E-06** at limit **
  22  norm          .10000E-03    2.0986       -.11613E-06** at limit **
  23  norm          4.0118        55.283        .55383E-05   -.61478E-05
  24  Normalizat    1.4692        .24717        .13482E-05   -.95410E-04
  25  Prefactor     .38097        .22925       -.51168E-05   -.14219E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5815
  Prefactor  = 14.3032
  Prefactor  = 0.0001
  norm       = 1.77154
  Prefactor  = 16.6946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.27584
  norm       = 5.13679
  Prefactor  = 4.32493
  Prefactor  = 0.0001
  Prefactor  = 9.46349
  norm       = 12.0006
  norm       = 2.1617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.4628
  Prefactor  = 118.122
  Prefactor  = 12.0752
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.01182
  Normalizat = 1.46924
  Prefactor  = 0.380967
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.340     FROM HESSE     STATUS=OK           429 CALLS     3342 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.582        21.669        .77711E-04   -1.4676    
   2  Prefactor     14.303        14.077        .10591E-03   -1.4951    
   3  Prefactor     .10000E-03    .92146        .74013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7715        1.2997        .75161E-04   -1.5442    
   5  Prefactor     16.695        17.244        .98027E-04   -1.4891    
   6  Prefactor     .10000E-03    3.5941        .14629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1564        .83589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2758        4.6685        .13155E-03   -1.5168    
  10  norm          5.1368        4.1300        .12424E-03   -1.5255    
  11  Prefactor     4.3249        3.2911        .10839E-03   -1.5292    
  12  Prefactor     .10000E-03    .98450        .76991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.4635        9.3592        .13027E-03   -1.5093    
  14  norm          12.001        .93365        .20064E-04   -1.5015    
  15  norm          2.1617        5.4356        .13448E-02   -1.5414    
  16  Prefactor     .10000E-03    24.318        .42568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.463        41.281        .54352E-04   -1.4231    
  19  Prefactor     118.12        114.67        .18505E-03   -1.3530    
  20  Prefactor     12.075        10.952        .11528E-03   -1.5013    
  21  Prefactor     .10000E-03    23.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.1062        .11279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0118        55.339        .20098E-03   -1.5307    
  24  Normalizat    1.4692        .27489        .28633E-03   -.78646    
  25  Prefactor     .38097        .24514        .49135E-03   -1.1779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86012e-10
Minuit parameter uncertainties:
  1  21.6754
  2  14.0798
  3  5.64688e-06
  4  1.29972
  5  17.2493
  6  1.11539e-05
  7  1.04407e-05
  8  3.63431e-06
  9  4.66869
  10  4.13022
  11  3.29126
  12  1.99141e-07
  13  9.3606
  14  0.933648
  15  5.43682
  16  4.48083e-05
  17  2.53911e-05
  18  41.303
  19  114.885
  20  10.9535
  21  9.81444e-05
  22  7.15534e-06
  23  29.8332
  24  0.275166
  25  0.245815
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.200e+01  9.336e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  3.810e-01  2.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.469e+00  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 666.08
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.03e-06 +/- 1.58e-07
Energy Flux (Fixed Index): 7.05e-04 +/- 5.48e-05

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) = 6359.31483506
delta logL = 0.0248014062208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6359.31278633
delta logL = 0.026850135222

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6359.313     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      191 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.972        .94188        .28943E-02    .54567E-02
   2  alpha         2.2978        .86000E-01    .41323E-01   -.69526E-05
   3  Normalizat    1.4562        .24417        .64934E-01   -.43214E-05
   4  Prefactor     .38975        .22320        .10950        .50318E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9725
  alpha      = 2.29777
  Normalizat = 1.45623
  Prefactor  = 0.389749
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.313     FROM HESSE     STATUS=OK            29 CALLS      220 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.972        .93045        .20004E-04   -1.5016    
   2  alpha         2.2978        .85267E-01    .25535E-03   -.80979E-01
   3  Normalizat    1.4562        .27022        .28718E-03   -.79016    
   4  Prefactor     .38975        .24411        .48614E-03   -1.1733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22798e-10
Minuit parameter uncertainties:
  1  0.930455
  2  0.0852834
  3  0.270487
  4  0.244757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601276': 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) = 6359.31278629
delta logL = 0.0268501752298

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.197e+01  9.305e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.298e+00  8.528e-02  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  3.897e-01  2.448e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.456e+00  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 651.55
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.30 +/- 0.09
Photon Flux (Free Index): 2.05e-06 +/- 1.78e-07
Energy Flux (Free Index): 6.95e-04 +/- 6.90e-05

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/601276/cmap_HighResolution_436579201_436838401_4FGL_J1224.9+2122_daily_bin761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-06', energy_flux2='6.95e-04', photon_flux_error='1.58e-07', dlogl='2.69e-02', energy_flux='7.05e-04', photon_flux2='2.05e-06', job_status='DONE', time_completed='2021-09-05 13:43:27.823557', photon_index_error2='0.09', photon_index2='2.30', ts='666.08', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', energy_flux_error2='6.90e-05', EG='1.47', time_epoch_completed='1630874607.82', return_code='0', job_id='601276', GAL2='0.39', EG2='1.46', return_code2='0', energy_flux_error='5.48e-05', photon_flux_error2='1.78e-07', ts2='651.55', photon_index='2.28' WHERE bin_id='761' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:43:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 601276: <4FGL_J1224.9+2122_daily_bin761> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin761> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:30:30 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:30:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:30:32 2021
Terminated at Sun Sep  5 13:43:31 2021
Results reported at Sun Sep  5 13:43:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin761 186.228 21.3814 436579201 436838401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.9+2122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   688.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            781 sec.

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

