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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin7
RA = 186.116, Dec = 24.6142
tmin = 241142401, tmax = 241401601
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='577251', job_status='RUN', time_executed='2021-09-05 12:16:16.850698', time_epoch_executed='1630869376.85' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577251

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577251/ft1_4FGL_J1224.4+2436_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577251/ft2_4FGL_J1224.4+2436_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577251/ft1_4FGL_J1224.4+2436_daily_bin7.fits outfile=/scratch/kocevski/577251/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin7.fits ra=186.116 dec=24.6142 rad=12.0 tmin=241142401.0 tmax=241401601.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.52
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577251/ft1_filtered_4FGL_J1224.4+2436_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/577251/ft2_4FGL_J1224.4+2436_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/577251/ltcube_241142401_241401601_4FGL_J1224.4+2436_daily_bin7.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/577251/ft2_4FGL_J1224.4+2436_daily_bin7.fits
.....................!
real 13.26
user 12.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577251/ft1_filtered_4FGL_J1224.4+2436_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/577251/ft2_4FGL_J1224.4+2436_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/577251/ltcube_241142401_241401601_4FGL_J1224.4+2436_daily_bin7.fits outfile=/scratch/kocevski/577251/expmap_241142401_241401601_4FGL_J1224.4+2436_daily_bin7.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/577251/ltcube_241142401_241401601_4FGL_J1224.4+2436_daily_bin7.fits
.....................!
real 190.52
user 185.11
sys 5.03

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/577251/ft1_filtered_4FGL_J1224.4+2436_daily_bin7.fits scfile=/scratch/kocevski/577251/ft2_4FGL_J1224.4+2436_daily_bin7.fits outfile=/scratch/kocevski/577251/cmap_241142401_241401601_4FGL_J1224.4+2436_daily_bin7.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577251/ft1_filtered_4FGL_J1224.4+2436_daily_bin7.fits scfile=/scratch/kocevski/577251/ft2_4FGL_J1224.4+2436_daily_bin7.fits outfile=/scratch/kocevski/577251/cmap_HighResolution_241142401_241401601_4FGL_J1224.4+2436_daily_bin7.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/577251/ft1_filtered_4FGL_J1224.4+2436_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/577251/ft2_4FGL_J1224.4+2436_daily_bin7.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/577251/Model_4FGL_J1224.4+2436_daily_bin7.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/577251/ft1_filtered_4FGL_J1224.4+2436_daily_bin7.fits.....................!
real 61.96
user 60.43
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.699       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.161       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0827       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4501       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1301       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.698       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5937       1.0000         .10000E-03   10000.    
    15 'norm      '    .42868E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    6.0949       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.234       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.631       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0045       1.0000         .10000E-03   10000.    
    23 'norm      '    36.703       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3403       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66563       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=   7352.591     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2898 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.696        15.083       -.20244E-05    .79842E-05
   2  Prefactor     .10000E-03    3.8547       -.82352E-07** at limit **
   3  Prefactor     .10000E-03    .69666       -.74640E-08** at limit **
   4  Prefactor     13.150        26.214       -.21115E-04   -.10166E-04
   5  norm          1.0823        1.0134        .26491E-06    .70599E-03
   6  Prefactor     .10000E-03    1.2141       -.35282E-07** at limit **
   7  Prefactor     .10000E-03    11.403        .26513E-07** at limit **
   8  Prefactor     .10000E-03    .73032       -.18944E-07** at limit **
   9  Prefactor     1.4501        1.6627       -.17005E-06   -.40882E-03
  10  norm          2.1303        1.8023       -.10927E-07   -.37405E-04
  11  Prefactor     .10000E-03    4.2074        .40632E-07** at limit **
  12  Prefactor     .10000E-03    1.3901       -.13994E-07** at limit **
  13  Prefactor     10.698        2.8427       -.39059E-07    .17163E-03
  14  Prefactor     2.5939        4.8831       -.78334E-06   -.56518E-03
  15  norm          .42909E-01    .12432       -.26448E-06   -.40492E-02
  16  norm          6.0949        3.7314       -.83796E-07    .12253E-03
  17  Prefactor     11.234        9.0083       -.25270E-06    .78655E-05
  18  Prefactor     10.628        22.841       -.49032E-05    .18109E-06
  19  Prefactor     .10000E-03    18.075        .37984E-06** at limit **
  20  Prefactor     .10000E-03    2.1168       -.38930E-07** at limit **
  21  norm          .10000E-03    .87191       -.13156E-07** at limit **
  22  norm          3.0044        2.3056        .64559E-07   -.14791E-03
  23  norm          36.702        19.837       -.63388E-06    .86396E-05
  24  Normalizat    1.3404        .15949        .24978E-05    .19480E-04
  25  Prefactor     .66551        .16180       -.75051E-07    .21321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1503
  norm       = 1.08227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.45012
  norm       = 2.13032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6984
  Prefactor  = 2.59389
  norm       = 0.0429085
  norm       = 6.09485
  Prefactor  = 11.2336
  Prefactor  = 10.6284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.00443
  norm       = 36.7024
  Normalizat = 1.34043
  Prefactor  = 0.665513
 **********
 **   18 **HESSE 
 **********

 FCN=   7352.591     FROM HESSE     STATUS=OK           431 CALLS     3329 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.696        15.080        .11241E-03   -1.4995    
   2  Prefactor     .10000E-03    3.8713        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .70722        .69796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.150        26.062        .11041E-03   -1.4983    
   5  norm          1.0823        .94417        .79192E-03   -1.5500    
   6  Prefactor     .10000E-03    1.2238        .92235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .74144        .71500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4501        1.6394        .11441E-03   -1.5467    
  10  norm          2.1303        1.7835        .10145E-03   -1.5416    
  11  Prefactor     .10000E-03    4.3062        .17174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4312        .19582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.698        2.8409        .70141E-04   -1.5054    
  14  Prefactor     2.5939        4.8648        .24066E-03   -1.5386    
  15  norm          .42909E-01    .14149        .48896E-03   -1.5667    
  16  norm          6.0949        3.7198        .12030E-03   -1.5214    
  17  Prefactor     11.234        9.0088        .11953E-03   -1.5038    
  18  Prefactor     10.628        22.847        .12288E-03   -1.5056    
  19  Prefactor     .10000E-03    18.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1290        .12182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .87289        .78192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0044        2.2993        .11068E-03   -1.5361    
  23  norm          36.702        19.836        .66153E-04   -1.4496    
  24  Normalizat    1.3404        .18617        .21732E-03   -.82367    
  25  Prefactor     .66551        .18871        .31224E-03   -1.0489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12569e-09
Minuit parameter uncertainties:
  1  15.0848
  2  8.29795e-06
  3  7.54808e-07
  4  26.0841
  5  0.944184
  6  3.60525e-06
  7  7.49893e-05
  8  1.7046e-06
  9  1.63945
  10  1.78359
  11  3.0312e-06
  12  1.11904e-06
  13  2.84098
  14  4.86553
  15  0.141489
  16  3.71992
  17  9.00984
  18  22.866
  19  1.16436e-05
  20  5.57583e-06
  21  1.22605e-06
  22  2.29933
  23  19.8398
  24  0.186259
  25  0.188895
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.594e+00  4.866e+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:  6.655e-01  1.889e-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.340e+00  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 186.116 24.614
Photon Flux Upper Limit: 6.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577251/likelihoodResults_241142401_241401601_4FGL_J1224.4+2436_daily_bin7.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) = 7352.15016221
delta logL = 0.440516577707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7352.1240346
delta logL = 0.466644194398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2704       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7984       1.0000          .0000       10.000    
     3 'Normalizat'    1.3113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68000       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.

 FCN=   7352.124     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      261 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2681        18.949        .98691E-02    .12672E-02
   2  Index         2.7988        2.1050        .14051        .17347E-03
   3  Normalizat    1.3112        .35461E-01    .49565E-01    .49330E-04
   4  Prefactor     .68004        .36459E-01    .69796E-01    .34977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26812
  Index      = 2.79884
  Normalizat = 1.31125
  Prefactor  = 0.680043
 **********
 **   18 **HESSE 
 **********

 FCN=   7352.124     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2681        4.5450        .90188E-04   -1.5483    
   2  Index         2.7988        1.5572        .50502E-02   -.45586    
   3  Normalizat    1.3112        .18546        .21912E-03   -.83231    
   4  Prefactor     .68004        .19121        .30889E-03   -1.0431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72561e-11
Minuit parameter uncertainties:
  1  4.5462
  2  1.59026
  3  0.185559
  4  0.191391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577251': 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) = 7352.12403406
delta logL = 0.466644732568

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.268e+00  4.546e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  2.799e+00  1.590e+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:  6.800e-01  1.914e-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.311e+00  1.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 186.116 24.614
Photon Index (Free Index): 2.80 +/- 1.59
Photon Flux (Free Index): 4.12e-08 +/- 4.70e-08
Energy Flux (Free Index): 9.23e-06 +/- 9.99e-06

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/577251/cmap_HighResolution_241142401_241401601_4FGL_J1224.4+2436_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', comment='SUCCESS', energy_flux2='9.23e-06', dlogl='4.67e-01', photon_flux2='4.12e-08', job_status='DONE', time_completed='2021-09-05 12:29:38.834299', photon_index_error2='1.59', photon_index2='2.80', ts='0.40', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='6.15e-08', energy_flux_error2='9.99e-06', EG='1.34', time_epoch_completed='1630870178.83', return_code='0', job_id='577251', GAL2='0.68', EG2='1.31', return_code2='0', photon_flux_error2='4.70e-08', ts2='1.34', photon_index='1.93' WHERE bin_id='7' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:29:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 577251: <4FGL_J1224.4+2436_daily_bin7> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin7> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:42 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:44 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:15:44 2021
Terminated at Sun Sep  5 12:29:40 2021
Results reported at Sun Sep  5 12:29:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin7 186.116 24.6142 241142401 241401601 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 :                                   794.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

