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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1186
RA = 186.228, Dec = 21.3814
tmin = 546739201, tmax = 546998401
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='603078', job_status='RUN', time_executed='2021-09-05 13:37:11.955244', time_epoch_executed='1630874231.96' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603078/ft1_4FGL_J1224.9+2122_daily_bin1186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603078/ft2_4FGL_J1224.9+2122_daily_bin1186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603078/ft1_4FGL_J1224.9+2122_daily_bin1186.fits outfile=/scratch/kocevski/603078/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1186.fits ra=186.228 dec=21.3814 rad=12.0 tmin=546739201.0 tmax=546998401.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.68
user 3.38
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603078/ft1_filtered_4FGL_J1224.9+2122_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/603078/ft2_4FGL_J1224.9+2122_daily_bin1186.fits sctable="SC_DATA" expcube=/scratch/kocevski/603078/ltcube_546739201_546998401_4FGL_J1224.9+2122_daily_bin1186.fits outfile=/scratch/kocevski/603078/expmap_546739201_546998401_4FGL_J1224.9+2122_daily_bin1186.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/603078/ltcube_546739201_546998401_4FGL_J1224.9+2122_daily_bin1186.fits
.....................!
real 191.79
user 186.11
sys 5.12

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/603078/ft1_filtered_4FGL_J1224.9+2122_daily_bin1186.fits scfile=/scratch/kocevski/603078/ft2_4FGL_J1224.9+2122_daily_bin1186.fits outfile=/scratch/kocevski/603078/cmap_546739201_546998401_4FGL_J1224.9+2122_daily_bin1186.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.59
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.631       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18439       1.0000         .10000E-03   10000.    
     4 'norm      '    13.342       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.863       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.822       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8577       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3817       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0045       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1302       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1033       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0340       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0865       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1766       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6524       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29429E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9814       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5801       1.0000         .10000E-03   10000.    
    23 'norm      '    42.397       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6252       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .38896       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=   10135.05     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2999 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3159       -.11017E-06** at limit **
   2  Prefactor     13.630        9.6844        .11699E-06    .35189E-04
   3  Prefactor     .18426        .82337       -.25456E-07   -.41976E-03
   4  norm          13.342        1.7533       -.64676E-09   -.52177E-04
   5  Prefactor     19.853        19.116       -.12272E-06    .12791E-03
   6  Prefactor     .10000E-03    1.8094       -.40168E-06** at limit **
   7  Prefactor     26.829        68.548       -.60841E-06    .46601E-04
   8  Prefactor     5.8573        3.0769        .66089E-08    .19148E-03
   9  Prefactor     1.3819        3.0617        .24414E-06   -.84108E-04
  10  norm          4.4517        2.2783       -.22160E-07    .16346E-03
  11  Prefactor     2.0045        1.5130       -.59594E-08   -.12113E-03
  12  Prefactor     4.1301        1.8682       -.24067E-07   -.13886E-03
  13  Prefactor     3.1034        3.5849        .15114E-05   -.13896E-02
  14  norm          2.0340        .32911       -.17262E-07   -.31078E-03
  15  norm          1.0864        2.2162        .26612E-06    .85647E-03
  16  Prefactor     1.1862        14.727       -.17824E-05   -.22926E-03
  17  Prefactor     7.6516        6.0770       -.11876E-06    .11131E-03
  18  Prefactor     .10009E-03    96.020        .11224E-04** at limit **
  19  Prefactor     .10000E-03    18.557       -.52593E-07** at limit **
  20  Prefactor     .10000E-03    1.8323       -.36705E-07** at limit **
  21  Prefactor     4.9848        11.989        .27377E-06   -.10480E-03
  22  norm          3.5800        2.5174       -.23137E-07    .28065E-04
  23  norm          42.405        19.856        .47687E-07   -.56543E-04
  24  Normalizat    1.6252        .17399       -.52986E-06    .75185E-04
  25  Prefactor     .38895        .16524        .10670E-05    .79924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.6296
  Prefactor  = 0.18426
  norm       = 13.3423
  Prefactor  = 19.8529
  Prefactor  = 0.0001
  Prefactor  = 26.8285
  Prefactor  = 5.85733
  Prefactor  = 1.38193
  norm       = 4.45173
  Prefactor  = 2.00451
  Prefactor  = 4.13012
  Prefactor  = 3.10335
  norm       = 2.03404
  norm       = 1.08643
  Prefactor  = 1.18618
  Prefactor  = 7.65161
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98479
  norm       = 3.57995
  norm       = 42.405
  Normalizat = 1.62523
  Prefactor  = 0.388948
 **********
 **   18 **HESSE 
 **********

 FCN=   10135.05     FROM HESSE     STATUS=OK           445 CALLS     3444 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.630        9.6295        .10849E-03   -1.4969    
   3  Prefactor     .18426        1.8955        .17461E-02   -1.5622    
   4  norm          13.342        1.7561        .46452E-04   -1.4977    
   5  Prefactor     19.853        19.064        .89870E-04   -1.4817    
   6  Prefactor     .10000E-03    3.4237        .25531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.829        68.210        .77352E-04   -1.4672    
   8  Prefactor     5.8573        2.9994        .10999E-03   -1.5224    
   9  Prefactor     1.3819        2.9836        .22513E-03   -1.5473    
  10  norm          4.4517        2.2831        .10018E-03   -1.5286    
  11  Prefactor     2.0045        1.5196        .99789E-04   -1.5425    
  12  Prefactor     4.1301        1.8661        .87831E-04   -1.5301    
  13  Prefactor     3.1034        3.7950        .10444E-02   -1.5356    
  14  norm          2.0340        .33092        .21797E-04   -1.5423    
  15  norm          1.0864        1.7149        .20898E-02   -1.5500    
  16  Prefactor     1.1862        15.964        .42208E-03   -1.5490    
  17  Prefactor     7.6516        6.0621        .14496E-03   -1.5155    
  18  Prefactor     .10009E-03    111.38        .39698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8402        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9848        11.913        .18018E-03   -1.5261    
  22  norm          3.5800        2.5118        .12932E-03   -1.5330    
  23  norm          42.405        19.843        .61567E-04   -1.4405    
  24  Normalizat    1.6252        .19168        .23607E-03   -.74318    
  25  Prefactor     .38895        .17741        .43781E-03   -1.1738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61669e-08
Minuit parameter uncertainties:
  1  3.90393e-06
  2  9.63057
  3  1.18172
  4  1.75609
  5  19.0697
  6  1.47001e-05
  7  68.4094
  8  2.99951
  9  2.98387
  10  2.2831
  11  1.51959
  12  1.86611
  13  3.79531
  14  0.330923
  15  1.71493
  16  8.70557
  17  6.06262
  18  0.00620581
  19  1.08382e-05
  20  3.83339e-06
  21  11.919
  22  2.51187
  23  19.8456
  24  0.191769
  25  0.177662
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.034e+00  3.309e-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:  3.889e-01  1.777e-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.625e+00  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 102.11
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.44e-07 +/- 5.59e-08
Energy Flux (Fixed Index): 1.19e-04 +/- 1.94e-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) = 10133.2739839
delta logL = 1.78002971259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10133.2561849
delta logL = 1.79782867933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9588       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6179       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45053       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=   10133.26     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9588        .50291        .45603E-02    .55643E-02
   2  alpha         2.6179        .28756        .14814        .27792E-03
   3  Normalizat    1.5370        .16787        .54475E-01    .17096E-03
   4  Prefactor     .45052        .16240        .92218E-01   -.90145E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.95883
  alpha      = 2.61788
  Normalizat = 1.53702
  Prefactor  = 0.450518
 **********
 **   18 **HESSE 
 **********

 FCN=   10133.26     FROM HESSE     STATUS=OK            27 CALLS      235 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9588        .31958        .20175E-04   -1.5428    
   2  alpha         2.6179        .18620        .64584E-03    .47169E-01
   3  Normalizat    1.5370        .19032        .24085E-03   -.76743    
   4  Prefactor     .45052        .18047        .40882E-03   -1.1430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3277e-10
Minuit parameter uncertainties:
  1  0.319578
  2  0.186377
  3  0.190413
  4  0.180702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603078': 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) = 10133.2561849
delta logL = 1.79782868219

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.959e+00  3.196e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.618e+00  1.864e-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:  4.505e-01  1.807e-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.537e+00  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 103.83
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.62 +/- 0.19
Photon Flux (Free Index): 4.16e-07 +/- 7.21e-08
Energy Flux (Free Index): 1.04e-04 +/- 1.70e-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/603078/cmap_HighResolution_546739201_546998401_4FGL_J1224.9+2122_daily_bin1186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-07', energy_flux2='1.04e-04', photon_flux_error='5.59e-08', dlogl='1.80e+00', energy_flux='1.19e-04', photon_flux2='4.16e-07', job_status='DONE', time_completed='2021-09-05 13:52:15.617724', photon_index_error2='0.19', photon_index2='2.62', ts='102.11', fit_tolerance='1e-08', GAL='0.39', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='1.63', time_epoch_completed='1630875135.62', return_code='0', job_id='603078', GAL2='0.45', EG2='1.54', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='7.21e-08', ts2='103.83', photon_index='2.28' WHERE bin_id='1186' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:52:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 603078: <4FGL_J1224.9+2122_daily_bin1186> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1186 186.228 21.3814 546739201 546998401 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 :                                   894.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

