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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1614
RA = 185.988, Dec = 50.0089
tmin = 657676801, tmax = 657936001
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='330957', job_status='RUN', time_executed='2021-12-07 23:06:44.245046', time_epoch_executed='1638947204.25' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1614'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330957

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330957/ft1_4FGL_J1223.9+5000_daily_bin1614.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330957/ft2_4FGL_J1223.9+5000_daily_bin1614.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330957/ft1_4FGL_J1223.9+5000_daily_bin1614.fits outfile=/scratch/kocevski/330957/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1614.fits ra=185.988 dec=50.0089 rad=12.0 tmin=657676801.0 tmax=657936001.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.61
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330957/ft1_filtered_4FGL_J1223.9+5000_daily_bin1614.fits" evtable="EVENTS" scfile=/scratch/kocevski/330957/ft2_4FGL_J1223.9+5000_daily_bin1614.fits sctable="SC_DATA" outfile=/scratch/kocevski/330957/ltcube_657676801_657936001_4FGL_J1223.9+5000_daily_bin1614.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/330957/ft2_4FGL_J1223.9+5000_daily_bin1614.fits
.....................!
real 12.95
user 12.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330957/ft1_filtered_4FGL_J1223.9+5000_daily_bin1614.fits evtable="EVENTS" scfile=/scratch/kocevski/330957/ft2_4FGL_J1223.9+5000_daily_bin1614.fits sctable="SC_DATA" expcube=/scratch/kocevski/330957/ltcube_657676801_657936001_4FGL_J1223.9+5000_daily_bin1614.fits outfile=/scratch/kocevski/330957/expmap_657676801_657936001_4FGL_J1223.9+5000_daily_bin1614.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/330957/ltcube_657676801_657936001_4FGL_J1223.9+5000_daily_bin1614.fits
.....................!
real 192.10
user 186.63
sys 5.11

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/330957/ft1_filtered_4FGL_J1223.9+5000_daily_bin1614.fits scfile=/scratch/kocevski/330957/ft2_4FGL_J1223.9+5000_daily_bin1614.fits outfile=/scratch/kocevski/330957/cmap_657676801_657936001_4FGL_J1223.9+5000_daily_bin1614.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330957/ft1_filtered_4FGL_J1223.9+5000_daily_bin1614.fits scfile=/scratch/kocevski/330957/ft2_4FGL_J1223.9+5000_daily_bin1614.fits outfile=/scratch/kocevski/330957/cmap_HighResolution_657676801_657936001_4FGL_J1223.9+5000_daily_bin1614.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0874       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9406       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6976       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2890       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5317       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3514       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .93553E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8092       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13224E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    18.728       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21102E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6342       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .36262E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.9376       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0274       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0084       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=   5633.971     FROM MIGRAD    STATUS=CONVERGED   1327 CALLS     3796 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.071        .18142E-02** at limit **
   2  norm          .10000E-03    34.924        .18142E-02** at limit **
   3  Prefactor     .10000E-03    5.7176        .34607E-03** at limit **
   4  norm          1.0855        1.4924        .10516E-03   -.12541E-04
   5  norm          2.9472        7.6354        .23686E-03    .24767E-04
   6  Prefactor     2.6976        2.4398        .10635E-03    .21380E-06
   7  Prefactor     .10000E-03    24.846        .18142E-02** at limit **
   8  norm          .10000E-03    3.8301        .14208E-02** at limit **
   9  Prefactor     39.529        19.180        .63755E-04    .19508E-04
  10  Prefactor     .10000E-03    4.7770        .15969E-02** at limit **
  11  Prefactor     3.2834        23.093        .11163E-02    .91965E-05
  12  norm          .10000E-03    .94081        .70398E-03** at limit **
  13  Prefactor     .10000E-03    19.458        .18142E-02** at limit **
  14  norm          .10000E-03    6.4727        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6.8399        .18142E-02** at limit **
  16  Prefactor     5.5335        6.0733        .17082E-03    .61095E-04
  17  norm          2.3513        2.2898        .10057E-03    .81055E-04
  18  Prefactor     .10003E-03    73.297        .45721E-02** at limit **
  19  norm          1.8091        1.7334        .94329E-04    .48932E-04
  20  Prefactor     .10000E-03    136.35        .18142E-02** at limit **
  21  Prefactor     .10000E-03    17.767        .36285E-03** at limit **
  22  norm          18.737        16.920        .92551E-04    .15630E-03
  23  norm          .10000E-03    1.5409        .90166E-03** at limit **
  24  Prefactor     .10005E-03    44.290        .10907    ** at limit **
  25  Prefactor     4.6336        26.031        .18696E-03    .23411E-04
  26  Prefactor     .10024E-03    50.465        .12178    ** at limit **
  27  norm          7.9374        5.5257        .12137E-03    .13358E-03
  28  Normalizat    1.0272        .20084        .21999E-03    .20179E-03
  29  Prefactor     1.0086        .24947        .28057E-03    .19680E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08547
  norm       = 2.94716
  Prefactor  = 2.69764
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.5295
  Prefactor  = 0.0001
  Prefactor  = 3.2834
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.53354
  norm       = 2.35133
  Prefactor  = 0.000100034
  norm       = 1.80911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.7371
  norm       = 0.0001
  Prefactor  = 0.000100054
  Prefactor  = 4.63357
  Prefactor  = 0.000100238
  norm       = 7.93743
  Normalizat = 1.02723
  Prefactor  = 1.00858
 **********
 **   18 **HESSE 
 **********

 FCN=   5633.971     FROM HESSE     STATUS=OK           545 CALLS     4341 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    34.925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7178        .69215E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0855        1.4922        .42062E-05   -1.5500    
   5  norm          2.9472        7.6351        .94742E-05   -1.5365    
   6  Prefactor     2.6976        2.4397        .42539E-05   -1.5379    
   7  Prefactor     .10000E-03    24.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8317        .28417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.529        19.180        .12751E-04   -1.4450    
  10  Prefactor     .10000E-03    4.7776        .31938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2834        23.083        .44652E-04   -1.5346    
  12  norm          .10000E-03    .94091        .14080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.4784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5335        6.0729        .68330E-05   -1.5237    
  17  norm          2.3513        2.2897        .40226E-05   -1.5401    
  18  Prefactor     .10003E-03    74.802        .91442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8091        1.7334        .37732E-05   -1.5439    
  20  Prefactor     .10000E-03    136.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.768        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.737        16.919        .18510E-04   -1.4842    
  23  norm          .10000E-03    1.5412        .18033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10005E-03    41.123        .11374       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.6336        26.001        .74785E-05   -1.5277    
  26  Prefactor     .10024E-03    47.850        .12544       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.9374        5.5228        .48547E-05   -1.5144    
  28  Normalizat    1.0272        .20101        .43998E-04   -.92124    
  29  Prefactor     1.0086        .24971        .11223E-04   -.92444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46073e-10
Minuit parameter uncertainties:
  1  1.90757e-05
  2  6.15089e-05
  3  1.67252e-05
  4  1.49228
  5  7.63758
  6  2.43979
  7  9.52598e-05
  8  2.07979e-05
  9  19.1828
  10  1.34663e-05
  11  17.4208
  12  4.39944e-06
  13  2.2607e-05
  14  7.4513e-06
  15  7.34083e-06
  16  6.07359
  17  2.28977
  18  0.00319584
  19  1.73345
  20  0.000508607
  21  4.6506e-05
  22  16.9235
  23  1.58845e-06
  24  0.00299553
  25  21.9666
  26  0.00675356
  27  5.52317
  28  0.201163
  29  0.25
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  7.451e-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.009e+00  2.500e-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.027e+00  2.012e-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: 5.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330957/likelihoodResults_657676801_657936001_4FGL_J1223.9+5000_daily_bin1614.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) = 5633.97197332
delta logL = -0.000736348467399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5633.971237
delta logL = -2.57869032794e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4250       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0086       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=   5633.971     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      239 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    923.51        .18142E-02** at limit **
   2  alpha         2.5370        2.7262        .16470       -.30303E-07
   3  Normalizat    1.0272        .62038E-01    .21999E-03    .64288E-04
   4  Prefactor     1.0086        .78792E-01    .28057E-03    .55147E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.53704
  Normalizat = 1.02723
  Prefactor  = 1.00858
 **********
 **   18 **HESSE 
 **********

 FCN=   5633.971     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.5836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5370        2.5394        .65880E-02    .14818E-01
   3  Normalizat    1.0272        .19450        .87996E-05   -.92124    
   4  Prefactor     1.0086        .24697        .11223E-04   -.92444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1247e-11
Minuit parameter uncertainties:
  1  9.90397e-05
  2  235.672
  3  0.194639
  4  0.247247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330957': 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) = 5633.97123685
delta logL = 1.21597622638e-07

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  9.904e-05  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.537e+00  2.357e+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.009e+00  2.472e-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.027e+00  1.946e-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/330957/cmap_HighResolution_657676801_657936001_4FGL_J1223.9+5000_daily_bin1614.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-05', job_status='DONE', photon_flux_upper_limit='5.78e-08', time_completed='2021-12-07 23:21:30.564828', job_id='330957', GAL2='1.01', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1638948090.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1614' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:21:30 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 330957: <4FGL_J1223.9+5000_daily_bin1614> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1614> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 23:05:23 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:06:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 23:06:31 2021
Terminated at Tue Dec  7 23:21:31 2021
Results reported at Tue Dec  7 23:21:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1614 185.988 50.0089 657676801 657936001 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 :                                   886.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            968 sec.

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

