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


Performing analysis on: 4FGL_J1223.8+8039_daily_bin770
RA = 185.971, Dec = 80.6598
tmin = 438912001, tmax = 439171201
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='557883', job_status='RUN', time_executed='2021-09-05 11:20:39.369217', time_epoch_executed='1630866039.37' WHERE source_name='4FGL J1223.8+8039' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/557883

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/557883/ft1_4FGL_J1223.8+8039_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/557883/ft2_4FGL_J1223.8+8039_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/557883/ft1_4FGL_J1223.8+8039_daily_bin770.fits outfile=/scratch/kocevski/557883/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin770.fits ra=185.971 dec=80.6598 rad=12.0 tmin=438912001.0 tmax=439171201.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 6.13
user 5.91
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/557883/ft2_4FGL_J1223.8+8039_daily_bin770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/557883/ft2_4FGL_J1223.8+8039_daily_bin770.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/557883/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin770.fits evtable="EVENTS" outfile="/scratch/kocevski/557883/ft1_filtered_4FGL_J1223.8+8039_daily_bin770.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/557883/ft1_filtered_4FGL_J1223.8+8039_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/557883/ft2_4FGL_J1223.8+8039_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/557883/ltcube_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.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/557883/ft2_4FGL_J1223.8+8039_daily_bin770.fits
.....................!
real 12.32
user 11.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/557883/ft1_filtered_4FGL_J1223.8+8039_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/557883/ft2_4FGL_J1223.8+8039_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/557883/ltcube_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.fits outfile=/scratch/kocevski/557883/expmap_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.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/557883/ltcube_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.fits
.....................!
real 190.28
user 184.53
sys 5.18

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 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.8+8039 @ 185.971 80.6598

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/557883/ft1_filtered_4FGL_J1223.8+8039_daily_bin770.fits scfile=/scratch/kocevski/557883/ft2_4FGL_J1223.8+8039_daily_bin770.fits outfile=/scratch/kocevski/557883/cmap_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.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.971 yref=80.6598 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/557883/ft1_filtered_4FGL_J1223.8+8039_daily_bin770.fits scfile=/scratch/kocevski/557883/ft2_4FGL_J1223.8+8039_daily_bin770.fits outfile=/scratch/kocevski/557883/cmap_HighResolution_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.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.971 yref=80.6598 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/557883/ft1_filtered_4FGL_J1223.8+8039_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/557883/ft2_4FGL_J1223.8+8039_daily_bin770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/557883/Model_4FGL_J1223.8+8039_daily_bin770.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/557883/ft1_filtered_4FGL_J1223.8+8039_daily_bin770.fits.....................!
real 60.01
user 58.65
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/557883/ft1_filtered_4FGL_J1223.8+8039_daily_bin770.fits', '/scratch/kocevski/557883/ft2_4FGL_J1223.8+8039_daily_bin770.fits', expMap='/scratch/kocevski/557883/expmap_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.fits', expCube='/scratch/kocevski/557883/ltcube_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/557883/Model_4FGL_J1223.8+8039_daily_bin770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.8+8039'

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.610e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/557883/ft1_filtered_4FGL_J1223.8+8039_daily_bin770.fits
Spacecraft file(s): /scratch/kocevski/557883/ft2_4FGL_J1223.8+8039_daily_bin770.fits
Exposure map: /scratch/kocevski/557883/expmap_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.fits
Exposure cube: /scratch/kocevski/557883/ltcube_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/557883/Model_4FGL_J1223.8+8039_daily_bin770.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) = 4823.92914414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    23.898       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11161E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.321       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11760E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10342E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3400       1.0000         .10000E-03   10000.    
    11 'norm      '    .18091E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0515       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    31.799       1.0000         .10000E-03   10000.    
    19 'norm      '    6.5743       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.682       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.092       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.076       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .30472E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    57.576       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .58686       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1805       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4823.915     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     5127 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.374        .14699E-07** at limit **
   2  norm          23.902        37.089       -.12863E-07   -.26762E-05
   3  Prefactor     .10000E-03    28.138        .41161E-06** at limit **
   4  Prefactor     .10011E-03    51.478       -.10490E-04** at limit **
   5  Prefactor     .10000E-03    87.257       -.13184E-04** at limit **
   6  Prefactor     54.334        39.577       -.10805E-06   -.58029E-04
   7  Prefactor     13.345        174.80        .32536E-05    .24869E-04
   8  Prefactor     .10001E-03    246.33       -.31757E-05** at limit **
   9  norm          .10000E-03    4.0404       -.29222E-06** at limit **
  10  Prefactor     4.3415        10.077        .49352E-06   -.19280E-04
  11  norm          .10005E-03    .89215        .28846E-06** at limit **
  12  norm          .10000E-03    3.5818        .16592E-06** at limit **
  13  Prefactor     .10000E-03    9.0822       -.22794E-06** at limit **
  14  Prefactor     .10000E-03    12.536       -.14054E-07** at limit **
  15  Prefactor     6.0519        5.3754       -.15350E-07   -.19365E-04
  16  Prefactor     .10000E-03    13.565        .35197E-06** at limit **
  17  Prefactor     .10000E-03    132.17       -.35800E-05** at limit **
  18  norm          31.801        10.301       -.10258E-07   -.27037E-06
  19  norm          6.5746        6.2071        .12661E-06    .48502E-04
  20  Prefactor     .10000E-03    25.297       -.36003E-07** at limit **
  21  Prefactor     .10000E-03    64.053        .15799E-05** at limit **
  22  Prefactor     26.686        35.004       -.32912E-07   -.24986E-05
  23  Prefactor     15.093        12.648       -.96003E-07    .13347E-04
  24  Prefactor     15.071        20.605       -.16968E-06    .31540E-04
  25  Prefactor     .10000E-03    26.669        .30376E-06** at limit **
  26  Prefactor     .10337E-03    200.77       -.20832E-04** at limit **
  27  Prefactor     .10000E-03    39.701       -.59034E-06** at limit **
  28  norm          .10000E-03    14.516       -.14563E-06** at limit **
  29  Prefactor     57.592        111.48       -.37664E-06   -.16641E-04
  30  Normalizat    .58677        .22940        .13940E-06    .65165E-04
  31  Prefactor     1.1804        .16121       -.12173E-06    .44913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 23.9019
  Prefactor  = 0.0001
  Prefactor  = 0.00010011
  Prefactor  = 0.000100001
  Prefactor  = 54.3341
  Prefactor  = 13.3448
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 4.34148
  norm       = 0.00010005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.05193
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 31.8015
  norm       = 6.57456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6865
  Prefactor  = 15.0927
  Prefactor  = 15.0708
  Prefactor  = 0.0001
  Prefactor  = 0.00010337
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.5924
  Normalizat = 0.58677
  Prefactor  = 1.18042
 **********
 **   18 **HESSE 
 **********

 FCN=   4823.915     FROM HESSE     STATUS=OK           632 CALLS     5759 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          23.902        37.087        .81939E-04   -1.4730    
   3  Prefactor     .10000E-03    28.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10011E-03    64.086        .49700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    87.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     54.334        39.145        .54422E-04   -1.4232    
   7  Prefactor     13.345        179.17        .11005E-03   -1.4977    
   8  Prefactor     .10001E-03    248.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0532        .13626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3415        14.649        .19335E-03   -1.5291    
  11  norm          .10005E-03    3.9195        .19862E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6397        .12872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.0936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0519        5.3708        .14747E-03   -1.5216    
  16  Prefactor     .10000E-03    13.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    133.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          31.801        10.302        .71055E-04   -1.4580    
  19  norm          6.5746        6.2023        .15651E-03   -1.5195    
  20  Prefactor     .10000E-03    25.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    65.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.686        34.997        .77555E-04   -1.4674    
  23  Prefactor     15.093        12.679        .10310E-03   -1.4931    
  24  Prefactor     15.071        20.599        .10315E-03   -1.4931    
  25  Prefactor     .10000E-03    26.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10337E-03    50.215        .14050       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    39.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    14.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     57.592        112.54        .52870E-04   -1.4189    
  30  Normalizat    .58677        .24676        .37047E-03   -1.0855    
  31  Prefactor     1.1804        .17528        .19557E-03   -.86936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33173e-09
Minuit parameter uncertainties:
  1  2.11802e-06
  2  37.1227
  3  9.37555e-05
  4  0.0053095
  5  0.000659663
  6  39.1637
  7  98.1568
  8  0.00241894
  9  6.46073e-06
  10  14.6614
  11  0.000882134
  12  9.21459e-06
  13  1.01619e-05
  14  1.3464e-05
  15  5.3712
  16  2.90286e-05
  17  0.00154302
  18  10.3023
  19  6.20287
  20  1.36969e-05
  21  0.000190529
  22  35.024
  23  12.6813
  24  20.6089
  25  6.52962e-05
  26  0.0260383
  27  0.000153605
  28  2.87875e-05
  29  112.957
  30  0.247228
  31  0.175363
Done.

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

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  6.575e+00  6.203e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.180e+00  1.754e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  5.868e-01  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 185.971 80.660
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.95e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 2.26e-05

TS (Fixed Index): 1.61
Ra Dec: 185.971 80.660
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/557883/likelihoodResults_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.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): 0
logL (Free Index) = 4823.90630638
delta logL = 0.00847097213045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4823.90589691
delta logL = 0.00888043711257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6468       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9975       1.0000          .0000       5.0000    
     3 'Normalizat'    .59064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1796       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4823.906     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      230 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6487        241.88        .38912E-02    .20092E-03
   2  alpha         1.9973        3.3978        .42255        .10666E-05
   3  Normalizat    .59068        .17900        .83386E-01    .22767E-04
   4  Prefactor     1.1796        .88540E-01    .35131E-01   -.11330E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.6487
  alpha      = 1.99732
  Normalizat = 0.590683
  Prefactor  = 1.17965
 **********
 **   18 **HESSE 
 **********

 FCN=   4823.906     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6487        6.2912        .15565E-03   -1.5192    
   2  alpha         1.9973        .87735        .17950E-01   -.20245    
   3  Normalizat    .59068        .22743        .36937E-03   -1.0838    
   4  Prefactor     1.1796        .16702        .19563E-03   -.86960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27907e-12
Minuit parameter uncertainties:
  1  6.2918
  2  0.897297
  3  0.227789
  4  0.167095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/557883': 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) = 4823.90589677
delta logL = 0.00888057804787

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  6.649e+00  6.292e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  1.997e+00  8.973e-01  0.000e+00  5.000e+00 ( 1.000e+00)
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.180e+00  1.671e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  5.907e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 185.971 80.660
Photon Index (Free Index): 2.00 +/- 0.90
Photon Flux (Free Index): 4.34e-08 +/- 5.98e-08
Energy Flux (Free Index): 2.51e-05 +/- 2.59e-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/557883/cmap_HighResolution_438912001_439171201_4FGL_J1223.8+8039_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-05', comment='SUCCESS', photon_flux='4.95e-08', energy_flux2='2.51e-05', photon_flux_error='4.67e-08', dlogl='8.88e-03', energy_flux='2.39e-05', photon_flux2='4.34e-08', job_status='DONE', time_completed='2021-09-05 11:35:53.961024', photon_index_error2='0.90', photon_index2='2.00', ts='1.61', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='2.59e-05', EG='0.59', time_epoch_completed='1630866953.96', return_code='0', job_id='557883', GAL2='1.18', EG2='0.59', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='5.98e-08', ts2='1.62', photon_index='2.12' WHERE bin_id='770' AND source_name='4FGL J1223.8+8039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:35:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 557883: <4FGL_J1223.8+8039_daily_bin770> in cluster <slac> Done

Job <4FGL_J1223.8+8039_daily_bin770> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 11:20:25 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:20:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 11:20:26 2021
Terminated at Sun Sep  5 11:35:54 2021
Results reported at Sun Sep  5 11:35:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_daily_bin770 185.971 80.6598 438912001 439171201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.8+8039 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   911.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

