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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1143
RA = 186.228, Dec = 21.3814
tmin = 535593601, tmax = 535852801
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='603013', job_status='RUN', time_executed='2021-09-05 13:37:14.221972', time_epoch_executed='1630874234.22' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603013

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603013/ft1_4FGL_J1224.9+2122_daily_bin1143.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603013/ft2_4FGL_J1224.9+2122_daily_bin1143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603013/ft1_4FGL_J1224.9+2122_daily_bin1143.fits outfile=/scratch/kocevski/603013/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1143.fits ra=186.228 dec=21.3814 rad=12.0 tmin=535593601.0 tmax=535852801.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 5.28
user 4.77
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603013/ft1_filtered_4FGL_J1224.9+2122_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/603013/ft2_4FGL_J1224.9+2122_daily_bin1143.fits sctable="SC_DATA" expcube=/scratch/kocevski/603013/ltcube_535593601_535852801_4FGL_J1224.9+2122_daily_bin1143.fits outfile=/scratch/kocevski/603013/expmap_535593601_535852801_4FGL_J1224.9+2122_daily_bin1143.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/603013/ltcube_535593601_535852801_4FGL_J1224.9+2122_daily_bin1143.fits
.....................!
real 190.65
user 185.33
sys 4.14

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/603013/ft1_filtered_4FGL_J1224.9+2122_daily_bin1143.fits scfile=/scratch/kocevski/603013/ft2_4FGL_J1224.9+2122_daily_bin1143.fits outfile=/scratch/kocevski/603013/cmap_535593601_535852801_4FGL_J1224.9+2122_daily_bin1143.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603013/ft1_filtered_4FGL_J1224.9+2122_daily_bin1143.fits scfile=/scratch/kocevski/603013/ft2_4FGL_J1224.9+2122_daily_bin1143.fits outfile=/scratch/kocevski/603013/cmap_HighResolution_535593601_535852801_4FGL_J1224.9+2122_daily_bin1143.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10700E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4873       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    26.425       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70771E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12247E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0698       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71161       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12248       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2435       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .77687       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1025       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84217       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2871       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=   7162.331     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2577 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.713       -.99007E-07** at limit **
   2  Prefactor     1.4866        9.2161       -.19275E-05    .24938E-03
   3  Prefactor     .10000E-03    .73112       -.35335E-07** at limit **
   4  norm          26.425        2.8947        .12410E-07    .42609E-03
   5  Prefactor     .10007E-03    19.383       -.53966E-05** at limit **
   6  Prefactor     .10000E-03    1.7574        .70392E-07** at limit **
   7  Prefactor     .10001E-03    76.128        .47613E-05** at limit **
   8  Prefactor     .10137E-03    1.6676        .12703E-05** at limit **
   9  Prefactor     .10000E-03    2.0005        .42318E-08** at limit **
  10  norm          11.121        3.9616       -.70705E-07   -.48715E-03
  11  Prefactor     3.0699        2.1319        .14679E-06   -.12509E-04
  12  Prefactor     .71454        2.0180       -.90064E-06    .11269E-03
  13  Prefactor     .10000E-03    1.4910       -.37657E-07** at limit **
  14  norm          .12243        .19514       -.28011E-06   -.83791E-03
  15  norm          7.2447        4.3960       -.31547E-06   -.56351E-03
  16  Prefactor     .10000E-03    11.535       -.74726E-06** at limit **
  17  Prefactor     .75559        36.107       -.10438E-04   -.41281E-04
  18  Prefactor     16.106        26.103       -.16643E-05   -.38233E-04
  19  Prefactor     5.1182        196.11       -.12394E-04   -.54492E-04
  20  Prefactor     .10000E-03    2.2256       -.65396E-07** at limit **
  21  Prefactor     .10000E-03    7.4763       -.12596E-06** at limit **
  22  norm          .10000E-03    1.0620       -.56903E-07** at limit **
  23  norm          .10000E-03    8.9524        .38014E-06** at limit **
  24  Normalizat    .84229        .18119        .18250E-05    .16889E-03
  25  Prefactor     1.2871        .18547        .64217E-06    .16571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.48657
  Prefactor  = 0.0001
  norm       = 26.4254
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000101367
  Prefactor  = 0.0001
  norm       = 11.1215
  Prefactor  = 3.06991
  Prefactor  = 0.714545
  Prefactor  = 0.0001
  norm       = 0.122433
  norm       = 7.24469
  Prefactor  = 0.0001
  Prefactor  = 0.755587
  Prefactor  = 16.1062
  Prefactor  = 5.11819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.842292
  Prefactor  = 1.28715
 **********
 **   18 **HESSE 
 **********

 FCN=   7162.331     FROM HESSE     STATUS=OK           439 CALLS     3016 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4866        9.2264        .35166E-03   -1.5464    
   3  Prefactor     .10000E-03    .74649        .70638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          26.425        2.8935        .45768E-04   -1.4679    
   5  Prefactor     .10007E-03    110.24        .60964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7746        .10944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    77.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10137E-03    3.3515        .30763E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0535        .23307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.121        3.9591        .94064E-04   -1.5041    
  11  Prefactor     3.0699        2.1305        .97507E-04   -1.5358    
  12  Prefactor     .71454        1.9614        .18533E-03   -1.5539    
  13  Prefactor     .10000E-03    1.4916        .10088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12243        .18793        .45582E-03   -1.5638    
  15  norm          7.2447        4.4128        .13364E-03   -1.5170    
  16  Prefactor     .10000E-03    11.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75559        38.752        .46279E-02   -1.5534    
  18  Prefactor     16.106        26.054        .99837E-04   -1.4905    
  19  Prefactor     5.1182        201.89        .17799E-03   -1.5255    
  20  Prefactor     .10000E-03    2.2296        .12331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.5197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.0649        .85180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.9603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84229        .21775        .30149E-03   -.98519    
  25  Prefactor     1.2871        .22428        .26252E-03   -.83690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90927e-08
Minuit parameter uncertainties:
  1  3.00242e-05
  2  7.40837
  3  3.74925e-06
  4  2.89348
  5  0.00552123
  6  3.27219e-06
  7  0.00166285
  8  0.00428102
  9  7.49446e-06
  10  3.95922
  11  2.13051
  12  1.96154
  13  5.33335e-06
  14  0.187935
  15  4.41298
  16  3.12568e-05
  17  10.829
  18  26.0724
  19  64.5253
  20  5.36319e-06
  21  2.01651e-05
  22  3.1075e-06
  23  4.15617e-05
  24  0.217974
  25  0.224453
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.224e-01  1.879e-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.287e+00  2.245e-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:  8.423e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603013/likelihoodResults_535593601_535852801_4FGL_J1224.9+2122_daily_bin1143.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) = 7161.70124116
delta logL = 0.629566160716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7161.69962555
delta logL = 0.631181766022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12518       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5416       1.0000          .0000       5.0000    
     3 'Normalizat'    .78985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3210       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=   7161.700     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12496        2.1375        .54236E-02    .29863E-02
   2  alpha         3.5430        3.3771        .46946        .36333E-04
   3  Normalizat    .79000        .49817E-01    .70142E-01    .17912E-04
   4  Prefactor     1.3209        .53328E-01    .58702E-01   -.66853E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.124955
  alpha      = 3.54299
  Normalizat = 0.789997
  Prefactor  = 1.3209
 **********
 **   18 **HESSE 
 **********

 FCN=   7161.700     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12496        .22258        .25003E-03   -1.5637    
   2  alpha         3.5430        1.5569        .28098E-01    .43036    
   3  Normalizat    .79000        .21779        .31039E-03   -1.0044    
   4  Prefactor     1.3209        .22592        .25957E-03   -.82688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91759e-12
Minuit parameter uncertainties:
  1  0.222577
  2  1.71524
  3  0.21803
  4  0.226091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603013': 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) = 7161.69962436
delta logL = 0.631182961678

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.250e-01  2.226e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.543e+00  1.715e+00  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.321e+00  2.261e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  7.900e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.54 +/- 1.72
Photon Flux (Free Index): 5.95e-08 +/- 5.12e-08
Energy Flux (Free Index): 9.86e-06 +/- 9.08e-06

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/603013/cmap_HighResolution_535593601_535852801_4FGL_J1224.9+2122_daily_bin1143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-05', comment='SUCCESS', energy_flux2='9.86e-06', dlogl='6.31e-01', photon_flux2='5.95e-08', job_status='DONE', time_completed='2021-09-05 13:50:14.283391', photon_index_error2='1.72', photon_index2='3.54', ts='0.56', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='9.08e-06', EG='0.84', time_epoch_completed='1630875014.28', return_code='0', job_id='603013', GAL2='1.32', EG2='0.79', return_code2='0', photon_flux_error2='5.12e-08', ts2='1.89', photon_index='2.28' WHERE bin_id='1143' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 603013: <4FGL_J1224.9+2122_daily_bin1143> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1143> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:34 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:35:36 2021
Terminated at Sun Sep  5 13:50:17 2021
Results reported at Sun Sep  5 13:50:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1143 186.228 21.3814 535593601 535852801 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 :                                   764.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            883 sec.

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

