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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin766
RA = 185.883, Dec = 8.3017
tmin = 437875201, tmax = 438134401
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='547976', job_status='RUN', time_executed='2021-09-05 10:53:44.031377', time_epoch_executed='1630864424.03' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547976/ft1_4FGL_J1223.5+0818_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547976/ft2_4FGL_J1223.5+0818_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547976/ft1_4FGL_J1223.5+0818_daily_bin766.fits outfile=/scratch/kocevski/547976/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin766.fits ra=185.883 dec=8.3017 rad=12.0 tmin=437875201.0 tmax=438134401.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.82
user 5.54
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547976/ft1_filtered_4FGL_J1223.5+0818_daily_bin766.fits" evtable="EVENTS" scfile=/scratch/kocevski/547976/ft2_4FGL_J1223.5+0818_daily_bin766.fits sctable="SC_DATA" outfile=/scratch/kocevski/547976/ltcube_437875201_438134401_4FGL_J1223.5+0818_daily_bin766.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/547976/ft2_4FGL_J1223.5+0818_daily_bin766.fits
.....................!
real 12.63
user 12.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547976/ft1_filtered_4FGL_J1223.5+0818_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/547976/ft2_4FGL_J1223.5+0818_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/547976/ltcube_437875201_438134401_4FGL_J1223.5+0818_daily_bin766.fits outfile=/scratch/kocevski/547976/expmap_437875201_438134401_4FGL_J1223.5+0818_daily_bin766.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/547976/ltcube_437875201_438134401_4FGL_J1223.5+0818_daily_bin766.fits
.....................!
real 191.18
user 185.19
sys 5.53

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/547976/ft1_filtered_4FGL_J1223.5+0818_daily_bin766.fits scfile=/scratch/kocevski/547976/ft2_4FGL_J1223.5+0818_daily_bin766.fits outfile=/scratch/kocevski/547976/cmap_437875201_438134401_4FGL_J1223.5+0818_daily_bin766.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547976/ft1_filtered_4FGL_J1223.5+0818_daily_bin766.fits scfile=/scratch/kocevski/547976/ft2_4FGL_J1223.5+0818_daily_bin766.fits outfile=/scratch/kocevski/547976/cmap_HighResolution_437875201_438134401_4FGL_J1223.5+0818_daily_bin766.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.963       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    103.13       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .60390       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9799       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10926E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5803       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6538       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.5363       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .36465E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    85.255       1.0000         .10000E-03   10000.    
    25 'Prefactor '    57.579       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.149       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.743       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89396       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91506       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=   4538.082     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3174 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.958        39.934       -.63590E-06    .14457E-06
   2  Prefactor     .10000E-03    24.604       -.15751E-04** at limit **
   3  Prefactor     .10000E-03    5.0473        .71051E-07** at limit **
   4  Prefactor     .10000E-03    6.9317        .36596E-07** at limit **
   5  Prefactor     .10000E-03    4.4375       -.29659E-08** at limit **
   6  Prefactor     .10000E-03    21.068        .10227E-04** at limit **
   7  Prefactor     .10000E-03    15.178       -.13246E-05** at limit **
   8  Prefactor     103.13        41.058       -.11901E-06    .12270E-04
   9  Prefactor     .60416        3.3639       -.14224E-05   -.10760E-02
  10  Prefactor     7.2961        4.8020       -.15160E-06    .66743E-04
  11  Prefactor     .10000E-03    37.515        .25771E-04** at limit **
  12  Prefactor     .10000E-03    3.7290       -.89671E-07** at limit **
  13  norm          .10000E-03    .75682       -.95085E-08** at limit **
  14  norm          3.9804        3.9124       -.29191E-07   -.14332E-03
  15  Prefactor     .10000E-03    108.29        .39870E-04** at limit **
  16  norm          .10000E-03    47.346       -.26823E-04** at limit **
  17  Prefactor     .10000E-03    243.89       -.42273E-04** at limit **
  18  norm          1.5803        .76189        .68646E-08    .62774E-03
  19  Prefactor     2.6543        9.3685       -.89746E-06   -.23160E-03
  20  Prefactor     .10000E-03    12.599        .73024E-06** at limit **
  21  Prefactor     .10000E-03    9.6729       -.16401E-06** at limit **
  22  norm          7.5364        2.4144       -.41202E-07    .97771E-04
  23  Prefactor     .10104E-03    7.1493       -.17582E-05** at limit **
  24  Prefactor     85.261        49.657        .21131E-05    .83431E-04
  25  Prefactor     57.578        53.886       -.32115E-06   -.13821E-05
  26  Prefactor     18.146        17.675       -.31712E-06   -.22165E-04
  27  Prefactor     15.744        15.430        .24223E-06   -.48323E-05
  28  Normalizat    .89375        .24952        .70954E-06   -.43124E-05
  29  Prefactor     .91529        .20381       -.46431E-06    .88638E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.9582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.131
  Prefactor  = 0.604158
  Prefactor  = 7.2961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.98043
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58029
  Prefactor  = 2.65429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.53637
  Prefactor  = 0.000101038
  Prefactor  = 85.2611
  Prefactor  = 57.5777
  Prefactor  = 18.1457
  Prefactor  = 15.7444
  Normalizat = 0.893748
  Prefactor  = 0.915291
 **********
 **   18 **HESSE 
 **********

 FCN=   4538.082     FROM HESSE     STATUS=OK           547 CALLS     3721 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.958        39.930        .57900E-04   -1.4322    
   2  Prefactor     .10000E-03    24.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0686        .14780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9763        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4392        .13860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     103.13        41.098        .39593E-04   -1.3673    
   9  Prefactor     .60416        3.2207        .22696E-03   -1.5553    
  10  Prefactor     7.2961        4.7122        .10763E-03   -1.5168    
  11  Prefactor     .10000E-03    37.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7315        .12704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .75795        .57227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9804        3.8991        .12195E-03   -1.5309    
  15  Prefactor     .10000E-03    108.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    47.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    243.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5803        .75500        .36947E-04   -1.5457    
  19  Prefactor     2.6543        9.3654        .25023E-03   -1.5382    
  20  Prefactor     .10000E-03    12.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.5364        2.4124        .55979E-04   -1.5159    
  23  Prefactor     .10104E-03    99.252        .34515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     85.261        49.399        .43508E-04   -1.3859    
  25  Prefactor     57.578        53.888        .52869E-04   -1.4189    
  26  Prefactor     18.146        17.720        .94014E-04   -1.4856    
  27  Prefactor     15.744        15.419        .10094E-03   -1.4914    
  28  Normalizat    .89375        .29449        .30055E-03   -.96680    
  29  Prefactor     .91529        .24092        .25419E-03   -.95609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14418e-08
Minuit parameter uncertainties:
  1  39.9528
  2  5.33192e-07
  3  7.3841e-07
  4  1.96812e-06
  5  1.99995e-07
  6  4.44527e-07
  7  4.82985e-07
  8  41.1095
  9  2.78985
  10  4.71247
  11  0.000164045
  12  1.83612e-07
  13  8.97333e-08
  14  3.89936
  15  0.000420081
  16  4.26214e-05
  17  0.000108996
  18  0.755006
  19  9.37059
  20  7.36734e-06
  21  8.99592e-06
  22  2.41241
  23  0.0203304
  24  49.4225
  25  53.9338
  26  17.7251
  27  15.4228
  28  0.295017
  29  0.241196
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  4.201e-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:  9.153e-01  2.412e-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:  8.937e-01  2.950e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/547976/likelihoodResults_437875201_438134401_4FGL_J1223.5+0818_daily_bin766.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) = 4538.08164028
delta logL = -4.37177650383e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4538.08164027
delta logL = -4.37154785686e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96359E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9220       1.0000          .0000       10.000    
     3 'Normalizat'    .89375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91529       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=   4538.082     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      212 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    9.0581        .90713E-02** at limit **
   2  Index         2.0366        5.8827        .50000       -.93522E-05
   3  Normalizat    .89375        .11490E-02    .67936E-01   -.89271E-06
   4  Prefactor     .91529        .98775E-03    .45200E-01   -.51792E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100266
  Index      = 2.03656
  Normalizat = 0.893749
  Prefactor  = 0.91529
 **********
 **   18 **HESSE 
 **********

 FCN=   4538.082     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    7401.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0366        5.2754        .50000       -.63439    
   3  Normalizat    .89375        .29394E-01    .30055E-03   -.96680    
   4  Prefactor     .91529        .25272E-01    .25419E-03   -.95609    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.45173e-06
Minuit parameter uncertainties:
  1  0.0789388
  2  1322.73
  3  0.0293941
  4  0.0252723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547976': 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) = 4538.08159631
delta logL = 2.48934156843e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.003e-04  7.894e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.037e+00  1.323e+03  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.153e-01  2.527e-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:  8.937e-01  2.939e-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/547976/cmap_HighResolution_437875201_438134401_4FGL_J1223.5+0818_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='8.30e-08', time_completed='2021-09-05 11:04:57.756646', job_id='547976', GAL2='0.92', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630865097.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='766' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:04:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 547976: <4FGL_J1223.5+0818_daily_bin766> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin766 185.883 8.3017 437875201 438134401 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 :                                   671.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            864 sec.

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

