/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 98 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 = 7457
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin782
RA = 185.883, Dec = 8.3017
tmin = 442022401, tmax = 442281601
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='548000', job_status='RUN', time_executed='2021-09-05 10:52:31.688407', time_epoch_executed='1630864351.69' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548000/ft1_4FGL_J1223.5+0818_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548000/ft2_4FGL_J1223.5+0818_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548000/ft1_4FGL_J1223.5+0818_daily_bin782.fits outfile=/scratch/kocevski/548000/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin782.fits ra=185.883 dec=8.3017 rad=12.0 tmin=442022401.0 tmax=442281601.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.74
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548000/ft2_4FGL_J1223.5+0818_daily_bin782.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/548000/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin782.fits evtable="EVENTS" outfile="/scratch/kocevski/548000/ft1_filtered_4FGL_J1223.5+0818_daily_bin782.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/548000/ft1_filtered_4FGL_J1223.5+0818_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/548000/ft2_4FGL_J1223.5+0818_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/548000/ltcube_442022401_442281601_4FGL_J1223.5+0818_daily_bin782.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/548000/ft2_4FGL_J1223.5+0818_daily_bin782.fits
.....................!
real 11.84
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548000/ft1_filtered_4FGL_J1223.5+0818_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/548000/ft2_4FGL_J1223.5+0818_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/548000/ltcube_442022401_442281601_4FGL_J1223.5+0818_daily_bin782.fits outfile=/scratch/kocevski/548000/expmap_442022401_442281601_4FGL_J1223.5+0818_daily_bin782.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/548000/ltcube_442022401_442281601_4FGL_J1223.5+0818_daily_bin782.fits
.....................!
real 190.45
user 185.20
sys 4.72

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/548000/ft1_filtered_4FGL_J1223.5+0818_daily_bin782.fits scfile=/scratch/kocevski/548000/ft2_4FGL_J1223.5+0818_daily_bin782.fits outfile=/scratch/kocevski/548000/cmap_442022401_442281601_4FGL_J1223.5+0818_daily_bin782.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548000/ft1_filtered_4FGL_J1223.5+0818_daily_bin782.fits scfile=/scratch/kocevski/548000/ft2_4FGL_J1223.5+0818_daily_bin782.fits outfile=/scratch/kocevski/548000/cmap_HighResolution_442022401_442281601_4FGL_J1223.5+0818_daily_bin782.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0373       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19226E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3573       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .97643       1.0000         .10000E-03   10000.    
    14 'norm      '    7.4528       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .83521       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5079       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.542       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.2759       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.717       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.790       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1403       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97231       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=   6515.957     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3693 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.610       -.22005E-04** at limit **
   2  Prefactor     .10000E-03    24.209        .12614E-04** at limit **
   3  Prefactor     .10000E-03    6.2080       -.10245E-05** at limit **
   4  Prefactor     1.0351        4.5695       -.22856E-05   -.11581E-02
   5  Prefactor     .10000E-03    16.978       -.41251E-05** at limit **
   6  Prefactor     .10000E-03    34.751       -.18643E-04** at limit **
   7  Prefactor     .10000E-03    54.175        .23088E-04** at limit **
   8  Prefactor     .10000E-03    7.6973        .30061E-05** at limit **
   9  Prefactor     .41361E-01    1.1726        .13794E-06   -.95517E-03
  10  Prefactor     .10000E-03    1.1294        .12176E-07** at limit **
  11  Prefactor     8.3373        28.091       -.10394E-04   -.33051E-04
  12  Prefactor     .10000E-03    4.3194        .27050E-08** at limit **
  13  norm          .97700        1.6021       -.41538E-06   -.12844E-02
  14  norm          7.4550        3.5638        .20922E-06   -.17806E-03
  15  Prefactor     .10000E-03    8.0214       -.48590E-05** at limit **
  16  norm          .10000E-03    27.031        .17147E-05** at limit **
  17  Prefactor     .10000E-03    55.340        .24809E-04** at limit **
  18  norm          .83516        .49102        .27342E-07   -.10998E-03
  19  Prefactor     6.5095        6.8853       -.18109E-06    .24664E-04
  20  Prefactor     13.546        26.686        .10045E-05   -.49446E-05
  21  Prefactor     .10000E-03    4.3229       -.71787E-07** at limit **
  22  norm          5.2765        1.8626        .94228E-07   -.58047E-04
  23  Prefactor     .10000E-03    8.5714        .17500E-05** at limit **
  24  Prefactor     29.699        41.147       -.14121E-04   -.82113E-05
  25  Prefactor     .10000E-03    17.076       -.46077E-05** at limit **
  26  Prefactor     19.804        13.256       -.10435E-05    .30078E-05
  27  Prefactor     .10000E-03    12.867        .74651E-06** at limit **
  28  Normalizat    1.1399        .19475        .92999E-06    .64519E-04
  29  Prefactor     .97246        .16375        .13940E-05    .26854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.03509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0413611
  Prefactor  = 0.0001
  Prefactor  = 8.33729
  Prefactor  = 0.0001
  norm       = 0.977001
  norm       = 7.45497
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.835158
  Prefactor  = 6.50948
  Prefactor  = 13.5465
  Prefactor  = 0.0001
  norm       = 5.27654
  Prefactor  = 0.0001
  Prefactor  = 29.6992
  Prefactor  = 0.0001
  Prefactor  = 19.8044
  Prefactor  = 0.0001
  Normalizat = 1.13992
  Prefactor  = 0.97246
 **********
 **   18 **HESSE 
 **********

 FCN=   6515.957     FROM HESSE     STATUS=OK           553 CALLS     4246 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.535        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.2560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0351        4.6309        .34147E-03   -1.5504    
   5  Prefactor     .10000E-03    17.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .41361E-01    33.995        .16709E-02   -1.5667    
  10  Prefactor     .10000E-03    1.1408        .83654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3373        28.095        .13867E-03   -1.5130    
  12  Prefactor     .10000E-03    4.3360        .16375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .97700        1.3405        .12738E-02   -1.5510    
  14  norm          7.4550        3.5602        .95411E-04   -1.5162    
  15  Prefactor     .10000E-03    8.0107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    27.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .83516        .47871        .40096E-04   -1.5525    
  19  Prefactor     6.5095        6.8737        .15732E-03   -1.5198    
  20  Prefactor     13.546        26.725        .10884E-03   -1.4972    
  21  Prefactor     .10000E-03    4.3564        .16389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.2765        1.8603        .62058E-04   -1.5249    
  23  Prefactor     .10000E-03    8.6620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.699        41.114        .73496E-04   -1.4617    
  25  Prefactor     .10000E-03    17.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.804        13.334        .90034E-04   -1.4818    
  27  Prefactor     .10000E-03    13.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1399        .23106        .26555E-03   -.88480    
  29  Prefactor     .97246        .19204        .25038E-03   -.93653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47276e-08
Minuit parameter uncertainties:
  1  0.000503959
  2  4.20999e-06
  3  7.8362e-06
  4  4.3791
  5  2.21839e-05
  6  9.75088e-06
  7  4.33864e-05
  8  1.55955e-06
  9  2.37003
  10  4.97482e-06
  11  28.1399
  12  2.31964e-06
  13  1.34055
  14  3.56032
  15  1.21523e-06
  16  1.31873e-05
  17  2.58522e-06
  18  0.478714
  19  6.87449
  20  26.7487
  21  3.50994e-06
  22  1.86032
  23  4.36543e-05
  24  41.1532
  25  7.66069e-06
  26  13.3362
  27  9.77013e-06
  28  0.231268
  29  0.192171
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.215e-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:  9.725e-01  1.922e-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.140e+00  2.313e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548000/likelihoodResults_442022401_442281601_4FGL_J1223.5+0818_daily_bin782.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) = 6515.95713535
delta logL = -0.000590030659623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6515.95654544
delta logL = -1.27409293782e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8924       1.0000          .0000       10.000    
     3 'Normalizat'    1.1401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97231       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=   6515.957     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10234E-03    2.9236        .18142E-01** at limit **
   2  Index         1.8168        5.8144        .50000        .22491E-04
   3  Normalizat    1.1399        .27128E-02    .26555E-03   -.10703E-05
   4  Prefactor     .97246        .23964E-02    .25038E-03   -.86270E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010234
  Index      = 1.81684
  Normalizat = 1.13992
  Prefactor  = 0.972461
 **********
 **   18 **HESSE 
 **********

 FCN=   6515.957     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10234E-03    58.118        .23646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8168        8.5948        .50000       -.69012    
   3  Normalizat    1.1399        .12177E-01    .10622E-04   -.88480    
   4  Prefactor     .97246        .10757E-01    .10015E-04   -.93653    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00587e-08
Minuit parameter uncertainties:
  1  0.0233474
  2  236.025
  3  0.0121773
  4  0.0107571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548000': 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) = 6515.95654476
delta logL = 5.57245584787e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.023e-04  2.335e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.817e+00  2.360e+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.725e-01  1.076e-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.140e+00  1.218e-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/548000/cmap_HighResolution_442022401_442281601_4FGL_J1223.5+0818_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2021-09-05 11:06:41.696272', job_id='548000', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630865201.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='782' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:06:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 548000: <4FGL_J1223.5+0818_daily_bin782> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin782> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:36 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:37 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:37 2021
Terminated at Sun Sep  5 11:06:43 2021
Results reported at Sun Sep  5 11:06:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin782 185.883 8.3017 442022401 442281601 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 :                                   846.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

