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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1446
RA = 185.988, Dec = 50.0089
tmin = 614131201, tmax = 614390401
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='575793', job_status='RUN', time_executed='2021-09-05 12:11:17.958062', time_epoch_executed='1630869077.96' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575793

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575793/ft1_4FGL_J1223.9+5000_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575793/ft2_4FGL_J1223.9+5000_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575793/ft1_4FGL_J1223.9+5000_daily_bin1446.fits outfile=/scratch/kocevski/575793/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1446.fits ra=185.988 dec=50.0089 rad=12.0 tmin=614131201.0 tmax=614390401.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.72
user 4.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575793/ft1_filtered_4FGL_J1223.9+5000_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/575793/ft2_4FGL_J1223.9+5000_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/575793/ltcube_614131201_614390401_4FGL_J1223.9+5000_daily_bin1446.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/575793/ft2_4FGL_J1223.9+5000_daily_bin1446.fits
.....................!
real 10.78
user 10.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575793/ft1_filtered_4FGL_J1223.9+5000_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/575793/ft2_4FGL_J1223.9+5000_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/575793/ltcube_614131201_614390401_4FGL_J1223.9+5000_daily_bin1446.fits outfile=/scratch/kocevski/575793/expmap_614131201_614390401_4FGL_J1223.9+5000_daily_bin1446.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/575793/ltcube_614131201_614390401_4FGL_J1223.9+5000_daily_bin1446.fits
.....................!
real 189.87
user 185.30
sys 4.12

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/575793/ft1_filtered_4FGL_J1223.9+5000_daily_bin1446.fits scfile=/scratch/kocevski/575793/ft2_4FGL_J1223.9+5000_daily_bin1446.fits outfile=/scratch/kocevski/575793/cmap_614131201_614390401_4FGL_J1223.9+5000_daily_bin1446.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575793/ft1_filtered_4FGL_J1223.9+5000_daily_bin1446.fits scfile=/scratch/kocevski/575793/ft2_4FGL_J1223.9+5000_daily_bin1446.fits outfile=/scratch/kocevski/575793/cmap_HighResolution_614131201_614390401_4FGL_J1223.9+5000_daily_bin1446.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=185.988 yref=50.0089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84057E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4236       1.0000         .10000E-03   10000.    
     4 'norm      '    9.6861       1.0000         .10000E-03   10000.    
     5 'norm      '    36.776       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .72411       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12146E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5844       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.547       1.0000         .10000E-03   10000.    
    17 'norm      '    5.1621       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8624       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.910       1.0000         .10000E-03   10000.    
    22 'norm      '    8.0638       1.0000         .10000E-03   10000.    
    23 'norm      '    .32889       1.0000         .10000E-03   10000.    
    24 'Prefactor '    88.451       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.4642       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9604       1.0000         .10000E-03   10000.    
    27 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .59496       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4621       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=   5615.514     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3791 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    1485.9        .28261E-04** at limit **
   2  norm          .10000E-03    19.310        .24398E-07** at limit **
   3  Prefactor     9.4244        7.2701       -.55776E-07    .21470E-03
   4  norm          9.6862        3.0319       -.40292E-07    .17297E-03
   5  norm          36.772        18.853       -.14678E-06   -.21434E-04
   6  Prefactor     .72380        3.6405       -.17131E-05    .16463E-03
   7  Prefactor     .10000E-03    41.759       -.69354E-07** at limit **
   8  norm          .10000E-03    4.5428       -.11863E-06** at limit **
   9  Prefactor     .10000E-03    9.8766        .50292E-06** at limit **
  10  Prefactor     9.5860        9.4572       -.20469E-06    .15594E-03
  11  Prefactor     .10000E-03    12.105       -.42185E-07** at limit **
  12  norm          .10000E-03    1.5662       -.13553E-06** at limit **
  13  Prefactor     .10000E-03    24.592       -.29120E-06** at limit **
  14  norm          .10000E-03    2.4524       -.15302E-06** at limit **
  15  Prefactor     24.072        18.005       -.19471E-06    .76198E-04
  16  Prefactor     12.551        9.5024       -.91167E-07    .23792E-03
  17  norm          5.1616        3.1675       -.36517E-07    .20070E-03
  18  Prefactor     .10000E-03    5.6200       -.62936E-07** at limit **
  19  norm          1.8626        2.1052       -.15968E-06    .13156E-03
  20  Prefactor     .10000E-03    25.219        .20343E-07** at limit **
  21  Prefactor     13.911        10.598       -.41943E-06    .21545E-03
  22  norm          8.0658        12.737       -.15507E-06    .21774E-04
  23  norm          .33043        11.456        .95449E-05   -.89490E-04
  24  Prefactor     88.397        54.862       -.17028E-05    .26725E-03
  25  Prefactor     6.4616        15.949       -.11511E-05   -.25129E-04
  26  Prefactor     8.0571        68.747        .20500E-05    .49607E-04
  27  norm          .10000E-03    4.4389        .30809E-06** at limit **
  28  Normalizat    .59497        .18588        .39900E-05    .56248E-03
  29  Prefactor     1.4620        .22516       -.10252E-05    .29027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100092
  norm       = 0.0001
  Prefactor  = 9.42441
  norm       = 9.68618
  norm       = 36.7715
  Prefactor  = 0.723799
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.58597
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.0719
  Prefactor  = 12.5506
  norm       = 5.16164
  Prefactor  = 0.0001
  norm       = 1.86257
  Prefactor  = 0.0001
  Prefactor  = 13.9112
  norm       = 8.06575
  norm       = 0.330427
  Prefactor  = 88.3971
  Prefactor  = 6.46163
  Prefactor  = 8.0571
  norm       = 0.0001
  Normalizat = 0.594974
  Prefactor  = 1.46197
 **********
 **   18 **HESSE 
 **********

 FCN=   5615.514     FROM HESSE     STATUS=OK           551 CALLS     4342 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    1481.9        .36782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    19.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.4244        7.2878        .13055E-03   -1.5094    
   4  norm          9.6862        3.0331        .69265E-04   -1.5085    
   5  norm          36.772        18.880        .66088E-04   -1.4494    
   6  Prefactor     .72380        3.6924        .26849E-03   -1.5538    
   7  Prefactor     .10000E-03    41.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.5793        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5860        9.4077        .12944E-03   -1.5089    
  11  Prefactor     .10000E-03    12.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.6860        .17817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4624        .11460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.072        18.015        .81626E-04   -1.4726    
  16  Prefactor     12.551        9.5220        .11309E-03   -1.4999    
  17  norm          5.1616        3.1663        .92526E-04   -1.5254    
  18  Prefactor     .10000E-03    5.6229        .17351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8626        2.0895        .11147E-03   -1.5435    
  20  Prefactor     .10000E-03    25.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.911        10.595        .53697E-03   -1.4962    
  22  norm          8.0658        12.742        .14119E-03   -1.5140    
  23  norm          .33043        11.760        .22043E-02   -1.5593    
  24  Prefactor     88.397        54.506        .21361E-03   -1.3825    
  25  Prefactor     6.4616        15.910        .15785E-03   -1.5200    
  26  Prefactor     8.0571        67.873        .14211E-03   -1.5140    
  27  norm          .10000E-03    4.5724        .30655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .59497        .21866        .30193E-03   -1.0820    
  29  Prefactor     1.4620        .26297        .25542E-03   -.78610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50209e-08
Minuit parameter uncertainties:
  1  0.0239556
  2  2.22715e-05
  3  7.28853
  4  3.03316
  5  18.8831
  6  3.26969
  7  1.5782e-05
  8  2.20242e-05
  9  9.09306e-05
  10  9.40913
  11  1.25029e-05
  12  8.81317e-06
  13  6.42957e-05
  14  1.49566e-06
  15  18.019
  16  9.52319
  17  3.16642
  18  1.04595e-05
  19  2.08958
  20  3.71928e-05
  21  10.5965
  22  12.7461
  23  3.94281
  24  54.5373
  25  15.9204
  26  46.8417
  27  3.67968e-05
  28  0.218977
  29  0.263218
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  1.496e-06  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.462e+00  2.632e-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:  5.950e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/575793/likelihoodResults_614131201_614390401_4FGL_J1223.9+5000_daily_bin1446.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) = 5615.51574703
delta logL = -0.00189470522218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5615.51385231
delta logL = 1.27702151076e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4124       1.0000          .0000       5.0000    
     3 'Normalizat'    .59496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4620       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5615.514     FROM MIGRAD    STATUS=FAILED        93 CALLS      236 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    157.67        .11479E-01** at limit **
   2  alpha         2.0256        3.4984        .16473       -.74464E-07
   3  Normalizat    .59497        .36340E-01    .30192E-03    .42286E-04
   4  Prefactor     1.4620        .46383E-01    .25542E-03    .54844E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5615.514     FROM SIMPLEX   STATUS=UNCHANGED    176 CALLS      412 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    157.67        .21552E-03** at limit **
   2  alpha         2.0256        3.4984        .41395E-05   -.74464E-07
   3  Normalizat    .59497        .36340E-01    .81744E-07    .42286E-04
   4  Prefactor     1.4620        .46383E-01    .42076E-07    .54844E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5615.514     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      440 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6000        .11771E-02** at limit **
   2  alpha         2.0289        3.3185        .65894E-02    .41752E-07
   3  Normalizat    .59497        .20198        .12077E-04    .43114E-04
   4  Prefactor     1.4620        .25789        .51085E-04    .55903E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.02886
  Normalizat = 0.594968
  Prefactor  = 1.46198
 **********
 **   18 **HESSE 
 **********

 FCN=   5615.514     FROM HESSE     STATUS=OK            23 CALLS      463 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5972        .23541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0289        3.4637        .13179E-02   -.18959    
   3  Normalizat    .59497        .20227        .24154E-05   -1.0820    
   4  Prefactor     1.4620        .25819        .10217E-04   -.78610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32782e-11
Minuit parameter uncertainties:
  1  2.29915e-05
  2  264.94
  3  0.202523
  4  0.258421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575793': 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) = 5615.51385127
delta logL = 1.05314302346e-06

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  2.299e-05  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.029e+00  2.649e+02  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.462e+00  2.584e-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:  5.950e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.988 50.009

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/575793/cmap_HighResolution_614131201_614390401_4FGL_J1223.9+5000_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-05', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2021-09-05 12:26:07.305067', job_id='575793', GAL2='1.46', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630869967.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='1.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1446' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 575793: <4FGL_J1223.9+5000_daily_bin1446> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1446> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 12:10:59 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:11:00 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:11:00 2021
Terminated at Sun Sep  5 12:26:08 2021
Results reported at Sun Sep  5 12:26:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1446 185.988 50.0089 614131201 614390401 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 :                                   869.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

