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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin71
RA = 185.988, Dec = 50.0089
tmin = 257731201, tmax = 257990401
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='563640', job_status='RUN', time_executed='2021-09-05 11:43:09.651358', time_epoch_executed='1630867389.65' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/563640

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/563640/ft1_4FGL_J1223.9+5000_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/563640/ft2_4FGL_J1223.9+5000_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/563640/ft1_4FGL_J1223.9+5000_daily_bin71.fits outfile=/scratch/kocevski/563640/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin71.fits ra=185.988 dec=50.0089 rad=12.0 tmin=257731201.0 tmax=257990401.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.45
user 1.25
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/563640/ft2_4FGL_J1223.9+5000_daily_bin71.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/563640/ft2_4FGL_J1223.9+5000_daily_bin71.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/563640/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/563640/ft1_filtered_4FGL_J1223.9+5000_daily_bin71.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/563640/ft1_filtered_4FGL_J1223.9+5000_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/563640/ft2_4FGL_J1223.9+5000_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/563640/ltcube_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.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/563640/ft2_4FGL_J1223.9+5000_daily_bin71.fits
.....................!
real 12.70
user 12.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/563640/ft1_filtered_4FGL_J1223.9+5000_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/563640/ft2_4FGL_J1223.9+5000_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/563640/ltcube_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.fits outfile=/scratch/kocevski/563640/expmap_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.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/563640/ltcube_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.fits
.....................!
real 191.49
user 185.44
sys 5.13

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

Setting source of interest to:
4FGL J1223.9+5000 @ 185.988 50.0089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/563640/ft1_filtered_4FGL_J1223.9+5000_daily_bin71.fits scfile=/scratch/kocevski/563640/ft2_4FGL_J1223.9+5000_daily_bin71.fits outfile=/scratch/kocevski/563640/cmap_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.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=185.988 yref=50.0089 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/563640/ft1_filtered_4FGL_J1223.9+5000_daily_bin71.fits scfile=/scratch/kocevski/563640/ft2_4FGL_J1223.9+5000_daily_bin71.fits outfile=/scratch/kocevski/563640/cmap_HighResolution_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.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=185.988 yref=50.0089 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.56
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/563640/ft1_filtered_4FGL_J1223.9+5000_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/563640/ft2_4FGL_J1223.9+5000_daily_bin71.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/563640/Model_4FGL_J1223.9+5000_daily_bin71.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/563640/ft1_filtered_4FGL_J1223.9+5000_daily_bin71.fits.....................!
real 48.31
user 47.01
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/563640/ft1_filtered_4FGL_J1223.9+5000_daily_bin71.fits', '/scratch/kocevski/563640/ft2_4FGL_J1223.9+5000_daily_bin71.fits', expMap='/scratch/kocevski/563640/expmap_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.fits', expCube='/scratch/kocevski/563640/ltcube_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/563640/Model_4FGL_J1223.9+5000_daily_bin71.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.9+5000'

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.480e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/563640/ft1_filtered_4FGL_J1223.9+5000_daily_bin71.fits
Spacecraft file(s): /scratch/kocevski/563640/ft2_4FGL_J1223.9+5000_daily_bin71.fits
Exposure map: /scratch/kocevski/563640/expmap_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.fits
Exposure cube: /scratch/kocevski/563640/ltcube_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/563640/Model_4FGL_J1223.9+5000_daily_bin71.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) = 5607.46965063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12963E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .50563       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.200       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.920       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.010       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.5644       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1832       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5828       1.0000         .10000E-03   10000.    
    23 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.330       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .18549E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0316       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0348       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5607.467     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3655 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.113        .15271E-06** at limit **
   2  norm          .10000E-03    33.891       -.15327E-06** at limit **
   3  Prefactor     .10000E-03    2.4986        .63024E-07** at limit **
   4  norm          .10009E-03    .98000        .67006E-06** at limit **
   5  norm          .10000E-03    7.3914       -.10786E-06** at limit **
   6  Prefactor     .10000E-03    1.6050        .45946E-06** at limit **
   7  Prefactor     .10000E-03    13.529        .43245E-07** at limit **
   8  norm          .50423        3.1299       -.13452E-06    .48591E-04
   9  Prefactor     18.200        14.430       -.36926E-07   -.50435E-04
  10  Prefactor     .10000E-03    5.0325       -.14345E-07** at limit **
  11  Prefactor     .10000E-03    10.087       -.61636E-07** at limit **
  12  norm          .10000E-03    .70712        .69567E-07** at limit **
  13  Prefactor     .10000E-03    26.954        .11661E-06** at limit **
  14  norm          13.920        8.3217        .12296E-07   -.19204E-04
  15  Prefactor     18.009        24.107        .30772E-07   -.64087E-05
  16  Prefactor     .10000E-03    2.0155        .25843E-07** at limit **
  17  norm          3.7229        2.2725       -.92658E-08   -.29079E-04
  18  Prefactor     .10000E-03    8.0280       -.18175E-07** at limit **
  19  norm          4.5644        2.3152        .78406E-08    .47322E-05
  20  Prefactor     .10000E-03    28.204       -.77391E-07** at limit **
  21  Prefactor     8.1828        11.743        .10966E-06    .17432E-04
  22  norm          6.5824        17.113        .30334E-06    .13810E-04
  23  norm          .10000E-03    4.2802       -.18002E-05** at limit **
  24  Prefactor     32.273        33.282        .74841E-06    .52260E-04
  25  Prefactor     .10000E-03    9.5402       -.99963E-07** at limit **
  26  Prefactor     .10001E-03    62.331       -.89445E-05** at limit **
  27  norm          .10000E-03    2.3451       -.25199E-06** at limit **
  28  Normalizat    1.0317        .17162        .79821E-06   -.14616E-03
  29  Prefactor     1.0347        .21059       -.13286E-05   -.10280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100093
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.504232
  Prefactor  = 18.2003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.9201
  Prefactor  = 18.0085
  Prefactor  = 0.0001
  norm       = 3.72288
  Prefactor  = 0.0001
  norm       = 4.56444
  Prefactor  = 0.0001
  Prefactor  = 8.18281
  norm       = 6.58243
  norm       = 0.000100001
  Prefactor  = 32.2732
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Normalizat = 1.03168
  Prefactor  = 1.03469
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.467     FROM HESSE     STATUS=OK           549 CALLS     4204 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    33.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5073        .11558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10009E-03    8.4347        .11487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.4784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4182        .17635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .50423        14.569        .25099E-02   -1.5566    
   9  Prefactor     18.200        14.415        .93883E-04   -1.4854    
  10  Prefactor     .10000E-03    5.0665        .16379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .71582        .61464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.920        8.3133        .10736E-03   -1.4962    
  15  Prefactor     18.009        24.107        .94376E-04   -1.4859    
  16  Prefactor     .10000E-03    2.0232        .10379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7229        2.2691        .84260E-04   -1.5322    
  18  Prefactor     .10000E-03    8.0351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.5644        2.3150        .78763E-04   -1.5281    
  20  Prefactor     .10000E-03    28.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.1828        11.741        .14015E-03   -1.5136    
  22  norm          6.5824        17.109        .15641E-03   -1.5195    
  23  norm          .10000E-03    4.4129        .30152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.273        33.520        .70472E-04   -1.4571    
  25  Prefactor     .10000E-03    9.5986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    64.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.3860        .11194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0317        .20093        .22257E-03   -.91976    
  29  Prefactor     1.0347        .24634        .27783E-03   -.91582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1196e-08
Minuit parameter uncertainties:
  1  7.29051e-05
  2  9.66279e-05
  3  2.43135e-06
  4  0.00176965
  5  3.2001e-05
  6  0.000248462
  7  5.85254e-06
  8  5.4217
  9  14.4181
  10  9.51268e-07
  11  2.00416e-05
  12  1.58687e-06
  13  4.46077e-05
  14  8.31396
  15  24.1198
  16  8.38934e-07
  17  2.26912
  18  5.6902e-06
  19  2.31505
  20  1.61491e-05
  21  11.7444
  22  17.1221
  23  9.40751e-05
  24  33.5396
  25  3.80212e-06
  26  0.00186624
  27  9.22578e-06
  28  0.201078
  29  0.246605
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.392e+01  8.314e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.035e+00  2.466e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.032e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.57
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.59e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.04e-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) = 5606.56796077
delta logL = 0.898940970241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5606.55417475
delta logL = 0.912726993094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.605       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5276       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0157       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5606.554     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.592        7.8975        .28206E-02    .27064E-03
   2  alpha         1.5257        .50943        .39550       -.55250E-04
   3  Normalizat    1.0620        .16527        .39818E-01   -.42411E-04
   4  Prefactor     1.0157        .20702        .63370E-01   -.66767E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5916
  alpha      = 1.52571
  Normalizat = 1.06202
  Prefactor  = 1.01573
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.554     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.592        9.8874        .11283E-03   -1.4998    
   2  alpha         1.5257        .68159        .16213E-01   -.40032    
   3  Normalizat    1.0620        .19589        .21996E-03   -.90981    
   4  Prefactor     1.0157        .24525        .28027E-03   -.92207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13591e-11
Minuit parameter uncertainties:
  1  9.88866
  2  0.691959
  3  0.196028
  4  0.245522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/563640': 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) = 5606.55417077
delta logL = 0.912730969159

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.259e+01  9.889e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.526e+00  6.920e-01  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.016e+00  2.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.062e+00  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.44
Ra Dec: 185.988 50.009
Photon Index (Free Index): 1.53 +/- 0.69
Photon Flux (Free Index): 2.64e-08 +/- 2.53e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.56e-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/563640/cmap_HighResolution_257731201_257990401_4FGL_J1223.9+5000_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.59e-08', energy_flux2='2.23e-05', photon_flux_error='3.34e-08', dlogl='9.13e-01', energy_flux='1.75e-05', photon_flux2='2.64e-08', job_status='DONE', time_completed='2021-09-05 11:55:25.272003', photon_index_error2='0.69', photon_index2='1.53', ts='7.57', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='1.03', time_epoch_completed='1630868125.27', return_code='0', job_id='563640', GAL2='1.02', EG2='1.06', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.53e-08', ts2='9.44', photon_index='2.42' WHERE bin_id='71' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:55:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 563640: <4FGL_J1223.9+5000_daily_bin71> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin71> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:40:40 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:40:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 11:40:42 2021
Terminated at Sun Sep  5 11:55:26 2021
Results reported at Sun Sep  5 11:55:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin71 185.988 50.0089 257731201 257990401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.9+5000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             287.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            886 sec.

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

