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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1109
RA = 185.988, Dec = 50.0089
tmin = 526780801, tmax = 527040001
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='574002', job_status='RUN', time_executed='2021-09-05 12:08:31.398666', time_epoch_executed='1630868911.4' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574002/ft1_4FGL_J1223.9+5000_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574002/ft2_4FGL_J1223.9+5000_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574002/ft1_4FGL_J1223.9+5000_daily_bin1109.fits outfile=/scratch/kocevski/574002/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1109.fits ra=185.988 dec=50.0089 rad=12.0 tmin=526780801.0 tmax=527040001.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 4.31
user 4.08
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574002/ft2_4FGL_J1223.9+5000_daily_bin1109.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/574002/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1109.fits evtable="EVENTS" outfile="/scratch/kocevski/574002/ft1_filtered_4FGL_J1223.9+5000_daily_bin1109.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.48
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574002/ft1_filtered_4FGL_J1223.9+5000_daily_bin1109.fits" evtable="EVENTS" scfile=/scratch/kocevski/574002/ft2_4FGL_J1223.9+5000_daily_bin1109.fits sctable="SC_DATA" outfile=/scratch/kocevski/574002/ltcube_526780801_527040001_4FGL_J1223.9+5000_daily_bin1109.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/574002/ft2_4FGL_J1223.9+5000_daily_bin1109.fits
.....................!
real 11.80
user 11.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574002/ft1_filtered_4FGL_J1223.9+5000_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/574002/ft2_4FGL_J1223.9+5000_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/574002/ltcube_526780801_527040001_4FGL_J1223.9+5000_daily_bin1109.fits outfile=/scratch/kocevski/574002/expmap_526780801_527040001_4FGL_J1223.9+5000_daily_bin1109.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/574002/ltcube_526780801_527040001_4FGL_J1223.9+5000_daily_bin1109.fits
.....................!
real 189.92
user 185.20
sys 4.30

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/574002/ft1_filtered_4FGL_J1223.9+5000_daily_bin1109.fits scfile=/scratch/kocevski/574002/ft2_4FGL_J1223.9+5000_daily_bin1109.fits outfile=/scratch/kocevski/574002/cmap_526780801_527040001_4FGL_J1223.9+5000_daily_bin1109.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/574002/ft1_filtered_4FGL_J1223.9+5000_daily_bin1109.fits scfile=/scratch/kocevski/574002/ft2_4FGL_J1223.9+5000_daily_bin1109.fits outfile=/scratch/kocevski/574002/cmap_HighResolution_526780801_527040001_4FGL_J1223.9+5000_daily_bin1109.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.438       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6272       1.0000         .10000E-03   10000.    
     4 'norm      '    3.9826       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11755E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11270E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.4898       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.147       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5530       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9081       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4264       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0027       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10597E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14073E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3675       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .50554       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=   5096.030     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3645 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.341        .92510E-06** at limit **
   2  norm          18.403        29.996       -.59103E-05   -.29444E-03
   3  Prefactor     6.6279        6.9133        .28144E-05   -.34705E-03
   4  norm          3.9825        2.0280        .79607E-07   -.17861E-03
   5  norm          .10000E-03    4.2412        .39231E-07** at limit **
   6  Prefactor     .10001E-03    3.1715        .27107E-05** at limit **
   7  Prefactor     .10000E-03    41.638        .11175E-05** at limit **
   8  norm          6.4880        5.3977       -.27319E-08   -.59181E-04
   9  Prefactor     24.194        22.169       -.71747E-06   -.36145E-03
  10  Prefactor     12.016        8.9134       -.24080E-07    .27489E-05
  11  Prefactor     .10000E-03    20.728       -.16068E-05** at limit **
  12  norm          .10000E-03    1.1867        .25670E-07** at limit **
  13  Prefactor     .10000E-03    43.602        .42107E-06** at limit **
  14  norm          4.5536        4.6691        .37354E-07   -.13859E-03
  15  Prefactor     .10000E-03    14.054        .21562E-05** at limit **
  16  Prefactor     2.9084        3.5116        .23657E-06    .73320E-04
  17  norm          3.4262        1.9490        .20653E-07   -.33485E-04
  18  Prefactor     1.9895        62.346        .11081E-05   -.30365E-04
  19  norm          .10000E-03    .98343        .37949E-08** at limit **
  20  Prefactor     .10000E-03    17.694        .34168E-07** at limit **
  21  Prefactor     .10000E-03    2.4621        .13454E-07** at limit **
  22  norm          .10000E-03    7.5587        .25205E-06** at limit **
  23  norm          .10000E-03    1.7536       -.20366E-07** at limit **
  24  Prefactor     .10000E-03    24.402       -.16836E-05** at limit **
  25  Prefactor     .10000E-03    10.701       -.10188E-05** at limit **
  26  Prefactor     .10000E-03    38.324        .17151E-05** at limit **
  27  norm          .10000E-03    3.5938        .13257E-07** at limit **
  28  Normalizat    1.3678        .18583       -.25058E-05   -.45166E-03
  29  Prefactor     .50540        .21474        .17444E-05   -.29463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.4031
  Prefactor  = 6.62792
  norm       = 3.98254
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 6.48804
  Prefactor  = 24.1942
  Prefactor  = 12.016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.55358
  Prefactor  = 0.000100001
  Prefactor  = 2.90836
  norm       = 3.42624
  Prefactor  = 1.98945
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.36776
  Prefactor  = 0.505404
 **********
 **   18 **HESSE 
 **********

 FCN=   5096.030     FROM HESSE     STATUS=OK           543 CALLS     4188 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.403        31.073        .93274E-04   -1.4850    
   3  Prefactor     6.6279        6.9675        .77940E-03   -1.5193    
   4  norm          3.9825        2.0261        .69988E-04   -1.5309    
   5  norm          .10000E-03    4.2476        .14357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    5.2564        .22195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.4880        5.4017        .13679E-03   -1.5198    
   9  Prefactor     24.194        21.807        .81517E-04   -1.4724    
  10  Prefactor     12.016        8.9150        .11557E-03   -1.5015    
  11  Prefactor     .10000E-03    20.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2397        .15170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5536        4.6690        .15158E-03   -1.5281    
  15  Prefactor     .10000E-03    14.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9084        3.5084        .14219E-03   -1.5367    
  17  norm          3.4262        1.9494        .72730E-04   -1.5338    
  18  Prefactor     1.9895        62.671        .29263E-03   -1.5426    
  19  norm          .10000E-03    1.0154        .13822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4641        .10939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.5845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.7633        .92297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    38.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.6683        .13212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3678        .20483        .19252E-03   -.81566    
  29  Prefactor     .50540        .23521        .35730E-03   -1.1173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01847e-09
Minuit parameter uncertainties:
  1  0.000143424
  2  31.1005
  3  6.96832
  4  2.02618
  5  2.2828e-06
  6  0.000476143
  7  0.000192353
  8  5.40211
  9  21.8143
  10  8.91594
  11  0.000170753
  12  3.21941e-06
  13  9.57047e-05
  14  4.66933
  15  0.000211891
  16  3.50864
  17  1.94942
  18  22.3572
  19  2.9595e-06
  20  1.09372e-05
  21  1.92497e-06
  22  2.02843e-05
  23  4.08169e-06
  24  0.000181031
  25  6.52222e-05
  26  0.000306043
  27  1.39607e-05
  28  0.204957
  29  0.235661
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  4.554e+00  4.669e+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:  5.054e-01  2.357e-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.368e+00  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.93
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.83e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 5.71e-06 +/- 5.86e-06

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

Saving results to:
/scratch/kocevski/574002/likelihoodResults_526780801_527040001_4FGL_J1223.9+5000_daily_bin1109.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) = 5095.9044625
delta logL = 0.125152399345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5095.90404658
delta logL = 0.125568318079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5477       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8336       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50030       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=   5095.904     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4740        4.8618        .47193E-02   -.42647E-03
   2  alpha         1.8259        1.0162        .43171       -.38074E-04
   3  Normalizat    1.3761        .18041        .31569E-01   -.41109E-03
   4  Prefactor     .50008        .21341        .81066E-01   -.26788E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.47403
  alpha      = 1.82594
  Normalizat = 1.3761
  Prefactor  = 0.500082
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.904     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4740        4.8838        .15416E-03   -1.5285    
   2  alpha         1.8259        1.1030        .29093E-01   -.27300    
   3  Normalizat    1.3761        .19828        .19203E-03   -.81322    
   4  Prefactor     .50008        .23412        .35908E-03   -1.1197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94259e-10
Minuit parameter uncertainties:
  1  4.88419
  2  1.14575
  3  0.198387
  4  0.234571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574002': 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) = 5095.90393377
delta logL = 0.125681125804

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  4.474e+00  4.884e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.826e+00  1.146e+00  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:  5.001e-01  2.346e-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.376e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.19
Ra Dec: 185.988 50.009
Photon Index (Free Index): 1.83 +/- 1.15
Photon Flux (Free Index): 1.09e-08 +/- 1.61e-08
Energy Flux (Free Index): 6.13e-06 +/- 6.83e-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/574002/cmap_HighResolution_526780801_527040001_4FGL_J1223.9+5000_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', comment='SUCCESS', photon_flux='1.83e-08', energy_flux2='6.13e-06', photon_flux_error='1.87e-08', dlogl='1.26e-01', energy_flux='5.71e-06', photon_flux2='1.09e-08', job_status='DONE', time_completed='2021-09-05 12:22:14.621623', photon_index_error2='1.15', photon_index2='1.83', ts='2.93', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', photon_flux_upper_limit='7.38e-08', energy_flux_error2='6.83e-06', EG='1.37', time_epoch_completed='1630869734.62', return_code='0', job_id='574002', GAL2='0.50', EG2='1.38', return_code2='0', energy_flux_error='5.86e-06', photon_flux_error2='1.61e-08', ts2='3.19', photon_index='2.42' WHERE bin_id='1109' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:22:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 574002: <4FGL_J1223.9+5000_daily_bin1109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1109 185.988 50.0089 526780801 527040001 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 :                                   805.33 sec.
    Max Memory :                                 1146 MB
    Average Memory :                             281.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

