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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1462
RA = 186.228, Dec = 21.3814
tmin = 618278401, tmax = 618537601
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='603472', job_status='RUN', time_executed='2021-09-05 13:39:43.234401', time_epoch_executed='1630874383.23' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603472

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603472/ft1_4FGL_J1224.9+2122_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603472/ft2_4FGL_J1224.9+2122_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603472/ft1_4FGL_J1224.9+2122_daily_bin1462.fits outfile=/scratch/kocevski/603472/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1462.fits ra=186.228 dec=21.3814 rad=12.0 tmin=618278401.0 tmax=618537601.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.74
user 3.47
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603472/ft1_filtered_4FGL_J1224.9+2122_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/603472/ft2_4FGL_J1224.9+2122_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/603472/ltcube_618278401_618537601_4FGL_J1224.9+2122_daily_bin1462.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/603472/ft2_4FGL_J1224.9+2122_daily_bin1462.fits
.....................!
real 11.85
user 11.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603472/ft1_filtered_4FGL_J1224.9+2122_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/603472/ft2_4FGL_J1224.9+2122_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/603472/ltcube_618278401_618537601_4FGL_J1224.9+2122_daily_bin1462.fits outfile=/scratch/kocevski/603472/expmap_618278401_618537601_4FGL_J1224.9+2122_daily_bin1462.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/603472/ltcube_618278401_618537601_4FGL_J1224.9+2122_daily_bin1462.fits
.....................!
real 194.58
user 188.14
sys 5.04

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/603472/ft1_filtered_4FGL_J1224.9+2122_daily_bin1462.fits scfile=/scratch/kocevski/603472/ft2_4FGL_J1224.9+2122_daily_bin1462.fits outfile=/scratch/kocevski/603472/cmap_618278401_618537601_4FGL_J1224.9+2122_daily_bin1462.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.55
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4366       1.0000         .10000E-03   10000.    
     4 'norm      '    .47579       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3249       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6146       1.0000         .10000E-03   10000.    
     7 'Prefactor '    84.759       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18839E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12349E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2500       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5796       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2123       1.0000         .10000E-03   10000.    
    14 'norm      '    .55971       1.0000         .10000E-03   10000.    
    15 'norm      '    7.5925       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5188       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .89446       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    100.75       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.458       1.0000         .10000E-03   10000.    
    22 'norm      '    1.7100       1.0000         .10000E-03   10000.    
    23 'norm      '    30.566       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2873       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88402       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=   6505.756     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2977 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.481       -.34702E-06** at limit **
   2  Prefactor     .10000E-03    4.1869        .18131E-06** at limit **
   3  Prefactor     1.4364        1.3514       -.38378E-07   -.11517E-03
   4  norm          .47607        1.1225        .57666E-06    .23122E-03
   5  Prefactor     3.3257        19.524        .47681E-07   -.24695E-04
   6  Prefactor     9.6225        5.7443       -.26088E-06   -.76439E-03
   7  Prefactor     84.712        109.42        .22344E-06   -.51954E-04
   8  Prefactor     .10000E-03    2.7166        .14310E-05** at limit **
   9  Prefactor     .10000E-03    1.1149        .55009E-07** at limit **
  10  norm          .10000E-03    1.7530       -.20618E-06** at limit **
  11  Prefactor     2.2504        2.0361       -.48254E-07   -.29637E-05
  12  Prefactor     7.5789        3.3281       -.59667E-07   -.29641E-03
  13  Prefactor     8.2122        7.0343       -.40954E-07   -.10864E-03
  14  norm          .55981        .29608        .82765E-08   -.14909E-02
  15  norm          7.5904        7.3431        .15398E-06   -.15415E-03
  16  Prefactor     8.5178        7.9176        .15268E-06   -.24682E-04
  17  Prefactor     .88090        10.474        .11790E-05   -.15858E-03
  18  Prefactor     .10000E-03    22.442        .36083E-06** at limit **
  19  Prefactor     100.72        101.73        .24098E-07   -.39016E-04
  20  Prefactor     .10000E-03    2.9135        .35685E-07** at limit **
  21  Prefactor     14.457        15.353        .26030E-06   -.26224E-04
  22  norm          1.7095        3.6172        .83087E-06    .77653E-04
  23  norm          30.566        25.675       -.71492E-07   -.13632E-04
  24  Normalizat    1.2874        .19609       -.76635E-06   -.44181E-03
  25  Prefactor     .88394        .18560       -.55726E-06   -.33670E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4364
  norm       = 0.47607
  Prefactor  = 3.32571
  Prefactor  = 9.62248
  Prefactor  = 84.7117
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.25041
  Prefactor  = 7.57887
  Prefactor  = 8.2122
  norm       = 0.559806
  norm       = 7.5904
  Prefactor  = 8.51783
  Prefactor  = 0.880896
  Prefactor  = 0.0001
  Prefactor  = 100.724
  Prefactor  = 0.0001
  Prefactor  = 14.4567
  norm       = 1.7095
  norm       = 30.5655
  Normalizat = 1.28743
  Prefactor  = 0.88394
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.756     FROM HESSE     STATUS=OK           437 CALLS     3414 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2014        .16127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4364        1.3659        .87918E-04   -1.5468    
   4  norm          .47607        1.1267        .12651E-03   -1.5570    
   5  Prefactor     3.3257        19.207        .22199E-03   -1.5343    
   6  Prefactor     9.6225        5.7557        .12924E-03   -1.5087    
   7  Prefactor     84.712        108.69        .21817E-03   -1.3865    
   8  Prefactor     .10000E-03    4.1629        .22144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1232        .83129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.4429        .19854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2504        1.9979        .10203E-03   -1.5408    
  12  Prefactor     7.5789        3.2794        .88429E-04   -1.5157    
  13  Prefactor     8.2122        7.0129        .13990E-03   -1.5135    
  14  norm          .55981        .28972        .29708E-04   -1.5558    
  15  norm          7.5904        7.2961        .14554E-03   -1.5157    
  16  Prefactor     8.5178        7.9210        .13734E-03   -1.5124    
  17  Prefactor     .88090        35.518        .46826E-02   -1.5520    
  18  Prefactor     .10000E-03    22.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     100.72        101.79        .20027E-03   -1.3697    
  20  Prefactor     .10000E-03    2.9326        .13445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.457        15.401        .10534E-03   -1.4947    
  22  norm          1.7095        3.6150        .21408E-03   -1.5446    
  23  norm          30.566        25.656        .72471E-04   -1.4602    
  24  Normalizat    1.2874        .23332        .25615E-03   -.83942    
  25  Prefactor     .88394        .21888        .29734E-03   -.96705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82502e-10
Minuit parameter uncertainties:
  1  0.000110138
  2  6.42048e-06
  3  1.36595
  4  1.12676
  5  15.992
  6  5.75602
  7  108.946
  8  0.000163062
  9  2.98132e-07
  10  5.15718e-05
  11  1.998
  12  3.27948
  13  7.01365
  14  0.289723
  15  7.29692
  16  7.92199
  17  11.1936
  18  0.000126158
  19  101.969
  20  2.28121e-06
  21  15.4055
  22  3.61548
  23  25.6655
  24  0.233513
  25  0.219093
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.598e-01  2.897e-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:  8.839e-01  2.191e-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.287e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.20
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.46e-08 +/- 4.89e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 1.70e-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) = 6505.56374632
delta logL = 0.191922323655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6505.56123872
delta logL = 0.194429927019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57241       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6559       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91268       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=   6505.561     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      206 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57242        5.2800        .62766E-02   -.10472E-02
   2  alpha         2.6559        3.3936        .41253        .74941E-05
   3  Normalizat    1.2469        .93151E-01    .58688E-01    .49204E-04
   4  Prefactor     .91266        .11576        .66284E-01   -.70478E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.572417
  alpha      = 2.65592
  Normalizat = 1.24692
  Prefactor  = 0.912664
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.561     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57242        .28887        .28133E-04   -1.5557    
   2  alpha         2.6559        .64444        .15297E-01    .62409E-01
   3  Normalizat    1.2469        .23325        .25954E-03   -.85165    
   4  Prefactor     .91266        .22359        .29319E-03   -.95700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00319e-11
Minuit parameter uncertainties:
  1  0.288874
  2  0.651833
  3  0.233441
  4  0.223816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603472': 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) = 6505.56123871
delta logL = 0.194429935841

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.724e-01  2.889e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.656e+00  6.518e-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:  9.127e-01  2.238e-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.247e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.61
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.66 +/- 0.65
Photon Flux (Free Index): 1.25e-07 +/- 7.51e-08
Energy Flux (Free Index): 3.03e-05 +/- 1.51e-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/603472/cmap_HighResolution_618278401_618537601_4FGL_J1224.9+2122_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.46e-08', energy_flux2='3.03e-05', photon_flux_error='4.89e-08', dlogl='1.94e-01', energy_flux='3.29e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-05 13:51:35.103650', photon_index_error2='0.65', photon_index2='2.66', ts='6.20', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.29', time_epoch_completed='1630875095.1', return_code='0', job_id='603472', GAL2='0.91', EG2='1.25', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='7.51e-08', ts2='6.61', photon_index='2.28' WHERE bin_id='1462' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 603472: <4FGL_J1224.9+2122_daily_bin1462> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1462 186.228 21.3814 618278401 618537601 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 :                                   663.14 sec.
    Max Memory :                                 1203 MB
    Average Memory :                             270.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

