/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 81 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 = 7403
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin121
RA = 186.228, Dec = 21.3814
tmin = 270691201, tmax = 270950401
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='597234', job_status='RUN', time_executed='2021-09-05 13:17:36.560629', time_epoch_executed='1630873056.56' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597234/ft1_4FGL_J1224.9+2122_daily_bin121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597234/ft2_4FGL_J1224.9+2122_daily_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597234/ft1_4FGL_J1224.9+2122_daily_bin121.fits outfile=/scratch/kocevski/597234/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin121.fits ra=186.228 dec=21.3814 rad=12.0 tmin=270691201.0 tmax=270950401.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 1.63
user 1.45
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597234/ft1_filtered_4FGL_J1224.9+2122_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/597234/ft2_4FGL_J1224.9+2122_daily_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/597234/ltcube_270691201_270950401_4FGL_J1224.9+2122_daily_bin121.fits outfile=/scratch/kocevski/597234/expmap_270691201_270950401_4FGL_J1224.9+2122_daily_bin121.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/597234/ltcube_270691201_270950401_4FGL_J1224.9+2122_daily_bin121.fits
.....................!
real 190.18
user 185.65
sys 4.16

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/597234/ft1_filtered_4FGL_J1224.9+2122_daily_bin121.fits scfile=/scratch/kocevski/597234/ft2_4FGL_J1224.9+2122_daily_bin121.fits outfile=/scratch/kocevski/597234/cmap_270691201_270950401_4FGL_J1224.9+2122_daily_bin121.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597234/ft1_filtered_4FGL_J1224.9+2122_daily_bin121.fits scfile=/scratch/kocevski/597234/ft2_4FGL_J1224.9+2122_daily_bin121.fits outfile=/scratch/kocevski/597234/cmap_HighResolution_270691201_270950401_4FGL_J1224.9+2122_daily_bin121.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2547       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.638       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24880       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8335       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2118       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9609       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .20473       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.461       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.345       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1393       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4699       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0824       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8843       1.0000         .10000E-03   10000.    
    23 'norm      '    12.096       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3292       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86583       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=   8720.128     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2913 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.537       -.28287E-06** at limit **
   2  Prefactor     .10000E-03    5.4830       -.10408E-06** at limit **
   3  Prefactor     .10000E-03    .67007       -.26205E-06** at limit **
   4  norm          1.2549        .97396       -.24616E-06   -.78733E-03
   5  Prefactor     12.637        13.235       -.45213E-07    .12015E-04
   6  Prefactor     2.8258        2.6396       -.88567E-07    .12993E-03
   7  Prefactor     .10000E-03    47.118        .40385E-05** at limit **
   8  Prefactor     .24912        .81928       -.68438E-06   -.12719E-02
   9  Prefactor     .10000E-03    .58908        .30803E-07** at limit **
  10  norm          3.8336        3.1560       -.49852E-06   -.42892E-03
  11  Prefactor     2.2118        2.0952        .10876E-06   -.13000E-03
  12  Prefactor     1.9608        1.5077       -.69461E-07   -.10773E-03
  13  Prefactor     .10000E-03    1.6690       -.37552E-07** at limit **
  14  norm          .20474        .15664       -.49927E-07   -.14311E-03
  15  norm          .10000E-03    2.0865       -.62275E-07** at limit **
  16  Prefactor     13.579        10.007        .68887E-05    .65629E-04
  17  Prefactor     50.462        13.876       -.50453E-06    .71249E-04
  18  Prefactor     25.314        25.515       -.30152E-04    .16884E-04
  19  Prefactor     6.1331        94.700       -.21719E-04   -.38967E-05
  20  Prefactor     4.4694        6.5997       -.15881E-05   -.25736E-03
  21  Prefactor     8.0825        8.9738        .18744E-06   -.12290E-04
  22  norm          2.8840        3.7722       -.15433E-05   -.73814E-03
  23  norm          12.096        16.772       -.49951E-06    .77546E-05
  24  Normalizat    1.3291        .16146        .26341E-05    .21809E-03
  25  Prefactor     .86592        .16000        .19779E-05    .26931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25487
  Prefactor  = 12.6369
  Prefactor  = 2.82582
  Prefactor  = 0.0001
  Prefactor  = 0.249117
  Prefactor  = 0.0001
  norm       = 3.83357
  Prefactor  = 2.21177
  Prefactor  = 1.96082
  Prefactor  = 0.0001
  norm       = 0.204744
  norm       = 0.0001
  Prefactor  = 13.5794
  Prefactor  = 50.4615
  Prefactor  = 25.3143
  Prefactor  = 6.13314
  Prefactor  = 4.46944
  Prefactor  = 8.08247
  norm       = 2.88401
  norm       = 12.0961
  Normalizat = 1.32914
  Prefactor  = 0.865916
 **********
 **   18 **HESSE 
 **********

 FCN=   8720.128     FROM HESSE     STATUS=OK           437 CALLS     3350 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1283        .14785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2549        .95612        .77898E-04   -1.5484    
   5  Prefactor     12.637        13.232        .11268E-03   -1.4997    
   6  Prefactor     2.8258        2.6309        .14007E-03   -1.5372    
   7  Prefactor     .10000E-03    47.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24912        .96612        .14720E-02   -1.5608    
   9  Prefactor     .10000E-03    .59199        .69956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8336        3.1604        .12724E-03   -1.5316    
  11  Prefactor     2.2118        2.1051        .11271E-03   -1.5411    
  12  Prefactor     1.9608        1.5014        .95764E-04   -1.5428    
  13  Prefactor     .10000E-03    1.6764        .11779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .20474        .15431        .30856E-04   -1.5617    
  15  norm          .10000E-03    2.1159        .13166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.579        9.9858        .10871E-03   -1.4971    
  17  Prefactor     50.462        13.874        .56455E-04   -1.4286    
  18  Prefactor     25.314        25.436        .79571E-04   -1.4701    
  19  Prefactor     6.1331        94.901        .16203E-03   -1.5213    
  20  Prefactor     4.4694        6.5895        .19045E-03   -1.5285    
  21  Prefactor     8.0825        8.9722        .14103E-03   -1.5139    
  22  norm          2.8840        3.7673        .19696E-03   -1.5368    
  23  norm          12.096        16.757        .11518E-03   -1.5012    
  24  Normalizat    1.3291        .19042        .24208E-03   -.82701    
  25  Prefactor     .86592        .18925        .29593E-03   -.97342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1711e-09
Minuit parameter uncertainties:
  1  8.41609e-05
  2  2.97282e-05
  3  2.72459e-05
  4  0.956136
  5  13.2354
  6  2.631
  7  4.13483e-05
  8  0.966184
  9  2.23564e-06
  10  3.16052
  11  2.10517
  12  1.50145
  13  4.54736e-06
  14  0.154309
  15  1.04426e-05
  16  9.98703
  17  13.8746
  18  25.447
  19  48.3422
  20  6.59058
  21  8.97369
  22  3.76759
  23  16.7637
  24  0.190525
  25  0.18939
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.047e-01  1.543e-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:  8.659e-01  1.894e-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.329e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.53
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 9.06e-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) = 8719.92788103
delta logL = 0.199978234028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8719.92278249
delta logL = 0.205076774459

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17525       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9056       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85707       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=   8719.923     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17529        .13704        .65830E-02    .59680E-03
   2  alpha         1.9056        .37913        .40735       -.47504E-04
   3  Normalizat    1.3423        .15625        .54517E-01    .32485E-05
   4  Prefactor     .85754        .15875        .67181E-01    .21434E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.175289
  alpha      = 1.90561
  Normalizat = 1.34225
  Prefactor  = 0.857536
 **********
 **   18 **HESSE 
 **********

 FCN=   8719.923     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17529        .15427        .29176E-04   -1.5624    
   2  alpha         1.9056        .54615        .14124E-01   -.24006    
   3  Normalizat    1.3423        .18591        .24106E-03   -.82314    
   4  Prefactor     .85754        .18827        .29719E-03   -.97641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86708e-09
Minuit parameter uncertainties:
  1  0.154267
  2  0.550858
  3  0.186006
  4  0.188413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597234': 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) = 8719.92277895
delta logL = 0.205080310316

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.753e-01  1.543e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.906e+00  5.509e-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:  8.575e-01  1.884e-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.342e+00  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.93
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.91 +/- 0.55
Photon Flux (Free Index): 2.49e-08 +/- 2.43e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/597234/cmap_HighResolution_270691201_270950401_4FGL_J1224.9+2122_daily_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='1.59e-05', photon_flux_error='2.61e-08', dlogl='2.05e-01', energy_flux='1.20e-05', photon_flux2='2.49e-08', job_status='DONE', time_completed='2021-09-05 13:30:39.406614', photon_index_error2='0.55', photon_index2='1.91', ts='4.53', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.33', time_epoch_completed='1630873839.41', return_code='0', job_id='597234', GAL2='0.86', EG2='1.34', return_code2='0', energy_flux_error='9.06e-06', photon_flux_error2='2.43e-08', ts2='4.93', photon_index='2.28' WHERE bin_id='121' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:30:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 597234: <4FGL_J1224.9+2122_daily_bin121> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin121 186.228 21.3814 270691201 270950401 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 :                                   769.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

