/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 56 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 = 7558
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin320
RA = 186.228, Dec = 21.3814
tmin = 322272001, tmax = 322531201
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='597605', job_status='RUN', time_executed='2021-09-05 13:17:40.803612', time_epoch_executed='1630873060.8' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597605/ft1_4FGL_J1224.9+2122_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597605/ft2_4FGL_J1224.9+2122_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597605/ft1_4FGL_J1224.9+2122_daily_bin320.fits outfile=/scratch/kocevski/597605/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin320.fits ra=186.228 dec=21.3814 rad=12.0 tmin=322272001.0 tmax=322531201.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 3.42
user 3.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597605/ft2_4FGL_J1224.9+2122_daily_bin320.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/597605/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin320.fits evtable="EVENTS" outfile="/scratch/kocevski/597605/ft1_filtered_4FGL_J1224.9+2122_daily_bin320.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597605/ft1_filtered_4FGL_J1224.9+2122_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/597605/ft2_4FGL_J1224.9+2122_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/597605/ltcube_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.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/597605/ft2_4FGL_J1224.9+2122_daily_bin320.fits
.....................!
real 11.68
user 11.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597605/ft1_filtered_4FGL_J1224.9+2122_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/597605/ft2_4FGL_J1224.9+2122_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/597605/ltcube_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.fits outfile=/scratch/kocevski/597605/expmap_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.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/597605/ltcube_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.fits
.....................!
real 190.98
user 186.04
sys 4.43

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/597605/ft1_filtered_4FGL_J1224.9+2122_daily_bin320.fits scfile=/scratch/kocevski/597605/ft2_4FGL_J1224.9+2122_daily_bin320.fits outfile=/scratch/kocevski/597605/cmap_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597605/ft1_filtered_4FGL_J1224.9+2122_daily_bin320.fits scfile=/scratch/kocevski/597605/ft2_4FGL_J1224.9+2122_daily_bin320.fits outfile=/scratch/kocevski/597605/cmap_HighResolution_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.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.76
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/597605/ft1_filtered_4FGL_J1224.9+2122_daily_bin320.fits', '/scratch/kocevski/597605/ft2_4FGL_J1224.9+2122_daily_bin320.fits', expMap='/scratch/kocevski/597605/expmap_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.fits', expCube='/scratch/kocevski/597605/ltcube_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/597605/Model_4FGL_J1224.9+2122_daily_bin320.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/597605/ft1_filtered_4FGL_J1224.9+2122_daily_bin320.fits
Spacecraft file(s): /scratch/kocevski/597605/ft2_4FGL_J1224.9+2122_daily_bin320.fits
Exposure map: /scratch/kocevski/597605/expmap_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.fits
Exposure cube: /scratch/kocevski/597605/ltcube_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/597605/Model_4FGL_J1224.9+2122_daily_bin320.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) = 6572.80598273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5369       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3491       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8999       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.631       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2017       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16601E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3141       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.4746       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3355       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5606       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0223       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4080       1.0000         .10000E-03   10000.    
    15 'norm      '    .45122E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6014       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.881       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8030       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.024       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1183       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1933       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6572.789     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2534 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5375        1.7831        .10038E-05    .45911E-03
   2  Prefactor     7.3486        1.0625        .24917E-06    .12012E-03
   3  Prefactor     .10000E-03    2.6120       -.11799E-05** at limit **
   4  norm          1.8998        1.2160       -.14226E-05    .15876E-04
   5  Prefactor     16.646        15.297        .55615E-05   -.89789E-05
   6  Prefactor     1.2004        4.2096       -.11226E-05   -.38245E-05
   7  Prefactor     .10000E-03    594.63        .27590E-04** at limit **
   8  Prefactor     2.3150        2.7075       -.16440E-06    .30210E-07
   9  Prefactor     .10000E-03    2.9618       -.22622E-05** at limit **
  10  norm          5.4744        2.9978       -.84485E-06    .38620E-05
  11  Prefactor     2.3355        1.9385        .24227E-06    .50930E-07
  12  Prefactor     1.5604        1.7830       -.13473E-05    .13370E-06
  13  Prefactor     9.0244        5.9101       -.23453E-05   -.11054E-04
  14  norm          1.4080        .33986        .11836E-06   -.79230E-04
  15  norm          .10000E-03    12.116       -.73827E-05** at limit **
  16  Prefactor     2.6001        8.0521       -.10417E-04   -.90420E-05
  17  Prefactor     10.881        1.0881        .30142E-06   -.14441E-03
  18  Prefactor     .10000E-03    20.316        .10219E-06** at limit **
  19  Prefactor     .10000E-03    85.730        .25330E-04** at limit **
  20  Prefactor     3.8027        3.8166        .11832E-05   -.26700E-05
  21  Prefactor     20.021        3.6339       -.11340E-05    .40469E-03
  22  norm          .10000E-03    .85077        .42037E-06** at limit **
  23  norm          .10000E-03    7.2624        .36590E-05** at limit **
  24  Normalizat    1.1184        .22645        .51683E-05   -.96676E-05
  25  Prefactor     1.1934        .23421       -.12784E-05   -.78442E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.53747
  Prefactor  = 7.34858
  Prefactor  = 0.0001
  norm       = 1.89979
  Prefactor  = 16.6463
  Prefactor  = 1.20039
  Prefactor  = 0.000100001
  Prefactor  = 2.31498
  Prefactor  = 0.0001
  norm       = 5.47437
  Prefactor  = 2.33546
  Prefactor  = 1.56044
  Prefactor  = 9.02437
  norm       = 1.40802
  norm       = 0.0001
  Prefactor  = 2.6001
  Prefactor  = 10.8807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.80271
  Prefactor  = 20.0207
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.11843
  Prefactor  = 1.19336
 **********
 **   18 **HESSE 
 **********

 FCN=   6572.789     FROM HESSE     STATUS=OK           501 CALLS     3035 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5375        13.171        .53734E-02   -1.5332    
   2  Prefactor     7.3486        9.5986        .36988E-02   -1.5166    
   3  Prefactor     .10000E-03    1.0989        .28207E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8998        1.2310        .75437E-02   -1.5432    
   5  Prefactor     16.646        15.818        .24553E-02   -1.4892    
   6  Prefactor     1.2004        4.3011        .10348E-01   -1.5489    
   7  Prefactor     .10000E-03    585.56        .91058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3150        2.7592        .67422E-02   -1.5404    
   9  Prefactor     .10000E-03    2.8778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4744        3.0064        .42932E-02   -1.5240    
  11  Prefactor     2.3355        1.9384        .67078E-02   -1.5402    
  12  Prefactor     1.5604        1.8103        .85156E-02   -1.5458    
  13  Prefactor     9.0244        5.9772        .33359E-02   -1.5107    
  14  norm          1.4080        .34033        .49722E-02   -1.5471    
  15  norm          .10000E-03    2.2214        .67458E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6001        8.0980        .63237E-02   -1.5385    
  17  Prefactor     10.881        9.5028        .30365E-02   -1.5048    
  18  Prefactor     .10000E-03    20.239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    85.615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.8027        3.8134        .51746E-02   -1.5318    
  21  Prefactor     20.021        17.243        .22377E-02   -1.4813    
  22  norm          .10000E-03    .84986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.2587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1184        .19372        .61017E-01   -.89162    
  25  Prefactor     1.1934        .19839        .63085E-01   -.86536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19265e-07
Minuit parameter uncertainties:
  1  13.1819
  2  9.60064
  3  1.47314e-07
  4  1.23102
  5  15.8224
  6  4.30225
  7  0.00160518
  8  2.75939
  9  8.3354e-07
  10  3.00653
  11  1.9385
  12  1.81036
  13  5.97756
  14  0.340332
  15  5.32049e-07
  16  8.10139
  17  9.50416
  18  3.97213e-06
  19  6.55583e-05
  20  3.81369
  21  17.2474
  22  4.39503e-08
  23  2.61731e-08
  24  0.193846
  25  0.198514
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.408e+00  3.403e-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:  1.193e+00  1.985e-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.118e+00  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 46.31
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.38e-07 +/- 5.75e-08
Energy Flux (Fixed Index): 8.27e-05 +/- 2.00e-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) = 6572.70516182
delta logL = 0.0839197056539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6572.70181056
delta logL = 0.087270960702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3987       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3856       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2070       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=   6572.702     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      204 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3987        .42877        .48767E-02    .40834E-04
   2  alpha         2.3856        .32275        .17977       -.27821E-04
   3  Normalizat    1.0996        .18683        .61436E-01    .57292E-04
   4  Prefactor     1.2070        .19729        .62776E-01   -.35403E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39866
  alpha      = 2.38563
  Normalizat = 1.09964
  Prefactor  = 1.20698
 **********
 **   18 **HESSE 
 **********

 FCN=   6572.702     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3987        .33545        .21583E-04   -1.5471    
   2  alpha         2.3856        .26113        .77198E-02   -.45763E-01
   3  Normalizat    1.0996        .22377        .27173E-03   -.89764    
   4  Prefactor     1.2070        .23446        .27766E-03   -.86117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23542e-11
Minuit parameter uncertainties:
  1  0.335446
  2  0.261606
  3  0.223965
  4  0.234663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597605': 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) = 6572.70181056
delta logL = 0.0872709608584

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.399e+00  3.354e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.386e+00  2.616e-01  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:  1.207e+00  2.347e-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.100e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.27
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.39 +/- 0.26
Photon Flux (Free Index): 2.53e-07 +/- 6.84e-08
Energy Flux (Free Index): 7.76e-05 +/- 2.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/597605/cmap_HighResolution_322272001_322531201_4FGL_J1224.9+2122_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.38e-07', energy_flux2='7.76e-05', photon_flux_error='5.75e-08', dlogl='8.73e-02', energy_flux='8.27e-05', photon_flux2='2.53e-07', job_status='DONE', time_completed='2021-09-05 13:28:41.954475', photon_index_error2='0.26', photon_index2='2.39', ts='46.31', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='1.12', time_epoch_completed='1630873721.95', return_code='0', job_id='597605', GAL2='1.21', EG2='1.10', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='6.84e-08', ts2='46.27', photon_index='2.28' WHERE bin_id='320' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:28:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 597605: <4FGL_J1224.9+2122_daily_bin320> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin320> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:16:26 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:16:27 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:16:27 2021
Terminated at Sun Sep  5 13:28:42 2021
Results reported at Sun Sep  5 13:28:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin320 186.228 21.3814 322272001 322531201 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 :                                   648.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            736 sec.

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

