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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin1004
RA = 186.116, Dec = 24.6142
tmin = 499564801, tmax = 499824001
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='584102', job_status='RUN', time_executed='2021-09-05 12:38:03.283152', time_epoch_executed='1630870683.28' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584102

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584102/ft1_4FGL_J1224.4+2436_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584102/ft2_4FGL_J1224.4+2436_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584102/ft1_4FGL_J1224.4+2436_daily_bin1004.fits outfile=/scratch/kocevski/584102/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1004.fits ra=186.116 dec=24.6142 rad=12.0 tmin=499564801.0 tmax=499824001.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.13
user 4.83
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/584102/ft2_4FGL_J1224.4+2436_daily_bin1004.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/584102/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1004.fits evtable="EVENTS" outfile="/scratch/kocevski/584102/ft1_filtered_4FGL_J1224.4+2436_daily_bin1004.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/584102/ft1_filtered_4FGL_J1224.4+2436_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/584102/ft2_4FGL_J1224.4+2436_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/584102/ltcube_499564801_499824001_4FGL_J1224.4+2436_daily_bin1004.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/584102/ft2_4FGL_J1224.4+2436_daily_bin1004.fits
.....................!
real 12.04
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584102/ft1_filtered_4FGL_J1224.4+2436_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/584102/ft2_4FGL_J1224.4+2436_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/584102/ltcube_499564801_499824001_4FGL_J1224.4+2436_daily_bin1004.fits outfile=/scratch/kocevski/584102/expmap_499564801_499824001_4FGL_J1224.4+2436_daily_bin1004.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/584102/ltcube_499564801_499824001_4FGL_J1224.4+2436_daily_bin1004.fits
.....................!
real 189.62
user 185.06
sys 4.08

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/584102/ft1_filtered_4FGL_J1224.4+2436_daily_bin1004.fits scfile=/scratch/kocevski/584102/ft2_4FGL_J1224.4+2436_daily_bin1004.fits outfile=/scratch/kocevski/584102/cmap_499564801_499824001_4FGL_J1224.4+2436_daily_bin1004.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584102/ft1_filtered_4FGL_J1224.4+2436_daily_bin1004.fits scfile=/scratch/kocevski/584102/ft2_4FGL_J1224.4+2436_daily_bin1004.fits outfile=/scratch/kocevski/584102/cmap_HighResolution_499564801_499824001_4FGL_J1224.4+2436_daily_bin1004.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.515       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .73688       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7475       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .76188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3521       1.0000         .10000E-03   10000.    
    10 'norm      '    19.967       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0138       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .17386       1.0000         .10000E-03   10000.    
    16 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.984       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.6720       1.0000         .10000E-03   10000.    
    22 'norm      '    .38476       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71698       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2564       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=   4567.100     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2991 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.514        26.550       -.15619E-06    .37769E-04
   2  Prefactor     .10000E-03    14.153        .78080E-05** at limit **
   3  Prefactor     .10000E-03    .89522       -.33403E-07** at limit **
   4  Prefactor     .10000E-03    39.386        .42212E-05** at limit **
   5  norm          .73777        1.3364       -.39563E-06   -.90993E-03
   6  Prefactor     1.7494        4.1242       -.30179E-05   -.43089E-03
   7  Prefactor     .10000E-03    12.721       -.58374E-05** at limit **
   8  Prefactor     .75932        3.4881        .56718E-06   -.60640E-03
   9  Prefactor     3.3566        4.7452       -.61680E-06   -.22880E-03
  10  norm          19.967        6.3252        .31274E-06   -.63348E-06
  11  Prefactor     .10000E-03    6.3188       -.84635E-07** at limit **
  12  Prefactor     6.6431        4.2131       -.26482E-07    .33858E-04
  13  Prefactor     1.0139        2.6345       -.94567E-06   -.80279E-03
  14  Prefactor     .10000E-03    2.7385       -.41584E-07** at limit **
  15  norm          .17384        .23297       -.62872E-07   -.12151E-02
  16  norm          .10000E-03    3.6512       -.48636E-07** at limit **
  17  Prefactor     .10000E-03    9.8835        .39423E-06** at limit **
  18  Prefactor     13.973        36.755       -.14283E-04    .17370E-03
  19  Prefactor     .10000E-03    62.488       -.38322E-05** at limit **
  20  Prefactor     .10000E-03    4.1579       -.58302E-07** at limit **
  21  norm          7.6725        5.6709        .23120E-06   -.52781E-04
  22  norm          .41115        3.1503       -.99538E-06    .13018E-03
  23  norm          .10000E-03    19.280       -.40184E-05** at limit **
  24  Normalizat    .71690        .20485        .21301E-05    .12237E-03
  25  Prefactor     1.2564        .21436        .10474E-05    .10522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.5141
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.737775
  Prefactor  = 1.74935
  Prefactor  = 0.000100001
  Prefactor  = 0.75932
  Prefactor  = 3.35657
  norm       = 19.9671
  Prefactor  = 0.0001
  Prefactor  = 6.64307
  Prefactor  = 1.01387
  Prefactor  = 0.0001
  norm       = 0.173843
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.6725
  norm       = 0.411153
  norm       = 0.000100001
  Normalizat = 0.716905
  Prefactor  = 1.25642
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.100     FROM HESSE     STATUS=OK           429 CALLS     3420 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.514        26.444        .64584E-04   -1.4466    
   2  Prefactor     .10000E-03    14.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .90378        .62309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .73777        1.3124        .99175E-04   -1.5536    
   6  Prefactor     1.7494        4.1488        .19770E-03   -1.5443    
   7  Prefactor     .10000E-03    12.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .75932        2.9792        .20001E-03   -1.5534    
   9  Prefactor     3.3566        4.4584        .14184E-03   -1.5342    
  10  norm          19.967        6.3195        .82138E-04   -1.4814    
  11  Prefactor     .10000E-03    6.3681        .16590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6431        4.2078        .96370E-04   -1.5192    
  13  Prefactor     1.0139        2.6130        .16341E-03   -1.5507    
  14  Prefactor     .10000E-03    2.7594        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .17384        .21867        .35708E-03   -1.5625    
  16  norm          .10000E-03    3.7735        .25208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.9241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.973        36.466        .10711E-03   -1.4960    
  19  Prefactor     .10000E-03    62.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1856        .13456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.6725        5.6724        .13413E-03   -1.5154    
  22  norm          .41115        13.880        .22630E-02   -1.5580    
  23  norm          .10000E-03    19.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .71690        .23956        .28709E-03   -1.0323    
  25  Prefactor     1.2564        .25489        .24243E-03   -.84612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97222e-09
Minuit parameter uncertainties:
  1  26.4516
  2  0.000367903
  3  3.94999e-07
  4  0.000429055
  5  1.31241
  6  4.14949
  7  0.000237071
  8  2.97976
  9  4.45885
  10  6.3197
  11  1.35194e-05
  12  4.20798
  13  2.61334
  14  1.13321e-06
  15  0.218668
  16  7.50665e-06
  17  2.57858e-05
  18  36.5246
  19  0.000293256
  20  4.62104e-06
  21  5.67279
  22  4.77848
  23  0.000213196
  24  0.239915
  25  0.255147
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  1.133e-06  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.256e+00  2.551e-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:  7.169e-01  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/584102/likelihoodResults_499564801_499824001_4FGL_J1224.4+2436_daily_bin1004.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) = 4567.10208926
delta logL = -0.00170164849351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4567.10038759
delta logL = 2.29865690926e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9142       1.0000          .0000       10.000    
     3 'Normalizat'    .71691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2564       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=   4567.100     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.609        .90712E-02** at limit **
   2  Index         1.9034        9.0186        .50000        .29327E-04
   3  Normalizat    .71690        .21277E-01    .64889E-01    .40214E-04
   4  Prefactor     1.2564        .23253E-01    .54830E-01    .29938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90336
  Normalizat = 0.716904
  Prefactor  = 1.25642
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.100     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    375.52        .10974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9034        7.0637        .50000       -.66789    
   3  Normalizat    .71690        .72056E-01    .28709E-03   -1.0323    
   4  Prefactor     1.2564        .78836E-01    .24243E-03   -.84612    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28614e-07
Minuit parameter uncertainties:
  1  8.81329e-05
  2  45.8943
  3  0.0720656
  4  0.0788435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584102': 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) = 4567.10038744
delta logL = 1.69460690813e-07

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  8.813e-05  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.903e+00  4.589e+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:  1.256e+00  7.884e-02  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:  7.169e-01  7.207e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.116 24.614

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/584102/cmap_HighResolution_499564801_499824001_4FGL_J1224.4+2436_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.96e-08', time_completed='2021-09-05 12:48:44.632564', job_id='584102', GAL2='1.26', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630871324.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1004' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:48:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 584102: <4FGL_J1224.4+2436_daily_bin1004> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin1004> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:35:33 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:35:34 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:35:34 2021
Terminated at Sun Sep  5 12:48:45 2021
Results reported at Sun Sep  5 12:48:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin1004 186.116 24.6142 499564801 499824001 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 :                                 1257 MB
    Average Memory :                             293.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

