/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 149 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 = 7409
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin326
RA = 185.883, Dec = 8.3017
tmin = 323827201, tmax = 324086401
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='544904', job_status='RUN', time_executed='2021-09-05 10:43:28.635326', time_epoch_executed='1630863808.64' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544904/ft1_4FGL_J1223.5+0818_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544904/ft2_4FGL_J1223.5+0818_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544904/ft1_4FGL_J1223.5+0818_daily_bin326.fits outfile=/scratch/kocevski/544904/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin326.fits ra=185.883 dec=8.3017 rad=12.0 tmin=323827201.0 tmax=324086401.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.33
user 3.09
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544904/ft1_filtered_4FGL_J1223.5+0818_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/544904/ft2_4FGL_J1223.5+0818_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/544904/ltcube_323827201_324086401_4FGL_J1223.5+0818_daily_bin326.fits outfile=/scratch/kocevski/544904/expmap_323827201_324086401_4FGL_J1223.5+0818_daily_bin326.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/544904/ltcube_323827201_324086401_4FGL_J1223.5+0818_daily_bin326.fits
.....................!
real 190.73
user 185.18
sys 5.09

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/544904/ft1_filtered_4FGL_J1223.5+0818_daily_bin326.fits scfile=/scratch/kocevski/544904/ft2_4FGL_J1223.5+0818_daily_bin326.fits outfile=/scratch/kocevski/544904/cmap_323827201_324086401_4FGL_J1223.5+0818_daily_bin326.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.72
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544904/ft1_filtered_4FGL_J1223.5+0818_daily_bin326.fits scfile=/scratch/kocevski/544904/ft2_4FGL_J1223.5+0818_daily_bin326.fits outfile=/scratch/kocevski/544904/cmap_HighResolution_323827201_324086401_4FGL_J1223.5+0818_daily_bin326.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.78
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11388E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6198       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12726E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.471       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4825       1.0000         .10000E-03   10000.    
    13 'norm      '    .12784E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .40602       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4511       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.553       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0798       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.3983       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2083       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93052       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=   6091.941     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3194 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2912        .15947E-05** at limit **
   2  Prefactor     .10001E-03    202.61        .55739E-05** at limit **
   3  Prefactor     .10000E-03    3.2207       -.16238E-07** at limit **
   4  Prefactor     .10000E-03    2.2201       -.61446E-08** at limit **
   5  Prefactor     7.5540        14.520        .57382E-06    .86573E-04
   6  Prefactor     .10001E-03    91.322       -.64874E-05** at limit **
   7  Prefactor     .10000E-03    86.930       -.27579E-05** at limit **
   8  Prefactor     .10000E-03    36.949        .15186E-05** at limit **
   9  Prefactor     4.6190        3.4701        .36459E-06   -.98243E-04
  10  Prefactor     .10003E-03    5.4208        .31701E-05** at limit **
  11  Prefactor     17.471        19.896        .93298E-07    .39672E-04
  12  Prefactor     7.4540        14.462        .31151E-06    .11259E-03
  13  norm          .10000E-03    2.5868       -.64935E-07** at limit **
  14  norm          .40668        3.8763        .11889E-05    .58994E-03
  15  Prefactor     .10000E-03    8.8494        .93615E-06** at limit **
  16  norm          .10000E-03    27.626       -.19946E-05** at limit **
  17  Prefactor     .10001E-03    79.430        .58042E-05** at limit **
  18  norm          4.4509        .94436        .17681E-07    .13187E-02
  19  Prefactor     .10000E-03    3.7760        .22528E-08** at limit **
  20  Prefactor     53.561        27.869        .17087E-06    .56734E-05
  21  Prefactor     .10000E-03    3.6519       -.43535E-07** at limit **
  22  norm          5.0799        2.1411        .18011E-07    .22984E-03
  23  Prefactor     .10000E-03    5.0873       -.28037E-07** at limit **
  24  Prefactor     .10000E-03    18.228       -.11684E-05** at limit **
  25  Prefactor     .10000E-03    25.998       -.20807E-06** at limit **
  26  Prefactor     6.4023        10.837        .16139E-05    .59695E-03
  27  Prefactor     .10000E-03    20.586        .24038E-05** at limit **
  28  Normalizat    1.2084        .21578       -.26660E-06    .32779E-05
  29  Prefactor     .93042        .17799       -.77853E-08   -.31592E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.55396
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.619
  Prefactor  = 0.000100033
  Prefactor  = 17.4712
  Prefactor  = 7.45404
  norm       = 0.0001
  norm       = 0.406684
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100007
  norm       = 4.45094
  Prefactor  = 0.0001
  Prefactor  = 53.5614
  Prefactor  = 0.0001
  norm       = 5.07987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.40225
  Prefactor  = 0.000100001
  Normalizat = 1.20839
  Prefactor  = 0.930419
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.941     FROM HESSE     STATUS=OK           549 CALLS     3743 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    204.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2259        .13679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2220        .11358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.5540        14.551        .14588E-03   -1.5158    
   6  Prefactor     .10001E-03    92.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    88.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6190        3.2808        .11352E-03   -1.5278    
  10  Prefactor     .10003E-03    9.0840        .18850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.471        19.868        .95821E-04   -1.4872    
  12  Prefactor     7.4540        12.591        .14661E-03   -1.5162    
  13  norm          .10000E-03    4.2258        .21106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .40668        4.1267        .29184E-03   -1.5580    
  15  Prefactor     .10000E-03    8.8720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    27.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    80.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4509        .93898        .31160E-04   -1.5286    
  19  Prefactor     .10000E-03    3.7800        .14809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     53.561        27.921        .54809E-04   -1.4243    
  21  Prefactor     .10000E-03    3.6571        .14567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0799        2.1396        .70155E-04   -1.5257    
  23  Prefactor     .10000E-03    5.0995        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.4023        11.407        .79338E-03   -1.5202    
  27  Prefactor     .10000E-03    21.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2084        .25259        .27868E-03   -.86344    
  29  Prefactor     .93042        .20769        .26826E-03   -.95086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34558e-09
Minuit parameter uncertainties:
  1  0.000136583
  2  0.00211608
  3  1.9539e-06
  4  6.88933e-07
  5  14.5579
  6  0.00183693
  7  0.000697569
  8  0.000214892
  9  3.28093
  10  0.00109728
  11  19.8759
  12  12.5951
  13  1.76162e-05
  14  2.59088
  15  7.77488e-05
  16  0.000292713
  17  0.00146709
  18  0.938985
  19  2.571e-06
  20  27.9281
  21  3.85453e-06
  22  2.13967
  23  3.63539e-06
  24  0.000146569
  25  3.01551e-05
  26  11.4106
  27  0.000252604
  28  0.252844
  29  0.207865
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  7.775e-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:  9.304e-01  2.079e-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.208e+00  2.528e-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: 3.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544904/likelihoodResults_323827201_324086401_4FGL_J1223.5+0818_daily_bin326.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) = 6091.94118221
delta logL = -0.000529860317329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6091.9406523
delta logL = 5.38293534191e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8932       1.0000          .0000       10.000    
     3 'Normalizat'    1.2085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93034       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=   6091.941     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    65.819        .18142E-02** at limit **
   2  Index         1.8355        5.4313        .50000        .21050E-04
   3  Normalizat    1.2084        .13855E-01    .27868E-03   -.40795E-06
   4  Prefactor     .93042        .11942E-01    .26826E-03   -.42380E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101421
  Index      = 1.83555
  Normalizat = 1.20839
  Prefactor  = 0.930419
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.941     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10142E-03    289.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8355        5.9962        .50000       -.68528    
   3  Normalizat    1.2084        .29925E-01    .11147E-04   -.86344    
   4  Prefactor     .93042        .25793E-01    .10730E-04   -.95086    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.40146e-08
Minuit parameter uncertainties:
  1  0.0407666
  2  422.093
  3  0.0299258
  4  0.0257931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544904': 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) = 6091.94065191
delta logL = 4.44924808107e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.014e-04  4.077e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.836e+00  4.221e+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:  9.304e-01  2.579e-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.208e+00  2.993e-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/544904/cmap_HighResolution_323827201_324086401_4FGL_J1223.5+0818_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-03', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2021-09-05 10:56:30.746475', job_id='544904', GAL2='0.93', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630864590.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='326' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:56:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 544904: <4FGL_J1223.5+0818_daily_bin326> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin326> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:40:46 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:40:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:40:48 2021
Terminated at Sun Sep  5 10:56:31 2021
Results reported at Sun Sep  5 10:56:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin326 185.883 8.3017 323827201 324086401 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 :                                   777.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

