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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1348
RA = 185.988, Dec = 50.0089
tmin = 588729601, tmax = 588988801
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='575669', job_status='RUN', time_executed='2021-09-05 12:14:55.381228', time_epoch_executed='1630869295.38' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575669

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575669/ft1_4FGL_J1223.9+5000_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575669/ft2_4FGL_J1223.9+5000_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575669/ft1_4FGL_J1223.9+5000_daily_bin1348.fits outfile=/scratch/kocevski/575669/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1348.fits ra=185.988 dec=50.0089 rad=12.0 tmin=588729601.0 tmax=588988801.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 3.28
user 2.96
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575669/ft1_filtered_4FGL_J1223.9+5000_daily_bin1348.fits" evtable="EVENTS" scfile=/scratch/kocevski/575669/ft2_4FGL_J1223.9+5000_daily_bin1348.fits sctable="SC_DATA" outfile=/scratch/kocevski/575669/ltcube_588729601_588988801_4FGL_J1223.9+5000_daily_bin1348.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/575669/ft2_4FGL_J1223.9+5000_daily_bin1348.fits
.....................!
real 12.97
user 11.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575669/ft1_filtered_4FGL_J1223.9+5000_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/575669/ft2_4FGL_J1223.9+5000_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/575669/ltcube_588729601_588988801_4FGL_J1223.9+5000_daily_bin1348.fits outfile=/scratch/kocevski/575669/expmap_588729601_588988801_4FGL_J1223.9+5000_daily_bin1348.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/575669/ltcube_588729601_588988801_4FGL_J1223.9+5000_daily_bin1348.fits
.....................!
real 193.03
user 187.42
sys 4.79

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/575669/ft1_filtered_4FGL_J1223.9+5000_daily_bin1348.fits scfile=/scratch/kocevski/575669/ft2_4FGL_J1223.9+5000_daily_bin1348.fits outfile=/scratch/kocevski/575669/cmap_588729601_588988801_4FGL_J1223.9+5000_daily_bin1348.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575669/ft1_filtered_4FGL_J1223.9+5000_daily_bin1348.fits scfile=/scratch/kocevski/575669/ft2_4FGL_J1223.9+5000_daily_bin1348.fits outfile=/scratch/kocevski/575669/cmap_HighResolution_588729601_588988801_4FGL_J1223.9+5000_daily_bin1348.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.276       1.0000         .10000E-03   10000.    
     2 'norm      '    .38173E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14257E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .25807E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3823.4       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .71082       1.0000         .10000E-03   10000.    
     8 'norm      '    .10522E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58558       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14069E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    658.70       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60959       1.0000         .10000E-03   10000.    
    14 'norm      '    .18127E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36710E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3633       1.0000         .10000E-03   10000.    
    17 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .46935E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    8.0073       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .60676E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .35514E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    116.47       1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.370       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.163       1.0000         .10000E-03   10000.    
    27 'norm      '    1.5925       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .50688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   838.9039     FROM MIGRAD    STATUS=CONVERGED    290 CALLS     2884 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    494.61        .17434E-04** at limit **
   2  norm          .10002E-03    476.19       -.19967E-04** at limit **
   3  Prefactor     .10000E-03    4.5175       -.34197E-06** at limit **
   4  norm          .10000E-03    26.190       -.29050E-05** at limit **
   5  norm          .10000E-03    109.73        .93753E-06** at limit **
   6  Prefactor     4177.1        1576.2        .29661E-08    .69813E-05
   7  Prefactor     .10000E-03    300.49       -.28271E-05** at limit **
   8  norm          .10000E-03    5.0598        .48343E-06** at limit **
   9  Prefactor     .10004E-03    749.20        .71830E-04** at limit **
  10  Prefactor     .10000E-03    8.2837       -.11323E-05** at limit **
  11  Prefactor     .10000E-03    14.938        .52162E-06** at limit **
  12  norm          633.38        334.17       -.20506E-04    .23871E-04
  13  Prefactor     .10005E-03    417.62        .19600E-03** at limit **
  14  norm          .10000E-03    12.873       -.17883E-06** at limit **
  15  Prefactor     .10000E-03    23.372        .74605E-06** at limit **
  16  Prefactor     7.2358        17.066        .17774E-05    .58096E-04
  17  norm          .10000E-03    5.6786        .17961E-05** at limit **
  18  Prefactor     .10003E-03    55.116        .38400E-04** at limit **
  19  norm          8.0230        6.7043        .79543E-07   -.50555E-05
  20  Prefactor     .10000E-03    41.686        .44683E-05** at limit **
  21  Prefactor     .10000E-03    5.3772        .34403E-07** at limit **
  22  norm          .10000E-03    10.147        .11012E-06** at limit **
  23  norm          .10000E-03    4.8915       -.40071E-06** at limit **
  24  Prefactor     111.05        85.950       -.28541E-05   -.57787E-04
  25  Prefactor     37.125        31.874        .10558E-05    .14897E-03
  26  Prefactor     16.671        91.512       -.29400E-05   -.32018E-04
  27  norm          1.6378        5.8985        .61247E-05    .88044E-04
  28  Normalizat    .10000E-01    .10407        .32077E-05** at limit **
  29  Prefactor     .49922        .20477       -.13039E-05    .83798E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4177.14
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 633.375
  Prefactor  = 0.000100051
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.23584
  norm       = 0.0001
  Prefactor  = 0.000100034
  norm       = 8.02298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 111.049
  Prefactor  = 37.1252
  Prefactor  = 16.6708
  norm       = 1.63784
  Normalizat = 0.01
  Prefactor  = 0.499224
 **********
 **   18 **HESSE 
 **********

 FCN=   838.9039     FROM HESSE     STATUS=OK           597 CALLS     3481 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    479.22        .27483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10002E-03    475.98        .10642E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5063        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    25.432        .10255E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    109.27        .91513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4177.1        1589.1        .20578E-03   -.16532    
   7  Prefactor     .10000E-03    297.48        .12103E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.1029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    721.18        .11615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          633.38        337.92        .40314E-03   -1.0620    
  13  Prefactor     .10005E-03    414.28        .11710E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.746        .10158E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.081        .10651E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.2358        16.954        .36952E-02   -1.5170    
  17  norm          .10000E-03    5.6784        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    51.187        .92551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.0230        6.6625        .35423E-02   -1.5141    
  20  Prefactor     .10000E-03    41.085        .10529E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.113        .10659E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.8001        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     111.05        86.924        .93206E-03   -1.3596    
  25  Prefactor     37.125        32.585        .16390E-02   -1.4489    
  26  Prefactor     16.671        92.191        .26607E-02   -1.4891    
  27  norm          1.6378        6.0667        .84047E-02   -1.5452    
  28  Normalizat    .10000E-01    .96765E-01    .12779       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .49922        .20932        .39768E-01   -1.1201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71914e-10
Minuit parameter uncertainties:
  1  0.0015966
  2  0.00553076
  3  1.02551e-05
  4  5.01058e-05
  5  0.000120275
  6  1617.94
  7  0.000285316
  8  3.74561e-06
  9  0.0112733
  10  1.36137e-05
  11  1.84362e-07
  12  339.015
  13  0.00921632
  14  5.30414e-06
  15  4.64718e-05
  16  16.9649
  17  4.33592e-06
  18  0.00262329
  19  6.66312
  20  4.51289e-05
  21  1.45231e-06
  22  5.6112e-06
  23  9.983e-06
  24  87.0243
  25  32.6006
  26  78.5934
  27  6.06895
  28  1.56872e-07
  29  0.209648
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  5.304e-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:  4.992e-01  2.096e-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.000e-02  1.569e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/575669/likelihoodResults_588729601_588988801_4FGL_J1223.9+5000_daily_bin1348.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): 102
logL (Free Index) = 838.904287522
delta logL = -0.00036927562337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 838.903919878
delta logL = -1.63170773249e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8405       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49922       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=   838.9039     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      293 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1118.2        .85815E-02** at limit **
   2  alpha         1.6397        3.8041        .16658        .39243E-09
   3  Normalizat    .10000E-01    .15695E-01    .53063E-02** at limit **
   4  Prefactor     .49922        .69650E-01    .22895E-03    .95959E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.63967
  Normalizat = 0.01
  Prefactor  = 0.499224
 **********
 **   18 **HESSE 
 **********

 FCN=   838.9039     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.178        .11723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6397        3.1603        .66631E-02   -.35131    
   3  Normalizat    .10000E-01    .10010        .10613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49922        .17596        .91581E-05   -1.1201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93415e-12
Minuit parameter uncertainties:
  1  6.12024e-05
  2  549.757
  3  7.95875e-08
  4  0.176151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575669': 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) = 838.903917238
delta logL = 1.00831255168e-06

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  6.120e-05  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.640e+00  5.498e+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:  4.992e-01  1.762e-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.000e-02  7.959e-08  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/575669/cmap_HighResolution_588729601_588988801_4FGL_J1223.9+5000_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-05', job_status='DONE', photon_flux_upper_limit='2.97e-07', time_completed='2021-09-05 12:22:41.906608', job_id='575669', GAL2='0.50', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630869761.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1348' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:22:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 575669: <4FGL_J1223.9+5000_daily_bin1348> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1348 185.988 50.0089 588729601 588988801 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 :                                   404.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             190.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            715 sec.

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

