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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin581
RA = 185.883, Dec = 8.3017
tmin = 389923201, tmax = 390182401
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='546518', job_status='RUN', time_executed='2021-09-05 10:48:34.133954', time_epoch_executed='1630864114.13' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546518

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546518/ft1_4FGL_J1223.5+0818_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546518/ft2_4FGL_J1223.5+0818_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546518/ft1_4FGL_J1223.5+0818_daily_bin581.fits outfile=/scratch/kocevski/546518/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin581.fits ra=185.883 dec=8.3017 rad=12.0 tmin=389923201.0 tmax=390182401.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.55
user 3.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546518/ft1_filtered_4FGL_J1223.5+0818_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/546518/ft2_4FGL_J1223.5+0818_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/546518/ltcube_389923201_390182401_4FGL_J1223.5+0818_daily_bin581.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/546518/ft2_4FGL_J1223.5+0818_daily_bin581.fits
.....................!
real 12.75
user 12.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546518/ft1_filtered_4FGL_J1223.5+0818_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/546518/ft2_4FGL_J1223.5+0818_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/546518/ltcube_389923201_390182401_4FGL_J1223.5+0818_daily_bin581.fits outfile=/scratch/kocevski/546518/expmap_389923201_390182401_4FGL_J1223.5+0818_daily_bin581.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/546518/ltcube_389923201_390182401_4FGL_J1223.5+0818_daily_bin581.fits
.....................!
real 192.80
user 186.76
sys 5.66

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/546518/ft1_filtered_4FGL_J1223.5+0818_daily_bin581.fits scfile=/scratch/kocevski/546518/ft2_4FGL_J1223.5+0818_daily_bin581.fits outfile=/scratch/kocevski/546518/cmap_389923201_390182401_4FGL_J1223.5+0818_daily_bin581.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/546518/ft1_filtered_4FGL_J1223.5+0818_daily_bin581.fits scfile=/scratch/kocevski/546518/ft2_4FGL_J1223.5+0818_daily_bin581.fits outfile=/scratch/kocevski/546518/cmap_HighResolution_389923201_390182401_4FGL_J1223.5+0818_daily_bin581.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3992       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.061       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4820       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4993       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4136       1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.681       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .78158       1.0000         .10000E-03   10000.    
    14 'norm      '    .16789E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.645       1.0000         .10000E-03   10000.    
    16 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .81956       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.252       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5879       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38853E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3390       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3613       1.0000         .10000E-03   10000.    
    24 'Prefactor '    46.617       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .91267       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.254       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0610       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80760       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=   6672.277     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3746 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1392        .83582E-07** at limit **
   2  Prefactor     10.969        53.247       -.46427E-05   -.81931E-04
   3  Prefactor     .10000E-03    1.8290       -.72020E-08** at limit **
   4  Prefactor     3.3984        8.1166        .12204E-05    .36808E-04
   5  Prefactor     19.060        13.221        .24932E-08   -.51751E-04
   6  Prefactor     .10000E-03    17.351        .85866E-06** at limit **
   7  Prefactor     .10000E-03    25.184        .14948E-06** at limit **
   8  Prefactor     6.4808        10.865        .14740E-06   -.22315E-04
   9  Prefactor     1.5000        3.2730       -.25892E-06   -.16801E-03
  10  Prefactor     6.4120        4.1867        .12831E-05   -.27522E-03
  11  Prefactor     50.715        32.578       -.36397E-06   -.66765E-04
  12  Prefactor     .10000E-03    2.2012        .47564E-07** at limit **
  13  norm          .78166        1.1338        .42190E-07    .18105E-03
  14  norm          .10001E-03    1.5658        .75593E-06** at limit **
  15  Prefactor     40.644        28.039       -.22563E-06   -.78315E-04
  16  norm          .10000E-03    46.495        .11912E-06** at limit **
  17  Prefactor     .10000E-03    102.04        .10027E-05** at limit **
  18  norm          .81977        .45892       -.12603E-06   -.22065E-02
  19  Prefactor     18.257        13.339        .15328E-06   -.93664E-04
  20  Prefactor     5.5590        53.641       -.26559E-05   -.10022E-03
  21  Prefactor     .10015E-03    7.1193       -.43850E-06** at limit **
  22  norm          2.3390        1.3416        .23364E-08   -.44147E-03
  23  Prefactor     9.3582        10.581        .19143E-06    .21167E-04
  24  Prefactor     46.611        37.784       -.64924E-07   -.54605E-04
  25  Prefactor     .10000E-03    16.911       -.88728E-06** at limit **
  26  Prefactor     .84686        12.767        .26979E-05   -.39568E-03
  27  Prefactor     19.260        16.140       -.21521E-06   -.34456E-03
  28  Normalizat    1.0612        .19662       -.15136E-05   -.44563E-03
  29  Prefactor     .80743        .15307       -.25949E-06   -.39687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.9685
  Prefactor  = 0.0001
  Prefactor  = 3.39839
  Prefactor  = 19.06
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48079
  Prefactor  = 1.50001
  Prefactor  = 6.41196
  Prefactor  = 50.7153
  Prefactor  = 0.0001
  norm       = 0.781662
  norm       = 0.000100008
  Prefactor  = 40.6444
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.819769
  Prefactor  = 18.2573
  Prefactor  = 5.55897
  Prefactor  = 0.000100146
  norm       = 2.33901
  Prefactor  = 9.35819
  Prefactor  = 46.6107
  Prefactor  = 0.0001
  Prefactor  = 0.846858
  Prefactor  = 19.2604
  Normalizat = 1.06123
  Prefactor  = 0.807434
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.277     FROM HESSE     STATUS=OK           557 CALLS     4303 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.969        54.979        .12079E-03   -1.5045    
   3  Prefactor     .10000E-03    1.8296        .10788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3984        8.1284        .21944E-03   -1.5339    
   5  Prefactor     19.060        13.232        .91739E-04   -1.4835    
   6  Prefactor     .10000E-03    17.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4808        10.850        .15763E-03   -1.5199    
   9  Prefactor     1.5000        3.1992        .19153E-03   -1.5463    
  10  Prefactor     6.4120        4.1152        .58771E-03   -1.5201    
  11  Prefactor     50.715        31.792        .56333E-04   -1.4282    
  12  Prefactor     .10000E-03    2.2039        .11835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .78166        .95019        .10162E-02   -1.5531    
  14  norm          .10001E-03    11.503        .17765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.644        28.039        .62875E-04   -1.4432    
  16  norm          .10000E-03    47.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    102.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .81977        .44354        .37638E-04   -1.5527    
  19  Prefactor     18.257        13.233        .93750E-04   -1.4853    
  20  Prefactor     5.5590        53.905        .16995E-03   -1.5236    
  21  Prefactor     .10015E-03    52.984        .40903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3390        1.3339        .68061E-04   -1.5402    
  23  Prefactor     9.3582        10.451        .13098E-03   -1.5096    
  24  Prefactor     46.611        37.764        .58726E-04   -1.4341    
  25  Prefactor     .10000E-03    16.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .84686        46.948        .47301E-02   -1.5524    
  27  Prefactor     19.260        16.076        .91277E-04   -1.4830    
  28  Normalizat    1.0612        .23047        .26133E-03   -.91006    
  29  Prefactor     .80743        .17860        .25281E-03   -.99455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28319e-09
Minuit parameter uncertainties:
  1  1.84167e-06
  2  49.1859
  3  1.25159e-06
  4  8.13101
  5  13.2335
  6  0.000119769
  7  3.59774e-05
  8  10.8537
  9  3.19954
  10  4.11537
  11  31.8023
  12  2.81729e-06
  13  0.950209
  14  0.000604528
  15  28.0477
  16  3.77777e-05
  17  0.000306985
  18  0.443546
  19  13.2352
  20  34.6618
  21  0.00556768
  22  1.33387
  23  10.4532
  24  37.783
  25  0.000131761
  26  12.6205
  27  16.0793
  28  0.230693
  29  0.17873
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  4.064e+01  2.805e+01  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:  8.074e-01  1.787e-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.061e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.86
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.85e-05

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): 0
logL (Free Index) = 6671.91657205
delta logL = 0.359983104018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6671.87072558
delta logL = 0.405829571165

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.886       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4896       1.0000          .0000       10.000    
     3 'Normalizat'    1.0771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80059       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=   6671.871     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      277 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.902        38.635        .27071E-03    .17554E-04
   2  Index         1.4894        .44827        .79015E-02   -.27222E-05
   3  Normalizat    1.0772        .20389        .25961E-03   -.24699E-04
   4  Prefactor     .80056        .17527        .25375E-03    .31228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.9016
  Index      = 1.48945
  Normalizat = 1.07721
  Prefactor  = 0.800561
 **********
 **   18 **HESSE 
 **********

 FCN=   6671.871     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.902        38.513        .10829E-04   -1.4225    
   2  Index         1.4894        .44682        .31606E-03   -.77836    
   3  Normalizat    1.0772        .20404        .10384E-04   -.90487    
   4  Prefactor     .80056        .17542        .10150E-04   -.99708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3655e-11
Minuit parameter uncertainties:
  1  38.5306
  2  0.448003
  3  0.204193
  4  0.175544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546518': 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) = 6671.87072539
delta logL = 0.405829758608

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  5.490e+01  3.853e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.489e+00  4.480e-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:  8.006e-01  1.755e-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.077e+00  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.69
Ra Dec: 185.883 8.302
Photon Index (Free Index): 1.49 +/- 0.45
Photon Flux (Free Index): 1.77e-08 +/- 1.69e-08
Energy Flux (Free Index): 5.81e-05 +/- 6.41e-05

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/546518/cmap_HighResolution_389923201_390182401_4FGL_J1223.5+0818_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='5.81e-05', photon_flux_error='2.18e-08', dlogl='4.06e-01', energy_flux='2.67e-05', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-09-05 11:01:18.881043', photon_index_error2='0.45', photon_index2='1.49', ts='5.86', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='6.41e-05', EG='1.06', time_epoch_completed='1630864878.88', return_code='0', job_id='546518', GAL2='0.80', EG2='1.08', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='1.69e-08', ts2='6.69', photon_index='1.92' WHERE bin_id='581' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 546518: <4FGL_J1223.5+0818_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin581 185.883 8.3017 389923201 390182401 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 :                                   761.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

