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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin479
RA = 185.883, Dec = 8.3017
tmin = 363484801, tmax = 363744001
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='546307', job_status='RUN', time_executed='2021-09-05 10:49:41.716069', time_epoch_executed='1630864181.72' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546307

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546307/ft1_4FGL_J1223.5+0818_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546307/ft2_4FGL_J1223.5+0818_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546307/ft1_4FGL_J1223.5+0818_daily_bin479.fits outfile=/scratch/kocevski/546307/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin479.fits ra=185.883 dec=8.3017 rad=12.0 tmin=363484801.0 tmax=363744001.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.68
user 3.44
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546307/ft1_filtered_4FGL_J1223.5+0818_daily_bin479.fits" evtable="EVENTS" scfile=/scratch/kocevski/546307/ft2_4FGL_J1223.5+0818_daily_bin479.fits sctable="SC_DATA" outfile=/scratch/kocevski/546307/ltcube_363484801_363744001_4FGL_J1223.5+0818_daily_bin479.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/546307/ft2_4FGL_J1223.5+0818_daily_bin479.fits
.....................!
real 12.56
user 12.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546307/ft1_filtered_4FGL_J1223.5+0818_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/546307/ft2_4FGL_J1223.5+0818_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/546307/ltcube_363484801_363744001_4FGL_J1223.5+0818_daily_bin479.fits outfile=/scratch/kocevski/546307/expmap_363484801_363744001_4FGL_J1223.5+0818_daily_bin479.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/546307/ltcube_363484801_363744001_4FGL_J1223.5+0818_daily_bin479.fits
.....................!
real 191.30
user 185.52
sys 5.39

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/546307/ft1_filtered_4FGL_J1223.5+0818_daily_bin479.fits scfile=/scratch/kocevski/546307/ft2_4FGL_J1223.5+0818_daily_bin479.fits outfile=/scratch/kocevski/546307/cmap_363484801_363744001_4FGL_J1223.5+0818_daily_bin479.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/546307/ft1_filtered_4FGL_J1223.5+0818_daily_bin479.fits scfile=/scratch/kocevski/546307/ft2_4FGL_J1223.5+0818_daily_bin479.fits outfile=/scratch/kocevski/546307/cmap_HighResolution_363484801_363744001_4FGL_J1223.5+0818_daily_bin479.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9501       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6438       1.0000         .10000E-03   10000.    
     6 'Prefactor '    93.942       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.651       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9096       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7454       1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    50.724       1.0000         .10000E-03   10000.    
    17 'Prefactor '    95.142       1.0000         .10000E-03   10000.    
    18 'norm      '    .74314       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5476       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9455       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.504       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1841       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88036       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=   5411.993     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3652 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.445        .22621E-06** at limit **
   2  Prefactor     .10000E-03    56.586       -.45951E-05** at limit **
   3  Prefactor     .10000E-03    5.1148        .24572E-07** at limit **
   4  Prefactor     3.9518        7.7816       -.20820E-05    .17231E-03
   5  Prefactor     4.6458        16.490       -.21418E-05    .22632E-04
   6  Prefactor     93.938        87.002        .60290E-06    .24549E-04
   7  Prefactor     .10000E-03    56.719       -.49358E-05** at limit **
   8  Prefactor     .10000E-03    9.5575        .23558E-06** at limit **
   9  Prefactor     .10000E-03    .97407       -.14696E-06** at limit **
  10  Prefactor     .10000E-03    1.1062       -.17195E-06** at limit **
  11  Prefactor     21.652        25.306       -.30401E-06    .41850E-04
  12  Prefactor     1.9171        35.800       -.10506E-04    .61785E-04
  13  norm          1.7447        2.4376        .96709E-06    .43815E-03
  14  norm          .10000E-03    1.8251       -.31890E-06** at limit **
  15  Prefactor     .10000E-03    32.669        .13213E-05** at limit **
  16  norm          50.733        49.697       -.93337E-07    .19311E-04
  17  Prefactor     95.116        101.13        .34161E-05    .47557E-04
  18  norm          .74287        .72323       -.78610E-07    .16203E-02
  19  Prefactor     7.5473        7.8926       -.12614E-06    .40108E-04
  20  Prefactor     .10000E-03    19.267       -.94079E-06** at limit **
  21  Prefactor     .10000E-03    2.9412        .47489E-07** at limit **
  22  norm          1.9459        1.9702       -.33623E-06    .28848E-03
  23  Prefactor     .10000E-03    2.7594        .94432E-08** at limit **
  24  Prefactor     .10000E-03    11.564       -.15861E-06** at limit **
  25  Prefactor     .10000E-03    31.448        .12716E-05** at limit **
  26  Prefactor     .10000E-03    74.715       -.16508E-04** at limit **
  27  Prefactor     20.495        15.692        .16736E-06    .80172E-04
  28  Normalizat    1.1842        .20982        .36113E-06    .38957E-03
  29  Prefactor     .88021        .17652        .20323E-05    .24008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.95178
  Prefactor  = 4.64583
  Prefactor  = 93.9378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6524
  Prefactor  = 1.91712
  norm       = 1.74474
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 50.7331
  Prefactor  = 95.1162
  norm       = 0.742865
  Prefactor  = 7.54732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.94591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.495
  Normalizat = 1.18417
  Prefactor  = 0.880206
 **********
 **   18 **HESSE 
 **********

 FCN=   5411.993     FROM HESSE     STATUS=OK           543 CALLS     4195 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1316        .16244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9518        7.7325        .20296E-03   -1.5310    
   5  Prefactor     4.6458        16.440        .18676E-03   -1.5277    
   6  Prefactor     93.938        86.850        .41465E-04   -1.3766    
   7  Prefactor     .10000E-03    57.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.5718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .98204        .70915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1166        .75567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.652        25.292        .86081E-04   -1.4777    
  12  Prefactor     1.9171        34.967        .30085E-03   -1.5431    
  13  norm          1.7447        2.4052        .11018E-03   -1.5444    
  14  norm          .10000E-03    1.8375        .96626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          50.733        49.469        .56309E-04   -1.4282    
  17  Prefactor     95.116        101.45        .20603E-03   -1.3754    
  18  norm          .74287        .68214        .50469E-04   -1.5536    
  19  Prefactor     7.5473        7.8922        .14598E-03   -1.5158    
  20  Prefactor     .10000E-03    19.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9461        .12321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9459        1.9402        .95573E-04   -1.5429    
  23  Prefactor     .10000E-03    2.7604        .11935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    31.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    73.071        .42864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     20.495        15.499        .88454E-04   -1.4802    
  28  Normalizat    1.1842        .24142        .25900E-03   -.87094    
  29  Prefactor     .88021        .20383        .25393E-03   -.96836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54021e-10
Minuit parameter uncertainties:
  1  1.34833e-05
  2  0.000469867
  3  7.92358e-06
  4  7.73446
  5  16.4559
  6  86.9674
  7  0.000215756
  8  2.80685e-05
  9  2.02338e-06
  10  2.27136e-06
  11  25.3047
  12  16.3858
  13  2.40534
  14  1.56978e-05
  15  0.000120842
  16  49.509
  17  101.633
  18  0.682147
  19  7.89327
  20  5.74737e-05
  21  1.15714e-06
  22  1.9403
  23  1.46902e-07
  24  8.77176e-06
  25  0.000104463
  26  0.000181391
  27  15.5019
  28  0.241649
  29  0.204007
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.208e-04  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.802e-01  2.040e-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.184e+00  2.416e-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: 5.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546307/likelihoodResults_363484801_363744001_4FGL_J1223.5+0818_daily_bin479.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) = 5411.99316081
delta logL = -0.00014433211345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5411.99301686
delta logL = -3.74517185264e-07

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     '    2.0540       1.0000          .0000       10.000    
     3 'Normalizat'    1.1842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88020       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=   5411.993     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      243 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.441        .90712E-02** at limit **
   2  Index         2.0057        8.8904        .50000        .12306E-04
   3  Normalizat    1.1842        .31334E-02    .58565E-01   -.30558E-03
   4  Prefactor     .88021        .27053E-02    .44752E-01   -.32083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.00567
  Normalizat = 1.18416
  Prefactor  = 0.880206
 **********
 **   18 **HESSE 
 **********

 FCN=   5411.993     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0057        8.2834        .50000       -.64208    
   3  Normalizat    1.1842        .93540E-02    .25900E-03   -.87094    
   4  Prefactor     .88021        .80787E-02    .25393E-03   -.96836    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42443e-07
Minuit parameter uncertainties:
  1  0.000493213
  2  120.039
  3  0.00935401
  4  0.00807869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546307': 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) = 5411.99301669
delta logL = -2.11664882954e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  4.932e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.006e+00  1.200e+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:  8.802e-01  8.079e-03  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.184e+00  9.354e-03  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/546307/cmap_HighResolution_363484801_363744001_4FGL_J1223.5+0818_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', job_status='DONE', photon_flux_upper_limit='5.02e-08', time_completed='2021-09-05 11:02:06.451825', job_id='546307', GAL2='0.88', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630864926.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-2.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='479' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:02:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 546307: <4FGL_J1223.5+0818_daily_bin479> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin479 185.883 8.3017 363484801 363744001 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

