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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1245
RA = 186.228, Dec = 21.3814
tmin = 562032001, tmax = 562291201
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='603168', job_status='RUN', time_executed='2021-09-05 13:38:51.365620', time_epoch_executed='1630874331.37' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603168

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603168/ft1_4FGL_J1224.9+2122_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603168/ft2_4FGL_J1224.9+2122_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603168/ft1_4FGL_J1224.9+2122_daily_bin1245.fits outfile=/scratch/kocevski/603168/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1245.fits ra=186.228 dec=21.3814 rad=12.0 tmin=562032001.0 tmax=562291201.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.86
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603168/ft2_4FGL_J1224.9+2122_daily_bin1245.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/603168/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1245.fits evtable="EVENTS" outfile="/scratch/kocevski/603168/ft1_filtered_4FGL_J1224.9+2122_daily_bin1245.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.83
user 0.37
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603168/ft1_filtered_4FGL_J1224.9+2122_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/603168/ft2_4FGL_J1224.9+2122_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/603168/ltcube_562032001_562291201_4FGL_J1224.9+2122_daily_bin1245.fits outfile=/scratch/kocevski/603168/expmap_562032001_562291201_4FGL_J1224.9+2122_daily_bin1245.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/603168/ltcube_562032001_562291201_4FGL_J1224.9+2122_daily_bin1245.fits
.....................!
real 190.21
user 185.16
sys 4.40

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/603168/ft1_filtered_4FGL_J1224.9+2122_daily_bin1245.fits scfile=/scratch/kocevski/603168/ft2_4FGL_J1224.9+2122_daily_bin1245.fits outfile=/scratch/kocevski/603168/cmap_562032001_562291201_4FGL_J1224.9+2122_daily_bin1245.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.54
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603168/ft1_filtered_4FGL_J1224.9+2122_daily_bin1245.fits scfile=/scratch/kocevski/603168/ft2_4FGL_J1224.9+2122_daily_bin1245.fits outfile=/scratch/kocevski/603168/cmap_HighResolution_562032001_562291201_4FGL_J1224.9+2122_daily_bin1245.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/603168/ft1_filtered_4FGL_J1224.9+2122_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/603168/ft2_4FGL_J1224.9+2122_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603168/Model_4FGL_J1224.9+2122_daily_bin1245.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/603168/ft1_filtered_4FGL_J1224.9+2122_daily_bin1245.fits.....................!
real 68.48
user 67.07
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.5679       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.167       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12264E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4197       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0974       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6498       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12509E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .32536       1.0000         .10000E-03   10000.    
    15 'norm      '    11.418       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8278       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.377       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7919       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7720       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5225       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .52630       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=   7833.289     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2498 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5671        15.498        .14459E-04   -.64801E-04
   2  Prefactor     .10000E-03    3.3692        .85742E-07** at limit **
   3  Prefactor     .10000E-03    .71086       -.31463E-06** at limit **
   4  norm          6.5677        1.4710       -.11884E-06   -.32321E-03
   5  Prefactor     .10000E-03    7.0698       -.15451E-05** at limit **
   6  Prefactor     .10000E-03    1.5891        .11953E-06** at limit **
   7  Prefactor     20.063        47.799       -.20607E-05   -.18846E-03
   8  Prefactor     .10000E-03    1.2172       -.18414E-06** at limit **
   9  Prefactor     3.4189        2.3570        .64823E-06   -.26842E-04
  10  norm          4.6614        2.9605        .77026E-07   -.63497E-04
  11  Prefactor     7.0973        2.7731       -.10657E-07   -.86523E-04
  12  Prefactor     5.6498        2.2866       -.30854E-07   -.43486E-04
  13  Prefactor     .10000E-03    4.9600        .14453E-06** at limit **
  14  norm          .32536        .20051        .37046E-07   -.10479E-03
  15  norm          11.421        4.3846       -.22534E-07   -.42156E-04
  16  Prefactor     .10000E-03    6.5503       -.17401E-06** at limit **
  17  Prefactor     6.8271        7.5706        .16599E-05   -.70314E-04
  18  Prefactor     15.373        27.233        .10526E-05   -.23138E-04
  19  Prefactor     .10000E-03    16.486        .13110E-06** at limit **
  20  Prefactor     3.7910        5.5765        .45918E-06   -.21554E-04
  21  Prefactor     .10000E-03    3.7994        .11511E-06** at limit **
  22  norm          1.7715        2.4587        .27281E-06   -.14788E-04
  23  norm          .10000E-03    10.522       -.78509E-08** at limit **
  24  Normalizat    1.5226        .16996       -.15383E-05    .65373E-04
  25  Prefactor     .52623        .16190       -.28904E-06   -.92326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.56768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0631
  Prefactor  = 0.0001
  Prefactor  = 3.41887
  norm       = 4.6614
  Prefactor  = 7.09731
  Prefactor  = 5.64978
  Prefactor  = 0.0001
  norm       = 0.32536
  norm       = 11.4215
  Prefactor  = 0.0001
  Prefactor  = 6.82714
  Prefactor  = 15.373
  Prefactor  = 0.0001
  Prefactor  = 3.79102
  Prefactor  = 0.0001
  norm       = 1.77148
  norm       = 0.0001
  Normalizat = 1.52262
  Prefactor  = 0.526226
 **********
 **   18 **HESSE 
 **********

 FCN=   7833.289     FROM HESSE     STATUS=OK           429 CALLS     2927 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5671        15.567        .10698E-02   -1.5330    
   2  Prefactor     .10000E-03    3.3799        .15864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .74933        .14618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.5677        1.4728        .48558E-04   -1.5195    
   5  Prefactor     .10000E-03    7.0851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6234        .10887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.063        48.066        .89190E-04   -1.4812    
   8  Prefactor     .10000E-03    3.8624        .18629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4189        2.3262        .53483E-03   -1.5338    
  10  norm          4.6614        2.9716        .10786E-03   -1.5276    
  11  Prefactor     7.0973        2.7856        .82085E-04   -1.5175    
  12  Prefactor     5.6498        2.2859        .79979E-04   -1.5233    
  13  Prefactor     .10000E-03    5.1588        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .32536        .19670        .29447E-04   -1.5594    
  15  norm          11.421        4.3800        .11046E-03   -1.5032    
  16  Prefactor     .10000E-03    6.5855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8271        7.5604        .76774E-03   -1.5185    
  18  Prefactor     15.373        27.257        .10214E-03   -1.4924    
  19  Prefactor     .10000E-03    16.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7910        5.5627        .20730E-03   -1.5319    
  21  Prefactor     .10000E-03    3.8071        .16849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7715        2.4391        .15779E-03   -1.5442    
  23  norm          .10000E-03    10.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5226        .19480        .21867E-03   -.77145    
  25  Prefactor     .52623        .18414        .35242E-03   -1.1079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19787e-10
Minuit parameter uncertainties:
  1  14.9098
  2  2.62962e-06
  3  1.65251e-05
  4  1.47282
  5  2.86101e-05
  6  1.71778e-06
  7  48.159
  8  3.51918e-05
  9  2.32628
  10  2.97166
  11  2.78569
  12  2.28592
  13  1.19676e-06
  14  0.196696
  15  4.38014
  16  1.17805e-05
  17  7.5615
  18  27.2795
  19  3.60946e-05
  20  5.56349
  21  6.76149e-06
  22  2.43924
  23  2.22647e-05
  24  0.1949
  25  0.184348
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.254e-01  1.967e-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:  5.262e-01  1.843e-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.523e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.16e-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) = 7832.06302016
delta logL = 1.22582097655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7832.05144334
delta logL = 1.23739779313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29587       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2700       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57471       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=   7832.051     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29596        1.8715        .46206E-02    .12644E-02
   2  alpha         3.2711        4.0986        .38456        .43504E-04
   3  Normalizat    1.4498        .57720E-01    .50398E-01   -.26982E-05
   4  Prefactor     .57451        .60074E-01    .76423E-01    .39189E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.295964
  alpha      = 3.27112
  Normalizat = 1.4498
  Prefactor  = 0.574507
 **********
 **   18 **HESSE 
 **********

 FCN=   7832.051     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29596        .20767        .20713E-04   -1.5599    
   2  alpha         3.2711        .74889        .16118E-01    .31356    
   3  Normalizat    1.4498        .19070        .22280E-03   -.79199    
   4  Prefactor     .57451        .18718        .33841E-03   -1.0867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19934e-09
Minuit parameter uncertainties:
  1  0.207666
  2  0.761851
  3  0.190789
  4  0.187378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603168': 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) = 7832.05143792
delta logL = 1.23740321249

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.960e-01  2.077e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.271e+00  7.619e-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:  5.745e-01  1.874e-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.450e+00  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.75
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.27 +/- 0.76
Photon Flux (Free Index): 1.09e-07 +/- 5.24e-08
Energy Flux (Free Index): 1.95e-05 +/- 9.02e-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/603168/cmap_HighResolution_562032001_562291201_4FGL_J1224.9+2122_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='1.95e-05', photon_flux_error='3.32e-08', dlogl='1.24e+00', energy_flux='1.91e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-05 13:50:42.730774', photon_index_error2='0.76', photon_index2='3.27', ts='5.16', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='9.02e-06', EG='1.52', time_epoch_completed='1630875042.73', return_code='0', job_id='603168', GAL2='0.57', EG2='1.45', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.24e-08', ts2='7.75', photon_index='2.28' WHERE bin_id='1245' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 603168: <4FGL_J1224.9+2122_daily_bin1245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1245 186.228 21.3814 562032001 562291201 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 :                                   706.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

