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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin176
RA = 185.883, Dec = 8.3017
tmin = 284947201, tmax = 285206401
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='544658', job_status='RUN', time_executed='2021-09-05 10:42:32.185162', time_epoch_executed='1630863752.19' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='176'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544658/ft1_4FGL_J1223.5+0818_daily_bin176.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544658/ft2_4FGL_J1223.5+0818_daily_bin176.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544658/ft1_4FGL_J1223.5+0818_daily_bin176.fits outfile=/scratch/kocevski/544658/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin176.fits ra=185.883 dec=8.3017 rad=12.0 tmin=284947201.0 tmax=285206401.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.56
user 3.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544658/ft1_filtered_4FGL_J1223.5+0818_daily_bin176.fits evtable="EVENTS" scfile=/scratch/kocevski/544658/ft2_4FGL_J1223.5+0818_daily_bin176.fits sctable="SC_DATA" expcube=/scratch/kocevski/544658/ltcube_284947201_285206401_4FGL_J1223.5+0818_daily_bin176.fits outfile=/scratch/kocevski/544658/expmap_284947201_285206401_4FGL_J1223.5+0818_daily_bin176.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/544658/ltcube_284947201_285206401_4FGL_J1223.5+0818_daily_bin176.fits
.....................!
real 191.56
user 186.22
sys 4.90

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/544658/ft1_filtered_4FGL_J1223.5+0818_daily_bin176.fits scfile=/scratch/kocevski/544658/ft2_4FGL_J1223.5+0818_daily_bin176.fits outfile=/scratch/kocevski/544658/cmap_284947201_285206401_4FGL_J1223.5+0818_daily_bin176.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/544658/ft1_filtered_4FGL_J1223.5+0818_daily_bin176.fits scfile=/scratch/kocevski/544658/ft2_4FGL_J1223.5+0818_daily_bin176.fits outfile=/scratch/kocevski/544658/cmap_HighResolution_284947201_285206401_4FGL_J1223.5+0818_daily_bin176.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.57
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .80922E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.088       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5429       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.433       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77125E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20347E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11221E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4128       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7930       1.0000         .10000E-03   10000.    
    14 'norm      '    5.8797       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25871E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .22033E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    166.64       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0668       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    79.667       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.430       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5289       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9188       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.1579       1.0000         .10000E-03   10000.    
    25 'Prefactor '    25.115       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.350       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94985       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2013       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.386     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     2180 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1821       -.19839E-05** at limit **
   2  Prefactor     .11239E-03    193.49       -.12009E-04** at limit **
   3  Prefactor     11.035        11.283        .58696E-07   -.58984E-03
   4  Prefactor     2.5287        7.5434       -.24279E-05   -.28973E-03
   5  Prefactor     25.417        10.028        .53958E-06   -.52606E-03
   6  Prefactor     .10000E-03    44.145        .17716E-06** at limit **
   7  Prefactor     .10000E-03    24.402       -.18305E-05** at limit **
   8  Prefactor     .10000E-03    11.754       -.35463E-05** at limit **
   9  Prefactor     .10000E-03    .54101        .29409E-06** at limit **
  10  Prefactor     .10000E-03    .57041       -.19169E-06** at limit **
  11  Prefactor     7.4795        6.0622       -.10248E-05   -.46367E-02
  12  Prefactor     .10000E-03    13.902        .34987E-06** at limit **
  13  norm          2.7959        2.3584        .67846E-07    .42440E-04
  14  norm          5.8694        4.8075       -.18127E-06    .70851E-04
  15  Prefactor     .10000E-03    20.436        .22432E-05** at limit **
  16  norm          .15258E-03    23.711        .42403E-05** at limit **
  17  Prefactor     168.94        116.92       -.19032E-05   -.99205E-03
  18  norm          4.0702        .94125        .15084E-07    .36213E-03
  19  Prefactor     .10000E-03    13.412        .10649E-05** at limit **
  20  Prefactor     80.918        38.375        .61581E-06    .22489E-02
  21  Prefactor     12.225        10.499       -.64777E-06   -.21823E-03
  22  norm          6.5294        2.2857        .58435E-07    .23402E-03
  23  Prefactor     3.9645        6.9213        .12287E-05    .12643E-03
  24  Prefactor     6.5129        22.548        .40367E-05   -.13025E-02
  25  Prefactor     24.978        5.5298       -.19507E-06   -.94662E-02
  26  Prefactor     .10000E-03    5.5495        .94077E-06** at limit **
  27  Prefactor     21.319        13.871        .71583E-06   -.12199E-01
  28  Normalizat    .94825        .26120        .25832E-05    .14669E-03
  29  Prefactor     1.2026        .21585       -.97505E-06    .12478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000112389
  Prefactor  = 11.0352
  Prefactor  = 2.52866
  Prefactor  = 25.4167
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.47947
  Prefactor  = 0.0001
  norm       = 2.79586
  norm       = 5.86941
  Prefactor  = 0.000100002
  norm       = 0.000152578
  Prefactor  = 168.942
  norm       = 4.07025
  Prefactor  = 0.0001
  Prefactor  = 80.918
  Prefactor  = 12.2253
  norm       = 6.52939
  Prefactor  = 3.96452
  Prefactor  = 6.51288
  Prefactor  = 24.9779
  Prefactor  = 0.0001
  Prefactor  = 21.3187
  Normalizat = 0.948255
  Prefactor  = 1.20263
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.386     FROM HESSE     STATUS=OK           613 CALLS     2793 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11239E-03    204.32        .94199E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.035        11.405        .30078E-02   -1.5043    
   4  Prefactor     2.5287        7.5630        .64021E-02   -1.5390    
   5  Prefactor     25.417        18.983        .19858E-02   -1.4699    
   6  Prefactor     .10000E-03    44.145        .94016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.364        .10107E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .54035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .56962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.4795        23.651        .36827E-02   -1.5161    
  12  Prefactor     .10000E-03    13.819        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7959        2.3629        .60863E-02   -1.5374    
  14  norm          5.8694        4.9070        .41404E-02   -1.5223    
  15  Prefactor     .10000E-03    20.412        .10726E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .15258E-03    123.12        .10070E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     168.94        117.41        .78119E-03   -1.3101    
  18  norm          4.0702        .94089        .49983E-02   -1.5304    
  19  Prefactor     .10000E-03    13.329        .10702E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     80.918        38.382        .11249E-02   -1.3906    
  21  Prefactor     12.225        10.508        .28404E-02   -1.5009    
  22  norm          6.5294        2.2872        .39265E-02   -1.5197    
  23  Prefactor     3.9645        6.9363        .50949E-02   -1.5310    
  24  Prefactor     6.5129        23.003        .37483E-02   -1.5198    
  25  Prefactor     24.978        25.967        .19983E-02   -1.4708    
  26  Prefactor     .10000E-03    5.5335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.319        18.279        .21671E-02   -1.4784    
  28  Normalizat    .94825        .22337        .76460E-01   -.94785    
  29  Prefactor     1.2026        .18384        .59569E-01   -.86250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29632e-06
Minuit parameter uncertainties:
  1  8.43821e-05
  2  0.100968
  3  11.4071
  4  7.56581
  5  18.9872
  6  0.000213403
  7  0.00025895
  8  0.000177853
  9  3.205e-06
  10  2.1531e-06
  11  23.6804
  12  4.2018e-06
  13  2.36302
  14  4.90738
  15  0.000374663
  16  0.16125
  17  117.575
  18  0.94089
  19  6.40629e-05
  20  38.3935
  21  10.5094
  22  2.28726
  23  6.93766
  24  23.0345
  25  25.9786
  26  3.35525e-05
  27  18.2839
  28  0.223585
  29  0.18394
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  3.747e-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.203e+00  1.839e-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:  9.483e-01  2.236e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544658/likelihoodResults_284947201_285206401_4FGL_J1223.5+0818_daily_bin176.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) = 6899.38580341
delta logL = -0.000232885035075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.38557073
delta logL = -2.09910467674e-07

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 'Index     '    1.8371       1.0000          .0000       10.000    
     3 'Normalizat'    .94828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2026       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=   6899.386     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      243 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    617.92        .90712E-02** at limit **
   2  Index         1.8539        6.2541        .50000       -.71351E-05
   3  Normalizat    .94825        .32231E-01    .76460E-01    .22505E-04
   4  Prefactor     1.2026        .28014E-01    .59569E-01    .13954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85389
  Normalizat = 0.948253
  Prefactor  = 1.20263
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.386     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1247.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8539        5.3440        .50000       -.68055    
   3  Normalizat    .94825        .48378E-01    .33839E-03   -.94785    
   4  Prefactor     1.2026        .42102E-01    .26342E-03   -.86250    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.81302e-09
Minuit parameter uncertainties:
  1  0.000413395
  2  31.9839
  3  0.0483804
  4  0.042103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544658': 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) = 6899.38557066
delta logL = -1.35861228046e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  4.134e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.854e+00  3.198e+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.203e+00  4.210e-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:  9.483e-01  4.838e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/544658/cmap_HighResolution_284947201_285206401_4FGL_J1223.5+0818_daily_bin176.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-05 10:55:06.250111', job_id='544658', GAL2='1.20', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630864506.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-1.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='176' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:55:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 544658: <4FGL_J1223.5+0818_daily_bin176> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin176> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:40:26 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:40:28 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:40:28 2021
Terminated at Sun Sep  5 10:55:07 2021
Results reported at Sun Sep  5 10:55:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin176 185.883 8.3017 284947201 285206401 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 :                                   748.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            881 sec.

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

