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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin82
RA = 186.228, Dec = 21.3814
tmin = 260582401, tmax = 260841601
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='597177', job_status='RUN', time_executed='2021-09-05 13:19:31.207340', time_epoch_executed='1630873171.21' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='82'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597177

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597177/ft1_4FGL_J1224.9+2122_daily_bin82.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597177/ft2_4FGL_J1224.9+2122_daily_bin82.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597177/ft1_4FGL_J1224.9+2122_daily_bin82.fits outfile=/scratch/kocevski/597177/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin82.fits ra=186.228 dec=21.3814 rad=12.0 tmin=260582401.0 tmax=260841601.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.63
user 1.38
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597177/ft1_filtered_4FGL_J1224.9+2122_daily_bin82.fits evtable="EVENTS" scfile=/scratch/kocevski/597177/ft2_4FGL_J1224.9+2122_daily_bin82.fits sctable="SC_DATA" expcube=/scratch/kocevski/597177/ltcube_260582401_260841601_4FGL_J1224.9+2122_daily_bin82.fits outfile=/scratch/kocevski/597177/expmap_260582401_260841601_4FGL_J1224.9+2122_daily_bin82.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/597177/ltcube_260582401_260841601_4FGL_J1224.9+2122_daily_bin82.fits
.....................!
real 192.68
user 187.28
sys 5.02

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/597177/ft1_filtered_4FGL_J1224.9+2122_daily_bin82.fits scfile=/scratch/kocevski/597177/ft2_4FGL_J1224.9+2122_daily_bin82.fits outfile=/scratch/kocevski/597177/cmap_260582401_260841601_4FGL_J1224.9+2122_daily_bin82.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597177/ft1_filtered_4FGL_J1224.9+2122_daily_bin82.fits scfile=/scratch/kocevski/597177/ft2_4FGL_J1224.9+2122_daily_bin82.fits outfile=/scratch/kocevski/597177/cmap_HighResolution_260582401_260841601_4FGL_J1224.9+2122_daily_bin82.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3081       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78494       1.0000         .10000E-03   10000.    
     4 'norm      '    4.1872       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10867E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7353       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1314       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12733E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.413       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .34090       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5964       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1539       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.595       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.497       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20084E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.1337       1.0000         .10000E-03   10000.    
    23 'norm      '    30.290       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76172       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1998       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=   8688.409     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2926 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2992        16.585        .12796E-05    .26758E-04
   2  Prefactor     .10000E-03    4.6720       -.17913E-06** at limit **
   3  Prefactor     .78644        1.3985       -.12557E-06   -.47960E-03
   4  norm          4.1871        1.2826        .32871E-07   -.13241E-04
   5  Prefactor     .10000E-03    5.5340       -.22442E-06** at limit **
   6  Prefactor     .10000E-03    1.6798        .75861E-07** at limit **
   7  Prefactor     56.854        79.346        .80251E-05   -.92621E-05
   8  Prefactor     .10000E-03    .90666        .92265E-07** at limit **
   9  Prefactor     2.7349        2.1761        .28593E-07   -.68007E-04
  10  norm          2.1302        1.8253        .27623E-07   -.85289E-04
  11  Prefactor     .10000E-03    1.1108        .12492E-06** at limit **
  12  Prefactor     10.412        2.4922        .20682E-07   -.17356E-04
  13  Prefactor     .10000E-03    5.9250       -.20817E-06** at limit **
  14  norm          .34091        .18208        .16178E-07    .37965E-04
  15  norm          5.5970        3.8637        .11684E-06    .49660E-04
  16  Prefactor     3.1523        6.4296        .29851E-05   -.14542E-04
  17  Prefactor     .10000E-03    2.6926       -.22661E-06** at limit **
  18  Prefactor     17.595        19.649       -.81438E-06   -.18165E-04
  19  Prefactor     47.491        66.975        .87114E-06   -.14021E-05
  20  Prefactor     .10000E-03    2.7586        .31329E-06** at limit **
  21  Prefactor     .10000E-03    7.6167        .67056E-06** at limit **
  22  norm          6.1336        2.8784       -.23170E-07   -.29476E-04
  23  norm          30.289        19.233        .84569E-07   -.47081E-05
  24  Normalizat    .76180        .15299        .16877E-06   -.69854E-04
  25  Prefactor     1.1997        .15210       -.91477E-06   -.61625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.29923
  Prefactor  = 0.0001
  Prefactor  = 0.786438
  norm       = 4.18714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.8538
  Prefactor  = 0.0001
  Prefactor  = 2.73492
  norm       = 2.13022
  Prefactor  = 0.0001
  Prefactor  = 10.4124
  Prefactor  = 0.0001
  norm       = 0.340907
  norm       = 5.59699
  Prefactor  = 3.15226
  Prefactor  = 0.0001
  Prefactor  = 17.5949
  Prefactor  = 47.4913
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 6.13364
  norm       = 30.2895
  Normalizat = 0.761801
  Prefactor  = 1.19971
 **********
 **   18 **HESSE 
 **********

 FCN=   8688.409     FROM HESSE     STATUS=OK           435 CALLS     3361 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2992        16.253        .15982E-03   -1.5206    
   2  Prefactor     .10000E-03    4.6976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .78644        1.2101        .13444E-02   -1.5531    
   4  norm          4.1871        1.2816        .27777E-03   -1.5299    
   5  Prefactor     .10000E-03    5.5283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7148        .11784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.854        78.956        .53176E-04   -1.4199    
   8  Prefactor     .10000E-03    1.6817        .16918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7349        2.1405        .11564E-03   -1.5377    
  10  norm          2.1302        1.7666        .10922E-03   -1.5416    
  11  Prefactor     .10000E-03    3.4557        .18470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.412        2.4866        .68412E-04   -1.5062    
  13  Prefactor     .10000E-03    6.1383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .34091        .17964        .27466E-04   -1.5591    
  15  norm          5.5970        3.8475        .14521E-03   -1.5235    
  16  Prefactor     3.1523        6.4429        .11412E-02   -1.5353    
  17  Prefactor     .10000E-03    2.6965        .14934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.595        19.666        .95483E-04   -1.4869    
  19  Prefactor     47.491        67.011        .58182E-04   -1.4329    
  20  Prefactor     .10000E-03    2.7875        .15118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.967        .48793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.1336        2.8779        .52468E-03   -1.5213    
  23  norm          30.289        19.232        .72800E-04   -1.4607    
  24  Normalizat    .76180        .17887        .28240E-03   -1.0150    
  25  Prefactor     1.1997        .17961        .24034E-03   -.86340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41143e-10
Minuit parameter uncertainties:
  1  16.2641
  2  4.05597e-06
  3  1.21014
  4  1.28156
  5  6.52497e-05
  6  2.22825e-06
  7  79.1017
  8  3.38741e-06
  9  2.14057
  10  1.76669
  11  2.64092e-05
  12  2.48659
  13  8.70992e-06
  14  0.179637
  15  3.84765
  16  6.44432
  17  7.71522e-07
  18  19.6733
  19  67.1175
  20  2.19885e-06
  21  0.000750069
  22  2.878
  23  19.2358
  24  0.179012
  25  0.179705
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.409e-01  1.796e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.200e+00  1.797e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  7.618e-01  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.90
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.76e-08 +/- 3.03e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.06e-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) = 8686.4789271
delta logL = 1.93027372808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8686.4534816
delta logL = 1.9557192289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33702E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .94691       1.0000          .0000       5.0000    
     3 'Normalizat'    .80871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1881       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=   8686.453     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      230 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33701E-01    .29845E-01    .27107E-02   -.23490E-02
   2  alpha         .94680        .27483        .23355       -.68321E-04
   3  Normalizat    .80862        .14413        .43724E-01    .26650E-04
   4  Prefactor     1.1882        .15153        .54623E-01    .54717E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0337011
  alpha      = 0.9468
  Normalizat = 0.808624
  Prefactor  = 1.18821
 **********
 **   18 **HESSE 
 **********

 FCN=   8686.453     FROM HESSE     STATUS=OK            35 CALLS      265 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33701E-01    .64273E-01    .11425E-03   -1.5671    
   2  alpha         .94680        .58196        .98835E-02   -.67038    
   3  Normalizat    .80862        .16879        .27445E-03   -.99750    
   4  Prefactor     1.1882        .17764        .24151E-03   -.86695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3007e-09
Minuit parameter uncertainties:
  1  0.0642727
  2  0.590882
  3  0.168903
  4  0.177728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597177': 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) = 8686.45348132
delta logL = 1.95571950693

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.370e-02  6.427e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  9.468e-01  5.909e-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:  1.188e+00  1.777e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  8.086e-01  1.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.74
Ra Dec: 186.228 21.381
Photon Index (Free Index): 0.95 +/- 0.59
Photon Flux (Free Index): 7.29e-09 +/- 7.90e-09
Energy Flux (Free Index): 6.52e-05 +/- 6.72e-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/597177/cmap_HighResolution_260582401_260841601_4FGL_J1224.9+2122_daily_bin82.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.76e-08', energy_flux2='6.52e-05', photon_flux_error='3.03e-08', dlogl='1.96e+00', energy_flux='2.00e-05', photon_flux2='7.29e-09', job_status='DONE', time_completed='2021-09-05 13:32:14.771195', photon_index_error2='0.59', photon_index2='0.95', ts='7.90', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='6.72e-05', EG='0.76', time_epoch_completed='1630873934.77', return_code='0', job_id='597177', GAL2='1.19', EG2='0.81', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='7.90e-09', ts2='11.74', photon_index='2.28' WHERE bin_id='82' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:32:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 597177: <4FGL_J1224.9+2122_daily_bin82> in cluster <slac> Done

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

Your job looked like:

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

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

