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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1473
RA = 186.228, Dec = 21.3814
tmin = 621129601, tmax = 621388801
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='603489', job_status='RUN', time_executed='2021-09-05 13:37:38.508428', time_epoch_executed='1630874258.51' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603489/ft1_4FGL_J1224.9+2122_daily_bin1473.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603489/ft2_4FGL_J1224.9+2122_daily_bin1473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603489/ft1_4FGL_J1224.9+2122_daily_bin1473.fits outfile=/scratch/kocevski/603489/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1473.fits ra=186.228 dec=21.3814 rad=12.0 tmin=621129601.0 tmax=621388801.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.18
user 2.90
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603489/ft1_filtered_4FGL_J1224.9+2122_daily_bin1473.fits" evtable="EVENTS" scfile=/scratch/kocevski/603489/ft2_4FGL_J1224.9+2122_daily_bin1473.fits sctable="SC_DATA" outfile=/scratch/kocevski/603489/ltcube_621129601_621388801_4FGL_J1224.9+2122_daily_bin1473.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/603489/ft2_4FGL_J1224.9+2122_daily_bin1473.fits
.....................!
real 12.48
user 12.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603489/ft1_filtered_4FGL_J1224.9+2122_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/603489/ft2_4FGL_J1224.9+2122_daily_bin1473.fits sctable="SC_DATA" expcube=/scratch/kocevski/603489/ltcube_621129601_621388801_4FGL_J1224.9+2122_daily_bin1473.fits outfile=/scratch/kocevski/603489/expmap_621129601_621388801_4FGL_J1224.9+2122_daily_bin1473.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/603489/ltcube_621129601_621388801_4FGL_J1224.9+2122_daily_bin1473.fits
.....................!
real 191.67
user 186.17
sys 4.57

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/603489/ft1_filtered_4FGL_J1224.9+2122_daily_bin1473.fits scfile=/scratch/kocevski/603489/ft2_4FGL_J1224.9+2122_daily_bin1473.fits outfile=/scratch/kocevski/603489/cmap_621129601_621388801_4FGL_J1224.9+2122_daily_bin1473.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.62
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603489/ft1_filtered_4FGL_J1224.9+2122_daily_bin1473.fits scfile=/scratch/kocevski/603489/ft2_4FGL_J1224.9+2122_daily_bin1473.fits outfile=/scratch/kocevski/603489/cmap_HighResolution_621129601_621388801_4FGL_J1224.9+2122_daily_bin1473.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.57
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.406       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4000       1.0000         .10000E-03   10000.    
     5 'Prefactor '    172.97       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0161       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26917E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7609       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46005E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3990       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9108       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17928E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0731       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    61.243       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16011       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.570       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0827       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1449       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2053.281     FROM MIGRAD    STATUS=CONVERGED   1056 CALLS     3393 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.383        107.33        .22258E-03    .60884E-04
   2  Prefactor     .10000E-03    52.962        .18142E-02** at limit **
   3  Prefactor     .10000E-03    14.186        .16486E-02** at limit **
   4  norm          1.3995        2.2792        .86122E-04   -.54650E-04
   5  Prefactor     173.05        110.92        .15340E-03   -.28510E-04
   6  Prefactor     6.0141        17.198        .16370E-03    .16529E-04
   7  Prefactor     .10002E-03    742.07        .21435E-02** at limit **
   8  Prefactor     6.7663        8.9281        .13942E-03   -.66947E-04
   9  Prefactor     .20378E-03    11.906        .38858E-01** at limit **
  10  norm          1.3985        9.9931        .10336E-02   -.14865E-04
  11  Prefactor     2.9086        6.6035        .12767E-03    .20748E-04
  12  Prefactor     .10000E-03    3.9410        .87163E-03** at limit **
  13  Prefactor     .10000E-03    21.670        .36285E-02** at limit **
  14  norm          1.0731        .62709        .25964E-04   -.51010E-04
  15  norm          .10000E-03    6.6049        .11341E-02** at limit **
  16  Prefactor     .10000E-03    10.067        .14036E-02** at limit **
  17  Prefactor     .10000E-03    8.0114        .12524E-02** at limit **
  18  Prefactor     .10000E-03    66.756        .18142E-02** at limit **
  19  Prefactor     61.265        95.609        .51272E-04    .90911E-06
  20  Prefactor     .74974E-01    32.871        .52797E-01    .16980E-03
  21  Prefactor     .10000E-03    11.278        .14849E-02** at limit **
  22  norm          .10000E-03    9.9943        .27525E-03** at limit **
  23  norm          15.560        41.840        .10150E-03    .22344E-04
  24  Normalizat    1.0825        .41196        .27210E-03   -.87694E-04
  25  Prefactor     1.1458        .41475        .26829E-03    .66808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.3827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39946
  Prefactor  = 173.049
  Prefactor  = 6.01414
  Prefactor  = 0.000100015
  Prefactor  = 6.76632
  Prefactor  = 0.000203784
  norm       = 1.39851
  Prefactor  = 2.90863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0731
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.2652
  Prefactor  = 0.0749735
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.5605
  Normalizat = 1.08255
  Prefactor  = 1.1458
 **********
 **   18 **HESSE 
 **********

 FCN=   2053.281     FROM HESSE     STATUS=OK           423 CALLS     3816 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.383        107.30        .89032E-05   -1.3901    
   2  Prefactor     .10000E-03    52.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.192        .32971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3995        2.2791        .34449E-05   -1.5471    
   5  Prefactor     173.05        110.91        .30681E-04   -1.3069    
   6  Prefactor     6.0141        17.194        .65481E-05   -1.5217    
   7  Prefactor     .10002E-03    742.09        .42870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7663        8.9271        .55768E-05   -1.5188    
   9  Prefactor     .20378E-03    10.183        .43371E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3985        9.8150        .41344E-04   -1.5471    
  11  Prefactor     2.9086        6.5477        .51069E-05   -1.5367    
  12  Prefactor     .10000E-03    3.9413        .17433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.842        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0731        .62711        .10386E-05   -1.5501    
  15  norm          .10000E-03    6.6054        .22682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.067        .28072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0115        .25047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    66.768        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     61.265        95.606        .10254E-04   -1.4141    
  20  Prefactor     .74974E-01    28.167        .57652E-01   -1.5653    
  21  Prefactor     .10000E-03    11.279        .29697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.9945        .55051E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.560        41.845        .40602E-05   -1.4919    
  24  Normalizat    1.0825        .41234        .54420E-04   -.90314    
  25  Prefactor     1.1458        .41404        .53658E-04   -.88016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37214e-09
Minuit parameter uncertainties:
  1  107.561
  2  0.000112586
  3  5.74266e-05
  4  2.27923
  5  111.044
  6  17.2085
  7  0.00686393
  8  8.92888
  9  0.0650283
  10  7.4113
  11  6.54927
  12  3.71312e-06
  13  8.47052e-05
  14  0.627113
  15  6.79939e-06
  16  1.68505e-05
  17  1.61425e-06
  18  0.000150329
  19  95.8466
  20  2.90581
  21  6.78635e-06
  22  1.07622e-05
  23  41.9241
  24  0.413568
  25  0.415211
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.073e+00  6.271e-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.146e+00  4.152e-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.083e+00  4.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.55
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.81e-07 +/- 1.06e-07
Energy Flux (Fixed Index): 6.30e-05 +/- 3.68e-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) = 2052.18000529
delta logL = 1.10053292747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2052.17444533
delta logL = 1.10609288329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95724       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2534       1.0000          .0000       5.0000    
     3 'Normalizat'    .92999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2493       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=   2052.174     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95788        9.4647        .44481E-02   -.91375E-04
   2  alpha         3.2535        3.4640        .21605        .57217E-05
   3  Normalizat    .92964        .22084        .65487E-01    .46099E-05
   4  Prefactor     1.2491        .23021        .58365E-01    .21663E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.957877
  alpha      = 3.25351
  Normalizat = 0.929636
  Prefactor  = 1.24915
 **********
 **   18 **HESSE 
 **********

 FCN=   2052.174     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95788        .58906        .19720E-04   -1.5512    
   2  alpha         3.2535        .69321        .94650E-03    .30616    
   3  Normalizat    .92964        .41547        .28967E-03   -.95426    
   4  Prefactor     1.2491        .41236        .25809E-03   -.84832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85735e-13
Minuit parameter uncertainties:
  1  0.589065
  2  0.703368
  3  0.416916
  4  0.413437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603489': 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) = 2052.17444195
delta logL = 1.10609626718

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  9.579e-01  5.891e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.254e+00  7.034e-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.249e+00  4.134e-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:  9.296e-01  4.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.01
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.25 +/- 0.70
Photon Flux (Free Index): 3.47e-07 +/- 1.87e-07
Energy Flux (Free Index): 6.26e-05 +/- 2.98e-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/603489/cmap_HighResolution_621129601_621388801_4FGL_J1224.9+2122_daily_bin1473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.81e-07', energy_flux2='6.26e-05', photon_flux_error='1.06e-07', dlogl='1.11e+00', energy_flux='6.30e-05', photon_flux2='3.47e-07', job_status='DONE', time_completed='2021-09-05 13:45:09.339607', photon_index_error2='0.70', photon_index2='3.25', ts='6.55', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.98e-05', EG='1.08', time_epoch_completed='1630874709.34', return_code='0', job_id='603489', GAL2='1.25', EG2='0.93', return_code2='0', energy_flux_error='3.68e-05', photon_flux_error2='1.87e-07', ts2='9.01', photon_index='2.28' WHERE bin_id='1473' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 603489: <4FGL_J1224.9+2122_daily_bin1473> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1473 186.228 21.3814 621129601 621388801 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 :                                   435.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   533 sec.
    Turnaround time :                            537 sec.

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

