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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin547
RA = 186.116, Dec = 24.6142
tmin = 381110401, tmax = 381369601
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='580868', job_status='RUN', time_executed='2021-09-05 12:25:42.496634', time_epoch_executed='1630869942.5' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580868

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580868/ft1_4FGL_J1224.4+2436_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580868/ft2_4FGL_J1224.4+2436_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580868/ft1_4FGL_J1224.4+2436_daily_bin547.fits outfile=/scratch/kocevski/580868/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin547.fits ra=186.116 dec=24.6142 rad=12.0 tmin=381110401.0 tmax=381369601.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.85
user 3.60
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580868/ft2_4FGL_J1224.4+2436_daily_bin547.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/580868/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin547.fits evtable="EVENTS" outfile="/scratch/kocevski/580868/ft1_filtered_4FGL_J1224.4+2436_daily_bin547.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.44
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580868/ft1_filtered_4FGL_J1224.4+2436_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/580868/ft2_4FGL_J1224.4+2436_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/580868/ltcube_381110401_381369601_4FGL_J1224.4+2436_daily_bin547.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/580868/ft2_4FGL_J1224.4+2436_daily_bin547.fits
.....................!
real 9.89
user 9.56
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580868/ft1_filtered_4FGL_J1224.4+2436_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/580868/ft2_4FGL_J1224.4+2436_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/580868/ltcube_381110401_381369601_4FGL_J1224.4+2436_daily_bin547.fits outfile=/scratch/kocevski/580868/expmap_381110401_381369601_4FGL_J1224.4+2436_daily_bin547.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/580868/ltcube_381110401_381369601_4FGL_J1224.4+2436_daily_bin547.fits
.....................!
real 156.66
user 151.95
sys 4.24

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/580868/ft1_filtered_4FGL_J1224.4+2436_daily_bin547.fits scfile=/scratch/kocevski/580868/ft2_4FGL_J1224.4+2436_daily_bin547.fits outfile=/scratch/kocevski/580868/cmap_381110401_381369601_4FGL_J1224.4+2436_daily_bin547.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.47
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580868/ft1_filtered_4FGL_J1224.4+2436_daily_bin547.fits scfile=/scratch/kocevski/580868/ft2_4FGL_J1224.4+2436_daily_bin547.fits outfile=/scratch/kocevski/580868/cmap_HighResolution_381110401_381369601_4FGL_J1224.4+2436_daily_bin547.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.48
user 0.33
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23976E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5471       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22107E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .43500       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7968       1.0000         .10000E-03   10000.    
    10 'norm      '    7.3550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15682E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1196       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2859       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3559       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7153       1.0000         .10000E-03   10000.    
    16 'norm      '    .85735       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12774E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.015       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .39166E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.412       1.0000         .10000E-03   10000.    
    21 'norm      '    .10339E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10373E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    32.655       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4629       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84529       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=   7074.363     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2957 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3697       -.28220E-08** at limit **
   2  Prefactor     1.5612        19.315        .15182E-05   -.84532E-04
   3  Prefactor     .10000E-03    .65539       -.85822E-09** at limit **
   4  Prefactor     .10000E-03    42.913        .13584E-05** at limit **
   5  norm          .43518        .84838        .25376E-06    .46285E-03
   6  Prefactor     .10000E-03    2.4452       -.47035E-07** at limit **
   7  Prefactor     .10000E-03    30.107       -.12311E-05** at limit **
   8  Prefactor     3.5134        3.2322       -.62189E-06   -.22706E-03
   9  Prefactor     4.7940        3.9057        .23388E-05   -.18106E-02
  10  norm          7.3564        3.7565       -.74766E-07   -.26988E-03
  11  Prefactor     .10000E-03    32.646        .78931E-06** at limit **
  12  Prefactor     3.1109        2.1087       -.18598E-07   -.65736E-04
  13  Prefactor     1.2868        2.9779        .75702E-06   -.23344E-03
  14  Prefactor     3.3559        3.9983       -.23447E-06   -.24872E-03
  15  norm          1.7154        .38801       -.10625E-07   -.75053E-03
  16  norm          .87684        2.9330        .96913E-06   -.18787E-03
  17  Prefactor     .10000E-03    5.4615       -.43709E-07** at limit **
  18  Prefactor     48.082        35.888        .49211E-05    .64900E-03
  19  Prefactor     .10001E-03    24.148        .38473E-05** at limit **
  20  Prefactor     12.373        8.7924       -.28461E-06   -.36525E-03
  21  norm          .10000E-03    1.4123        .81579E-08** at limit **
  22  norm          .10000E-03    3.7298        .10619E-06** at limit **
  23  norm          32.581        28.040        .22782E-05    .30100E-03
  24  Normalizat    1.4629        .20049       -.12778E-05   -.10897E-03
  25  Prefactor     .84540        .20366       -.95594E-06   -.12715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.56122
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.435178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.51343
  Prefactor  = 4.79398
  norm       = 7.35644
  Prefactor  = 0.000100001
  Prefactor  = 3.11088
  Prefactor  = 1.28678
  Prefactor  = 3.35593
  norm       = 1.71543
  norm       = 0.876842
  Prefactor  = 0.0001
  Prefactor  = 48.082
  Prefactor  = 0.000100006
  Prefactor  = 12.3726
  norm       = 0.0001
  norm       = 0.0001
  norm       = 32.581
  Normalizat = 1.46285
  Prefactor  = 0.845396
 **********
 **   18 **HESSE 
 **********

 FCN=   7074.363     FROM HESSE     STATUS=OK           429 CALLS     3386 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5612        19.491        .34256E-03   -1.5458    
   3  Prefactor     .10000E-03    .66548        .66464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.568        .20137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .43518        .70228        .10436E-02   -1.5576    
   6  Prefactor     .10000E-03    2.4814        .12829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5134        3.2267        .13201E-03   -1.5333    
   9  Prefactor     4.7940        4.1360        .71739E-03   -1.5270    
  10  norm          7.3564        3.7292        .10454E-03   -1.5165    
  11  Prefactor     .10000E-03    34.001        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1109        2.1121        .93988E-04   -1.5355    
  13  Prefactor     1.2868        2.9262        .19544E-03   -1.5481    
  14  Prefactor     3.3559        3.9873        .17723E-03   -1.5342    
  15  norm          1.7154        .38835        .23403E-04   -1.5446    
  16  norm          .87684        2.8584        .25328E-03   -1.5521    
  17  Prefactor     .10000E-03    5.4901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.082        38.182        .57868E-04   -1.4320    
  19  Prefactor     .10001E-03    24.625        .21273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.373        8.8168        .11370E-03   -1.5004    
  21  norm          .10000E-03    1.4158        .97611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.8880        .31683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          32.581        28.295        .70121E-04   -1.4566    
  24  Normalizat    1.4629        .23888        .25411E-03   -.78828    
  25  Prefactor     .84540        .24181        .33555E-03   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29672e-09
Minuit parameter uncertainties:
  1  6.72081e-06
  2  11.0367
  3  1.90785e-06
  4  0.000406882
  5  0.70229
  6  4.88337e-06
  7  0.00022954
  8  3.22684
  9  4.13622
  10  3.72934
  11  0.000320813
  12  2.11214
  13  2.92648
  14  3.98759
  15  0.388348
  16  2.85887
  17  6.59439e-07
  18  38.2015
  19  0.000757232
  20  8.81773
  21  1.65321e-06
  22  3.55554e-06
  23  28.3066
  24  0.239066
  25  0.242112
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.356e+00  3.988e+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:  8.454e-01  2.421e-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.463e+00  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.41e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/580868/likelihoodResults_381110401_381369601_4FGL_J1224.4+2436_daily_bin547.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): 102
logL (Free Index) = 7074.15740526
delta logL = 0.20609417335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7074.10965278
delta logL = 0.253846644669

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53022       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4130       1.0000          .0000       10.000    
     3 'Normalizat'    1.3782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90354       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=   7074.110     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      268 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52905        5.6593        .10487E-01    .13744E-02
   2  Index         3.4142        2.2264        .81382E-01    .25069E-03
   3  Normalizat    1.3782        .45085E-01    .58787E-01    .45182E-05
   4  Prefactor     .90362        .45854E-01    .73577E-01    .19192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.529054
  Index      = 3.41423
  Normalizat = 1.37818
  Prefactor  = 0.90362
 **********
 **   18 **HESSE 
 **********

 FCN=   7074.110     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52905        15.321        .47330E-04   -1.5563    
   2  Index         3.4142        6.6617        .48575E-02   -.32273    
   3  Normalizat    1.3782        .29255        .25997E-03   -.81262    
   4  Prefactor     .90362        .24736        .32558E-03   -.96015    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78255e-09
Minuit parameter uncertainties:
  1  5.69517
  2  5.01278
  3  0.292904
  4  0.247663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580868': 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): 102
logL (Free Index) = 7074.10965213
delta logL = 0.253847304182

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  5.291e-01  5.695e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  3.414e+00  5.013e+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:  9.036e-01  2.477e-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.378e+00  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 186.116 24.614
Photon Index (Free Index): 3.41 +/- 5.01
Photon Flux (Free Index): 8.63e-08 +/- 2.44e-07
Energy Flux (Free Index): 1.47e-05 +/- 2.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/580868/cmap_HighResolution_381110401_381369601_4FGL_J1224.4+2436_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', comment='SUCCESS', photon_flux='1.41e-08', energy_flux2='1.47e-05', photon_flux_error='1.68e-08', dlogl='2.54e-01', energy_flux='1.18e-05', photon_flux2='8.63e-08', job_status='DONE', time_completed='2021-09-05 12:36:13.780596', photon_index_error2='5.01', photon_index2='3.41', ts='1.61', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='6.56e-08', energy_flux_error2='2.17e-05', EG='1.46', time_epoch_completed='1630870573.78', return_code='0', job_id='580868', GAL2='0.90', EG2='1.38', return_code2='102', energy_flux_error='1.41e-05', photon_flux_error2='2.44e-07', ts2='2.18', photon_index='1.93' WHERE bin_id='547' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:36:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 580868: <4FGL_J1224.4+2436_daily_bin547> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin547> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 12:25:29 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:25:31 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:25:31 2021
Terminated at Sun Sep  5 12:36:14 2021
Results reported at Sun Sep  5 12:36:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin547 186.116 24.6142 381110401 381369601 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            645 sec.

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

