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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1483
RA = 185.988, Dec = 50.0089
tmin = 623721601, tmax = 623980801
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='577041', job_status='RUN', time_executed='2021-09-05 12:15:59.875677', time_epoch_executed='1630869359.88' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577041

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577041/ft1_4FGL_J1223.9+5000_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577041/ft2_4FGL_J1223.9+5000_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577041/ft1_4FGL_J1223.9+5000_daily_bin1483.fits outfile=/scratch/kocevski/577041/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1483.fits ra=185.988 dec=50.0089 rad=12.0 tmin=623721601.0 tmax=623980801.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 5.22
user 4.98
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577041/ft1_filtered_4FGL_J1223.9+5000_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/577041/ft2_4FGL_J1223.9+5000_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/577041/ltcube_623721601_623980801_4FGL_J1223.9+5000_daily_bin1483.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/577041/ft2_4FGL_J1223.9+5000_daily_bin1483.fits
.....................!
real 11.71
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577041/ft1_filtered_4FGL_J1223.9+5000_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/577041/ft2_4FGL_J1223.9+5000_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/577041/ltcube_623721601_623980801_4FGL_J1223.9+5000_daily_bin1483.fits outfile=/scratch/kocevski/577041/expmap_623721601_623980801_4FGL_J1223.9+5000_daily_bin1483.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/577041/ltcube_623721601_623980801_4FGL_J1223.9+5000_daily_bin1483.fits
.....................!
real 191.93
user 187.18
sys 4.34

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/577041/ft1_filtered_4FGL_J1223.9+5000_daily_bin1483.fits scfile=/scratch/kocevski/577041/ft2_4FGL_J1223.9+5000_daily_bin1483.fits outfile=/scratch/kocevski/577041/cmap_623721601_623980801_4FGL_J1223.9+5000_daily_bin1483.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577041/ft1_filtered_4FGL_J1223.9+5000_daily_bin1483.fits scfile=/scratch/kocevski/577041/ft2_4FGL_J1223.9+5000_daily_bin1483.fits outfile=/scratch/kocevski/577041/cmap_HighResolution_623721601_623980801_4FGL_J1223.9+5000_daily_bin1483.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6288       1.0000         .10000E-03   10000.    
     4 'norm      '    8.3465       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2625       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.421       1.0000         .10000E-03   10000.    
     8 'norm      '    .13258E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.860       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.849       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.301       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4897       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8788       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.4907       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.364       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1032       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95804       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=   6441.920     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3147 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.783        .38061E-06** at limit **
   2  norm          .10000E-03    14.690       -.16725E-06** at limit **
   3  Prefactor     9.6288        8.5320        .14058E-06   -.59449E-04
   4  norm          8.3464        2.6806       -.32885E-08    .44780E-05
   5  norm          4.8541        6.7904        .73657E-06   -.36013E-04
   6  Prefactor     1.2623        2.7529        .50232E-06   -.52301E-05
   7  Prefactor     37.422        45.090        .26517E-07    .14388E-04
   8  norm          .10000E-03    1.9539        .60720E-06** at limit **
   9  Prefactor     .10000E-03    8.7423       -.33303E-06** at limit **
  10  Prefactor     1.7115        3.6009        .36693E-06   -.55633E-04
  11  Prefactor     13.860        14.942       -.34695E-07   -.23920E-04
  12  norm          .10000E-03    .67207       -.63881E-08** at limit **
  13  Prefactor     .10000E-03    56.139       -.29215E-06** at limit **
  14  norm          17.851        10.096        .50731E-07   -.79564E-05
  15  Prefactor     15.293        24.694       -.20140E-06   -.87902E-04
  16  Prefactor     1.4909        6.0293        .26188E-05   -.40449E-04
  17  norm          5.8785        3.0040       -.33417E-06   -.36118E-03
  18  Prefactor     .10000E-03    7.2894        .13480E-06** at limit **
  19  norm          4.4908        2.5582        .33013E-07    .76765E-04
  20  Prefactor     .10000E-03    15.606       -.57382E-06** at limit **
  21  Prefactor     .10000E-03    3.7205       -.46750E-07** at limit **
  22  norm          .10000E-03    6.0186       -.22602E-07** at limit **
  23  norm          .10000E-03    .89510        .74274E-08** at limit **
  24  Prefactor     .10000E-03    12.542        .58165E-06** at limit **
  25  Prefactor     23.368        15.292       -.36780E-07   -.11632E-04
  26  Prefactor     .10000E-03    13.928        .16684E-06** at limit **
  27  norm          .10000E-03    3.4044       -.12906E-06** at limit **
  28  Normalizat    1.1031        .17201       -.27885E-06   -.11975E-03
  29  Prefactor     .95818        .20318       -.28383E-06   -.82742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.62878
  norm       = 8.34638
  norm       = 4.85411
  Prefactor  = 1.26225
  Prefactor  = 37.4222
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.7115
  Prefactor  = 13.86
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.8511
  Prefactor  = 15.293
  Prefactor  = 1.49087
  norm       = 5.87846
  Prefactor  = 0.0001
  norm       = 4.49078
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.3678
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.10308
  Prefactor  = 0.958184
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.920     FROM HESSE     STATUS=OK           551 CALLS     3698 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6288        8.5848        .12914E-03   -1.5087    
   4  norm          8.3464        2.6860        .69110E-04   -1.5130    
   5  norm          4.8541        6.7810        .91291E-03   -1.5267    
   6  Prefactor     1.2623        2.7216        .18809E-03   -1.5483    
   7  Prefactor     37.422        45.158        .65517E-04   -1.4484    
   8  norm          .10000E-03    3.4842        .20585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.7782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7115        3.5524        .21353E-03   -1.5446    
  11  Prefactor     13.860        14.934        .10759E-03   -1.4963    
  12  norm          .10000E-03    .67883        .64215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    56.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.851        10.083        .94800E-04   -1.4863    
  15  Prefactor     15.293        24.695        .10239E-03   -1.4926    
  16  Prefactor     1.4909        6.1287        .34186E-03   -1.5464    
  17  norm          5.8785        2.9943        .85848E-04   -1.5223    
  18  Prefactor     .10000E-03    7.3042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.4908        2.5568        .93249E-04   -1.5284    
  20  Prefactor     .10000E-03    15.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.7418        .15117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.0281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .89643        .74154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.368        15.276        .82869E-04   -1.4741    
  26  Prefactor     .10000E-03    13.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.4809        .28863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1031        .20202        .23049E-03   -.89653    
  29  Prefactor     .95818        .23782        .30199E-03   -.94137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25204e-10
Minuit parameter uncertainties:
  1  0.000199903
  2  6.44514e-05
  3  8.58591
  4  2.68608
  5  6.78208
  6  2.72191
  7  45.1997
  8  9.60104e-05
  9  8.69714e-05
  10  3.55287
  11  14.9377
  12  6.04866e-07
  13  0.000215835
  14  10.0835
  15  24.7111
  16  6.0464
  17  2.99434
  18  4.00801e-05
  19  2.55686
  20  0.000227013
  21  3.84012e-06
  22  5.69349e-06
  23  3.21354e-07
  24  0.000199445
  25  15.2782
  26  5.62208e-05
  27  1.72895e-05
  28  0.202162
  29  0.238081
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.785e+01  1.008e+01  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.582e-01  2.381e-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.103e+00  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.48
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 7.16e-08 +/- 4.05e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.27e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6441.68424799
delta logL = 0.23525464313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6441.68125114
delta logL = 0.238251485437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.669       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8653       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98525       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=   6441.681     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      268 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.668        10.135        .10457E-03    .15306E-02
   2  alpha         2.8655        .69657        .12316E-01    .15338E-03
   3  Normalizat    1.0698        .19925        .23341E-03   -.17233E-03
   4  Prefactor     .98526        .24041        .29828E-03   -.31543E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6682
  alpha      = 2.8655
  Normalizat = 1.0698
  Prefactor  = 0.985261
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.681     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.668        9.5319        .41830E-05   -1.4942    
   2  alpha         2.8655        .65536        .49264E-03    .14672    
   3  Normalizat    1.0698        .19884        .46682E-04   -.90727    
   4  Prefactor     .98526        .24007        .59656E-04   -.93222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13377e-09
Minuit parameter uncertainties:
  1  9.5329
  2  0.663286
  3  0.19898
  4  0.240326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577041': 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) = 6441.6812511
delta logL = 0.238251527578

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.467e+01  9.533e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.865e+00  6.633e-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:  9.853e-01  2.403e-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.070e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.99
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.87 +/- 0.66
Photon Flux (Free Index): 9.62e-08 +/- 5.41e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/577041/cmap_HighResolution_623721601_623980801_4FGL_J1223.9+5000_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.16e-08', energy_flux2='2.27e-05', photon_flux_error='4.05e-08', dlogl='2.38e-01', energy_flux='2.24e-05', photon_flux2='9.62e-08', job_status='DONE', time_completed='2021-09-05 12:29:18.378602', photon_index_error2='0.66', photon_index2='2.87', ts='7.48', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='1.10', time_epoch_completed='1630870158.38', return_code='0', job_id='577041', GAL2='0.99', EG2='1.07', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.41e-08', ts2='7.99', photon_index='2.42' WHERE bin_id='1483' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:29:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 577041: <4FGL_J1223.9+5000_daily_bin1483> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1483> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:29 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15: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:15:31 2021
Terminated at Sun Sep  5 12:29:19 2021
Results reported at Sun Sep  5 12:29:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1483 185.988 50.0089 623721601 623980801 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 :                                   783.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

