/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 77 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin73
RA = 185.883, Dec = 8.3017
tmin = 258249601, tmax = 258508801
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='543290', job_status='RUN', time_executed='2021-09-05 10:37:13.998973', time_epoch_executed='1630863434.0' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543290

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543290/ft1_4FGL_J1223.5+0818_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543290/ft2_4FGL_J1223.5+0818_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543290/ft1_4FGL_J1223.5+0818_daily_bin73.fits outfile=/scratch/kocevski/543290/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin73.fits ra=185.883 dec=8.3017 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.27
user 0.97
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/543290/ft1_filtered_4FGL_J1223.5+0818_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/543290/ft2_4FGL_J1223.5+0818_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/543290/ltcube_258249601_258508801_4FGL_J1223.5+0818_daily_bin73.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/543290/ft2_4FGL_J1223.5+0818_daily_bin73.fits
.....................!
real 9.15
user 8.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543290/ft1_filtered_4FGL_J1223.5+0818_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/543290/ft2_4FGL_J1223.5+0818_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/543290/ltcube_258249601_258508801_4FGL_J1223.5+0818_daily_bin73.fits outfile=/scratch/kocevski/543290/expmap_258249601_258508801_4FGL_J1223.5+0818_daily_bin73.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/543290/ltcube_258249601_258508801_4FGL_J1223.5+0818_daily_bin73.fits
.....................!
real 190.75
user 184.77
sys 4.48

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/543290/ft1_filtered_4FGL_J1223.5+0818_daily_bin73.fits scfile=/scratch/kocevski/543290/ft2_4FGL_J1223.5+0818_daily_bin73.fits outfile=/scratch/kocevski/543290/cmap_258249601_258508801_4FGL_J1223.5+0818_daily_bin73.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.52
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/543290/ft1_filtered_4FGL_J1223.5+0818_daily_bin73.fits scfile=/scratch/kocevski/543290/ft2_4FGL_J1223.5+0818_daily_bin73.fits outfile=/scratch/kocevski/543290/cmap_HighResolution_258249601_258508801_4FGL_J1223.5+0818_daily_bin73.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.52
user 0.38
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8760       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24320       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20496E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12919E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11059E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    203.63       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2385       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.006       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0596       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.661       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.1456       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.806       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3386       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81518       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=   4200.248     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3783 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2945        .26621E-06** at limit **
   2  Prefactor     .10000E-03    53.919       -.56865E-06** at limit **
   3  Prefactor     .10000E-03    5.6793       -.33890E-06** at limit **
   4  Prefactor     .10000E-03    2.8501       -.18757E-08** at limit **
   5  Prefactor     .10000E-03    8.2157       -.21356E-06** at limit **
   6  Prefactor     .10000E-03    108.55        .15015E-05** at limit **
   7  Prefactor     .10000E-03    16.301       -.20182E-05** at limit **
   8  Prefactor     2.8633        26.069        .63068E-06   -.32109E-04
   9  Prefactor     .24864        2.1322        .32208E-06   -.20443E-03
  10  Prefactor     .10000E-03    2.3666       -.57193E-08** at limit **
  11  Prefactor     .10000E-03    31.368       -.12924E-05** at limit **
  12  Prefactor     .10000E-03    6.4401        .40006E-07** at limit **
  13  norm          .10000E-03    1.2937       -.11908E-07** at limit **
  14  norm          .10000E-03    3.2193        .12245E-05** at limit **
  15  Prefactor     .10000E-03    25.793        .11499E-05** at limit **
  16  norm          .10000E-03    19.468        .70029E-06** at limit **
  17  Prefactor     203.74        224.52        .11288E-04    .16782E-03
  18  norm          4.2395        .94716       -.46718E-07   -.13810E-02
  19  Prefactor     .10000E-03    6.2454       -.94840E-08** at limit **
  20  Prefactor     16.544        26.817        .28953E-06   -.72763E-05
  21  Prefactor     15.004        12.674        .22761E-06    .68862E-06
  22  norm          1.0587        1.8491        .21955E-06   -.28288E-03
  23  Prefactor     14.660        14.526        .23329E-06   -.12523E-04
  24  Prefactor     .10000E-03    16.706        .27873E-05** at limit **
  25  Prefactor     .10000E-03    19.906       -.22794E-05** at limit **
  26  Prefactor     4.1447        10.331        .65053E-05   -.47857E-03
  27  Prefactor     22.808        18.749       -.51303E-06   -.25466E-04
  28  Normalizat    1.3384        .25063       -.12922E-05   -.12249E-03
  29  Prefactor     .81539        .21300       -.93958E-06   -.10947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 2.86334
  Prefactor  = 0.248642
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 203.743
  norm       = 4.23952
  Prefactor  = 0.0001
  Prefactor  = 16.5439
  Prefactor  = 15.0037
  norm       = 1.05871
  Prefactor  = 14.6596
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 4.14471
  Prefactor  = 22.8076
  Normalizat = 1.3384
  Prefactor  = 0.815392
 **********
 **   18 **HESSE 
 **********

 FCN=   4200.248     FROM HESSE     STATUS=OK           549 CALLS     4332 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    53.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7017        .15088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8532        .10685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    108.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8633        26.063        .23967E-03   -1.5370    
   9  Prefactor     .24864        7.8749        .18104E-02   -1.5608    
  10  Prefactor     .10000E-03    2.4032        .97237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    287.28        .68731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.4577        .16060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3065        .71948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.6917        .21383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     203.74        234.28        .14160E-03   -1.2843    
  18  norm          4.2395        .93905        .27663E-04   -1.5296    
  19  Prefactor     .10000E-03    6.2516        .15813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.544        26.858        .98467E-04   -1.4894    
  21  Prefactor     15.004        12.676        .10340E-03   -1.4933    
  22  norm          1.0587        1.7963        .10970E-03   -1.5502    
  23  Prefactor     14.660        14.517        .10460E-03   -1.4942    
  24  Prefactor     .10000E-03    17.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.1447        10.757        .98983E-03   -1.5301    
  27  Prefactor     22.808        18.789        .83875E-04   -1.4752    
  28  Normalizat    1.3384        .29982        .25819E-03   -.82427    
  29  Prefactor     .81539        .25587        .27881E-03   -.99163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80404e-09
Minuit parameter uncertainties:
  1  3.35268e-05
  2  0.000154711
  3  2.85107e-05
  4  1.79646e-06
  5  2.04812e-05
  6  0.000705436
  7  0.000332239
  8  17.2872
  9  2.79843
  10  4.34103e-06
  11  0.00197792
  12  1.17358e-05
  13  1.88849e-06
  14  0.000326378
  15  8.26824e-05
  16  0.000102876
  17  235.364
  18  0.939056
  19  1.40715e-06
  20  26.8772
  21  12.6782
  22  1.79641
  23  14.5209
  24  0.000480345
  25  0.000421826
  26  10.7623
  27  18.7934
  28  0.300208
  29  0.25624
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  8.268e-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:  8.154e-01  2.562e-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.338e+00  3.002e-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: 7.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/543290/likelihoodResults_258249601_258508801_4FGL_J1223.5+0818_daily_bin73.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) = 4200.24795139
delta logL = -0.000184343227374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4200.16538949
delta logL = 0.0823775575418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52195       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4008       1.0000          .0000       10.000    
     3 'Normalizat'    1.3079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82997       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=   4200.165     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      288 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52194        40.834        .11360E-01    .33234E-03
   2  Index         3.4008        3.5783        .94840E-01    .14126E-03
   3  Normalizat    1.3078        .46826E-01    .58945E-01    .46159E-05
   4  Prefactor     .83001        .40766E-01    .44106E-01    .10798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.52194
  Index      = 3.40076
  Normalizat = 1.3078
  Prefactor  = 0.830006
 **********
 **   18 **HESSE 
 **********

 FCN=   4200.165     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      321 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52194        167.21        .11351E-03   -1.5563    
   2  Index         3.4008        5.2367        .75984E-02   -.32557    
   3  Normalizat    1.3078        .23942        .26068E-03   -.83334    
   4  Prefactor     .83001        .20518        .27630E-03   -.98632    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.36474e-08
Minuit parameter uncertainties:
  1  18.7354
  2  11.3157
  3  0.239623
  4  0.205368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543290': 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) = 4200.16538947
delta logL = 0.0823775825929

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  5.219e-01  1.874e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  3.401e+00  1.132e+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:  8.300e-01  2.054e-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.308e+00  2.396e-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/543290/cmap_HighResolution_258249601_258508801_4FGL_J1223.5+0818_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.61e-08', time_completed='2021-09-05 10:48:08.071087', job_id='543290', GAL2='0.83', fit_tolerance='1e-08', EG2='1.31', EG='1.34', time_epoch_completed='1630864088.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='8.24e-02', ts2='0.18', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='73' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:48:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 543290: <4FGL_J1223.5+0818_daily_bin73> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin73> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:35:35 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:35:36 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:35:36 2021
Terminated at Sun Sep  5 10:48:08 2021
Results reported at Sun Sep  5 10:48:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin73 185.883 8.3017 258249601 258508801 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 :                                   652.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

