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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin872
RA = 186.116, Dec = 24.6142
tmin = 465350401, tmax = 465609601
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='582470', job_status='RUN', time_executed='2021-09-05 12:31:00.125431', time_epoch_executed='1630870260.13' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='872'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/582470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/582470/ft1_4FGL_J1224.4+2436_daily_bin872.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/582470/ft2_4FGL_J1224.4+2436_daily_bin872.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/582470/ft1_4FGL_J1224.4+2436_daily_bin872.fits outfile=/scratch/kocevski/582470/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin872.fits ra=186.116 dec=24.6142 rad=12.0 tmin=465350401.0 tmax=465609601.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.49
user 3.22
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/582470/ft2_4FGL_J1224.4+2436_daily_bin872.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/582470/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin872.fits evtable="EVENTS" outfile="/scratch/kocevski/582470/ft1_filtered_4FGL_J1224.4+2436_daily_bin872.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.57
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/582470/ft1_filtered_4FGL_J1224.4+2436_daily_bin872.fits" evtable="EVENTS" scfile=/scratch/kocevski/582470/ft2_4FGL_J1224.4+2436_daily_bin872.fits sctable="SC_DATA" outfile=/scratch/kocevski/582470/ltcube_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.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/582470/ft2_4FGL_J1224.4+2436_daily_bin872.fits
.....................!
real 12.05
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/582470/ft1_filtered_4FGL_J1224.4+2436_daily_bin872.fits evtable="EVENTS" scfile=/scratch/kocevski/582470/ft2_4FGL_J1224.4+2436_daily_bin872.fits sctable="SC_DATA" expcube=/scratch/kocevski/582470/ltcube_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.fits outfile=/scratch/kocevski/582470/expmap_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.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/582470/ltcube_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.fits
.....................!
real 191.20
user 185.61
sys 4.97

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/582470/ft1_filtered_4FGL_J1224.4+2436_daily_bin872.fits scfile=/scratch/kocevski/582470/ft2_4FGL_J1224.4+2436_daily_bin872.fits outfile=/scratch/kocevski/582470/cmap_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/582470/ft1_filtered_4FGL_J1224.4+2436_daily_bin872.fits scfile=/scratch/kocevski/582470/ft2_4FGL_J1224.4+2436_daily_bin872.fits outfile=/scratch/kocevski/582470/cmap_HighResolution_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/582470/ft1_filtered_4FGL_J1224.4+2436_daily_bin872.fits', '/scratch/kocevski/582470/ft2_4FGL_J1224.4+2436_daily_bin872.fits', expMap='/scratch/kocevski/582470/expmap_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.fits', expCube='/scratch/kocevski/582470/ltcube_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/582470/Model_4FGL_J1224.4+2436_daily_bin872.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/582470/ft1_filtered_4FGL_J1224.4+2436_daily_bin872.fits
Spacecraft file(s): /scratch/kocevski/582470/ft2_4FGL_J1224.4+2436_daily_bin872.fits
Exposure map: /scratch/kocevski/582470/expmap_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.fits
Exposure cube: /scratch/kocevski/582470/ltcube_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/582470/Model_4FGL_J1224.4+2436_daily_bin872.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) = 5587.86004321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11799E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9288       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.629       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2256       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2535       1.0000         .10000E-03   10000.    
    10 'norm      '    8.0298       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55130       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2554       1.0000         .10000E-03   10000.    
    15 'norm      '    .58773       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3931       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.561       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.278       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63969E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .45215E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.2070       1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94110       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1179       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=   5587.850     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2948 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.108       -.43387E-06** at limit **
   2  Prefactor     5.9291        11.322       -.39341E-05   -.82065E-04
   3  Prefactor     .49555        1.3747       -.41435E-06   -.12266E-02
   4  Prefactor     25.622        24.854        .98455E-05    .38860E-05
   5  norm          4.2249        1.4812       -.10413E-06    .66369E-04
   6  Prefactor     .10000E-03    1.8874        .13558E-06** at limit **
   7  Prefactor     .10000E-03    8.0815       -.86916E-07** at limit **
   8  Prefactor     .10000E-03    1.4416       -.27079E-07** at limit **
   9  Prefactor     4.2530        3.7288        .72045E-06   -.28826E-03
  10  norm          8.0303        3.1385       -.12901E-05   -.94870E-04
  11  Prefactor     .10000E-03    9.5431        .10758E-06** at limit **
  12  Prefactor     .54919        1.5713        .33232E-06   -.70833E-03
  13  Prefactor     .10000E-03    1.3052        .38123E-06** at limit **
  14  Prefactor     6.2551        5.2634        .52761E-06   -.26169E-04
  15  norm          .58773        .25900       -.14422E-07   -.33007E-03
  16  norm          5.3925        5.0660        .89291E-06   -.23657E-03
  17  Prefactor     16.561        10.461       -.35996E-05   -.52178E-04
  18  Prefactor     24.293        30.332       -.76231E-05   -.33062E-05
  19  Prefactor     .10000E-03    379.30       -.73042E-04** at limit **
  20  Prefactor     .10000E-03    2.1366       -.20330E-06** at limit **
  21  norm          .10000E-03    2.1989        .49092E-07** at limit **
  22  norm          6.2070        3.7809        .82734E-06   -.63431E-04
  23  norm          .10000E-03    6.0887        .63504E-07** at limit **
  24  Normalizat    .94126        .18836       -.23428E-06    .22250E-03
  25  Prefactor     1.1177        .19991        .14736E-05    .76352E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 5.92913
  Prefactor  = 0.495547
  Prefactor  = 25.6218
  norm       = 4.22485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.25301
  norm       = 8.03027
  Prefactor  = 0.0001
  Prefactor  = 0.549187
  Prefactor  = 0.0001
  Prefactor  = 6.25505
  norm       = 0.587728
  norm       = 5.39252
  Prefactor  = 16.5613
  Prefactor  = 24.2933
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 6.20696
  norm       = 0.0001
  Normalizat = 0.941258
  Prefactor  = 1.11772
 **********
 **   18 **HESSE 
 **********

 FCN=   5587.850     FROM HESSE     STATUS=OK           439 CALLS     3387 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    226.95        .61784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9291        11.343        .16492E-03   -1.5221    
   3  Prefactor     .49555        1.2909        .13290E-03   -1.5567    
   4  Prefactor     25.622        24.770        .79128E-04   -1.4695    
   5  norm          4.2249        1.4716        .51263E-04   -1.5297    
   6  Prefactor     .10000E-03    1.9146        .10021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4604        .87371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2530        3.6983        .12667E-03   -1.5295    
  10  norm          8.0303        3.0944        .77982E-04   -1.5141    
  11  Prefactor     .10000E-03    9.9802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .54919        1.3358        .14890E-02   -1.5560    
  13  Prefactor     .10000E-03    2.4672        .16335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2551        5.2573        .14918E-03   -1.5208    
  15  norm          .58773        .25682        .23986E-04   -1.5555    
  16  norm          5.3925        5.0406        .15212E-03   -1.5243    
  17  Prefactor     16.561        10.432        .98419E-04   -1.4894    
  18  Prefactor     24.293        30.347        .81297E-04   -1.4722    
  19  Prefactor     .10000E-03    381.94        .21030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1432        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.339        .21455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.2070        3.7735        .10930E-03   -1.5210    
  23  norm          .10000E-03    6.0931        .18015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94126        .21379        .25405E-03   -.95025    
  25  Prefactor     1.1177        .23232        .26533E-03   -.88902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25535e-09
Minuit parameter uncertainties:
  1  0.00132519
  2  11.3473
  3  1.29096
  4  24.7797
  5  1.47161
  6  5.42526e-06
  7  1.8988e-05
  8  6.28723e-06
  9  3.69853
  10  3.09441
  11  1.7611e-05
  12  1.3359
  13  5.51706e-05
  14  5.25766
  15  0.256825
  16  5.04095
  17  10.4332
  18  30.3663
  19  0.00240392
  20  2.97484e-06
  21  0.000346469
  22  3.77364
  23  2.77665e-06
  24  0.213981
  25  0.232531
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  6.255e+00  5.258e+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:  1.118e+00  2.325e-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:  9.413e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.49
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.63e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.85e-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) = 5587.79773291
delta logL = 0.0520692108648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5587.78694007
delta logL = 0.0628620528969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4592       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5850       1.0000          .0000       10.000    
     3 'Normalizat'    .89035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1515       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5587.787     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      295 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4592        63.338        .42471E-03   -.18090E-03
   2  Index         2.5849        6.2456        .50882E-02    .31388E-04
   3  Normalizat    .89025        .42209        .25999E-03    .65591E-06
   4  Prefactor     1.1515        .31425        .26180E-03    .11725E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45921
  Index      = 2.58486
  Normalizat = 0.890252
  Prefactor  = 1.15152
 **********
 **   18 **HESSE 
 **********

 FCN=   5587.787     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4592        8.0680        .16989E-04   -1.5336    
   2  Index         2.5849        1.4857        .20353E-03   -.50411    
   3  Normalizat    .89025        .24718        .10400E-04   -.96804    
   4  Prefactor     1.1515        .25205        .10472E-04   -.87837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77387e-11
Minuit parameter uncertainties:
  1  8.0705
  2  1.51584
  3  0.247499
  4  0.252309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/582470': 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) = 5587.78693978
delta logL = 0.0628623408975

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.459e+00  8.071e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  2.585e+00  1.516e+00  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:  1.152e+00  2.523e-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:  8.903e-01  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.64
Ra Dec: 186.116 24.614
Photon Index (Free Index): 2.58 +/- 1.52
Photon Flux (Free Index): 6.57e-08 +/- 1.07e-07
Energy Flux (Free Index): 1.75e-05 +/- 1.12e-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/582470/cmap_HighResolution_465350401_465609601_4FGL_J1224.4+2436_daily_bin872.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.63e-08', energy_flux2='1.75e-05', photon_flux_error='2.21e-08', dlogl='6.29e-02', energy_flux='2.20e-05', photon_flux2='6.57e-08', job_status='DONE', time_completed='2021-09-05 12:41:33.968718', photon_index_error2='1.52', photon_index2='2.58', ts='5.49', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='0.94', time_epoch_completed='1630870893.97', return_code='0', job_id='582470', GAL2='1.15', EG2='0.89', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='1.07e-07', ts2='5.64', photon_index='1.93' WHERE bin_id='872' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:41:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 582470: <4FGL_J1224.4+2436_daily_bin872> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin872> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 12:30:44 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:30:45 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:30:45 2021
Terminated at Sun Sep  5 12:41:34 2021
Results reported at Sun Sep  5 12:41:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin872 186.116 24.6142 465350401 465609601 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 :                                   625.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            650 sec.

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

