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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin693
RA = 185.883, Dec = 8.3017
tmin = 418953601, tmax = 419212801
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='546657', job_status='RUN', time_executed='2021-09-05 10:49:53.346772', time_epoch_executed='1630864193.35' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546657/ft1_4FGL_J1223.5+0818_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546657/ft2_4FGL_J1223.5+0818_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546657/ft1_4FGL_J1223.5+0818_daily_bin693.fits outfile=/scratch/kocevski/546657/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin693.fits ra=185.883 dec=8.3017 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.55
user 5.28
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546657/ft1_filtered_4FGL_J1223.5+0818_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/546657/ft2_4FGL_J1223.5+0818_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/546657/ltcube_418953601_419212801_4FGL_J1223.5+0818_daily_bin693.fits outfile=/scratch/kocevski/546657/expmap_418953601_419212801_4FGL_J1223.5+0818_daily_bin693.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/546657/ltcube_418953601_419212801_4FGL_J1223.5+0818_daily_bin693.fits
.....................!
real 192.94
user 187.46
sys 5.13

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/546657/ft1_filtered_4FGL_J1223.5+0818_daily_bin693.fits scfile=/scratch/kocevski/546657/ft2_4FGL_J1223.5+0818_daily_bin693.fits outfile=/scratch/kocevski/546657/cmap_418953601_419212801_4FGL_J1223.5+0818_daily_bin693.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=185.883 yref=8.3017 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546657/ft1_filtered_4FGL_J1223.5+0818_daily_bin693.fits scfile=/scratch/kocevski/546657/ft2_4FGL_J1223.5+0818_daily_bin693.fits outfile=/scratch/kocevski/546657/cmap_HighResolution_418953601_419212801_4FGL_J1223.5+0818_daily_bin693.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6774       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12062E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1531       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10968E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.634       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.020       1.0000         .10000E-03   10000.    
    22 'norm      '    .39462       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.127       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.334       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4998       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .52685       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=   3991.615     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3674 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.180        .54297E-06** at limit **
   2  Prefactor     .10000E-03    33.138       -.81750E-06** at limit **
   3  Prefactor     5.6777        8.5260        .21277E-05   -.58210E-04
   4  Prefactor     .10001E-03    9.8922       -.71029E-06** at limit **
   5  Prefactor     .10000E-03    10.445        .84155E-07** at limit **
   6  Prefactor     .10000E-03    45.237        .16572E-05** at limit **
   7  Prefactor     .10000E-03    58.683        .11170E-05** at limit **
   8  Prefactor     59.873        33.563       -.23905E-06    .44861E-05
   9  Prefactor     2.1516        2.7221        .53600E-07   -.44663E-04
  10  Prefactor     .10000E-03    2.1692        .11625E-06** at limit **
  11  Prefactor     .10000E-03    39.958        .42351E-06** at limit **
  12  Prefactor     .10000E-03    31.143       -.13006E-05** at limit **
  13  norm          .10000E-03    1.4754       -.18056E-07** at limit **
  14  norm          12.629        5.8500        .83853E-07    .15065E-03
  15  Prefactor     .10000E-03    37.331        .12359E-07** at limit **
  16  norm          .10000E-03    59.380        .73991E-06** at limit **
  17  Prefactor     .10000E-03    71.914       -.37537E-05** at limit **
  18  norm          .10000E-03    .54237       -.26624E-06** at limit **
  19  Prefactor     .10000E-03    14.912       -.85456E-06** at limit **
  20  Prefactor     .10000E-03    16.999        .11987E-05** at limit **
  21  Prefactor     17.019        13.249        .17805E-06    .58012E-04
  22  norm          .39534        2.0656        .10645E-05    .33347E-04
  23  Prefactor     .10000E-03    4.9942       -.23191E-07** at limit **
  24  Prefactor     11.118        34.056       -.80523E-06   -.27804E-04
  25  Prefactor     .10000E-03    34.073       -.59714E-06** at limit **
  26  Prefactor     .10000E-03    8.3273        .41297E-07** at limit **
  27  Prefactor     21.336        18.329        .59916E-07    .72050E-05
  28  Normalizat    1.4998        .24688        .63186E-06    .56332E-04
  29  Prefactor     .52670        .20425       -.15489E-05    .76448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.67771
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 59.8725
  Prefactor  = 2.1516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.6293
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0194
  norm       = 0.395339
  Prefactor  = 0.0001
  Prefactor  = 11.1183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3364
  Normalizat = 1.49982
  Prefactor  = 0.526703
 **********
 **   18 **HESSE 
 **********

 FCN=   3991.615     FROM HESSE     STATUS=OK           545 CALLS     4219 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6777        8.6211        .84292E-03   -1.5231    
   4  Prefactor     .10001E-03    36.962        .37781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    59.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.873        33.488        .51849E-04   -1.4159    
   9  Prefactor     2.1516        2.6757        .11155E-03   -1.5415    
  10  Prefactor     .10000E-03    3.8226        .17758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4925        .74896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.629        5.7273        .94070E-04   -1.4997    
  15  Prefactor     .10000E-03    37.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    59.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    74.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .93973        .84798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.019        13.231        .97083E-04   -1.4883    
  22  norm          .39534        2.0906        .16731E-03   -1.5582    
  23  Prefactor     .10000E-03    4.9989        .13788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.118        34.113        .12010E-03   -1.5041    
  25  Prefactor     .10000E-03    34.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.3564        .17801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.336        18.352        .86718E-04   -1.4784    
  28  Normalizat    1.4998        .28920        .22761E-03   -.77783    
  29  Prefactor     .52670        .23602        .30327E-03   -1.1077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39959e-10
Minuit parameter uncertainties:
  1  0.000136086
  2  0.000170538
  3  8.62297
  4  0.00146378
  5  3.86356e-07
  6  0.000377842
  7  0.000341752
  8  33.4986
  9  2.67586
  10  2.07588e-05
  11  0.000139962
  12  0.000117417
  13  2.66341e-06
  14  5.72752
  15  2.40653e-06
  16  0.00030626
  17  0.00114426
  18  1.52264e-05
  19  9.56061e-05
  20  0.000168336
  21  13.2331
  22  1.81813
  23  2.28228e-07
  24  34.173
  25  0.000134573
  26  2.08019e-06
  27  18.357
  28  0.289515
  29  0.236461
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.407e-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:  5.267e-01  2.365e-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.500e+00  2.895e-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: 8.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546657/likelihoodResults_418953601_419212801_4FGL_J1223.5+0818_daily_bin693.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) = 3991.61549812
delta logL = -0.000127285183225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3991.48028732
delta logL = 0.135083506857

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 'Index     '    6.2094       1.0000          .0000       10.000    
     3 'Normalizat'    1.4613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54878       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=   3991.480     FROM MIGRAD    STATUS=CONVERGED    176 CALLS      529 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .62451E-02    .43256E-03** at limit **
   2  Index         6.2093        2.7785        .98539E-01    .15026E-03
   3  Normalizat    1.4613        .43736E-01    .52007E-01   -.18609E-03
   4  Prefactor     .54875        .36378E-01    .67242E-01   -.12611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.20926
  Normalizat = 1.46129
  Prefactor  = 0.548748
 **********
 **   18 **HESSE 
 **********

 FCN=   3991.480     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      568 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .50371E-01    .23109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.2093        8.0192        .53768E-02    .24427    
   3  Normalizat    1.4613        .99574E-01    .22993E-03   -.78872    
   4  Prefactor     .54875        .82263E-01    .29761E-03   -1.0979    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.51377e-09
Minuit parameter uncertainties:
  1  1.49465e-07
  2  7.53395
  3  0.0995873
  4  0.0822807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546657': 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) = 3991.48028675
delta logL = 0.135084082458

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.495e-07  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  6.209e+00  7.534e+00  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:  5.487e-01  8.228e-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.461e+00  9.959e-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/546657/cmap_HighResolution_418953601_419212801_4FGL_J1223.5+0818_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2021-09-05 11:01:02.256039', job_id='546657', GAL2='0.55', fit_tolerance='1e-08', EG2='1.46', EG='1.50', time_epoch_completed='1630864862.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='1.35e-01', ts2='0.29', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='693' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 546657: <4FGL_J1223.5+0818_daily_bin693> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin693> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:46:02 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:46:03 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:03 2021
Terminated at Sun Sep  5 11:01:03 2021
Results reported at Sun Sep  5 11:01:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin693 185.883 8.3017 418953601 419212801 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 :                                   667.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

