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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin979
RA = 185.883, Dec = 8.3017
tmin = 493084801, tmax = 493344001
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='548271', job_status='RUN', time_executed='2021-09-05 10:53:03.374846', time_epoch_executed='1630864383.37' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548271/ft1_4FGL_J1223.5+0818_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548271/ft2_4FGL_J1223.5+0818_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548271/ft1_4FGL_J1223.5+0818_daily_bin979.fits outfile=/scratch/kocevski/548271/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin979.fits ra=185.883 dec=8.3017 rad=12.0 tmin=493084801.0 tmax=493344001.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.58
user 3.38
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/548271/ft2_4FGL_J1223.5+0818_daily_bin979.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548271/ft2_4FGL_J1223.5+0818_daily_bin979.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/548271/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin979.fits evtable="EVENTS" outfile="/scratch/kocevski/548271/ft1_filtered_4FGL_J1223.5+0818_daily_bin979.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548271/ft1_filtered_4FGL_J1223.5+0818_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/548271/ft2_4FGL_J1223.5+0818_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/548271/ltcube_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.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/548271/ft2_4FGL_J1223.5+0818_daily_bin979.fits
.....................!
real 11.85
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548271/ft1_filtered_4FGL_J1223.5+0818_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/548271/ft2_4FGL_J1223.5+0818_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/548271/ltcube_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.fits outfile=/scratch/kocevski/548271/expmap_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.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/548271/ltcube_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.fits
.....................!
real 189.76
user 185.63
sys 3.71

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.5+0818 @ 185.883 8.3017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/548271/ft1_filtered_4FGL_J1223.5+0818_daily_bin979.fits scfile=/scratch/kocevski/548271/ft2_4FGL_J1223.5+0818_daily_bin979.fits outfile=/scratch/kocevski/548271/cmap_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.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.883 yref=8.3017 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548271/ft1_filtered_4FGL_J1223.5+0818_daily_bin979.fits scfile=/scratch/kocevski/548271/ft2_4FGL_J1223.5+0818_daily_bin979.fits outfile=/scratch/kocevski/548271/cmap_HighResolution_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.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.883 yref=8.3017 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548271/ft1_filtered_4FGL_J1223.5+0818_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/548271/ft2_4FGL_J1223.5+0818_daily_bin979.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548271/Model_4FGL_J1223.5+0818_daily_bin979.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/548271/ft1_filtered_4FGL_J1223.5+0818_daily_bin979.fits.....................!
real 47.21
user 45.91
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/548271/ft1_filtered_4FGL_J1223.5+0818_daily_bin979.fits', '/scratch/kocevski/548271/ft2_4FGL_J1223.5+0818_daily_bin979.fits', expMap='/scratch/kocevski/548271/expmap_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.fits', expCube='/scratch/kocevski/548271/ltcube_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/548271/Model_4FGL_J1223.5+0818_daily_bin979.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.5+0818'

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.243e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/548271/ft1_filtered_4FGL_J1223.5+0818_daily_bin979.fits
Spacecraft file(s): /scratch/kocevski/548271/ft2_4FGL_J1223.5+0818_daily_bin979.fits
Exposure map: /scratch/kocevski/548271/expmap_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.fits
Exposure cube: /scratch/kocevski/548271/ltcube_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/548271/Model_4FGL_J1223.5+0818_daily_bin979.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) = 4932.14107919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    31.680       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1688       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36757E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1989       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7584       1.0000         .10000E-03   10000.    
    14 'norm      '    9.2164       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11289E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.558       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0153       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.641       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7721       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5811       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.972       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3329       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79266       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4932.115     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3675 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.287       -.21123E-06** at limit **
   2  Prefactor     31.664        75.889       -.22479E-05    .41107E-05
   3  Prefactor     .10000E-03    5.1872       -.52171E-07** at limit **
   4  Prefactor     3.1699        9.0503       -.11831E-06    .13262E-04
   5  Prefactor     3.7824        20.588       -.28045E-05    .15237E-04
   6  Prefactor     .10000E-03    64.095        .40422E-05** at limit **
   7  Prefactor     .10000E-03    54.680       -.20568E-06** at limit **
   8  Prefactor     .10000E-03    105.22        .11735E-04** at limit **
   9  Prefactor     .10000E-03    .92136       -.94256E-08** at limit **
  10  Prefactor     3.1987        3.2310       -.53912E-07    .14638E-04
  11  Prefactor     .10000E-03    50.066       -.25171E-05** at limit **
  12  Prefactor     .10000E-03    3.9557        .19935E-07** at limit **
  13  norm          1.7588        2.3651       -.32611E-07    .80991E-05
  14  norm          9.2196        4.5671        .14226E-06    .25695E-03
  15  Prefactor     .10000E-03    11.487       -.72344E-07** at limit **
  16  norm          .10000E-03    132.68       -.47359E-05** at limit **
  17  Prefactor     42.541        94.798       -.22678E-05    .48265E-05
  18  norm          1.0157        .64368        .10803E-07    .40438E-03
  19  Prefactor     .10000E-03    6.4803        .59845E-07** at limit **
  20  Prefactor     .10000E-03    11.577       -.48480E-06** at limit **
  21  Prefactor     19.639        11.647       -.49360E-07    .42751E-05
  22  norm          3.7718        1.8690       -.10523E-07    .46069E-04
  23  Prefactor     .10000E-03    9.3976        .90019E-08** at limit **
  24  Prefactor     .10000E-03    23.167        .61062E-06** at limit **
  25  Prefactor     3.5678        302.85       -.70720E-05   -.53725E-05
  26  Prefactor     .10000E-03    11.169        .10690E-05** at limit **
  27  Prefactor     13.974        14.430       -.21844E-07   -.95645E-05
  28  Normalizat    1.3330        .22368        .82866E-07    .20378E-04
  29  Prefactor     .79264        .18277        .58144E-06    .33168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.6635
  Prefactor  = 0.0001
  Prefactor  = 3.1699
  Prefactor  = 3.7824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.1987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.75878
  norm       = 9.21959
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.5412
  norm       = 1.0157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6386
  norm       = 3.77176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56785
  Prefactor  = 0.0001
  Prefactor  = 13.9736
  Normalizat = 1.33305
  Prefactor  = 0.792644
 **********
 **   18 **HESSE 
 **********

 FCN=   4932.115     FROM HESSE     STATUS=OK           551 CALLS     4226 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.664        76.053        .71189E-04   -1.4582    
   3  Prefactor     .10000E-03    5.2021        .15620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1699        9.0182        .22767E-03   -1.5352    
   5  Prefactor     3.7824        20.757        .10373E-02   -1.5319    
   6  Prefactor     .10000E-03    64.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    102.80        .60854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .92705        .65748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1987        3.2333        .12026E-03   -1.5350    
  11  Prefactor     .10000E-03    50.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9599        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7588        2.3391        .12077E-03   -1.5443    
  14  norm          9.2196        4.5681        .96553E-04   -1.5101    
  15  Prefactor     .10000E-03    11.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    133.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.541        94.741        .61450E-04   -1.4403    
  18  norm          1.0157        .62728        .40852E-04   -1.5506    
  19  Prefactor     .10000E-03    6.5077        .17459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.639        11.639        .90375E-04   -1.4821    
  22  norm          3.7718        1.8666        .64595E-04   -1.5320    
  23  Prefactor     .10000E-03    9.5489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.5678        305.98        .21355E-03   -1.5330    
  26  Prefactor     .10000E-03    11.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.974        14.446        .10715E-03   -1.4960    
  28  Normalizat    1.3330        .26012        .24727E-03   -.82585    
  29  Prefactor     .79264        .20997        .27001E-03   -1.0000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13672e-11
Minuit parameter uncertainties:
  1  2.2819e-06
  2  76.2871
  3  4.0053e-06
  4  9.02209
  5  17.7304
  6  3.08231e-05
  7  5.28647e-05
  8  9.54776e-05
  9  4.48017e-07
  10  3.2335
  11  0.000122799
  12  2.7927e-07
  13  2.33918
  14  4.56825
  15  2.92124e-06
  16  0.000138878
  17  95.0787
  18  0.627284
  19  1.64802e-06
  20  5.87926e-06
  21  11.64
  22  1.86661
  23  2.29295e-06
  24  9.12963e-06
  25  66.4348
  26  4.80544e-05
  27  14.4496
  28  0.260379
  29  0.210178
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.921e-06  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  7.926e-01  2.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.333e+00  2.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 4.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548271/likelihoodResults_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.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) = 4932.11492604
delta logL = -0.000410880959862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4932.1145151
delta logL = 5.40649125469e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9019       1.0000          .0000       10.000    
     3 'Normalizat'    1.3330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79266       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4932.115     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1027.7        .90712E-02** at limit **
   2  Index         1.8818        8.2515        .50000        .12952E-04
   3  Normalizat    1.3330        .58091E-01    .55918E-01    .65785E-05
   4  Prefactor     .79264        .50598E-01    .43622E-01    .22535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88177
  Normalizat = 1.33305
  Prefactor  = 0.792644
 **********
 **   18 **HESSE 
 **********

 FCN=   4932.115     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2033.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8818        5.9149        .50000       -.67340    
   3  Normalizat    1.3330        .10805        .24727E-03   -.82585    
   4  Prefactor     .79264        .94115E-01    .27001E-03   -1.0000    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.9157e-08
Minuit parameter uncertainties:
  1  0.00108082
  2  53.1879
  3  0.108069
  4  0.094134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548271': 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): 102
logL (Free Index) = 4932.11451502
delta logL = 1.38383256854e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.081e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.882e+00  5.319e+01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  7.926e-01  9.413e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.333e+00  1.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.883 8.302

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/548271/cmap_HighResolution_493084801_493344001_4FGL_J1223.5+0818_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-03', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2021-09-05 11:05:03.745347', job_id='548271', GAL2='0.79', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630865103.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='979' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:05:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 548271: <4FGL_J1223.5+0818_daily_bin979> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin979> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:57 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:50:58 2021
Terminated at Sun Sep  5 11:05:04 2021
Results reported at Sun Sep  5 11:05:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin979 185.883 8.3017 493084801 493344001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.5+0818 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            847 sec.

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

