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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1391
RA = 185.988, Dec = 50.0089
tmin = 599875201, tmax = 600134401
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='575736', job_status='RUN', time_executed='2021-09-05 12:11:07.790612', time_epoch_executed='1630869067.79' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575736/ft1_4FGL_J1223.9+5000_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575736/ft2_4FGL_J1223.9+5000_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575736/ft1_4FGL_J1223.9+5000_daily_bin1391.fits outfile=/scratch/kocevski/575736/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1391.fits ra=185.988 dec=50.0089 rad=12.0 tmin=599875201.0 tmax=600134401.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 2.42
user 2.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575736/ft2_4FGL_J1223.9+5000_daily_bin1391.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/575736/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1391.fits evtable="EVENTS" outfile="/scratch/kocevski/575736/ft1_filtered_4FGL_J1223.9+5000_daily_bin1391.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.51
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575736/ft1_filtered_4FGL_J1223.9+5000_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/575736/ft2_4FGL_J1223.9+5000_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/575736/ltcube_599875201_600134401_4FGL_J1223.9+5000_daily_bin1391.fits outfile=/scratch/kocevski/575736/expmap_599875201_600134401_4FGL_J1223.9+5000_daily_bin1391.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/575736/ltcube_599875201_600134401_4FGL_J1223.9+5000_daily_bin1391.fits
.....................!
real 192.23
user 186.93
sys 4.78

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/575736/ft1_filtered_4FGL_J1223.9+5000_daily_bin1391.fits scfile=/scratch/kocevski/575736/ft2_4FGL_J1223.9+5000_daily_bin1391.fits outfile=/scratch/kocevski/575736/cmap_599875201_600134401_4FGL_J1223.9+5000_daily_bin1391.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575736/ft1_filtered_4FGL_J1223.9+5000_daily_bin1391.fits scfile=/scratch/kocevski/575736/ft2_4FGL_J1223.9+5000_daily_bin1391.fits outfile=/scratch/kocevski/575736/cmap_HighResolution_599875201_600134401_4FGL_J1223.9+5000_daily_bin1391.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4657       1.0000         .10000E-03   10000.    
     5 'norm      '    13.545       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.757       1.0000         .10000E-03   10000.    
     8 'norm      '    .12144E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0690       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.3032       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2668       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8461       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2676       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0363       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2597       1.0000         .10000E-03   10000.    
    19 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.526       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.6716       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.248       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0817       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1354       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=   6470.261     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3729 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.443        .16812E-04** at limit **
   2  norm          .10000E-03    77.407       -.30213E-04** at limit **
   3  Prefactor     .10000E-03    13.255       -.38603E-05** at limit **
   4  norm          2.4668        1.9903        .48275E-05   -.61884E-03
   5  norm          13.545        10.636        .15307E-05    .21613E-04
   6  Prefactor     2.3149        3.1770       -.56269E-06    .16546E-04
   7  Prefactor     38.690        66.965       -.87102E-04    .36611E-04
   8  norm          .10000E-03    3.1304        .71270E-06** at limit **
   9  Prefactor     .10000E-03    28.662       -.21650E-04** at limit **
  10  Prefactor     5.0700        5.8026        .86955E-06    .77106E-04
  11  Prefactor     .10000E-03    11.817       -.60440E-05** at limit **
  12  norm          4.3032        2.2871       -.26422E-06   -.26155E-04
  13  Prefactor     7.2424        149.41       -.74084E-04   -.28230E-05
  14  norm          3.8458        6.9594       -.15850E-05   -.35755E-03
  15  Prefactor     .10000E-03    9.9735        .52422E-05** at limit **
  16  Prefactor     1.2674        5.0019        .54930E-05   -.10203E-02
  17  norm          6.0373        2.6927       -.77588E-06   -.24476E-03
  18  Prefactor     2.2589        24.106       -.35925E-05   -.12477E-03
  19  norm          .10000E-03    1.0019       -.45659E-06** at limit **
  20  Prefactor     39.526        32.932       -.37195E-06    .75557E-05
  21  Prefactor     .10000E-03    7.1061       -.19263E-05** at limit **
  22  norm          3.6715        14.306       -.20011E-05   -.90033E-04
  23  norm          .10000E-03    1.2894        .37867E-07** at limit **
  24  Prefactor     45.228        33.308       -.12459E-04   -.25847E-03
  25  Prefactor     .10000E-03    17.103        .12253E-04** at limit **
  26  Prefactor     .10001E-03    53.444        .26066E-04** at limit **
  27  norm          .10000E-03    1.9920       -.89060E-08** at limit **
  28  Normalizat    1.0817        .17477        .35224E-05    .35762E-04
  29  Prefactor     1.1353        .20976        .28091E-05    .11530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.46682
  norm       = 13.5449
  Prefactor  = 2.31485
  Prefactor  = 38.6897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.07003
  Prefactor  = 0.0001
  norm       = 4.3032
  Prefactor  = 7.24243
  norm       = 3.84582
  Prefactor  = 0.0001
  Prefactor  = 1.26736
  norm       = 6.03734
  Prefactor  = 2.2589
  norm       = 0.000100001
  Prefactor  = 39.5263
  Prefactor  = 0.0001
  norm       = 3.67151
  norm       = 0.0001
  Prefactor  = 45.2277
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Normalizat = 1.08174
  Prefactor  = 1.13533
 **********
 **   18 **HESSE 
 **********

 FCN=   6470.261     FROM HESSE     STATUS=OK           551 CALLS     4280 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    77.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4668        1.9894        .85457E-04   -1.5394    
   5  norm          13.545        10.638        .10884E-03   -1.4972    
   6  Prefactor     2.3149        3.1559        .16030E-03   -1.5404    
   7  Prefactor     38.690        66.947        .64382E-04   -1.4463    
   8  norm          .10000E-03    6.6015        .27358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0700        5.7576        .17859E-03   -1.5258    
  11  Prefactor     .10000E-03    11.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3032        2.2892        .84821E-04   -1.5293    
  13  Prefactor     7.2424        149.16        .14879E-03   -1.5170    
  14  norm          3.8458        6.9496        .20578E-03   -1.5316    
  15  Prefactor     .10000E-03    9.9884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2674        4.9064        .32444E-03   -1.5483    
  17  norm          6.0373        2.6623        .81000E-04   -1.5216    
  18  Prefactor     2.2589        24.127        .27328E-03   -1.5407    
  19  norm          .10000E-03    4.5928        .15547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.526        32.908        .63755E-04   -1.4450    
  21  Prefactor     .10000E-03    7.1891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.6715        14.299        .21080E-03   -1.5325    
  23  norm          .10000E-03    1.3006        .89164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     45.228        33.412        .59604E-04   -1.4362    
  25  Prefactor     .10000E-03    17.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    53.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.0424        .22164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0817        .20596        .23684E-03   -.90340    
  29  Prefactor     1.1353        .24829        .28637E-03   -.88345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1339e-09
Minuit parameter uncertainties:
  1  1.98282e-05
  2  0.000106566
  3  0.000104505
  4  1.98944
  5  10.6394
  6  3.15611
  7  67.0776
  8  5.74142e-05
  9  5.894e-05
  10  5.75822
  11  0.000120993
  12  2.28929
  13  65.9235
  14  6.95103
  15  1.82229e-06
  16  4.90797
  17  2.66235
  18  14.7721
  19  9.97112e-05
  20  32.9233
  21  5.01476e-05
  22  14.3127
  23  7.79384e-06
  24  33.4254
  25  0.000142972
  26  0.00142318
  27  8.74785e-06
  28  0.206116
  29  0.248544
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.846e+00  6.951e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.135e+00  2.485e-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.082e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/575736/likelihoodResults_599875201_600134401_4FGL_J1223.9+5000_daily_bin1391.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) = 6469.88615666
delta logL = 0.37456155899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6469.88166987
delta logL = 0.379048344638

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7561       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4391       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1539       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=   6469.882     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7477        77.354        .61299E-02    .59210E-03
   2  alpha         3.4414        3.7382        .45604        .48011E-04
   3  Normalizat    1.0557        .50817E-01    .40208E-01    .10480E-04
   4  Prefactor     1.1536        .63079E-01    .64275E-01    .10929E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.7477
  alpha      = 3.44144
  Normalizat = 1.0557
  Prefactor  = 1.15357
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.882     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7477        6.3018        .13352E-03   -1.5376    
   2  alpha         3.4414        1.4792        .21724E-01    .38610    
   3  Normalizat    1.0557        .20174        .23927E-03   -.91187    
   4  Prefactor     1.1536        .24744        .28431E-03   -.87772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75138e-08
Minuit parameter uncertainties:
  1  6.30333
  2  1.60453
  3  0.20189
  4  0.247691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575736': 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) = 6469.88166665
delta logL = 0.379051566864

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.748e+00  6.303e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  3.441e+00  1.605e+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:  1.154e+00  2.477e-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.056e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 185.988 50.009
Photon Index (Free Index): 3.44 +/- 1.60
Photon Flux (Free Index): 3.72e-08 +/- 3.93e-08
Energy Flux (Free Index): 6.97e-06 +/- 7.87e-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/575736/cmap_HighResolution_599875201_600134401_4FGL_J1223.9+5000_daily_bin1391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-05', comment='SUCCESS', energy_flux2='6.97e-06', dlogl='3.79e-01', photon_flux2='3.72e-08', job_status='DONE', time_completed='2021-09-05 12:27:03.092401', photon_index_error2='1.60', photon_index2='3.44', ts='0.37', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='7.89e-08', energy_flux_error2='7.87e-06', EG='1.08', time_epoch_completed='1630870023.09', return_code='0', job_id='575736', GAL2='1.15', EG2='1.06', return_code2='0', photon_flux_error2='3.93e-08', ts2='1.15', photon_index='2.42' WHERE bin_id='1391' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:27:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 575736: <4FGL_J1223.9+5000_daily_bin1391> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1391> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 12:10:53 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:10:54 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:10:54 2021
Terminated at Sun Sep  5 12:27:04 2021
Results reported at Sun Sep  5 12:27:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1391 185.988 50.0089 599875201 600134401 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 :                                   940.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

