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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin927
RA = 185.883, Dec = 8.3017
tmin = 479606401, tmax = 479865601
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='548217', job_status='RUN', time_executed='2021-09-05 10:53:13.192821', time_epoch_executed='1630864393.19' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548217/ft1_4FGL_J1223.5+0818_daily_bin927.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548217/ft2_4FGL_J1223.5+0818_daily_bin927.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548217/ft1_4FGL_J1223.5+0818_daily_bin927.fits outfile=/scratch/kocevski/548217/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin927.fits ra=185.883 dec=8.3017 rad=12.0 tmin=479606401.0 tmax=479865601.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.40
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548217/ft1_filtered_4FGL_J1223.5+0818_daily_bin927.fits" evtable="EVENTS" scfile=/scratch/kocevski/548217/ft2_4FGL_J1223.5+0818_daily_bin927.fits sctable="SC_DATA" outfile=/scratch/kocevski/548217/ltcube_479606401_479865601_4FGL_J1223.5+0818_daily_bin927.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/548217/ft2_4FGL_J1223.5+0818_daily_bin927.fits
.....................!
real 11.83
user 11.42
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548217/ft1_filtered_4FGL_J1223.5+0818_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/548217/ft2_4FGL_J1223.5+0818_daily_bin927.fits sctable="SC_DATA" expcube=/scratch/kocevski/548217/ltcube_479606401_479865601_4FGL_J1223.5+0818_daily_bin927.fits outfile=/scratch/kocevski/548217/expmap_479606401_479865601_4FGL_J1223.5+0818_daily_bin927.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/548217/ltcube_479606401_479865601_4FGL_J1223.5+0818_daily_bin927.fits
.....................!
real 190.68
user 184.63
sys 5.69

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/548217/ft1_filtered_4FGL_J1223.5+0818_daily_bin927.fits scfile=/scratch/kocevski/548217/ft2_4FGL_J1223.5+0818_daily_bin927.fits outfile=/scratch/kocevski/548217/cmap_479606401_479865601_4FGL_J1223.5+0818_daily_bin927.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548217/ft1_filtered_4FGL_J1223.5+0818_daily_bin927.fits scfile=/scratch/kocevski/548217/ft2_4FGL_J1223.5+0818_daily_bin927.fits outfile=/scratch/kocevski/548217/cmap_HighResolution_479606401_479865601_4FGL_J1223.5+0818_daily_bin927.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/548217/ft1_filtered_4FGL_J1223.5+0818_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/548217/ft2_4FGL_J1223.5+0818_daily_bin927.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548217/Model_4FGL_J1223.5+0818_daily_bin927.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/548217/ft1_filtered_4FGL_J1223.5+0818_daily_bin927.fits.....................!
real 53.20
user 51.74
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    94.168       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.736       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3445       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.920       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37561       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3790       1.0000         .10000E-03   10000.    
    14 'norm      '    .13012E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    57.563       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10667E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1898       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.659       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9816       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11553E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1462       1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.647       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4338       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .66673       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=   5670.365     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3750 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.767        30.511        .24998E-04   -.16688E-04
   2  Prefactor     94.138        104.15       -.25873E-04    .10911E-04
   3  Prefactor     .10000E-03    4.8638        .85006E-07** at limit **
   4  Prefactor     .10000E-03    2.2881       -.13619E-06** at limit **
   5  Prefactor     .10000E-03    6.1428       -.12898E-07** at limit **
   6  Prefactor     45.736        89.514       -.15657E-05    .10414E-04
   7  Prefactor     .10000E-03    23.802        .20599E-05** at limit **
   8  Prefactor     .10000E-03    7.4186       -.10711E-06** at limit **
   9  Prefactor     6.3439        2.8592       -.28786E-07    .14876E-04
  10  Prefactor     .10000E-03    1.3188       -.38299E-07** at limit **
  11  Prefactor     18.926        34.209       -.48416E-05    .51752E-04
  12  Prefactor     .36259        8.6005        .24733E-05   -.96189E-03
  13  norm          3.3794        2.7255       -.27851E-06   -.83954E-03
  14  norm          .10000E-03    2.1987       -.40475E-06** at limit **
  15  Prefactor     .10000E-03    17.126       -.29171E-05** at limit **
  16  norm          57.585        53.139        .92536E-05    .41339E-04
  17  Prefactor     .10000E-03    314.36       -.26769E-04** at limit **
  18  norm          4.1900        .90863       -.17836E-06    .46814E-03
  19  Prefactor     23.660        14.219        .35112E-06    .10794E-04
  20  Prefactor     .10000E-03    15.962        .22698E-05** at limit **
  21  Prefactor     7.9811        7.7979       -.21243E-08   -.76015E-04
  22  norm          .10000E-03    .82893       -.31418E-07** at limit **
  23  Prefactor     .10000E-03    4.0896       -.14086E-07** at limit **
  24  Prefactor     .10000E-03    11.373       -.10314E-06** at limit **
  25  Prefactor     .10000E-03    47.647       -.20377E-05** at limit **
  26  Prefactor     2.1173        21.566       -.50186E-05   -.14901E-03
  27  Prefactor     18.658        14.473       -.41425E-06    .71094E-04
  28  Normalizat    1.4339        .22416        .38157E-05   -.24324E-03
  29  Prefactor     .66674        .18169       -.37611E-05    .12831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.767
  Prefactor  = 94.1378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.7356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.34392
  Prefactor  = 0.0001
  Prefactor  = 18.9256
  Prefactor  = 0.362592
  norm       = 3.3794
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 57.5852
  Prefactor  = 0.0001
  norm       = 4.18996
  Prefactor  = 23.6601
  Prefactor  = 0.0001
  Prefactor  = 7.9811
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.11732
  Prefactor  = 18.6582
  Normalizat = 1.43394
  Prefactor  = 0.666744
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.365     FROM HESSE     STATUS=OK           549 CALLS     4299 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.767        30.393        .11663E-03   -1.5022    
   2  Prefactor     94.138        104.48        .41416E-04   -1.3764    
   3  Prefactor     .10000E-03    4.8706        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2907        .11124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.736        89.876        .59286E-04   -1.4354    
   7  Prefactor     .10000E-03    23.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3439        2.8574        .82660E-04   -1.5204    
  10  Prefactor     .10000E-03    1.3563        .16865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.926        33.192        .92079E-04   -1.4838    
  12  Prefactor     .36259        106.25        .38732E-02   -1.5588    
  13  norm          3.3794        2.8839        .10135E-03   -1.5340    
  14  norm          .10000E-03    30.526        .19226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          57.585        52.257        .52876E-04   -1.4189    
  17  Prefactor     .10000E-03    316.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1900        .89398        .29184E-04   -1.5299    
  19  Prefactor     23.660        14.240        .82352E-04   -1.4735    
  20  Prefactor     .10000E-03    16.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.9811        7.7971        .14192E-03   -1.5143    
  22  norm          .10000E-03    .86139        .13369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.0968        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    47.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.1173        21.619        .28129E-03   -1.5417    
  27  Prefactor     18.658        14.396        .92751E-04   -1.4844    
  28  Normalizat    1.4339        .26589        .24959E-03   -.79652    
  29  Prefactor     .66674        .21314        .30007E-03   -1.0485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54552e-08
Minuit parameter uncertainties:
  1  30.4325
  2  104.684
  3  2.49771e-05
  4  1.32841e-05
  5  5.65508e-06
  6  90.1436
  7  7.07229e-05
  8  2.18169e-05
  9  2.85743
  10  1.18349e-06
  11  33.2241
  12  12.4342
  13  2.88402
  14  0.000249797
  15  9.60322e-06
  16  52.2987
  17  0.000442509
  18  0.893979
  19  14.2425
  20  1.31065e-05
  21  7.7981
  22  1.6044e-06
  23  6.97773e-07
  24  6.34794e-07
  25  0.000198774
  26  13.5374
  27  14.3985
  28  0.266149
  29  0.2134
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  9.603e-06  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:  6.667e-01  2.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.434e+00  2.661e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548217/likelihoodResults_479606401_479865601_4FGL_J1223.5+0818_daily_bin927.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) = 5670.364933
delta logL = -0.00027742731254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5670.36465557
delta logL = -3.72892827727e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0155       1.0000          .0000       10.000    
     3 'Normalizat'    1.4339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66674       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=   5670.365     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    220.41        .90712E-02** at limit **
   2  Index         2.0166        8.7303        .50000       -.59488E-06
   3  Normalizat    1.4339        .19379E-01    .56445E-01    .59742E-05
   4  Prefactor     .66674        .16637E-01    .67811E-01    .23217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01661
  Normalizat = 1.43394
  Prefactor  = 0.666739
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.365     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0166        5.9877        .50000       -.63936    
   3  Normalizat    1.4339        .24111        .24959E-03   -.79652    
   4  Prefactor     .66674        .20665        .30008E-03   -1.0485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78468e-13
Minuit parameter uncertainties:
  1  3.54606e-06
  2  4.25237
  3  0.241298
  4  0.206886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548217': 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): 0
logL (Free Index) = 5670.36465557
delta logL = 4.03451849706e-09

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  3.546e-06  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.017e+00  4.252e+00  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:  6.667e-01  2.069e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.434e+00  2.413e-01  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/548217/cmap_HighResolution_479606401_479865601_4FGL_J1223.5+0818_daily_bin927.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-09-05 11:06:23.546422', job_id='548217', GAL2='0.67', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1630865183.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.03e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='927' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:06:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 548217: <4FGL_J1223.5+0818_daily_bin927> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin927 185.883 8.3017 479606401 479865601 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 :                                   788.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

