/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 100 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin88
RA = 186.228, Dec = 21.3814
tmin = 262137601, tmax = 262396801
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='597186', job_status='RUN', time_executed='2021-09-05 13:17:48.363287', time_epoch_executed='1630873068.36' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597186/ft1_4FGL_J1224.9+2122_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597186/ft2_4FGL_J1224.9+2122_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597186/ft1_4FGL_J1224.9+2122_daily_bin88.fits outfile=/scratch/kocevski/597186/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin88.fits ra=186.228 dec=21.3814 rad=12.0 tmin=262137601.0 tmax=262396801.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 1.41
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597186/ft1_filtered_4FGL_J1224.9+2122_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/597186/ft2_4FGL_J1224.9+2122_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/597186/ltcube_262137601_262396801_4FGL_J1224.9+2122_daily_bin88.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/597186/ft2_4FGL_J1224.9+2122_daily_bin88.fits
.....................!
real 12.52
user 12.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597186/ft1_filtered_4FGL_J1224.9+2122_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/597186/ft2_4FGL_J1224.9+2122_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/597186/ltcube_262137601_262396801_4FGL_J1224.9+2122_daily_bin88.fits outfile=/scratch/kocevski/597186/expmap_262137601_262396801_4FGL_J1224.9+2122_daily_bin88.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/597186/ltcube_262137601_262396801_4FGL_J1224.9+2122_daily_bin88.fits
.....................!
real 191.54
user 185.81
sys 5.13

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/597186/ft1_filtered_4FGL_J1224.9+2122_daily_bin88.fits scfile=/scratch/kocevski/597186/ft2_4FGL_J1224.9+2122_daily_bin88.fits outfile=/scratch/kocevski/597186/cmap_262137601_262396801_4FGL_J1224.9+2122_daily_bin88.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13484E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6680       1.0000         .10000E-03   10000.    
     4 'norm      '    7.7107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4031       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3142       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8318       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4647       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0114       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1131       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3230       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.283       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7603       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.671       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3608       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1141       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93514       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=   7466.969     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2931 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.549       -.18444E-06** at limit **
   2  Prefactor     .10000E-03    5.5839        .17705E-05** at limit **
   3  Prefactor     2.6676        1.8051       -.39036E-07    .22886E-04
   4  norm          7.7108        1.7457       -.49107E-08    .90538E-04
   5  Prefactor     .10000E-03    5.7379        .68084E-06** at limit **
   6  Prefactor     2.4036        3.4364        .77221E-06    .17193E-03
   7  Prefactor     .10000E-03    31.364        .74803E-06** at limit **
   8  Prefactor     3.3140        2.2155        .15093E-08    .85323E-03
   9  Prefactor     .10004E-03    1.3150       -.92052E-06** at limit **
  10  norm          3.8273        2.6359        .91643E-08   -.46419E-03
  11  Prefactor     .10000E-03    1.8956        .45133E-08** at limit **
  12  Prefactor     5.4641        2.7635        .37009E-07    .82510E-05
  13  Prefactor     2.0112        1.4181        .15530E-06   -.20442E-02
  14  norm          1.1131        .27625       -.66673E-08    .96267E-03
  15  norm          1.3230        2.3503       -.35544E-07   -.11132E-03
  16  Prefactor     17.281        9.4365       -.55596E-06   -.97666E-04
  17  Prefactor     9.7577        11.171       -.36191E-06   -.38298E-04
  18  Prefactor     .10000E-03    7.6877        .44713E-05** at limit **
  19  Prefactor     27.664        72.200       -.97310E-05   -.50122E-04
  20  Prefactor     4.3639        7.8688        .90744E-06    .37161E-04
  21  Prefactor     .10000E-03    5.0058       -.64815E-06** at limit **
  22  norm          .10000E-03    3.0523       -.11916E-07** at limit **
  23  norm          .10000E-03    9.0503       -.19085E-05** at limit **
  24  Normalizat    1.1139        .17531        .21129E-06    .20440E-03
  25  Prefactor     .93530        .17074       -.10461E-07    .16908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.66761
  norm       = 7.71083
  Prefactor  = 0.0001
  Prefactor  = 2.40363
  Prefactor  = 0.0001
  Prefactor  = 3.31397
  Prefactor  = 0.000100037
  norm       = 3.82734
  Prefactor  = 0.0001
  Prefactor  = 5.46411
  Prefactor  = 2.01119
  norm       = 1.11308
  norm       = 1.32297
  Prefactor  = 17.2807
  Prefactor  = 9.75773
  Prefactor  = 0.000100001
  Prefactor  = 27.6643
  Prefactor  = 4.36386
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.11389
  Prefactor  = 0.935304
 **********
 **   18 **HESSE 
 **********

 FCN=   7466.969     FROM HESSE     STATUS=OK           433 CALLS     3364 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.511        .56629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6676        1.7585        .89051E-04   -1.5381    
   4  norm          7.7108        1.7373        .51710E-04   -1.5153    
   5  Prefactor     .10000E-03    5.7543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4036        3.4201        .18057E-03   -1.5398    
   7  Prefactor     .10000E-03    31.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3140        2.1552        .97742E-04   -1.5344    
   9  Prefactor     .10004E-03    6.5854        .17667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8273        2.6308        .55528E-03   -1.5317    
  11  Prefactor     .10000E-03    1.9499        .23018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4641        2.7621        .93158E-04   -1.5240    
  13  Prefactor     2.0112        3.5996        .10670E-02   -1.5424    
  14  norm          1.1131        .27637        .21599E-04   -1.5497    
  15  norm          1.3230        2.3042        .17082E-03   -1.5478    
  16  Prefactor     17.281        9.4545        .96342E-04   -1.4876    
  17  Prefactor     9.7577        11.152        .12827E-03   -1.5083    
  18  Prefactor     .10000E-03    7.7583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.664        72.459        .76159E-04   -1.4656    
  20  Prefactor     4.3639        7.8613        .19288E-03   -1.5290    
  21  Prefactor     .10000E-03    5.0314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.1311        .29452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.0650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1139        .20171        .25863E-03   -.89307    
  25  Prefactor     .93530        .19727        .28423E-03   -.94918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42359e-09
Minuit parameter uncertainties:
  1  0.000401987
  2  2.81031e-05
  3  1.75849
  4  1.73728
  5  1.57502e-05
  6  3.42035
  7  4.09503e-05
  8  2.15529
  9  0.000981142
  10  2.63085
  11  1.06201e-06
  12  2.76219
  13  3.59995
  14  0.27637
  15  2.30432
  16  9.45534
  17  11.1543
  18  0.000125647
  19  72.6911
  20  7.86314
  21  1.44662e-05
  22  5.52016e-06
  23  5.73228e-05
  24  0.20185
  25  0.197424
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.113e+00  2.764e-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:  9.353e-01  1.974e-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.114e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 44.02
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.88e-07 +/- 4.67e-08
Energy Flux (Fixed Index): 6.54e-05 +/- 1.62e-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) = 7466.95280422
delta logL = 0.0156970616636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7466.95211387
delta logL = 0.0163874127938

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1122       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2328       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93114       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=   7466.952     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      192 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1121        .29745        .49040E-02   -.37458E-03
   2  alpha         2.2329        .25622        .18718       -.38358E-05
   3  Normalizat    1.1199        .16800        .58354E-01   -.23294E-04
   4  Prefactor     .93111        .17012        .45401E-01    .41621E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11212
  alpha      = 2.23288
  Normalizat = 1.11991
  Prefactor  = 0.931108
 **********
 **   18 **HESSE 
 **********

 FCN=   7466.952     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1121        .27675        .21709E-04   -1.5497    
   2  alpha         2.2329        .24768        .79917E-02   -.10705    
   3  Normalizat    1.1199        .19562        .25807E-03   -.89115    
   4  Prefactor     .93111        .19708        .28479E-03   -.95062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79673e-11
Minuit parameter uncertainties:
  1  0.276755
  2  0.248094
  3  0.195748
  4  0.197227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597186': 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) = 7466.9521138
delta logL = 0.0163874827067

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.112e+00  2.768e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.233e+00  2.481e-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.311e-01  1.972e-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.120e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.67
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.23 +/- 0.25
Photon Flux (Free Index): 1.83e-07 +/- 5.31e-08
Energy Flux (Free Index): 6.75e-05 +/- 2.08e-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/597186/cmap_HighResolution_262137601_262396801_4FGL_J1224.9+2122_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.88e-07', energy_flux2='6.75e-05', photon_flux_error='4.67e-08', dlogl='1.64e-02', energy_flux='6.54e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-09-05 13:29:43.058286', photon_index_error2='0.25', photon_index2='2.23', ts='44.02', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='1.11', time_epoch_completed='1630873783.06', return_code='0', job_id='597186', GAL2='0.93', EG2='1.12', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='5.31e-08', ts2='43.67', photon_index='2.28' WHERE bin_id='88' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:29:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 597186: <4FGL_J1224.9+2122_daily_bin88> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin88> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:55 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:57 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:15:57 2021
Terminated at Sun Sep  5 13:29:45 2021
Results reported at Sun Sep  5 13:29:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin88 186.228 21.3814 262137601 262396801 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 :                                   705.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

