/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 38 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin214
RA = 186.116, Dec = 24.6142
tmin = 294796801, tmax = 295056001
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='579002', job_status='RUN', time_executed='2021-09-05 12:21:41.627463', time_epoch_executed='1630869701.63' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579002/ft1_4FGL_J1224.4+2436_daily_bin214.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579002/ft2_4FGL_J1224.4+2436_daily_bin214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579002/ft1_4FGL_J1224.4+2436_daily_bin214.fits outfile=/scratch/kocevski/579002/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin214.fits ra=186.116 dec=24.6142 rad=12.0 tmin=294796801.0 tmax=295056001.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 5.06
user 2.22
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/579002/ft2_4FGL_J1224.4+2436_daily_bin214.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579002/ft2_4FGL_J1224.4+2436_daily_bin214.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/579002/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin214.fits evtable="EVENTS" outfile="/scratch/kocevski/579002/ft1_filtered_4FGL_J1224.4+2436_daily_bin214.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.84
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579002/ft1_filtered_4FGL_J1224.4+2436_daily_bin214.fits" evtable="EVENTS" scfile=/scratch/kocevski/579002/ft2_4FGL_J1224.4+2436_daily_bin214.fits sctable="SC_DATA" outfile=/scratch/kocevski/579002/ltcube_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.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/579002/ft2_4FGL_J1224.4+2436_daily_bin214.fits
.....................!
real 12.88
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579002/ft1_filtered_4FGL_J1224.4+2436_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/579002/ft2_4FGL_J1224.4+2436_daily_bin214.fits sctable="SC_DATA" expcube=/scratch/kocevski/579002/ltcube_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.fits outfile=/scratch/kocevski/579002/expmap_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.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/579002/ltcube_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.fits
.....................!
real 190.78
user 184.97
sys 4.29

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.4+2436 @ 186.116 24.6142

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/579002/ft1_filtered_4FGL_J1224.4+2436_daily_bin214.fits scfile=/scratch/kocevski/579002/ft2_4FGL_J1224.4+2436_daily_bin214.fits outfile=/scratch/kocevski/579002/cmap_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.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.116 yref=24.6142 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579002/ft1_filtered_4FGL_J1224.4+2436_daily_bin214.fits scfile=/scratch/kocevski/579002/ft2_4FGL_J1224.4+2436_daily_bin214.fits outfile=/scratch/kocevski/579002/cmap_HighResolution_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.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.116 yref=24.6142 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/579002/ft1_filtered_4FGL_J1224.4+2436_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/579002/ft2_4FGL_J1224.4+2436_daily_bin214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579002/Model_4FGL_J1224.4+2436_daily_bin214.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/579002/ft1_filtered_4FGL_J1224.4+2436_daily_bin214.fits.....................!
real 79.26
user 77.82
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/579002/ft1_filtered_4FGL_J1224.4+2436_daily_bin214.fits', '/scratch/kocevski/579002/ft2_4FGL_J1224.4+2436_daily_bin214.fits', expMap='/scratch/kocevski/579002/expmap_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.fits', expCube='/scratch/kocevski/579002/ltcube_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/579002/Model_4FGL_J1224.4+2436_daily_bin214.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.4+2436'

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.506e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/579002/ft1_filtered_4FGL_J1224.4+2436_daily_bin214.fits
Spacecraft file(s): /scratch/kocevski/579002/ft2_4FGL_J1224.4+2436_daily_bin214.fits
Exposure map: /scratch/kocevski/579002/expmap_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.fits
Exposure cube: /scratch/kocevski/579002/ltcube_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/579002/Model_4FGL_J1224.4+2436_daily_bin214.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) = 8551.06839721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.279       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38468       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7893       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.212       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2949       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5227       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1251       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7366       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7284       1.0000         .10000E-03   10000.    
    15 'norm      '    11.619       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4899       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.937       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .50214       1.0000         .10000E-03   10000.    
    22 'norm      '    7.5994       1.0000         .10000E-03   10000.    
    23 'norm      '    3.1237       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1236       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8551.065     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2888 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.272        16.293        .61294E-06    .76292E-04
   2  Prefactor     .23719        5.5913       -.14983E-06    .98953E-04
   3  Prefactor     2.8645        1.7808       -.41179E-08   -.97853E-05
   4  Prefactor     .10000E-03    6.7894       -.16115E-06** at limit **
   5  norm          1.7888        .97975        .20387E-07    .14633E-04
   6  Prefactor     .10000E-03    3.7083        .84758E-07** at limit **
   7  Prefactor     18.181        27.112       -.34458E-05   -.25954E-03
   8  Prefactor     .10000E-03    1.6459       -.51930E-08** at limit **
   9  Prefactor     6.2935        3.7598        .23993E-07   -.10649E-03
  10  norm          3.5223        2.4482       -.46568E-07   -.73279E-04
  11  Prefactor     .10000E-03    1.8160       -.64766E-07** at limit **
  12  Prefactor     3.1248        2.1262       -.40599E-07   -.35645E-04
  13  Prefactor     6.7355        2.9899        .22912E-06    .47017E-03
  14  Prefactor     7.7278        5.5729        .12446E-06    .95726E-04
  15  norm          11.619        .75562       -.16872E-08   -.21963E-07
  16  norm          2.4896        2.9295       -.41957E-08   -.10501E-04
  17  Prefactor     13.933        10.951        .11883E-06    .72429E-04
  18  Prefactor     .10000E-03    16.021        .86139E-07** at limit **
  19  Prefactor     .10000E-03    79.535        .30385E-06** at limit **
  20  Prefactor     .10000E-03    2.5200        .30819E-07** at limit **
  21  norm          .50004        5.4710        .37379E-05   -.35891E-03
  22  norm          7.5974        4.2843       -.73632E-07   -.15724E-03
  23  norm          3.1180        14.810        .95048E-06    .14681E-04
  24  Normalizat    1.1239        .18798        .14195E-06   -.10886E-03
  25  Prefactor     .78661        .18569       -.97503E-06   -.24994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2717
  Prefactor  = 0.237189
  Prefactor  = 2.86452
  Prefactor  = 0.0001
  norm       = 1.7888
  Prefactor  = 0.0001
  Prefactor  = 18.181
  Prefactor  = 0.0001
  Prefactor  = 6.29347
  norm       = 3.52228
  Prefactor  = 0.0001
  Prefactor  = 3.12479
  Prefactor  = 6.73553
  Prefactor  = 7.7278
  norm       = 11.619
  norm       = 2.48957
  Prefactor  = 13.9327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.500044
  norm       = 7.59738
  norm       = 3.11804
  Normalizat = 1.12393
  Prefactor  = 0.78661
 **********
 **   18 **HESSE 
 **********

 FCN=   8551.065     FROM HESSE     STATUS=OK           437 CALLS     3325 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.272        16.328        .11431E-03   -1.5007    
   2  Prefactor     .23719        80.370        .41657E-02   -1.5611    
   3  Prefactor     2.8645        1.7760        .91609E-04   -1.5369    
   4  Prefactor     .10000E-03    6.7937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7888        .97635        .65196E-04   -1.5440    
   6  Prefactor     .10000E-03    3.8514        .34718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.181        28.718        .93852E-04   -1.4855    
   8  Prefactor     .10000E-03    1.6660        .11552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2935        3.7532        .13216E-03   -1.5206    
  10  norm          3.5223        2.4476        .11421E-03   -1.5333    
  11  Prefactor     .10000E-03    1.8184        .12167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1248        2.1273        .10529E-03   -1.5354    
  13  Prefactor     6.7355        3.0046        .98579E-04   -1.5189    
  14  Prefactor     7.7278        5.5726        .14424E-03   -1.5152    
  15  norm          11.619        .75895        .19283E-04   -1.5026    
  16  norm          2.4896        2.9241        .16585E-03   -1.5392    
  17  Prefactor     13.933        10.957        .10729E-03   -1.4961    
  18  Prefactor     .10000E-03    16.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    79.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5275        .14335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .50004        5.9940        .42487E-03   -1.5567    
  22  norm          7.5974        4.2949        .13829E-03   -1.5157    
  23  norm          3.1180        14.786        .22940E-03   -1.5355    
  24  Normalizat    1.1239        .22195        .30153E-03   -.88987    
  25  Prefactor     .78661        .21769        .36968E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28496e-09
Minuit parameter uncertainties:
  1  16.3341
  2  8.74222
  3  1.77599
  4  1.22085e-05
  5  0.976358
  6  3.36721e-06
  7  28.7399
  8  1.6474e-06
  9  3.75335
  10  2.44771
  11  2.35153e-06
  12  2.12738
  13  3.0047
  14  5.57301
  15  0.758954
  16  2.92427
  17  10.9583
  18  7.99951e-06
  19  4.18745e-05
  20  1.25337e-06
  21  3.46261
  22  4.29506
  23  13.5853
  24  0.222137
  25  0.217925
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  7.728e+00  5.573e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.866e-01  2.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.124e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.79
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.96e-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) = 8550.90548961
delta logL = 0.159890020317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8550.89341355
delta logL = 0.171966081058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8376       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2878       1.0000          .0000       10.000    
     3 'Normalizat'    1.1097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8550.893     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      291 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8370        5.9545        .13941E-03   -.64246E-03
   2  Index         2.2878        .66368        .58567E-02   -.16584E-03
   3  Normalizat    1.1097        .20825        .30283E-03   -.36821E-03
   4  Prefactor     .79332        .21606        .36795E-03   -.30174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.83699
  Index      = 2.28782
  Normalizat = 1.10967
  Prefactor  = 0.79332
 **********
 **   18 **HESSE 
 **********

 FCN=   8550.893     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8370        5.4991        .55762E-05   -1.5225    
   2  Index         2.2878        .61296        .23427E-03   -.57333    
   3  Normalizat    1.1097        .20803        .60566E-04   -.89442    
   4  Prefactor     .79332        .21610        .14718E-04   -.99975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55962e-10
Minuit parameter uncertainties:
  1  5.49958
  2  0.61516
  3  0.208185
  4  0.216329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579002': 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) = 8550.89341353
delta logL = 0.171966096219

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  5.837e+00  5.500e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  2.288e+00  6.152e-01  0.000e+00  1.000e+01 (-1.000e+00)
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.933e-01  2.163e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.110e+00  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.14
Ra Dec: 186.116 24.614
Photon Index (Free Index): 2.29 +/- 0.62
Photon Flux (Free Index): 5.44e-08 +/- 5.33e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.44e-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/579002/cmap_HighResolution_294796801_295056001_4FGL_J1224.4+2436_daily_bin214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='2.10e-05', photon_flux_error='2.34e-08', dlogl='1.72e-01', energy_flux='2.72e-05', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-09-05 12:35:43.331714', photon_index_error2='0.62', photon_index2='2.29', ts='7.79', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='1.12', time_epoch_completed='1630870543.33', return_code='0', job_id='579002', GAL2='0.79', EG2='1.11', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='5.33e-08', ts2='8.14', photon_index='1.93' WHERE bin_id='214' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:35:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 579002: <4FGL_J1224.4+2436_daily_bin214> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin214> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 12:20:34 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:20:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:20:35 2021
Terminated at Sun Sep  5 12:35:44 2021
Results reported at Sun Sep  5 12:35:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin214 186.116 24.6142 294796801 295056001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.4+2436 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   832.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

