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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1311
RA = 186.228, Dec = 21.3814
tmin = 579139201, tmax = 579398401
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='603266', job_status='RUN', time_executed='2021-09-05 13:39:38.336923', time_epoch_executed='1630874378.34' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603266

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603266/ft1_4FGL_J1224.9+2122_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603266/ft2_4FGL_J1224.9+2122_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603266/ft1_4FGL_J1224.9+2122_daily_bin1311.fits outfile=/scratch/kocevski/603266/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1311.fits ra=186.228 dec=21.3814 rad=12.0 tmin=579139201.0 tmax=579398401.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.83
user 3.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603266/ft1_filtered_4FGL_J1224.9+2122_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/603266/ft2_4FGL_J1224.9+2122_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/603266/ltcube_579139201_579398401_4FGL_J1224.9+2122_daily_bin1311.fits outfile=/scratch/kocevski/603266/expmap_579139201_579398401_4FGL_J1224.9+2122_daily_bin1311.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/603266/ltcube_579139201_579398401_4FGL_J1224.9+2122_daily_bin1311.fits
.....................!
real 191.41
user 186.24
sys 4.66

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/603266/ft1_filtered_4FGL_J1224.9+2122_daily_bin1311.fits scfile=/scratch/kocevski/603266/ft2_4FGL_J1224.9+2122_daily_bin1311.fits outfile=/scratch/kocevski/603266/cmap_579139201_579398401_4FGL_J1224.9+2122_daily_bin1311.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603266/ft1_filtered_4FGL_J1224.9+2122_daily_bin1311.fits scfile=/scratch/kocevski/603266/ft2_4FGL_J1224.9+2122_daily_bin1311.fits outfile=/scratch/kocevski/603266/cmap_HighResolution_579139201_579398401_4FGL_J1224.9+2122_daily_bin1311.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.630       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9553       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .56591       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41133       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8833       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2590       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1600       1.0000         .10000E-03   10000.    
    14 'norm      '    .17422       1.0000         .10000E-03   10000.    
    15 'norm      '    6.5267       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4439       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.969       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20194E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.2631       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0056       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94985       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=   5543.993     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3679 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.630        19.082       -.77285E-06   -.72518E-04
   2  Prefactor     8.9543        12.873       -.27556E-06   -.51166E-04
   3  Prefactor     .56578        2.0463        .77190E-06   -.26202E-03
   4  norm          .10000E-03    .35156        .25102E-07** at limit **
   5  Prefactor     .10000E-03    6.2335        .56427E-07** at limit **
   6  Prefactor     .41135        3.0305        .13800E-05   -.30476E-03
   7  Prefactor     .10000E-03    83.998       -.19206E-06** at limit **
   8  Prefactor     .10000E-03    .91022        .32717E-08** at limit **
   9  Prefactor     .10000E-03    2.0211        .66647E-07** at limit **
  10  norm          5.6290        3.2811        .36965E-06   -.41777E-03
  11  Prefactor     5.8831        2.9225       -.10527E-06    .45089E-04
  12  Prefactor     2.2590        1.7324        .66207E-08    .96484E-05
  13  Prefactor     5.1598        5.5194        .62987E-07   -.10460E-03
  14  norm          .17424        .17753        .90025E-08   -.38460E-03
  15  norm          6.5266        4.4009       -.15492E-06   -.25004E-03
  16  Prefactor     .10000E-03    12.899        .40989E-06** at limit **
  17  Prefactor     9.4436        6.9643        .16161E-08   -.68970E-05
  18  Prefactor     .10000E-03    26.637        .25814E-06** at limit **
  19  Prefactor     57.948        72.165       -.42815E-05   -.15811E-03
  20  Prefactor     .10000E-03    4.9221        .11586E-06** at limit **
  21  Prefactor     .10000E-03    15.648       -.65001E-07** at limit **
  22  norm          2.2627        2.4361        .34891E-07   -.47206E-04
  23  norm          .10000E-03    10.769       -.62597E-07** at limit **
  24  Normalizat    1.0057        .18086        .13212E-07   -.14461E-03
  25  Prefactor     .94969        .18375       -.52254E-06   -.83425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6298
  Prefactor  = 8.95429
  Prefactor  = 0.565779
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.411349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.62902
  Prefactor  = 5.88307
  Prefactor  = 2.25899
  Prefactor  = 5.15981
  norm       = 0.17424
  norm       = 6.52656
  Prefactor  = 0.0001
  Prefactor  = 9.44364
  Prefactor  = 0.0001
  Prefactor  = 57.9481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26269
  norm       = 0.0001
  Normalizat = 1.00574
  Prefactor  = 0.949689
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.993     FROM HESSE     STATUS=OK           433 CALLS     4112 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.630        18.677        .10131E-03   -1.4917    
   2  Prefactor     8.9543        12.875        .13394E-03   -1.5109    
   3  Prefactor     .56578        2.0327        .17617E-03   -1.5558    
   4  norm          .10000E-03    .36124        .86134E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .41135        3.1599        .25198E-03   -1.5580    
   7  Prefactor     .10000E-03    84.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .91922        .69323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0792        .20645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6290        3.3295        .45578E-03   -1.5233    
  11  Prefactor     5.8831        2.9440        .79041E-04   -1.5223    
  12  Prefactor     2.2590        1.7272        .81991E-04   -1.5407    
  13  Prefactor     5.1598        5.5083        .16774E-03   -1.5254    
  14  norm          .17424        .16981        .30082E-03   -1.5625    
  15  norm          6.5266        4.4112        .11935E-03   -1.5197    
  16  Prefactor     .10000E-03    13.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.4436        6.9635        .13041E-03   -1.5093    
  18  Prefactor     .10000E-03    26.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     57.948        77.518        .52691E-04   -1.4184    
  20  Prefactor     .10000E-03    15.685        .31801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2627        2.4266        .11707E-03   -1.5407    
  23  norm          .10000E-03    10.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0057        .21322        .23307E-03   -.92838    
  25  Prefactor     .94969        .21624        .25298E-03   -.94426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65931e-10
Minuit parameter uncertainties:
  1  18.6837
  2  12.8787
  3  2.03292
  4  1.7287e-07
  5  3.11879e-06
  6  2.28008
  7  8.35724e-05
  8  7.12423e-07
  9  3.73962e-08
  10  3.32957
  11  2.94405
  12  1.72728
  13  5.50883
  14  0.16981
  15  4.41147
  16  3.74528e-05
  17  6.9641
  18  2.59286e-05
  19  77.653
  20  9.17457e-06
  21  2.19067e-05
  22  2.42674
  23  8.16665e-06
  24  0.213396
  25  0.216432
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.742e-01  1.698e-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.497e-01  2.164e-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.006e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 9.97e-06

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

Saving results to:
/scratch/kocevski/603266/likelihoodResults_579139201_579398401_4FGL_J1224.9+2122_daily_bin1311.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) = 5543.92854011
delta logL = 0.0642096860229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.92417865
delta logL = 0.0685711444057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14070       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9324       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94256       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=   5543.924     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      207 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14061        .15025        .61934E-02    .51567E-03
   2  alpha         1.9324        .52602        .42579       -.31533E-04
   3  Normalizat    1.0180        .17308        .43655E-01    .85405E-05
   4  Prefactor     .94252        .18340        .45545E-01    .10182E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.14061
  alpha      = 1.9324
  Normalizat = 1.01803
  Prefactor  = 0.942521
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.924     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14061        .18423        .28575E-03   -1.5633    
   2  alpha         1.9324        .88428        .15676E-01   -.22904    
   3  Normalizat    1.0180        .20402        .23178E-03   -.92429    
   4  Prefactor     .94252        .21510        .25381E-03   -.94671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70323e-09
Minuit parameter uncertainties:
  1  0.18423
  2  0.904973
  3  0.204175
  4  0.215294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603266': 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) = 5543.92417837
delta logL = 0.0685714259762

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.406e-01  1.842e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.932e+00  9.050e-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.425e-01  2.153e-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.018e+00  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.93 +/- 0.90
Photon Flux (Free Index): 2.01e-08 +/- 3.08e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.49e-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/603266/cmap_HighResolution_579139201_579398401_4FGL_J1224.9+2122_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-05', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.22e-05', photon_flux_error='2.87e-08', dlogl='6.86e-02', energy_flux='1.02e-05', photon_flux2='2.01e-08', job_status='DONE', time_completed='2021-09-05 13:52:14.009004', photon_index_error2='0.90', photon_index2='1.93', ts='2.10', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.87e-08', energy_flux_error2='1.49e-05', EG='1.01', time_epoch_completed='1630875134.01', return_code='0', job_id='603266', GAL2='0.94', EG2='1.02', return_code2='0', energy_flux_error='9.97e-06', photon_flux_error2='3.08e-08', ts2='2.24', photon_index='2.28' WHERE bin_id='1311' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 603266: <4FGL_J1224.9+2122_daily_bin1311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1311 186.228 21.3814 579139201 579398401 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 :                                   743.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

