/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 45 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 = 7389
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin76
RA = 185.883, Dec = 8.3017
tmin = 259027201, tmax = 259286401
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='543294', job_status='RUN', time_executed='2021-09-05 10:36:31.441714', time_epoch_executed='1630863391.44' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543294

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543294/ft1_4FGL_J1223.5+0818_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543294/ft2_4FGL_J1223.5+0818_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543294/ft1_4FGL_J1223.5+0818_daily_bin76.fits outfile=/scratch/kocevski/543294/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin76.fits ra=185.883 dec=8.3017 rad=12.0 tmin=259027201.0 tmax=259286401.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 1.50
user 1.28
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543294/ft1_filtered_4FGL_J1223.5+0818_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/543294/ft2_4FGL_J1223.5+0818_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/543294/ltcube_259027201_259286401_4FGL_J1223.5+0818_daily_bin76.fits outfile=/scratch/kocevski/543294/expmap_259027201_259286401_4FGL_J1223.5+0818_daily_bin76.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/543294/ltcube_259027201_259286401_4FGL_J1223.5+0818_daily_bin76.fits
.....................!
real 191.19
user 185.50
sys 4.54

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/543294/ft1_filtered_4FGL_J1223.5+0818_daily_bin76.fits scfile=/scratch/kocevski/543294/ft2_4FGL_J1223.5+0818_daily_bin76.fits outfile=/scratch/kocevski/543294/cmap_259027201_259286401_4FGL_J1223.5+0818_daily_bin76.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.420       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.394       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .92569       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19101E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28588E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6132       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.7630       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.5895       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.619       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1462       1.0000         .10000E-03   10000.    
    22 'norm      '    .57748       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.1576       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.551       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.524       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .76584       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0582       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=   6571.471     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3724 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.121       -.13028E-06** at limit **
   2  Prefactor     .10000E-03    41.842        .89972E-06** at limit **
   3  Prefactor     .10000E-03    11.944        .10900E-06** at limit **
   4  Prefactor     22.421        9.3202        .62881E-07   -.24970E-04
   5  Prefactor     5.8472        16.265        .87807E-06   -.49081E-04
   6  Prefactor     .10000E-03    37.528        .27879E-06** at limit **
   7  Prefactor     41.386        31.301       -.11258E-06   -.38773E-04
   8  Prefactor     7.4026        10.204        .34052E-07   -.29777E-04
   9  Prefactor     .92503        2.1796        .78607E-06    .65789E-03
  10  Prefactor     .10000E-03    1.7322       -.15850E-06** at limit **
  11  Prefactor     .10000E-03    133.82       -.13093E-05** at limit **
  12  Prefactor     .10000E-03    5.0178        .85235E-07** at limit **
  13  norm          .10000E-03    1.0980        .73414E-07** at limit **
  14  norm          3.6068        4.5433        .37004E-05   -.56092E-03
  15  Prefactor     .10000E-03    35.588       -.29329E-06** at limit **
  16  norm          6.7390        84.974       -.13075E-04   -.40029E-04
  17  Prefactor     .10000E-03    46.229       -.69658E-06** at limit **
  18  norm          4.5899        .77407       -.11303E-06   -.39053E-03
  19  Prefactor     21.622        12.429        .17100E-06   -.65968E-04
  20  Prefactor     .10000E-03    17.315        .64148E-07** at limit **
  21  Prefactor     1.1465        7.0884        .23224E-05   -.11706E-04
  22  norm          .57750        1.3391        .30791E-06   -.78560E-04
  23  Prefactor     9.1574        10.533       -.11091E-06   -.14633E-03
  24  Prefactor     15.550        28.450        .14135E-06   -.42854E-04
  25  Prefactor     .10000E-03    15.444        .28125E-06** at limit **
  26  Prefactor     .10000E-03    7.7838       -.30811E-07** at limit **
  27  Prefactor     25.534        16.016        .49760E-06   -.56552E-04
  28  Normalizat    .76557        .20177       -.41788E-05   -.36899E-03
  29  Prefactor     1.0584        .16730        .12691E-05   -.34538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4208
  Prefactor  = 5.84717
  Prefactor  = 0.0001
  Prefactor  = 41.3858
  Prefactor  = 7.40257
  Prefactor  = 0.925025
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.60678
  Prefactor  = 0.0001
  norm       = 6.73901
  Prefactor  = 0.0001
  norm       = 4.58989
  Prefactor  = 21.622
  Prefactor  = 0.0001
  Prefactor  = 1.14651
  norm       = 0.577499
  Prefactor  = 9.1574
  Prefactor  = 15.5503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5344
  Normalizat = 0.765566
  Prefactor  = 1.05842
 **********
 **   18 **HESSE 
 **********

 FCN=   6571.471     FROM HESSE     STATUS=OK           559 CALLS     4283 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.421        9.3195        .84594E-04   -1.4761    
   5  Prefactor     5.8472        16.262        .16618E-03   -1.5224    
   6  Prefactor     .10000E-03    37.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.386        31.324        .62305E-04   -1.4420    
   8  Prefactor     7.4026        10.190        .14741E-03   -1.5164    
   9  Prefactor     .92503        1.9710        .17127E-02   -1.5516    
  10  Prefactor     .10000E-03    3.0977        .19889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    139.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.682        .34054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2406        .15970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6068        4.5170        .69810E-03   -1.5328    
  15  Prefactor     .10000E-03    35.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.7390        84.839        .15429E-03   -1.5189    
  17  Prefactor     .10000E-03    46.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5899        .77393        .26242E-04   -1.5279    
  19  Prefactor     21.622        12.429        .86144E-04   -1.4778    
  20  Prefactor     .10000E-03    17.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1465        7.0745        .41228E-03   -1.5494    
  22  norm          .57750        1.3143        .13288E-03   -1.5556    
  23  Prefactor     9.1574        10.484        .13244E-03   -1.5103    
  24  Prefactor     15.550        28.427        .10157E-03   -1.4919    
  25  Prefactor     .10000E-03    15.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.8740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     25.534        16.027        .79291E-04   -1.4697    
  28  Normalizat    .76557        .22970        .30802E-03   -1.0136    
  29  Prefactor     1.0584        .19251        .23378E-03   -.90807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16533e-10
Minuit parameter uncertainties:
  1  5.14645e-05
  2  3.74358e-05
  3  3.20144e-05
  4  9.32012
  5  16.2746
  6  3.56166e-05
  7  31.3361
  8  10.1922
  9  1.97114
  10  1.92693e-05
  11  0.00104994
  12  2.6707e-06
  13  6.32512e-06
  14  4.51746
  15  0.000156513
  16  47.9057
  17  1.261e-05
  18  0.773935
  19  12.4301
  20  1.8817e-05
  21  5.6967
  22  1.31434
  23  10.4859
  24  28.4513
  25  4.0051e-06
  26  5.49652e-06
  27  16.0296
  28  0.229988
  29  0.192636
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.565e-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.058e+00  1.926e-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:  7.656e-01  2.300e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/543294/likelihoodResults_259027201_259286401_4FGL_J1223.5+0818_daily_bin76.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) = 6571.47126376
delta logL = -0.000132752056743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6571.47113643
delta logL = -5.42184716323e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44523E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0141       1.0000          .0000       10.000    
     3 'Normalizat'    .76557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0584       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=   6571.471     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5636        .10607E-01** at limit **
   2  Index         2.0130        5.8682        .50000        .82266E-05
   3  Normalizat    .76557        .23678E-02    .69607E-01   -.11734E-04
   4  Prefactor     1.0584        .20930E-02    .39440E-01    .16236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.01298
  Normalizat = 0.765566
  Prefactor  = 1.05842
 **********
 **   18 **HESSE 
 **********

 FCN=   6571.471     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      265 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.756        .21214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0130        8.5477        .50000       -.64026    
   3  Normalizat    .76557        .70002E-02    .30802E-03   -1.0136    
   4  Prefactor     1.0584        .61981E-02    .23378E-03   -.90807    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.01054e-08
Minuit parameter uncertainties:
  1  0.00109298
  2  89.4776
  3  0.00700019
  4  0.0061981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543294': 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) = 6571.47113114
delta logL = -1.36424205266e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.093e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.013e+00  8.948e+01  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.058e+00  6.198e-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:  7.656e-01  7.000e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/543294/cmap_HighResolution_259027201_259286401_4FGL_J1223.5+0818_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-03', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-05 10:50:43.876672', job_id='543294', GAL2='1.06', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630864243.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-1.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='76' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 543294: <4FGL_J1223.5+0818_daily_bin76> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin76> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:35:35 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:35:37 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:35:37 2021
Terminated at Sun Sep  5 10:50:44 2021
Results reported at Sun Sep  5 10:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin76 185.883 8.3017 259027201 259286401 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 :                                   850.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

