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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin4
RA = 185.988, Dec = 50.0089
tmin = 240364801, tmax = 240624001
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='563535', job_status='RUN', time_executed='2021-09-05 11:44:03.447985', time_epoch_executed='1630867443.45' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/563535

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/563535/ft1_4FGL_J1223.9+5000_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/563535/ft2_4FGL_J1223.9+5000_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/563535/ft1_4FGL_J1223.9+5000_daily_bin4.fits outfile=/scratch/kocevski/563535/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin4.fits ra=185.988 dec=50.0089 rad=12.0 tmin=240364801.0 tmax=240624001.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.49
user 1.26
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/563535/ft1_filtered_4FGL_J1223.9+5000_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/563535/ft2_4FGL_J1223.9+5000_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/563535/ltcube_240364801_240624001_4FGL_J1223.9+5000_daily_bin4.fits outfile=/scratch/kocevski/563535/expmap_240364801_240624001_4FGL_J1223.9+5000_daily_bin4.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/563535/ltcube_240364801_240624001_4FGL_J1223.9+5000_daily_bin4.fits
.....................!
real 195.54
user 190.14
sys 4.49

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/563535/ft1_filtered_4FGL_J1223.9+5000_daily_bin4.fits scfile=/scratch/kocevski/563535/ft2_4FGL_J1223.9+5000_daily_bin4.fits outfile=/scratch/kocevski/563535/cmap_240364801_240624001_4FGL_J1223.9+5000_daily_bin4.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/563535/ft1_filtered_4FGL_J1223.9+5000_daily_bin4.fits scfile=/scratch/kocevski/563535/ft2_4FGL_J1223.9+5000_daily_bin4.fits outfile=/scratch/kocevski/563535/cmap_HighResolution_240364801_240624001_4FGL_J1223.9+5000_daily_bin4.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    32.037       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.863       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5745       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6885       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.348       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.681       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0178       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10944E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11160E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.3290       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.9043       1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.747       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.365       1.0000         .10000E-03   10000.    
    23 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.673       1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.408       1.0000         .10000E-03   10000.    
    26 'Prefactor '    41.339       1.0000         .10000E-03   10000.    
    27 'norm      '    4.5272       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0539       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91412       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=   4726.709     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3631 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.328        .92435E-06** at limit **
   2  norm          32.037        37.909        .17148E-07    .39247E-06
   3  Prefactor     13.863        11.551        .13475E-07   -.11641E-04
   4  norm          .10000E-03    .38057        .58317E-08** at limit **
   5  norm          5.5745        6.0632       -.70230E-06    .60109E-03
   6  Prefactor     1.6884        3.1261        .28738E-07   -.15578E-03
   7  Prefactor     .10000E-03    13.576        .21934E-05** at limit **
   8  norm          11.347        7.7783        .97028E-07   -.16422E-04
   9  Prefactor     .10000E-03    7.4116       -.52747E-06** at limit **
  10  Prefactor     .10000E-03    6.1220        .27799E-07** at limit **
  11  Prefactor     22.676        25.347       -.79814E-06   -.92059E-04
  12  norm          .10000E-03    1.1356       -.20247E-07** at limit **
  13  Prefactor     .10000E-03    34.108        .95687E-06** at limit **
  14  norm          4.0140        6.9865        .42116E-05   -.14120E-02
  15  Prefactor     .10000E-03    32.011       -.26615E-05** at limit **
  16  Prefactor     .10000E-03    16.093       -.12487E-05** at limit **
  17  norm          6.3317        3.2529       -.34911E-08    .27319E-03
  18  Prefactor     .10000E-03    8.0358        .70967E-06** at limit **
  19  norm          6.9045        2.8969       -.11381E-07    .39194E-04
  20  Prefactor     42.745        64.337       -.97237E-06   -.36634E-04
  21  Prefactor     .10000E-03    10.896       -.11855E-05** at limit **
  22  norm          10.364        16.231        .64453E-06   -.97490E-04
  23  norm          .10000E-03    1.0504       -.24668E-07** at limit **
  24  Prefactor     15.648        28.029       -.97523E-05   -.48952E-03
  25  Prefactor     33.408        21.260        .17019E-06    .19100E-04
  26  Prefactor     41.349        35.073        .46106E-05    .25833E-03
  27  norm          4.5274        4.0017        .46892E-07    .27815E-04
  28  Normalizat    1.0539        .18781       -.18952E-06    .43754E-04
  29  Prefactor     .91415        .22554       -.37606E-06    .38498E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 32.0374
  Prefactor  = 13.8627
  norm       = 0.0001
  norm       = 5.57454
  Prefactor  = 1.68845
  Prefactor  = 0.000100001
  norm       = 11.3469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6765
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.01403
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.3317
  Prefactor  = 0.0001
  norm       = 6.90451
  Prefactor  = 42.7445
  Prefactor  = 0.0001
  norm       = 10.3641
  norm       = 0.0001
  Prefactor  = 15.6476
  Prefactor  = 33.4081
  Prefactor  = 41.3493
  norm       = 4.52737
  Normalizat = 1.0539
  Prefactor  = 0.914147
 **********
 **   18 **HESSE 
 **********

 FCN=   4726.709     FROM HESSE     STATUS=OK           547 CALLS     4178 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          32.037        37.910        .70792E-04   -1.4575    
   3  Prefactor     13.863        11.564        .10758E-03   -1.4963    
   4  norm          .10000E-03    .38139        .41416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5745        6.1150        .85079E-03   -1.5236    
   6  Prefactor     1.6884        3.0987        .15855E-03   -1.5448    
   7  Prefactor     .10000E-03    13.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.347        7.7719        .11892E-03   -1.5034    
   9  Prefactor     .10000E-03    7.4194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1363        .16591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.676        25.377        .84107E-04   -1.4755    
  12  norm          .10000E-03    1.1549        .71499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0140        8.1290        .10059E-02   -1.5307    
  15  Prefactor     .10000E-03    32.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.551        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.3317        3.2312        .84985E-04   -1.5205    
  18  Prefactor     .10000E-03    8.0533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.9045        2.8969        .73385E-04   -1.5182    
  20  Prefactor     42.745        64.444        .61315E-04   -1.4399    
  21  Prefactor     .10000E-03    10.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.364        16.234        .62228E-03   -1.5064    
  23  norm          .10000E-03    1.0534        .68804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.648        30.036        .10117E-03   -1.4917    
  25  Prefactor     33.408        21.251        .69329E-04   -1.4551    
  26  Prefactor     41.349        35.885        .62346E-04   -1.4421    
  27  norm          4.5274        4.0001        .12012E-03   -1.5282    
  28  Normalizat    1.0539        .21977        .22772E-03   -.91246    
  29  Prefactor     .91415        .26226        .29643E-03   -.95649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86692e-09
Minuit parameter uncertainties:
  1  0.000200605
  2  37.9381
  3  11.5664
  4  1.28346e-07
  5  6.11571
  6  3.09903
  7  0.000255091
  8  7.77261
  9  4.74014e-05
  10  5.75045e-06
  11  25.3891
  12  2.00993e-06
  13  0.000180962
  14  8.13128
  15  0.000497589
  16  0.00013396
  17  3.23129
  18  6.44114e-05
  19  2.897
  20  64.5497
  21  0.000125281
  22  16.2404
  23  4.64749e-06
  24  30.0648
  25  21.2553
  26  35.9042
  27  4.00038
  28  0.219961
  29  0.262624
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  4.014e+00  8.131e+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:  9.141e-01  2.626e-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.054e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 9.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/563535/likelihoodResults_240364801_240624001_4FGL_J1223.9+5000_daily_bin4.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): 0
logL (Free Index) = 4725.16160921
delta logL = 1.54723586583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4725.1517685
delta logL = 1.55707657821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80799       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .93485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0095       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=   4725.152     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      341 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80819        15.601        .83165E-02    .52795E-04
   2  alpha         5.0000        4.8438        .46358    ** at limit **
   3  Normalizat    .93485        .13483        .45345E-01   -.15456E-04
   4  Prefactor     1.0095        .15295        .64113E-01   -.24922E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.808192
  alpha      = 5
  Normalizat = 0.934846
  Prefactor  = 1.0095
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.152     FROM HESSE     STATUS=OK            33 CALLS      374 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80819        .52825        .37443E-04   -1.5528    
   2  alpha         5.0000        3.3041        .47441E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .93485        .22449        .23970E-03   -.95246    
   4  Prefactor     1.0095        .26827        .28356E-03   -.92414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62719e-12
Minuit parameter uncertainties:
  1  0.52825
  2  7.42292e-08
  3  0.224718
  4  0.268623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/563535': 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) = 4725.15176804
delta logL = 1.55707703532

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  8.082e-01  5.282e-01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  5.000e+00  7.423e-08  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.010e+00  2.686e-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:  9.348e-01  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 185.988 50.009
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.04e-07 +/- 6.79e-08
Energy Flux (Free Index): 1.46e-05 +/- 9.53e-06

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/563535/cmap_HighResolution_240364801_240624001_4FGL_J1223.9+5000_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-05', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='1.56e+00', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-05 11:57:03.330062', photon_index_error2='0.00', photon_index2='5.00', ts='0.31', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='9.68e-08', energy_flux_error2='9.53e-06', EG='1.05', time_epoch_completed='1630868223.33', return_code='0', job_id='563535', GAL2='1.01', EG2='0.93', return_code2='0', photon_flux_error2='6.79e-08', ts2='3.67', photon_index='2.42' WHERE bin_id='4' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:57:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 563535: <4FGL_J1223.9+5000_daily_bin4> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin4 185.988 50.0089 240364801 240624001 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 :                                   770.30 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             270.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

