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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin427
RA = 185.883, Dec = 8.3017
tmin = 350006401, tmax = 350265601
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='545033', job_status='RUN', time_executed='2021-09-05 10:43:29.952967', time_epoch_executed='1630863809.95' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/545033

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/545033/ft1_4FGL_J1223.5+0818_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/545033/ft2_4FGL_J1223.5+0818_daily_bin427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/545033/ft1_4FGL_J1223.5+0818_daily_bin427.fits outfile=/scratch/kocevski/545033/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin427.fits ra=185.883 dec=8.3017 rad=12.0 tmin=350006401.0 tmax=350265601.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 4.06
user 3.85
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/545033/ft1_filtered_4FGL_J1223.5+0818_daily_bin427.fits" evtable="EVENTS" scfile=/scratch/kocevski/545033/ft2_4FGL_J1223.5+0818_daily_bin427.fits sctable="SC_DATA" outfile=/scratch/kocevski/545033/ltcube_350006401_350265601_4FGL_J1223.5+0818_daily_bin427.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/545033/ft2_4FGL_J1223.5+0818_daily_bin427.fits
.....................!
real 11.59
user 11.20
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/545033/ft1_filtered_4FGL_J1223.5+0818_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/545033/ft2_4FGL_J1223.5+0818_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/545033/ltcube_350006401_350265601_4FGL_J1223.5+0818_daily_bin427.fits outfile=/scratch/kocevski/545033/expmap_350006401_350265601_4FGL_J1223.5+0818_daily_bin427.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/545033/ltcube_350006401_350265601_4FGL_J1223.5+0818_daily_bin427.fits
.....................!
real 189.94
user 185.45
sys 4.11

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/545033/ft1_filtered_4FGL_J1223.5+0818_daily_bin427.fits scfile=/scratch/kocevski/545033/ft2_4FGL_J1223.5+0818_daily_bin427.fits outfile=/scratch/kocevski/545033/cmap_350006401_350265601_4FGL_J1223.5+0818_daily_bin427.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.65
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/545033/ft1_filtered_4FGL_J1223.5+0818_daily_bin427.fits scfile=/scratch/kocevski/545033/ft2_4FGL_J1223.5+0818_daily_bin427.fits outfile=/scratch/kocevski/545033/cmap_HighResolution_350006401_350265601_4FGL_J1223.5+0818_daily_bin427.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.66
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21136E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11502E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.774       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6715       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7982       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.458       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7508       1.0000         .10000E-03   10000.    
    14 'norm      '    10.381       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10736E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.480       1.0000         .10000E-03   10000.    
    18 'norm      '    .24064       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10806E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.242       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .48729       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8340       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.621       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3749       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81585       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=   5754.094     FROM MIGRAD    STATUS=CONVERGED   1311 CALLS     4317 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2654        .18142E-02** at limit **
   2  Prefactor     .10001E-03    113.60        .22176    ** at limit **
   3  Prefactor     4.2855        8.1596        .19449E-03   -.71666E-04
   4  Prefactor     15.180        9.9212        .10281E-03   -.79617E-05
   5  Prefactor     .10000E-03    6.8365        .18142E-02** at limit **
   6  Prefactor     .10000E-03    37.549        .18142E-02** at limit **
   7  Prefactor     .10000E-03    18.684        .18142E-02** at limit **
   8  Prefactor     10.761        28.098        .12206E-03   -.32320E-04
   9  Prefactor     1.6717        2.2489        .12470E-03   -.11725E-03
  10  Prefactor     1.7987        3.0006        .15774E-03   -.49068E-03
  11  Prefactor     33.459        26.701        .69277E-04   -.18478E-04
  12  Prefactor     .10000E-03    8.6990        .18142E-02** at limit **
  13  norm          2.7511        2.7020        .11676E-03   -.37797E-03
  14  norm          10.382        4.9392        .10086E-03   -.67279E-03
  15  Prefactor     .10000E-03    9.9839        .18142E-02** at limit **
  16  norm          .10000E-03    32.768        .18142E-02** at limit **
  17  Prefactor     49.368        111.78        .28505E-03    .30471E-04
  18  norm          .24073        .49947        .70148E-04   -.19869E-03
  19  Prefactor     .10000E-03    24.751        .36285E-03** at limit **
  20  Prefactor     21.221        29.547        .86906E-04   -.16365E-03
  21  Prefactor     .10000E-03    10.858        .18142E-02** at limit **
  22  norm          .10000E-03    1.5642        .13467E-02** at limit **
  23  Prefactor     .48655        29.070        .39656E-02   -.15714E-03
  24  Prefactor     1.8406        124.64        .30812E-03   -.44239E-04
  25  Prefactor     .10000E-03    152.41        .36285E-03** at limit **
  26  Prefactor     .10000E-03    9.0437        .18142E-02** at limit **
  27  Prefactor     22.644        17.434        .84218E-04   -.13904E-04
  28  Normalizat    1.3747        .25922        .25302E-03   -.92423E-04
  29  Prefactor     .81589        .21065        .27333E-03   -.32119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 4.28546
  Prefactor  = 15.1803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7609
  Prefactor  = 1.67172
  Prefactor  = 1.79868
  Prefactor  = 33.4594
  Prefactor  = 0.0001
  norm       = 2.7511
  norm       = 10.3818
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.3676
  norm       = 0.240725
  Prefactor  = 0.000100001
  Prefactor  = 21.2208
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.486546
  Prefactor  = 1.8406
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 22.644
  Normalizat = 1.37467
  Prefactor  = 0.81589
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.094     FROM HESSE     STATUS=OK           535 CALLS     4852 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    116.39        .21817       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2855        8.1591        .77794E-05   -1.5294    
   4  Prefactor     15.180        9.9209        .41124E-05   -1.4929    
   5  Prefactor     .10000E-03    6.8369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.761        28.091        .48824E-05   -1.5052    
   9  Prefactor     1.6717        2.2485        .49879E-05   -1.5449    
  10  Prefactor     1.7987        2.9998        .63094E-05   -1.5440    
  11  Prefactor     33.459        26.701        .13855E-04   -1.4550    
  12  Prefactor     .10000E-03    8.7003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7511        2.7018        .46706E-05   -1.5376    
  14  norm          10.382        4.9378        .40346E-05   -1.5063    
  15  Prefactor     .10000E-03    9.9840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    32.769        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.368        111.78        .11402E-04   -1.4302    
  18  norm          .24073        .49920        .28059E-05   -1.5610    
  19  Prefactor     .10000E-03    24.752        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.221        29.544        .17381E-04   -1.4786    
  21  Prefactor     .10000E-03    10.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5687        .26934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .48655        29.258        .15862E-03   -1.5568    
  24  Prefactor     1.8406        124.51        .12325E-04   -1.5437    
  25  Prefactor     .10000E-03    152.41        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.0455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     22.644        17.431        .33687E-05   -1.4756    
  28  Normalizat    1.3747        .25943        .50605E-04   -.81364    
  29  Prefactor     .81589        .21071        .54665E-04   -.99145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56351e-09
Minuit parameter uncertainties:
  1  1.62687e-06
  2  0.00242317
  3  8.16124
  4  9.92195
  5  1.41433e-05
  6  2.81067e-05
  7  2.76408e-06
  8  28.1259
  9  2.24859
  10  3.00008
  11  26.7101
  12  1.47698e-05
  13  2.70187
  14  4.93796
  15  6.59982e-05
  16  9.28365e-05
  17  112.258
  18  0.499206
  19  0.000262248
  20  29.5639
  21  8.69055e-05
  22  3.22622e-05
  23  7.54909
  24  30.3419
  25  0.00144026
  26  6.46538e-05
  27  17.4349
  28  0.259677
  29  0.210921
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  6.600e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.159e-01  2.109e-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.375e+00  2.597e-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: 4.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/545033/likelihoodResults_350006401_350265601_4FGL_J1223.5+0818_daily_bin427.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) = 5754.09422733
delta logL = -0.000465855164293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5754.09376262
delta logL = -1.14456906886e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12558E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8992       1.0000          .0000       10.000    
     3 'Normalizat'    1.3747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81588       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=   5754.094     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10239E-03    3.4687        .18142E-01** at limit **
   2  Index         1.8200        6.5146        .50000        .15381E-04
   3  Normalizat    1.3747        .29434E-02    .25302E-03    .31856E-04
   4  Prefactor     .81589        .25371E-02    .27333E-03   -.86100E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102386
  Index      = 1.81996
  Normalizat = 1.37466
  Prefactor  = 0.815894
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.094     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10239E-03    82.484        .24534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8200        5.9062        .50000       -.68931    
   3  Normalizat    1.3747        .14473E-01    .10121E-04   -.81364    
   4  Prefactor     .81589        .12476E-01    .10933E-04   -.99145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0891e-08
Minuit parameter uncertainties:
  1  0.0280974
  2  342.593
  3  0.0144733
  4  0.0124756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/545033': 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) = 5754.09376113
delta logL = 3.42303792422e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.024e-04  2.810e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.820e+00  3.426e+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.159e-01  1.248e-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.375e+00  1.447e-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/545033/cmap_HighResolution_350006401_350265601_4FGL_J1223.5+0818_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2021-09-05 10:57:27.286506', job_id='545033', GAL2='0.82', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630864647.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='427' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:57:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 545033: <4FGL_J1223.5+0818_daily_bin427> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin427> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:41:00 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:41:01 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:41:01 2021
Terminated at Sun Sep  5 10:57:28 2021
Results reported at Sun Sep  5 10:57:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin427 185.883 8.3017 350006401 350265601 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 :                                   831.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

