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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin670
RA = 185.883, Dec = 8.3017
tmin = 412992001, tmax = 413251201
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='546634', job_status='RUN', time_executed='2021-09-05 10:50:05.248870', time_epoch_executed='1630864205.25' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546634/ft1_4FGL_J1223.5+0818_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546634/ft2_4FGL_J1223.5+0818_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546634/ft1_4FGL_J1223.5+0818_daily_bin670.fits outfile=/scratch/kocevski/546634/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin670.fits ra=185.883 dec=8.3017 rad=12.0 tmin=412992001.0 tmax=413251201.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.54
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546634/ft2_4FGL_J1223.5+0818_daily_bin670.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/546634/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin670.fits evtable="EVENTS" outfile="/scratch/kocevski/546634/ft1_filtered_4FGL_J1223.5+0818_daily_bin670.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546634/ft1_filtered_4FGL_J1223.5+0818_daily_bin670.fits" evtable="EVENTS" scfile=/scratch/kocevski/546634/ft2_4FGL_J1223.5+0818_daily_bin670.fits sctable="SC_DATA" outfile=/scratch/kocevski/546634/ltcube_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.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/546634/ft2_4FGL_J1223.5+0818_daily_bin670.fits
.....................!
real 11.69
user 11.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546634/ft1_filtered_4FGL_J1223.5+0818_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/546634/ft2_4FGL_J1223.5+0818_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/546634/ltcube_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.fits outfile=/scratch/kocevski/546634/expmap_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.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/546634/ltcube_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.fits
.....................!
real 190.28
user 184.75
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 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/546634/ft1_filtered_4FGL_J1223.5+0818_daily_bin670.fits scfile=/scratch/kocevski/546634/ft2_4FGL_J1223.5+0818_daily_bin670.fits outfile=/scratch/kocevski/546634/cmap_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.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.63
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546634/ft1_filtered_4FGL_J1223.5+0818_daily_bin670.fits scfile=/scratch/kocevski/546634/ft2_4FGL_J1223.5+0818_daily_bin670.fits outfile=/scratch/kocevski/546634/cmap_HighResolution_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.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.53
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/546634/ft1_filtered_4FGL_J1223.5+0818_daily_bin670.fits', '/scratch/kocevski/546634/ft2_4FGL_J1223.5+0818_daily_bin670.fits', expMap='/scratch/kocevski/546634/expmap_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.fits', expCube='/scratch/kocevski/546634/ltcube_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/546634/Model_4FGL_J1223.5+0818_daily_bin670.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/546634/ft1_filtered_4FGL_J1223.5+0818_daily_bin670.fits
Spacecraft file(s): /scratch/kocevski/546634/ft2_4FGL_J1223.5+0818_daily_bin670.fits
Exposure map: /scratch/kocevski/546634/expmap_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.fits
Exposure cube: /scratch/kocevski/546634/ltcube_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/546634/Model_4FGL_J1223.5+0818_daily_bin670.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) = 2163.56356633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .79056E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9786       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.514       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33510E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.296       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .93983       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.133       1.0000         .10000E-03   10000.    
    20 'Prefactor '    60.479       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.642       1.0000         .10000E-03   10000.    
    23 'Prefactor '    228.56       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.462       1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.764       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97548       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .66721       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=   2163.466     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3659 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    138.92        .86210E-05** at limit **
   2  Prefactor     .10000E-03    89.928        .13883E-04** at limit **
   3  Prefactor     .10136E-03    21.258        .64514E-05** at limit **
   4  Prefactor     2.9838        76.145        .18664E-05   -.22143E-04
   5  Prefactor     17.493        25.879        .33106E-05    .50846E-03
   6  Prefactor     .10000E-03    390.74       -.31421E-03** at limit **
   7  Prefactor     .10000E-03    53.207       -.15492E-04** at limit **
   8  Prefactor     .10000E-03    141.86        .34138E-05** at limit **
   9  Prefactor     13.297        5.7745        .77775E-07   -.44488E-05
  10  Prefactor     .10000E-03    1.4473       -.63365E-07** at limit **
  11  Prefactor     .10000E-03    24.060        .67023E-06** at limit **
  12  Prefactor     .10000E-03    42.335        .19969E-04** at limit **
  13  norm          .10000E-03    10.453        .49635E-07** at limit **
  14  norm          .10000E-03    4.4556        .53155E-07** at limit **
  15  Prefactor     .10000E-03    33.365       -.16350E-04** at limit **
  16  norm          .10000E-03    63.782       -.27463E-04** at limit **
  17  Prefactor     .10000E-03    118.09        .31809E-04** at limit **
  18  norm          .94006        2.3721       -.73804E-06   -.66470E-03
  19  Prefactor     13.133        16.548       -.16029E-05   -.10874E-04
  20  Prefactor     60.497        46.448        .89542E-05    .19190E-05
  21  Prefactor     .10000E-03    50.783       -.83916E-05** at limit **
  22  norm          11.643        6.6531       -.51522E-06    .36740E-04
  23  Prefactor     228.64        181.95        .49237E-04    .58641E-05
  24  Prefactor     .10000E-03    75.598       -.13135E-04** at limit **
  25  Prefactor     .10000E-03    40.112        .22485E-04** at limit **
  26  Prefactor     21.466        25.089        .13820E-06   -.47891E-04
  27  Prefactor     30.767        23.356        .28804E-06   -.20473E-04
  28  Normalizat    .97538        .35958       -.20709E-05   -.13660E-05
  29  Prefactor     .66708        .27928       -.22555E-05   -.45533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101364
  Prefactor  = 2.98377
  Prefactor  = 17.493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.940059
  Prefactor  = 13.133
  Prefactor  = 60.4968
  Prefactor  = 0.0001
  norm       = 11.6427
  Prefactor  = 228.639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4663
  Prefactor  = 30.7674
  Normalizat = 0.975376
  Prefactor  = 0.667085
 **********
 **   18 **HESSE 
 **********

 FCN=   2163.466     FROM HESSE     STATUS=OK           547 CALLS     4206 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    138.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    89.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10136E-03    114.46        .40794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9838        76.158        .23525E-03   -1.5362    
   5  Prefactor     17.493        25.738        .95704E-04   -1.4871    
   6  Prefactor     .10000E-03    391.40        .19705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    141.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.297        5.7954        .68259E-04   -1.4978    
  10  Prefactor     .10000E-03    1.4498        .54615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.453        .14689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.4591        .95871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    63.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    118.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .94006        2.1671        .10540E-02   -1.5514    
  19  Prefactor     13.133        16.541        .11053E-03   -1.4983    
  20  Prefactor     60.497        46.491        .51593E-04   -1.4151    
  21  Prefactor     .10000E-03    50.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.643        6.5866        .83667E-04   -1.5025    
  23  Prefactor     228.64        181.91        .13383E-03   -1.2672    
  24  Prefactor     .10000E-03    75.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    40.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.466        25.097        .86460E-04   -1.4781    
  27  Prefactor     30.767        23.378        .72238E-04   -1.4598    
  28  Normalizat    .97538        .41687        .30801E-03   -.93860    
  29  Prefactor     .66708        .32115        .29401E-03   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.292e-08
Minuit parameter uncertainties:
  1  7.80478e-06
  2  8.22292e-06
  3  0.0250371
  4  30.1913
  5  25.7542
  6  0.000678804
  7  6.35458e-06
  8  1.84564e-05
  9  5.79565
  10  3.50171e-09
  11  1.84685e-06
  12  1.11071e-05
  13  3.55496e-06
  14  4.56848e-06
  15  2.28867e-05
  16  2.68769e-05
  17  1.36076e-05
  18  2.16731
  19  16.5463
  20  46.5189
  21  0.000114303
  22  6.58703
  23  182.362
  24  0.000238237
  25  3.33052e-06
  26  25.1093
  27  23.3849
  28  0.418267
  29  0.32204
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.289e-05  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:  6.671e-01  3.220e-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:  9.754e-01  4.183e-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: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546634/likelihoodResults_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.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) = 2163.46645214
delta logL = -0.000141887195241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2163.46631106
delta logL = -8.11991867522e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1469       1.0000          .0000       10.000    
     3 'Normalizat'    .97538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66708       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2163.466     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      287 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10436E-03    7.6794        .18142E-01** at limit **
   2  Index         2.0497        5.0505        .50000        .15479E-04
   3  Normalizat    .97537        .48252E-02    .30801E-03   -.54406E-04
   4  Prefactor     .66709        .38928E-02    .29402E-03   -.62196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104362
  Index      = 2.04969
  Normalizat = 0.975374
  Prefactor  = 0.667086
 **********
 **   18 **HESSE 
 **********

 FCN=   2163.466     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10436E-03    114.33        .23300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0497        6.7046        .50000       -.63114    
   3  Normalizat    .97537        .18691E-01    .12320E-04   -.93860    
   4  Prefactor     .66709        .15080E-01    .11761E-04   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.76314e-09
Minuit parameter uncertainties:
  1  0.0447474
  2  225.356
  3  0.0186916
  4  0.0150797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546634': 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) = 2163.46631073
delta logL = -4.80051767227e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.044e-04  4.475e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.050e+00  2.254e+02  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:  6.671e-01  1.508e-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:  9.754e-01  1.869e-02  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/546634/cmap_HighResolution_412992001_413251201_4FGL_J1223.5+0818_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.94e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-05 10:58:05.638580', job_id='546634', GAL2='0.67', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630864685.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='-4.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='670' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:58:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 546634: <4FGL_J1223.5+0818_daily_bin670> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin670> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:45:59 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:46:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:46:00 2021
Terminated at Sun Sep  5 10:58:06 2021
Results reported at Sun Sep  5 10:58:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin670 185.883 8.3017 412992001 413251201 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 :                                   479.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             201.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

