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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1149
RA = 186.228, Dec = 21.3814
tmin = 537148801, tmax = 537408001
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='603022', job_status='RUN', time_executed='2021-09-05 13:37:16.066032', time_epoch_executed='1630874236.07' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603022/ft1_4FGL_J1224.9+2122_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603022/ft2_4FGL_J1224.9+2122_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603022/ft1_4FGL_J1224.9+2122_daily_bin1149.fits outfile=/scratch/kocevski/603022/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1149.fits ra=186.228 dec=21.3814 rad=12.0 tmin=537148801.0 tmax=537408001.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.66
user 3.35
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603022/ft2_4FGL_J1224.9+2122_daily_bin1149.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/603022/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1149.fits evtable="EVENTS" outfile="/scratch/kocevski/603022/ft1_filtered_4FGL_J1224.9+2122_daily_bin1149.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.53
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603022/ft1_filtered_4FGL_J1224.9+2122_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/603022/ft2_4FGL_J1224.9+2122_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/603022/ltcube_537148801_537408001_4FGL_J1224.9+2122_daily_bin1149.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/603022/ft2_4FGL_J1224.9+2122_daily_bin1149.fits
.....................!
real 11.99
user 11.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603022/ft1_filtered_4FGL_J1224.9+2122_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/603022/ft2_4FGL_J1224.9+2122_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/603022/ltcube_537148801_537408001_4FGL_J1224.9+2122_daily_bin1149.fits outfile=/scratch/kocevski/603022/expmap_537148801_537408001_4FGL_J1224.9+2122_daily_bin1149.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/603022/ltcube_537148801_537408001_4FGL_J1224.9+2122_daily_bin1149.fits
.....................!
real 189.81
user 184.91
sys 4.27

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/603022/ft1_filtered_4FGL_J1224.9+2122_daily_bin1149.fits scfile=/scratch/kocevski/603022/ft2_4FGL_J1224.9+2122_daily_bin1149.fits outfile=/scratch/kocevski/603022/cmap_537148801_537408001_4FGL_J1224.9+2122_daily_bin1149.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603022/ft1_filtered_4FGL_J1224.9+2122_daily_bin1149.fits scfile=/scratch/kocevski/603022/ft2_4FGL_J1224.9+2122_daily_bin1149.fits outfile=/scratch/kocevski/603022/cmap_HighResolution_537148801_537408001_4FGL_J1224.9+2122_daily_bin1149.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.61
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.384       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5678       1.0000         .10000E-03   10000.    
     4 'norm      '    27.408       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.596       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24659       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9049       1.0000         .10000E-03   10000.    
    10 'norm      '    11.172       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3481       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9774       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34133E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .21274       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3871       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.131       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5300       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    13.889       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76924       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3239       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=   8045.636     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2991 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.384        20.670        .18354E-05   -.45095E-04
   2  Prefactor     8.9535        12.521        .45995E-05   -.21904E-03
   3  Prefactor     1.5678        1.6729       -.22399E-06   -.67167E-03
   4  norm          27.408        2.9324        .45706E-08    .13447E-03
   5  Prefactor     12.599        14.337       -.16114E-06    .34238E-04
   6  Prefactor     .10000E-03    1.6532       -.88779E-07** at limit **
   7  Prefactor     .10000E-03    49.580       -.18271E-05** at limit **
   8  Prefactor     .25082        1.4103       -.14390E-05   -.60016E-03
   9  Prefactor     5.9055        3.4810        .42850E-06    .47587E-03
  10  norm          11.173        4.2591       -.63881E-07   -.88685E-03
  11  Prefactor     1.3481        2.0582       -.71048E-07   -.49583E-03
  12  Prefactor     1.9772        2.2657       -.68334E-07   -.56670E-03
  13  Prefactor     .38105E-01    3.4319       -.36871E-06   -.25474E-04
  14  norm          .21269        .17381        .15742E-07    .65362E-03
  15  norm          2.3795        3.2965       -.15754E-07   -.37957E-03
  16  Prefactor     11.132        8.6197       -.15146E-06    .37103E-04
  17  Prefactor     .10000E-03    3.8834        .34385E-07** at limit **
  18  Prefactor     .10000E-03    9.2450       -.75155E-08** at limit **
  19  Prefactor     .10000E-03    55.498        .23997E-05** at limit **
  20  Prefactor     .10000E-03    1.9888        .15746E-07** at limit **
  21  Prefactor     9.5321        13.931       -.12585E-05    .18798E-04
  22  norm          .10000E-03    2.8360       -.11402E-07** at limit **
  23  norm          13.892        20.858        .96577E-06   -.34689E-04
  24  Normalizat    .76932        .18188       -.86807E-06    .21663E-03
  25  Prefactor     1.3237        .17958        .17224E-06    .19683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3837
  Prefactor  = 8.95353
  Prefactor  = 1.56779
  norm       = 27.4079
  Prefactor  = 12.599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.250817
  Prefactor  = 5.90553
  norm       = 11.1727
  Prefactor  = 1.34806
  Prefactor  = 1.97718
  Prefactor  = 0.0381052
  norm       = 0.212694
  norm       = 2.37946
  Prefactor  = 11.1321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.53208
  norm       = 0.0001
  norm       = 13.892
  Normalizat = 0.769317
  Prefactor  = 1.32373
 **********
 **   18 **HESSE 
 **********

 FCN=   8045.636     FROM HESSE     STATUS=OK           445 CALLS     3436 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.384        20.534        .12434E-03   -1.5063    
   2  Prefactor     8.9535        12.004        .13395E-03   -1.5109    
   3  Prefactor     1.5678        1.6600        .11355E-03   -1.5458    
   4  norm          27.408        2.9321        .47496E-04   -1.4660    
   5  Prefactor     12.599        14.337        .11286E-03   -1.4998    
   6  Prefactor     .10000E-03    1.6702        .11254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25082        2.9149        .20434E-02   -1.5608    
   9  Prefactor     5.9055        3.4447        .11702E-03   -1.5222    
  10  norm          11.173        4.2451        .50535E-03   -1.5039    
  11  Prefactor     1.3481        2.0165        .14378E-03   -1.5476    
  12  Prefactor     1.9772        2.2470        .13440E-03   -1.5427    
  13  Prefactor     .38105E-01    3.4283        .52432E-01   -1.5669    
  14  norm          .21269        .17018        .32079E-04   -1.5616    
  15  norm          2.3795        3.2778        .18052E-03   -1.5399    
  16  Prefactor     11.132        8.6281        .12008E-03   -1.5041    
  17  Prefactor     .10000E-03    3.9189        .17259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.2595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    55.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9932        .12352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5321        14.002        .12981E-03   -1.5090    
  22  norm          .10000E-03    2.9092        .29472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          13.892        20.801        .10747E-03   -1.4962    
  24  Normalizat    .76932        .21222        .32462E-03   -1.0122    
  25  Prefactor     1.3237        .21313        .26597E-03   -.82604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05564e-09
Minuit parameter uncertainties:
  1  20.5483
  2  12.007
  3  1.66008
  4  2.9321
  5  14.3412
  6  9.732e-06
  7  0.00011859
  8  1.70986
  9  3.44482
  10  4.24523
  11  2.01657
  12  2.2471
  13  0.721962
  14  0.170179
  15  3.27803
  16  8.62901
  17  3.00742e-06
  18  6.02273e-06
  19  0.000140271
  20  1.05366e-06
  21  14.0071
  22  2.26836e-06
  23  20.8123
  24  0.212448
  25  0.213272
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.127e-01  1.702e-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.324e+00  2.133e-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:  7.693e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.12
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.59e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.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) = 8045.61772747
delta logL = 0.0179657192029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8045.61197452
delta logL = 0.0237186762142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19214       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1124       1.0000          .0000       5.0000    
     3 'Normalizat'    .77684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3199       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=   8045.612     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19203        .17134        .70857E-02    .42064E-03
   2  alpha         2.1122        .52608        .41794       -.40534E-04
   3  Normalizat    .77684        .17073        .73012E-01    .30185E-04
   4  Prefactor     1.3199        .17816        .60221E-01    .38934E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.192035
  alpha      = 2.11215
  Normalizat = 0.776837
  Prefactor  = 1.31986
 **********
 **   18 **HESSE 
 **********

 FCN=   8045.612     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19203        .18955        .31623E-04   -1.5620    
   2  alpha         2.1122        .73366        .17561E-01   -.15577    
   3  Normalizat    .77684        .20320        .32315E-03   -1.0093    
   4  Prefactor     1.3199        .21089        .26630E-03   -.82718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79258e-12
Minuit parameter uncertainties:
  1  0.189555
  2  0.7449
  3  0.203396
  4  0.211022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603022': 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) = 8045.61197411
delta logL = 0.023719080993

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.920e-01  1.896e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.112e+00  7.449e-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.320e+00  2.110e-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:  7.768e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.11 +/- 0.74
Photon Flux (Free Index): 2.97e-08 +/- 3.63e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.14e-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/603022/cmap_HighResolution_537148801_537408001_4FGL_J1224.9+2122_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='1.30e-05', photon_flux_error='2.87e-08', dlogl='2.37e-02', energy_flux='1.25e-05', photon_flux2='2.97e-08', job_status='DONE', time_completed='2021-09-05 13:50:03.986831', photon_index_error2='0.74', photon_index2='2.11', ts='4.12', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.77', time_epoch_completed='1630875003.99', return_code='0', job_id='603022', GAL2='1.32', EG2='0.78', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='3.63e-08', ts2='4.14', photon_index='2.28' WHERE bin_id='1149' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 603022: <4FGL_J1224.9+2122_daily_bin1149> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1149> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:35 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:36 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:35:36 2021
Terminated at Sun Sep  5 13:50:04 2021
Results reported at Sun Sep  5 13:50:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1149 186.228 21.3814 537148801 537408001 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 :                                   760.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            869 sec.

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

