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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin44
RA = 185.988, Dec = 50.0089
tmin = 250732801, tmax = 250992001
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='563599', job_status='RUN', time_executed='2021-09-05 11:44:44.582227', time_epoch_executed='1630867484.58' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='44'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/563599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/563599/ft1_4FGL_J1223.9+5000_daily_bin44.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/563599/ft2_4FGL_J1223.9+5000_daily_bin44.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/563599/ft1_4FGL_J1223.9+5000_daily_bin44.fits outfile=/scratch/kocevski/563599/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin44.fits ra=185.988 dec=50.0089 rad=12.0 tmin=250732801.0 tmax=250992001.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.17
user 1.00
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/563599/ft1_filtered_4FGL_J1223.9+5000_daily_bin44.fits" evtable="EVENTS" scfile=/scratch/kocevski/563599/ft2_4FGL_J1223.9+5000_daily_bin44.fits sctable="SC_DATA" outfile=/scratch/kocevski/563599/ltcube_250732801_250992001_4FGL_J1223.9+5000_daily_bin44.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/563599/ft2_4FGL_J1223.9+5000_daily_bin44.fits
.....................!
real 9.80
user 9.49
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/563599/ft1_filtered_4FGL_J1223.9+5000_daily_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/563599/ft2_4FGL_J1223.9+5000_daily_bin44.fits sctable="SC_DATA" expcube=/scratch/kocevski/563599/ltcube_250732801_250992001_4FGL_J1223.9+5000_daily_bin44.fits outfile=/scratch/kocevski/563599/expmap_250732801_250992001_4FGL_J1223.9+5000_daily_bin44.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/563599/ltcube_250732801_250992001_4FGL_J1223.9+5000_daily_bin44.fits
.....................!
real 150.64
user 146.31
sys 3.95

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/563599/ft1_filtered_4FGL_J1223.9+5000_daily_bin44.fits scfile=/scratch/kocevski/563599/ft2_4FGL_J1223.9+5000_daily_bin44.fits outfile=/scratch/kocevski/563599/cmap_250732801_250992001_4FGL_J1223.9+5000_daily_bin44.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.45
user 0.28
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/563599/ft1_filtered_4FGL_J1223.9+5000_daily_bin44.fits scfile=/scratch/kocevski/563599/ft2_4FGL_J1223.9+5000_daily_bin44.fits outfile=/scratch/kocevski/563599/cmap_HighResolution_250732801_250992001_4FGL_J1223.9+5000_daily_bin44.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9641       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9382       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1619       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9294       1.0000         .10000E-03   10000.    
    13 'Prefactor '    105.17       1.0000         .10000E-03   10000.    
    14 'norm      '    16.612       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12517E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0898       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.8324       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7099       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.795       1.0000         .10000E-03   10000.    
    27 'norm      '    5.4969       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .63628       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3577       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6815.561     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     3101 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    17.549       -.17400E-04** at limit **
   2  norm          .10000E-03    12.016       -.51211E-06** at limit **
   3  Prefactor     .10000E-03    3.7132       -.44741E-06** at limit **
   4  norm          1.9641        1.2401        .50928E-07    .36583E-03
   5  norm          .10000E-03    3.4350       -.16196E-06** at limit **
   6  Prefactor     3.9375        2.9585        .60523E-06    .41217E-03
   7  Prefactor     .10048E-03    20.169        .55587E-05** at limit **
   8  norm          .10000E-03    2.9164        .11158E-06** at limit **
   9  Prefactor     9.1619        1.0526       -.34143E-06   -.40981E-03
  10  Prefactor     3.0529        1.9196       -.93582E-05   -.49244E-02
  11  Prefactor     .10013E-03    21.099        .18894E-04** at limit **
  12  norm          2.9289        2.1956        .42852E-06    .12723E-03
  13  Prefactor     105.17        1.3482       -.77265E-06   -.40902E-03
  14  norm          16.612        1.7477       -.34729E-05   -.93911E-02
  15  Prefactor     .10041E-03    9.3612        .13035E-04** at limit **
  16  Prefactor     .10000E-03    7.4015       -.32251E-06** at limit **
  17  norm          3.0903        1.9585        .32668E-06    .72133E-03
  18  Prefactor     .10000E-03    3.4843       -.14510E-06** at limit **
  19  norm          2.0561        1.4899        .12426E-06    .57575E-05
  20  Prefactor     .10001E-03    17.761        .27714E-05** at limit **
  21  Prefactor     .10004E-03    17.353       -.25630E-04** at limit **
  22  norm          .10000E-03    5.1092       -.31683E-06** at limit **
  23  norm          6.8427        5.2270       -.20584E-05    .12532E-03
  24  Prefactor     1.5201        436.93       -.23753E-04   -.29324E-03
  25  Prefactor     .10000E-03    9.0558       -.29990E-06** at limit **
  26  Prefactor     49.947        51.213        .55391E-04   -.22524E-02
  27  norm          5.4974        3.6374       -.99441E-06    .43000E-03
  28  Normalizat    .63640        .18069       -.40347E-05    .23869E-04
  29  Prefactor     1.3577        .22691        .15414E-05    .39525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100542
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96412
  norm       = 0.0001
  Prefactor  = 3.93754
  Prefactor  = 0.000100479
  norm       = 0.0001
  Prefactor  = 9.16191
  Prefactor  = 3.05295
  Prefactor  = 0.000100131
  norm       = 2.92892
  Prefactor  = 105.167
  norm       = 16.612
  Prefactor  = 0.000100409
  Prefactor  = 0.0001
  norm       = 3.09028
  Prefactor  = 0.000100001
  norm       = 2.05606
  Prefactor  = 0.000100005
  Prefactor  = 0.000100041
  norm       = 0.0001
  norm       = 6.84271
  Prefactor  = 1.52009
  Prefactor  = 0.0001
  Prefactor  = 49.9469
  norm       = 5.49736
  Normalizat = 0.6364
  Prefactor  = 1.35769
 **********
 **   18 **HESSE 
 **********

 FCN=   6815.561     FROM HESSE     STATUS=OK           621 CALLS     3722 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10054E-03    35.507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6526        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9641        1.2447        .73986E-02   -1.5428    
   5  norm          .10000E-03    3.4333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9375        3.2142        .50819E-02   -1.5311    
   7  Prefactor     .10048E-03    36.103        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.1619        16.721        .33102E-02   -1.5103    
  10  Prefactor     3.0529        7.6955        .58006E-02   -1.5358    
  11  Prefactor     .10013E-03    25.909        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9289        2.2017        .59334E-02   -1.5366    
  13  Prefactor     105.17        83.484        .98029E-03   -1.3653    
  14  norm          16.612        7.5279        .24566E-02   -1.4893    
  15  Prefactor     .10041E-03    23.469        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.2790        .48984E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0903        2.0356        .57680E-02   -1.5356    
  18  Prefactor     .10000E-03    3.4858        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0561        1.4893        .72059E-02   -1.5421    
  20  Prefactor     .10001E-03    17.840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    3.8822        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.1006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.8427        5.5760        .38374E-02   -1.5185    
  24  Prefactor     1.5201        632.58        .80373E-02   -1.5461    
  25  Prefactor     .10000E-03    9.0221        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     49.947        62.493        .14207E-02   -1.4293    
  27  norm          5.4974        3.6468        .42843E-02   -1.5239    
  28  Normalizat    .63640        .15456        .61122E-01   -1.0646    
  29  Prefactor     1.3577        .19027        .55812E-01   -.81608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43859e-07
Minuit parameter uncertainties:
  1  0.00877512
  2  0.000141849
  3  3.16051e-05
  4  1.24476
  5  3.53488e-05
  6  3.21435
  7  0.00832078
  8  3.66627e-05
  9  16.7299
  10  7.698
  11  0.00369044
  12  2.20175
  13  83.5774
  14  7.52836
  15  0.00619642
  16  5.68217e-05
  17  2.03564
  18  8.952e-05
  19  1.48937
  20  0.000626041
  21  0.000797939
  22  2.64974e-05
  23  5.57646
  24  62.6948
  25  6.82368e-05
  26  62.5751
  27  3.64691
  28  0.154667
  29  0.190368
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.661e+01  7.528e+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.358e+00  1.904e-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:  6.364e-01  1.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.48
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 9.44e-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) = 6815.46953111
delta logL = 0.0916958486168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6815.4636812
delta logL = 0.0975457654549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.685       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1978       1.0000          .0000       5.0000    
     3 'Normalizat'    .64737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3494       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=   6815.464     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      272 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.685        8.4050        .95240E-04   -.47091E-03
   2  alpha         2.1976        .50401        .13815E-01   -.67566E-04
   3  Normalizat    .64740        .17683        .26833E-03    .31352E-04
   4  Prefactor     1.3494        .22647        .24746E-03    .48009E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.6848
  alpha      = 2.1976
  Normalizat = 0.647399
  Prefactor  = 1.34939
 **********
 **   18 **HESSE 
 **********

 FCN=   6815.464     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.685        8.3646        .38096E-05   -1.4867    
   2  alpha         2.1976        .50142        .55259E-03   -.12126    
   3  Normalizat    .64740        .17698        .10733E-04   -1.0601    
   4  Prefactor     1.3494        .22666        .98983E-05   -.81850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70665e-10
Minuit parameter uncertainties:
  1  8.3652
  2  0.5049
  3  0.177134
  4  0.226831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/563599': 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) = 6815.46368095
delta logL = 0.0975460146019

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.768e+01  8.365e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.198e+00  5.049e-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.349e+00  2.268e-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:  6.474e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.64
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.20 +/- 0.50
Photon Flux (Free Index): 5.75e-08 +/- 3.48e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.03e-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/563599/cmap_HighResolution_250732801_250992001_4FGL_J1223.9+5000_daily_bin44.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='2.17e-05', photon_flux_error='3.02e-08', dlogl='9.75e-02', energy_flux='2.08e-05', photon_flux2='5.75e-08', job_status='DONE', time_completed='2021-09-05 11:55:10.416146', photon_index_error2='0.50', photon_index2='2.20', ts='10.48', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.64', time_epoch_completed='1630868110.42', return_code='0', job_id='563599', GAL2='1.35', EG2='0.65', return_code2='0', energy_flux_error='9.44e-06', photon_flux_error2='3.48e-08', ts2='10.64', photon_index='2.42' WHERE bin_id='44' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:55:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 563599: <4FGL_J1223.9+5000_daily_bin44> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin44> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:40:36 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:40:39 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:39 2021
Terminated at Sun Sep  5 11:55:11 2021
Results reported at Sun Sep  5 11:55:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin44 185.988 50.0089 250732801 250992001 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 :                                   624.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            875 sec.

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

