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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin946
RA = 185.988, Dec = 50.0089
tmin = 484531201, tmax = 484790401
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='573762', job_status='RUN', time_executed='2021-09-05 12:05:43.556957', time_epoch_executed='1630868743.56' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573762/ft1_4FGL_J1223.9+5000_daily_bin946.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573762/ft2_4FGL_J1223.9+5000_daily_bin946.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573762/ft1_4FGL_J1223.9+5000_daily_bin946.fits outfile=/scratch/kocevski/573762/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin946.fits ra=185.988 dec=50.0089 rad=12.0 tmin=484531201.0 tmax=484790401.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 7.08
user 6.84
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573762/ft1_filtered_4FGL_J1223.9+5000_daily_bin946.fits evtable="EVENTS" scfile=/scratch/kocevski/573762/ft2_4FGL_J1223.9+5000_daily_bin946.fits sctable="SC_DATA" expcube=/scratch/kocevski/573762/ltcube_484531201_484790401_4FGL_J1223.9+5000_daily_bin946.fits outfile=/scratch/kocevski/573762/expmap_484531201_484790401_4FGL_J1223.9+5000_daily_bin946.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/573762/ltcube_484531201_484790401_4FGL_J1223.9+5000_daily_bin946.fits
.....................!
real 190.28
user 185.30
sys 4.56

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/573762/ft1_filtered_4FGL_J1223.9+5000_daily_bin946.fits scfile=/scratch/kocevski/573762/ft2_4FGL_J1223.9+5000_daily_bin946.fits outfile=/scratch/kocevski/573762/cmap_484531201_484790401_4FGL_J1223.9+5000_daily_bin946.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573762/ft1_filtered_4FGL_J1223.9+5000_daily_bin946.fits scfile=/scratch/kocevski/573762/ft2_4FGL_J1223.9+5000_daily_bin946.fits outfile=/scratch/kocevski/573762/cmap_HighResolution_484531201_484790401_4FGL_J1223.9+5000_daily_bin946.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/573762/ft1_filtered_4FGL_J1223.9+5000_daily_bin946.fits', '/scratch/kocevski/573762/ft2_4FGL_J1223.9+5000_daily_bin946.fits', expMap='/scratch/kocevski/573762/expmap_484531201_484790401_4FGL_J1223.9+5000_daily_bin946.fits', expCube='/scratch/kocevski/573762/ltcube_484531201_484790401_4FGL_J1223.9+5000_daily_bin946.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/573762/Model_4FGL_J1223.9+5000_daily_bin946.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/573762/ft1_filtered_4FGL_J1223.9+5000_daily_bin946.fits
Spacecraft file(s): /scratch/kocevski/573762/ft2_4FGL_J1223.9+5000_daily_bin946.fits
Exposure map: /scratch/kocevski/573762/expmap_484531201_484790401_4FGL_J1223.9+5000_daily_bin946.fits
Exposure cube: /scratch/kocevski/573762/ltcube_484531201_484790401_4FGL_J1223.9+5000_daily_bin946.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/573762/Model_4FGL_J1223.9+5000_daily_bin946.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) = 7865.10126163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15654E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10421E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5983       1.0000         .10000E-03   10000.    
     4 'norm      '    .10694E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10400       1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.882       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.2167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.622       1.0000         .10000E-03   10000.    
    14 'norm      '    16.638       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20903E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .24063       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.696       1.0000         .10000E-03   10000.    
    19 'norm      '    6.9642       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.252       1.0000         .10000E-03   10000.    
    22 'norm      '    9.3938       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1970       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12897E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.752       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.131       1.0000         .10000E-03   10000.    
    27 'norm      '    5.3407       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .81433       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2359       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=   7865.097     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3782 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    446.59        .32421E-05** at limit **
   2  norm          .10000E-03    11.458       -.11472E-07** at limit **
   3  Prefactor     1.5996        5.1899        .53706E-05   -.14582E-03
   4  norm          .10000E-03    .87899        .32286E-06** at limit **
   5  norm          .10000E-03    4.7949       -.26850E-06** at limit **
   6  Prefactor     .10065        1.3066       -.97338E-06    .16977E-03
   7  Prefactor     63.011        48.683        .54060E-05    .92758E-04
   8  norm          .10000E-03    3.7846       -.19993E-06** at limit **
   9  Prefactor     .10000E-03    19.199       -.13840E-06** at limit **
  10  Prefactor     .10000E-03    3.2233       -.85237E-07** at limit **
  11  Prefactor     .10000E-03    7.5355       -.44913E-07** at limit **
  12  norm          4.2163        2.0086       -.44215E-07    .12306E-03
  13  Prefactor     10.633        38.491       -.22266E-06    .37920E-05
  14  norm          16.637        6.9058        .64341E-07    .10705E-03
  15  Prefactor     .10000E-03    5.0994       -.24378E-07** at limit **
  16  Prefactor     .10000E-03    3.4147        .68833E-08** at limit **
  17  norm          .24142        1.3056        .20602E-06    .91789E-04
  18  Prefactor     10.693        11.685        .23294E-08    .15500E-04
  19  norm          6.9641        2.2210       -.51534E-08    .48127E-04
  20  Prefactor     .10000E-03    40.910       -.54565E-07** at limit **
  21  Prefactor     12.256        8.5677        .40630E-07    .73868E-04
  22  norm          9.3929        12.852       -.14798E-07    .57109E-05
  23  norm          1.1962        2.0383        .70279E-07   -.28220E-03
  24  Prefactor     .10000E-03    21.502        .94496E-06** at limit **
  25  Prefactor     11.753        11.041       -.21940E-06   -.23877E-04
  26  Prefactor     18.198        37.012        .23230E-05    .16160E-03
  27  norm          5.3390        4.2523        .22473E-06   -.16763E-03
  28  Normalizat    .81443        .14765        .17970E-06    .41358E-03
  29  Prefactor     1.2357        .18247        .14409E-06    .16755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.59963
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.100649
  Prefactor  = 63.0114
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.21631
  Prefactor  = 10.6332
  norm       = 16.637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.241419
  Prefactor  = 10.6926
  norm       = 6.96409
  Prefactor  = 0.0001
  Prefactor  = 12.2558
  norm       = 9.39287
  norm       = 1.19621
  Prefactor  = 0.000100005
  Prefactor  = 11.7531
  Prefactor  = 18.1977
  norm       = 5.33903
  Normalizat = 0.814427
  Prefactor  = 1.23566
 **********
 **   18 **HESSE 
 **********

 FCN=   7865.097     FROM HESSE     STATUS=OK           557 CALLS     4339 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    458.14        .36404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5996        5.3589        .16770E-02   -1.5455    
   4  norm          .10000E-03    2.6720        .14173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10065        16.536        .18440E-02   -1.5645    
   7  Prefactor     63.011        49.145        .50604E-04   -1.4119    
   8  norm          .10000E-03    3.9287        .33675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2501        .15544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.2163        2.0109        .82241E-04   -1.5297    
  13  Prefactor     10.633        38.486        .12293E-03   -1.5056    
  14  norm          16.637        6.9039        .98189E-04   -1.4892    
  15  Prefactor     .10000E-03    5.1026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.652        .30211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .24142        1.1813        .18655E-03   -1.5610    
  18  Prefactor     10.693        11.687        .12251E-03   -1.5054    
  19  norm          6.9641        2.2214        .72318E-04   -1.5180    
  20  Prefactor     .10000E-03    41.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.256        8.4836        .11444E-03   -1.5008    
  22  norm          9.3929        12.863        .13076E-03   -1.5095    
  23  norm          1.1962        1.9880        .16009E-03   -1.5489    
  24  Prefactor     .10000E-03    21.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.753        11.038        .11686E-03   -1.5022    
  26  Prefactor     18.198        36.840        .94062E-04   -1.4855    
  27  norm          5.3390        4.2499        .74560E-03   -1.5246    
  28  Normalizat    .81443        .17662        .24848E-03   -.99536    
  29  Prefactor     1.2357        .21716        .26301E-03   -.85241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27138e-09
Minuit parameter uncertainties:
  1  0.000121187
  2  1.72099e-06
  3  5.36048
  4  8.35812e-05
  5  5.51958e-06
  6  2.57966
  7  49.1765
  8  4.38962e-06
  9  1.66077e-06
  10  7.43114e-07
  11  1.71342e-06
  12  2.01089
  13  38.5756
  14  6.90421
  15  8.37614e-06
  16  1.38058e-05
  17  1.06787
  18  11.6895
  19  2.22146
  20  9.96746e-05
  21  8.48439
  22  12.8667
  23  1.98815
  24  0.000649336
  25  11.0396
  26  36.8861
  27  4.25011
  28  0.176742
  29  0.217315
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.664e+01  6.904e+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.236e+00  2.173e-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:  8.144e-01  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.85
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.68e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 8.66e-06

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) = 7864.75369888
delta logL = 0.343195514407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7864.73035718
delta logL = 0.366537212789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.848       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9675       1.0000          .0000       5.0000    
     3 'Normalizat'    .83996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2125       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7864.730     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.848        8.0388        .92256E-04    .37930E-03
   2  alpha         1.9674        .49798        .15077E-01    .41108E-04
   3  Normalizat    .83997        .16988        .24510E-03   -.29825E-04
   4  Prefactor     1.2125        .21605        .26511E-03   -.27402E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.8475
  alpha      = 1.96742
  Normalizat = 0.839965
  Prefactor  = 1.2125
 **********
 **   18 **HESSE 
 **********

 FCN=   7864.730     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.848        8.0308        .18451E-04   -1.4839    
   2  alpha         1.9674        .49729        .60308E-03   -.21468    
   3  Normalizat    .83997        .17000        .98038E-05   -.98603    
   4  Prefactor     1.2125        .21623        .10605E-04   -.85947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21641e-10
Minuit parameter uncertainties:
  1  8.03124
  2  0.500791
  3  0.170106
  4  0.216385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573762': 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) = 7864.73035714
delta logL = 0.366537249884

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.885e+01  8.031e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.967e+00  5.008e-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.213e+00  2.164e-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:  8.400e-01  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.57
Ra Dec: 185.988 50.009
Photon Index (Free Index): 1.97 +/- 0.50
Photon Flux (Free Index): 5.08e-08 +/- 2.84e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.13e-05

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/573762/cmap_HighResolution_484531201_484790401_4FGL_J1223.9+5000_daily_bin946.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.68e-08', energy_flux2='2.41e-05', photon_flux_error='2.77e-08', dlogl='3.67e-01', energy_flux='2.09e-05', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-09-05 12:21:36.982688', photon_index_error2='0.50', photon_index2='1.97', ts='11.85', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='0.81', time_epoch_completed='1630869696.98', return_code='0', job_id='573762', GAL2='1.21', EG2='0.84', return_code2='0', energy_flux_error='8.66e-06', photon_flux_error2='2.84e-08', ts2='12.57', photon_index='2.42' WHERE bin_id='946' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:21:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 573762: <4FGL_J1223.9+5000_daily_bin946> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin946> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 12:05:28 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:05: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:05:31 2021
Terminated at Sun Sep  5 12:21:37 2021
Results reported at Sun Sep  5 12:21:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin946 185.988 50.0089 484531201 484790401 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 :                                   947.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

