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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin907
RA = 185.883, Dec = 8.3017
tmin = 474422401, tmax = 474681601
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='548187', job_status='RUN', time_executed='2021-09-05 10:53:22.909767', time_epoch_executed='1630864402.91' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548187

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548187/ft1_4FGL_J1223.5+0818_daily_bin907.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548187/ft2_4FGL_J1223.5+0818_daily_bin907.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548187/ft1_4FGL_J1223.5+0818_daily_bin907.fits outfile=/scratch/kocevski/548187/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin907.fits ra=185.883 dec=8.3017 rad=12.0 tmin=474422401.0 tmax=474681601.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.44
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548187/ft1_filtered_4FGL_J1223.5+0818_daily_bin907.fits" evtable="EVENTS" scfile=/scratch/kocevski/548187/ft2_4FGL_J1223.5+0818_daily_bin907.fits sctable="SC_DATA" outfile=/scratch/kocevski/548187/ltcube_474422401_474681601_4FGL_J1223.5+0818_daily_bin907.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/548187/ft2_4FGL_J1223.5+0818_daily_bin907.fits
.....................!
real 11.70
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548187/ft1_filtered_4FGL_J1223.5+0818_daily_bin907.fits evtable="EVENTS" scfile=/scratch/kocevski/548187/ft2_4FGL_J1223.5+0818_daily_bin907.fits sctable="SC_DATA" expcube=/scratch/kocevski/548187/ltcube_474422401_474681601_4FGL_J1223.5+0818_daily_bin907.fits outfile=/scratch/kocevski/548187/expmap_474422401_474681601_4FGL_J1223.5+0818_daily_bin907.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/548187/ltcube_474422401_474681601_4FGL_J1223.5+0818_daily_bin907.fits
.....................!
real 190.86
user 185.98
sys 4.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/548187/ft1_filtered_4FGL_J1223.5+0818_daily_bin907.fits scfile=/scratch/kocevski/548187/ft2_4FGL_J1223.5+0818_daily_bin907.fits outfile=/scratch/kocevski/548187/cmap_474422401_474681601_4FGL_J1223.5+0818_daily_bin907.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.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.607       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 '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2163       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9294       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3925       1.0000         .10000E-03   10000.    
    14 'norm      '    .27652E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.567       1.0000         .10000E-03   10000.    
    18 'norm      '    8.2502       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8582       1.0000         .10000E-03   10000.    
    22 'norm      '    4.0819       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9801       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2837       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84198       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1512       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=   6880.239     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3161 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.607        18.559        .15996E-07    .10988E-06
   2  Prefactor     .10002E-03    43.254        .70461E-05** at limit **
   3  Prefactor     .10000E-03    3.5774        .20236E-07** at limit **
   4  Prefactor     .10000E-03    2.0218       -.15203E-08** at limit **
   5  Prefactor     .10000E-03    4.5325        .75295E-08** at limit **
   6  Prefactor     .10001E-03    82.470       -.46880E-05** at limit **
   7  Prefactor     .10000E-03    7.2687        .20439E-06** at limit **
   8  Prefactor     .10000E-03    32.753       -.19042E-05** at limit **
   9  Prefactor     2.2163        1.9490        .15587E-07   -.16603E-04
  10  Prefactor     2.2741        2.3467        .85637E-07   -.73558E-04
  11  Prefactor     .10000E-03    15.788        .11632E-05** at limit **
  12  Prefactor     4.9293        9.6216        .42370E-05   -.59623E-03
  13  norm          5.3926        3.0873       -.50579E-06    .25613E-04
  14  norm          .10000E-03    1.5017       -.45012E-07** at limit **
  15  Prefactor     .10000E-03    9.2478        .21671E-05** at limit **
  16  norm          .10000E-03    31.594       -.21870E-05** at limit **
  17  Prefactor     62.564        72.725       -.46084E-06   -.25287E-04
  18  norm          8.2500        .99972       -.21515E-07    .38489E-03
  19  Prefactor     .10000E-03    3.7369        .13335E-07** at limit **
  20  Prefactor     .10000E-03    27.248       -.16059E-05** at limit **
  21  Prefactor     7.8589        7.8905       -.24332E-07    .23210E-04
  22  norm          4.0818        1.7373        .20466E-07    .80564E-05
  23  Prefactor     .10000E-03    8.3209       -.12352E-05** at limit **
  24  Prefactor     .10000E-03    11.397       -.18471E-05** at limit **
  25  Prefactor     .10000E-03    23.404        .13958E-05** at limit **
  26  Prefactor     3.9804        8.5472        .20556E-06   -.60537E-04
  27  Prefactor     1.2835        13.493        .20078E-05   -.11521E-03
  28  Normalizat    .84194        .19273       -.36600E-06   -.12771E-05
  29  Prefactor     1.1513        .17048       -.20987E-06    .23955E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6072
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.21633
  Prefactor  = 2.27408
  Prefactor  = 0.000100001
  Prefactor  = 4.92929
  norm       = 5.39264
  norm       = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Prefactor  = 62.5644
  norm       = 8.25003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.85889
  norm       = 4.08184
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 3.98035
  Prefactor  = 1.28348
  Normalizat = 0.841937
  Prefactor  = 1.15127
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.239     FROM HESSE     STATUS=OK           547 CALLS     3708 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.607        18.561        .98282E-04   -1.4893    
   2  Prefactor     .10002E-03    46.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5846        .15321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0253        .11518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5370        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    84.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2163        1.9460        .10398E-03   -1.5410    
  10  Prefactor     2.2741        2.3320        .12266E-03   -1.5406    
  11  Prefactor     .10000E-03    15.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9293        10.271        .90576E-03   -1.5264    
  13  norm          5.3926        3.1218        .97755E-04   -1.5243    
  14  norm          .10000E-03    15.775        .18950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    31.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.564        72.722        .50730E-04   -1.4124    
  18  norm          8.2500        .97455        .26359E-04   -1.5133    
  19  Prefactor     .10000E-03    3.7446        .15659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8589        7.8871        .14304E-03   -1.5147    
  22  norm          4.0818        1.7352        .68281E-04   -1.5304    
  23  Prefactor     .10000E-03    8.4576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.9804        8.5239        .20217E-03   -1.5309    
  27  Prefactor     1.2835        13.718        .39148E-03   -1.5481    
  28  Normalizat    .84194        .22958        .31475E-03   -.98531    
  29  Prefactor     1.1513        .20454        .24632E-03   -.87844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05743e-09
Minuit parameter uncertainties:
  1  18.5677
  2  0.00191779
  3  1.86016e-06
  4  1.3735e-08
  5  1.31259e-06
  6  0.00168447
  7  2.20106e-05
  8  0.000394971
  9  1.94609
  10  2.33204
  11  0.00018551
  12  10.2747
  13  3.12187
  14  0.000319427
  15  0.000268505
  16  0.000488141
  17  72.8255
  18  0.974553
  19  1.86396e-06
  20  0.00032137
  21  7.8881
  22  1.73521
  23  0.000137825
  24  0.00025106
  25  0.000271657
  26  8.52649
  27  8.39409
  28  0.229843
  29  0.20468
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.685e-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:  1.151e+00  2.047e-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.419e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 3.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548187/likelihoodResults_474422401_474681601_4FGL_J1223.5+0818_daily_bin907.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) = 6880.23929446
delta logL = -0.000496755508721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6880.23879743
delta logL = 2.743472578e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8846       1.0000          .0000       10.000    
     3 'Normalizat'    .84192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1513       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=   6880.239     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      253 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10140E-03    53.615        .18142E-02** at limit **
   2  Index         1.8276        6.0432        .50000        .24880E-04
   3  Normalizat    .84194        .10657E-01    .31475E-03    .77223E-04
   4  Prefactor     1.1513        .96554E-02    .24632E-03   -.31847E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101402
  Index      = 1.82759
  Normalizat = 0.841938
  Prefactor  = 1.15127
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.239     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10140E-03    235.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8276        5.1851        .50000       -.68734    
   3  Normalizat    .84194        .22823E-01    .12590E-04   -.98531    
   4  Prefactor     1.1513        .20678E-01    .98526E-05   -.87844    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43387e-08
Minuit parameter uncertainties:
  1  0.0365112
  2  273.55
  3  0.0228228
  4  0.0206782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548187': 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) = 6880.2387971
delta logL = 6.01449755777e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.014e-04  3.651e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.828e+00  2.735e+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:  1.151e+00  2.068e-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.419e-01  2.282e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/548187/cmap_HighResolution_474422401_474681601_4FGL_J1223.5+0818_daily_bin907.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-03', job_status='DONE', photon_flux_upper_limit='3.86e-08', time_completed='2021-09-05 11:07:19.090604', job_id='548187', GAL2='1.15', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630865239.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='907' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:07:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 548187: <4FGL_J1223.5+0818_daily_bin907> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin907 185.883 8.3017 474422401 474681601 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 :                                   834.01 sec.
    Max Memory :                                 1116 MB
    Average Memory :                             310.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

