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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1257
RA = 186.228, Dec = 21.3814
tmin = 565142401, tmax = 565401601
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='603187', job_status='RUN', time_executed='2021-09-05 13:38:02.861839', time_epoch_executed='1630874282.86' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1257'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603187

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603187/ft1_4FGL_J1224.9+2122_daily_bin1257.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603187/ft2_4FGL_J1224.9+2122_daily_bin1257.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603187/ft1_4FGL_J1224.9+2122_daily_bin1257.fits outfile=/scratch/kocevski/603187/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1257.fits ra=186.228 dec=21.3814 rad=12.0 tmin=565142401.0 tmax=565401601.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.55
user 3.34
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603187/ft1_filtered_4FGL_J1224.9+2122_daily_bin1257.fits evtable="EVENTS" scfile=/scratch/kocevski/603187/ft2_4FGL_J1224.9+2122_daily_bin1257.fits sctable="SC_DATA" expcube=/scratch/kocevski/603187/ltcube_565142401_565401601_4FGL_J1224.9+2122_daily_bin1257.fits outfile=/scratch/kocevski/603187/expmap_565142401_565401601_4FGL_J1224.9+2122_daily_bin1257.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/603187/ltcube_565142401_565401601_4FGL_J1224.9+2122_daily_bin1257.fits
.....................!
real 191.17
user 185.70
sys 4.78

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/603187/ft1_filtered_4FGL_J1224.9+2122_daily_bin1257.fits scfile=/scratch/kocevski/603187/ft2_4FGL_J1224.9+2122_daily_bin1257.fits outfile=/scratch/kocevski/603187/cmap_565142401_565401601_4FGL_J1224.9+2122_daily_bin1257.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603187/ft1_filtered_4FGL_J1224.9+2122_daily_bin1257.fits scfile=/scratch/kocevski/603187/ft2_4FGL_J1224.9+2122_daily_bin1257.fits outfile=/scratch/kocevski/603187/cmap_HighResolution_565142401_565401601_4FGL_J1224.9+2122_daily_bin1257.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0099       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14262       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1049       1.0000         .10000E-03   10000.    
     4 'norm      '    14.327       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9559       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1176       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .91946       1.0000         .10000E-03   10000.    
    10 'norm      '    5.6312       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0872       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .62498E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11498E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .98885E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    6.6194       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52106E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11121E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.105       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1693       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4822       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1529       1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0618       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0739       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=   7227.979     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3050 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0091        14.566       -.36560E-05   -.11652E-03
   2  Prefactor     .10110E-03    7.1723       -.50723E-06** at limit **
   3  Prefactor     3.1048        1.6549        .48977E-07    .97699E-04
   4  norm          14.327        2.1142        .35186E-08   -.84788E-04
   5  Prefactor     .10000E-03    7.2576       -.40644E-07** at limit **
   6  Prefactor     3.9595        3.1986       -.85977E-07    .10224E-03
   7  Prefactor     .10000E-03    93.263       -.25888E-05** at limit **
   8  Prefactor     1.1179        1.3442       -.42052E-07    .14211E-04
   9  Prefactor     .91740        1.6294        .62036E-07    .36715E-05
  10  norm          5.6310        2.9588       -.75039E-07   -.23113E-03
  11  Prefactor     3.0875        2.3155       -.58841E-07   -.27398E-03
  12  Prefactor     .10143E-03    .76671        .31050E-06** at limit **
  13  Prefactor     .10000E-03    3.0901       -.67943E-07** at limit **
  14  norm          .99053E-01    .14759       -.12158E-07   -.10059E-02
  15  norm          6.6181        3.6406       -.12304E-06    .76262E-04
  16  Prefactor     .10001E-03    5.8933       -.30225E-06** at limit **
  17  Prefactor     .10087E-03    4.5952        .16795E-06** at limit **
  18  Prefactor     .10000E-03    39.376       -.74338E-05** at limit **
  19  Prefactor     35.151        52.255       -.35847E-05   -.37959E-04
  20  Prefactor     3.1644        4.7090        .21943E-05   -.17539E-02
  21  Prefactor     1.5294        40.506       -.20020E-04   -.11604E-03
  22  norm          3.1502        3.9167       -.39535E-06   -.14363E-03
  23  norm          .10000E-03    6.1952       -.36475E-07** at limit **
  24  Normalizat    1.0620        .17484        .14705E-05    .26695E-03
  25  Prefactor     1.0740        .17439        .36691E-07    .36813E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.00908
  Prefactor  = 0.000101102
  Prefactor  = 3.10476
  norm       = 14.3267
  Prefactor  = 0.0001
  Prefactor  = 3.95945
  Prefactor  = 0.0001
  Prefactor  = 1.11786
  Prefactor  = 0.917402
  norm       = 5.63102
  Prefactor  = 3.08753
  Prefactor  = 0.000101435
  Prefactor  = 0.0001
  norm       = 0.0990526
  norm       = 6.61812
  Prefactor  = 0.000100009
  Prefactor  = 0.000100867
  Prefactor  = 0.000100001
  Prefactor  = 35.1509
  Prefactor  = 3.16439
  Prefactor  = 1.52943
  norm       = 3.15016
  norm       = 0.0001
  Normalizat = 1.06205
  Prefactor  = 1.07402
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.979     FROM HESSE     STATUS=OK           463 CALLS     3513 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0091        14.642        .15152E-03   -1.5178    
   2  Prefactor     .10110E-03    14.499        .63189E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1048        1.6511        .76396E-04   -1.5356    
   4  norm          14.327        2.1159        .45329E-04   -1.4951    
   5  Prefactor     .10000E-03    7.2716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9595        3.1922        .12982E-03   -1.5310    
   7  Prefactor     .10000E-03    93.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1179        1.3170        .10373E-03   -1.5497    
   9  Prefactor     .91740        1.2769        .13857E-02   -1.5516    
  10  norm          5.6310        2.9726        .96503E-04   -1.5233    
  11  Prefactor     3.0875        2.3227        .10200E-03   -1.5357    
  12  Prefactor     .10143E-03    1.8505        .26098E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.4012        .28707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .99053E-01    .12792        .38060E-03   -1.5645    
  15  norm          6.6181        3.6104        .57694E-03   -1.5193    
  16  Prefactor     .10001E-03    38.411        .39437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10087E-03    7.0098        .63045E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.151        52.402        .67637E-04   -1.4522    
  20  Prefactor     3.1644        7.8682        .11383E-02   -1.5352    
  21  Prefactor     1.5294        43.194        .35248E-03   -1.5461    
  22  norm          3.1502        3.9091        .17816E-03   -1.5353    
  23  norm          .10000E-03    6.1965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0620        .21030        .26125E-03   -.90980    
  25  Prefactor     1.0740        .20758        .27155E-03   -.90301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8887e-09
Minuit parameter uncertainties:
  1  14.6497
  2  0.00799481
  3  1.65111
  4  2.11594
  5  9.72441e-06
  6  3.19237
  7  0.000309416
  8  1.31702
  9  1.27698
  10  2.97264
  11  2.32282
  12  0.00325864
  13  9.55376e-05
  14  0.127922
  15  3.61056
  16  0.00118884
  17  0.00493215
  18  0.000370855
  19  52.4704
  20  7.8708
  21  16.2682
  22  3.90937
  23  1.32288e-06
  24  0.210466
  25  0.207736
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  9.905e-02  1.279e-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.074e+00  2.077e-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.062e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.67e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 5.82e-06 +/- 7.51e-06

TS (Fixed Index): 1.04
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 7.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603187/likelihoodResults_565142401_565401601_4FGL_J1224.9+2122_daily_bin1257.txt

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) = 7227.87125611
delta logL = 0.107574277916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7227.85883249
delta logL = 0.119997894355

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79563E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7812       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0676       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=   7227.859     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79404E-01    .11734        .66082E-02    .13673E-02
   2  alpha         1.7815        .54646        .43540       -.39217E-04
   3  Normalizat    1.0709        .16546        .58852E-01    .14322E-04
   4  Prefactor     1.0680        .17350        .61542E-01    .10680E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0794043
  alpha      = 1.78145
  Normalizat = 1.07088
  Prefactor  = 1.06799
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.859     FROM HESSE     STATUS=OK            35 CALLS      248 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79404E-01    .12117        .34275E-03   -1.5652    
   2  alpha         1.7815        .91597        .19099E-01   -.29153    
   3  Normalizat    1.0709        .19794        .26027E-03   -.90692    
   4  Prefactor     1.0680        .20743        .27218E-03   -.90496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69815e-09
Minuit parameter uncertainties:
  1  0.121173
  2  0.939917
  3  0.198078
  4  0.20759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603187': 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) = 7227.85882765
delta logL = 0.120002737955

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.940e-02  1.212e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.781e+00  9.399e-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.068e+00  2.076e-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.071e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.78 +/- 0.94
Photon Flux (Free Index): 1.09e-08 +/- 1.79e-08
Energy Flux (Free Index): 9.22e-06 +/- 1.58e-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/603187/cmap_HighResolution_565142401_565401601_4FGL_J1224.9+2122_daily_bin1257.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', comment='SUCCESS', photon_flux='1.67e-08', energy_flux2='9.22e-06', photon_flux_error='2.16e-08', dlogl='1.20e-01', energy_flux='5.82e-06', photon_flux2='1.09e-08', job_status='DONE', time_completed='2021-09-05 13:52:17.925576', photon_index_error2='0.94', photon_index2='1.78', ts='1.04', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='7.49e-08', energy_flux_error2='1.58e-05', EG='1.06', time_epoch_completed='1630875137.93', return_code='0', job_id='603187', GAL2='1.07', EG2='1.07', return_code2='0', energy_flux_error='7.51e-06', photon_flux_error2='1.79e-08', ts2='1.28', photon_index='2.28' WHERE bin_id='1257' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:52:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 603187: <4FGL_J1224.9+2122_daily_bin1257> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1257 186.228 21.3814 565142401 565401601 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 :                                   827.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

