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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin979
RA = 186.228, Dec = 21.3814
tmin = 493084801, tmax = 493344001
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='601618', job_status='RUN', time_executed='2021-09-05 13:33:05.459366', time_epoch_executed='1630873985.46' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601618/ft1_4FGL_J1224.9+2122_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601618/ft2_4FGL_J1224.9+2122_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601618/ft1_4FGL_J1224.9+2122_daily_bin979.fits outfile=/scratch/kocevski/601618/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin979.fits ra=186.228 dec=21.3814 rad=12.0 tmin=493084801.0 tmax=493344001.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.64
user 3.37
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601618/ft1_filtered_4FGL_J1224.9+2122_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/601618/ft2_4FGL_J1224.9+2122_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/601618/ltcube_493084801_493344001_4FGL_J1224.9+2122_daily_bin979.fits outfile=/scratch/kocevski/601618/expmap_493084801_493344001_4FGL_J1224.9+2122_daily_bin979.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/601618/ltcube_493084801_493344001_4FGL_J1224.9+2122_daily_bin979.fits
.....................!
real 192.85
user 187.17
sys 5.18

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/601618/ft1_filtered_4FGL_J1224.9+2122_daily_bin979.fits scfile=/scratch/kocevski/601618/ft2_4FGL_J1224.9+2122_daily_bin979.fits outfile=/scratch/kocevski/601618/cmap_493084801_493344001_4FGL_J1224.9+2122_daily_bin979.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601618/ft1_filtered_4FGL_J1224.9+2122_daily_bin979.fits scfile=/scratch/kocevski/601618/ft2_4FGL_J1224.9+2122_daily_bin979.fits outfile=/scratch/kocevski/601618/cmap_HighResolution_493084801_493344001_4FGL_J1224.9+2122_daily_bin979.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6285       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46404       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8873       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.141       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41644       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7011       1.0000         .10000E-03   10000.    
    10 'norm      '    18.676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3920       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .99907       1.0000         .10000E-03   10000.    
    15 'norm      '    14.417       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.601       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.747       1.0000         .10000E-03   10000.    
    22 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    34.193       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0189       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79328       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=   5070.066     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     3684 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2507        .90712E-02** at limit **
   2  Prefactor     9.6282        9.0959        .32286E-02   -.46026E-04
   3  Prefactor     .46381        1.6577        .11123E-01    .14443E-02
   4  norm          2.8873        1.2525        .59792E-02    .83497E-04
   5  Prefactor     10.136        19.422        .31457E-02   -.32870E-03
   6  Prefactor     .41117        3.2956        .39539E-01    .85191E-03
   7  Prefactor     .10000E-03    98.272        .90712E-02** at limit **
   8  Prefactor     .10000E-03    1.0901        .90712E-02** at limit **
   9  Prefactor     5.7010        3.7066        .42057E-02    .25492E-03
  10  norm          18.676        5.4489        .23170E-02    .28822E-02
  11  Prefactor     1.3918        3.1425        .92063E-02    .46521E-03
  12  Prefactor     .10000E-03    .77938        .90712E-02** at limit **
  13  Prefactor     .10000E-03    2.0082        .90712E-02** at limit **
  14  norm          .99907        .30840        .47054E-02    .16824E-03
  15  norm          14.417        5.8432        .26372E-02    .21172E-02
  16  Prefactor     .10000E-03    13.739        .90712E-02** at limit **
  17  Prefactor     11.601        11.260        .29405E-02    .14943E-03
  18  Prefactor     .10000E-03    21.209        .90712E-02** at limit **
  19  Prefactor     .10000E-03    31.123        .90712E-02** at limit **
  20  Prefactor     .10000E-03    4.7429        .90712E-02** at limit **
  21  Prefactor     17.747        15.087        .23768E-02   -.97840E-04
  22  norm          .10000E-03    1.4918        .35614E-01** at limit **
  23  norm          34.194        21.957        .17133E-02    .10139E-04
  24  Normalizat    1.0188        .19133        .43523E-01    .56895E-05
  25  Prefactor     .79332        .18978        .62731E-01    .12240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.62823
  Prefactor  = 0.463805
  norm       = 2.88734
  Prefactor  = 10.1361
  Prefactor  = 0.411167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.70099
  norm       = 18.6763
  Prefactor  = 1.39185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.999065
  norm       = 14.4172
  Prefactor  = 0.0001
  Prefactor  = 11.6007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.747
  norm       = 0.0001
  norm       = 34.1942
  Normalizat = 1.01881
  Prefactor  = 0.793319
 **********
 **   18 **HESSE 
 **********

 FCN=   5070.066     FROM HESSE     STATUS=OK           431 CALLS     4115 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6282        9.0444        .12915E-03   -1.5087    
   3  Prefactor     .46381        1.6638        .16329E-03   -1.5572    
   4  norm          2.8873        1.2510        .50721E-04   -1.5368    
   5  Prefactor     10.136        19.412        .12583E-03   -1.5071    
   6  Prefactor     .41117        6.3523        .23866E-02   -1.5580    
   7  Prefactor     .10000E-03    98.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0978        .72419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7010        3.6987        .10404E-03   -1.5230    
  10  norm          18.676        5.3537        .74593E-04   -1.4843    
  11  Prefactor     1.3918        3.0566        .15782E-03   -1.5472    
  12  Prefactor     .10000E-03    .78782        .61322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0108        .98523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .99907        .30851        .20831E-04   -1.5508    
  15  norm          14.417        5.8449        .10514E-03   -1.4948    
  16  Prefactor     .10000E-03    13.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.601        11.246        .11762E-03   -1.5027    
  18  Prefactor     .10000E-03    21.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8208        .15139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.747        15.088        .95073E-04   -1.4865    
  22  norm          .10000E-03    2.3383        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          34.194        21.942        .68531E-04   -1.4538    
  24  Normalizat    1.0188        .22163        .23938E-03   -.92403    
  25  Prefactor     .79332        .22013        .27747E-03   -.99975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07244e-09
Minuit parameter uncertainties:
  1  3.29379e-06
  2  9.04565
  3  1.66396
  4  1.25106
  5  19.4242
  6  3.23225
  7  0.000277827
  8  1.03441e-07
  9  3.69888
  10  5.35385
  11  3.05691
  12  6.24026e-08
  13  1.89695e-07
  14  0.308509
  15  5.84518
  16  2.1421e-05
  17  11.2481
  18  6.46219e-05
  19  7.59262e-05
  20  1.30237e-06
  21  15.0909
  22  3.34842e-07
  23  21.9474
  24  0.221832
  25  0.220375
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  9.991e-01  3.085e-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:  7.933e-01  2.204e-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.019e+00  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.91
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.69e-07 +/- 5.21e-08
Energy Flux (Fixed Index): 5.87e-05 +/- 1.81e-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) = 5069.52126691
delta logL = 0.544826248028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5069.46830404
delta logL = 0.597789113059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94976       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6522       1.0000          .0000       5.0000    
     3 'Normalizat'    .96992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82767       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=   5069.468     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94977        3.9572        .43033E-02    .13324E-03
   2  alpha         2.6521        3.8074        .19997        .13273E-04
   3  Normalizat    .96993        .21728        .45789E-01    .10050E-04
   4  Prefactor     .82763        .24975        .44076E-01    .12545E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.949767
  alpha      = 2.65206
  Normalizat = 0.969935
  Prefactor  = 0.827631
 **********
 **   18 **HESSE 
 **********

 FCN=   5069.468     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94977        .30103        .19055E-04   -1.5513    
   2  alpha         2.6521        .35926        .86090E-02    .60863E-01
   3  Normalizat    .96993        .21802        .24424E-03   -.94045    
   4  Prefactor     .82763        .22229        .27198E-03   -.98718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56154e-11
Minuit parameter uncertainties:
  1  0.301027
  2  0.360514
  3  0.218223
  4  0.222531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601618': 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) = 5069.46830394
delta logL = 0.597789213103

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  9.498e-01  3.010e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.652e+00  3.605e-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.276e-01  2.225e-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.699e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.99
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.65 +/- 0.36
Photon Flux (Free Index): 2.07e-07 +/- 6.70e-08
Energy Flux (Free Index): 5.03e-05 +/- 1.57e-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/601618/cmap_HighResolution_493084801_493344001_4FGL_J1224.9+2122_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.69e-07', energy_flux2='5.03e-05', photon_flux_error='5.21e-08', dlogl='5.98e-01', energy_flux='5.87e-05', photon_flux2='2.07e-07', job_status='DONE', time_completed='2021-09-05 13:44:00.102299', photon_index_error2='0.36', photon_index2='2.65', ts='26.91', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.02', time_epoch_completed='1630874640.1', return_code='0', job_id='601618', GAL2='0.83', EG2='0.97', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='6.70e-08', ts2='27.99', photon_index='2.28' WHERE bin_id='979' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 601618: <4FGL_J1224.9+2122_daily_bin979> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin979> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:30:59 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:31: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:31:02 2021
Terminated at Sun Sep  5 13:44:01 2021
Results reported at Sun Sep  5 13:44:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin979 186.228 21.3814 493084801 493344001 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 :                                   646.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

