/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 2 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 = 7430
number of fields = 31
RA_SUN column already exists. File will not be modified.
DDone.


Performing analysis on: 4FGL_J1223.8+8039_daily_bin1635
RA = 185.971, Dec = 80.6598
tmin = 663120001, tmax = 663379201
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='834290', job_status='RUN', time_executed='2022-01-09 02:50:04.531493', time_epoch_executed='1641725404.53' WHERE source_name='4FGL J1223.8+8039' and cadence='daily' and bin_id='1635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834290/ft1_4FGL_J1223.8+8039_daily_bin1635.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834290/ft2_4FGL_J1223.8+8039_daily_bin1635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834290/ft1_4FGL_J1223.8+8039_daily_bin1635.fits outfile=/scratch/kocevski/834290/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin1635.fits ra=185.971 dec=80.6598 rad=12.0 tmin=663120001.0 tmax=663379201.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 2.95
user 2.67
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834290/ft2_4FGL_J1223.8+8039_daily_bin1635.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/834290/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin1635.fits evtable="EVENTS" outfile="/scratch/kocevski/834290/ft1_filtered_4FGL_J1223.8+8039_daily_bin1635.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.55
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834290/ft1_filtered_4FGL_J1223.8+8039_daily_bin1635.fits" evtable="EVENTS" scfile=/scratch/kocevski/834290/ft2_4FGL_J1223.8+8039_daily_bin1635.fits sctable="SC_DATA" outfile=/scratch/kocevski/834290/ltcube_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.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/834290/ft2_4FGL_J1223.8+8039_daily_bin1635.fits
.....................!
real 19.12
user 18.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834290/ft1_filtered_4FGL_J1223.8+8039_daily_bin1635.fits evtable="EVENTS" scfile=/scratch/kocevski/834290/ft2_4FGL_J1223.8+8039_daily_bin1635.fits sctable="SC_DATA" expcube=/scratch/kocevski/834290/ltcube_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.fits outfile=/scratch/kocevski/834290/expmap_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.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/834290/ltcube_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.fits
.....................!
real 197.06
user 191.00
sys 5.29

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/834290/ft1_filtered_4FGL_J1223.8+8039_daily_bin1635.fits scfile=/scratch/kocevski/834290/ft2_4FGL_J1223.8+8039_daily_bin1635.fits outfile=/scratch/kocevski/834290/cmap_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.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.60
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834290/ft1_filtered_4FGL_J1223.8+8039_daily_bin1635.fits scfile=/scratch/kocevski/834290/ft2_4FGL_J1223.8+8039_daily_bin1635.fits outfile=/scratch/kocevski/834290/cmap_HighResolution_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.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.60
user 0.42
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834290/ft1_filtered_4FGL_J1223.8+8039_daily_bin1635.fits', '/scratch/kocevski/834290/ft2_4FGL_J1223.8+8039_daily_bin1635.fits', expMap='/scratch/kocevski/834290/expmap_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.fits', expCube='/scratch/kocevski/834290/ltcube_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834290/Model_4FGL_J1223.8+8039_daily_bin1635.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/834290/ft1_filtered_4FGL_J1223.8+8039_daily_bin1635.fits
Spacecraft file(s): /scratch/kocevski/834290/ft2_4FGL_J1223.8+8039_daily_bin1635.fits
Exposure map: /scratch/kocevski/834290/expmap_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.fits
Exposure cube: /scratch/kocevski/834290/ltcube_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834290/Model_4FGL_J1223.8+8039_daily_bin1635.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) = 13132.2736391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.5586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.532       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.209       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21535E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0502       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3515       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9826       1.0000         .10000E-03   10000.    
    12 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11670E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3585       1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.675       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1835       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17126E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    45.650       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .94494       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .91271       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96740       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13132.27     FROM MIGRAD    STATUS=CONVERGED   1475 CALLS     4833 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.962        .18142E-02** at limit **
   2  norm          4.5581        8.4357        .18854E-03    .43414E-05
   3  Prefactor     28.350        31.684        .75245E-04    .29613E-04
   4  Prefactor     36.531        9.2616        .66307E-04    .19306E-03
   5  Prefactor     20.209        13.943        .89096E-04   -.14393E-03
   6  Prefactor     .10000E-03    22.795        .47421E-02** at limit **
   7  Prefactor     .10000E-03    44.689        .18142E-02** at limit **
   8  Prefactor     .10000E-03    53.966        .18189    ** at limit **
   9  norm          1.0474        2.6841        .28508E-03    .26153E-03
  10  Prefactor     2.3472        6.4557        .26731E-03   -.39383E-04
  11  norm          3.9815        .98458        .44224E-04    .98921E-03
  12  norm          .10000E-03    1.9507        .30555E-02** at limit **
  13  Prefactor     .10000E-03    7.1148        .36285E-03** at limit **
  14  Prefactor     .10000E-03    9.2588        .31053E-02** at limit **
  15  Prefactor     .10000E-03    1.6805        .14395E-02** at limit **
  16  Prefactor     8.7426        7.9492        .67759E-03    .47183E-03
  17  Prefactor     .10001E-03    98.079        .18142E-02** at limit **
  18  norm          1.3583        1.8925        .18348E-03   -.55021E-04
  19  norm          .10000E-03    2.9587        .25088E-02** at limit **
  20  Prefactor     42.667        32.955        .61366E-04   -.80106E-04
  21  Prefactor     7.1816        10.517        .74831E-03    .11437E-03
  22  Prefactor     .10000E-03    76.457        .36285E-03** at limit **
  23  Prefactor     .10000E-03    2.7082        .18142E-02** at limit **
 24  Prefactor     .10000E-03    3.6767        .18142E-02** at limit **
  25  Prefactor     .10000E-03    16.120        .18142E-02** at limit **
  26  Prefactor     45.651        32.900        .59341E-04    .26438E-04
  27  Prefactor     .10000E-03    12.040        .18142E-02** at limit **
  28  norm          .94318        24.720        .25939E-02    .10855E-03
  29  Prefactor     .10000E-03    11.908        .18142E-02** at limit **
  30  Normalizat    .91284        .13361        .28713E-03   -.81247E-04
  31  Prefactor     .96737        .90675E-01    .19589E-03   -.14279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.55806
  Prefactor  = 28.3501
  Prefactor  = 36.5311
  Prefactor  = 20.2095
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  norm       = 1.04742
  Prefactor  = 2.34722
  norm       = 3.98145
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.74264
  Prefactor  = 0.000100006
  norm       = 1.35833
  norm       = 0.0001
  Prefactor  = 42.667
  Prefactor  = 7.18157
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 45.6511
  Prefactor  = 0.0001
  norm       = 0.943178
  Prefactor  = 0.0001
  Normalizat = 0.912838
  Prefactor  = 0.967365
  **********
 **   18 **HESSE 
 **********

 FCN=   13132.27     FROM HESSE     STATUS=OK           602 CALLS     5435 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.5581        8.4355        .75417E-05   -1.5281    
   3  Prefactor     28.350        31.681        .30098E-05   -1.4643    
   4  Prefactor     36.531        9.2613        .26523E-05   -1.4498    
   5  Prefactor     20.209        13.962        .35639E-05   -1.4809    
   6  Prefactor     .10000E-03    23.141        .94843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.239        .17213       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0474        2.6821        .11403E-04   -1.5503    
  10  Prefactor     2.3472        6.4597        .10692E-04   -1.5402    
  11  norm          3.9815        .98250        .17690E-05   -1.5309    
  12  norm          .10000E-03    1.9590        .61109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.1149        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3101        .62106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6811        .28791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.7426        7.9382        .27104E-04   -1.5117    
  17  Prefactor     .10001E-03    98.117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3583        1.8924        .73393E-05   -1.5475    
  19  norm          .10000E-03    2.9724        .50175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.667        32.955        .12273E-04   -1.4401    
  21  Prefactor     7.1816        10.513        .29932E-04   -1.5172    
  22  Prefactor     .10000E-03    76.460        .72569E-04   -1.5708    
                                WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.7090        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.6771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.120        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     45.651        32.903        .23737E-05   -1.4356    
  27  Prefactor     .10000E-03    12.040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .94318        24.742        .10376E-03   -1.5514    
  29  Prefactor     .10000E-03    11.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .91284        .13363        .11485E-04   -.96010    
  31  Prefactor     .96737        .90711E-01    .39177E-04   -.93825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95735e-10
Minuit parameter uncertainties:
  1  0.000104964
  2  8.43768
  3  31.7002
  4  9.26167
  5  13.964
  6  0.000196025
  7  0.000745178
  8  0.000623162
  9  2.68242
  10  6.46164
  11  0.9825
  12  1.83258e-05
  13  3.36566e-05
  14  4.23843e-05
  15  6.75308e-06
  16  7.93912
  17  0.00158515
  18  1.89252
  19  6.42928e-06
  20  32.9694
  21  10.5161
  22  0.000989107
  23  1.97215e-05
  24  2.98458e-06
  25  0.00025545
  26  32.9165
  27  5.59273e-06
  28  9.66534
  29  2.16623e-05
  30  0.133678
  31  0.0907252
DDone.

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

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.000e-04  6.429e-06  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:  9.674e-01  9.073e-02  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:  9.128e-01  1.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.971 80.660
Photon Flux Upper Limit: 3.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834290/likelihoodResults_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.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) = 13132.2697459
delta logL = -0.00160970431534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13132.2681367
delta logL = -4.75954948342e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1366       1.0000          .0000       5.0000    
     3 'Normalizat'    .91294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96733       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13132.27     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      282 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15139E-03    .21644        .17198E-01** at limit **
   2  alpha         3.6832        4.2973        .16686        .32089E-05
   3  Normalizat    .91284        .34391E-02    .28713E-03    .43057E-02
   4  Prefactor     .96737        .24239E-02    .19589E-03    .44091E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000151394
  alpha      = 3.68324
  Normalizat = 0.912838
  Prefactor  = 0.967365
 **********
 **   18 **HESSE 
 **********

 FCN=   13132.27     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      315 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15139E-03    .69330        .13996E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.6832        4.0881        .66744E-02    .49303    
   3  Normalizat    .91284        .52314E-02    .57426E-04   -.96010    
   4  Prefactor     .96737        .36866E-02    .39177E-04   -.93825    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94283e-10
Minuit parameter uncertainties:
  1  0.0119386
  2  155.327
  3  0.00523137
  4  0.00368663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834290': 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) = 13132.2681164
delta logL = 1.98105881282e-05

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.514e-04  1.194e-02  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  3.683e+00  1.553e+02  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:  9.674e-01  3.687e-03  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:  9.128e-01  5.231e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.971 80.660

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/834290/cmap_HighResolution_663120001_663379201_4FGL_J1223.8+8039_daily_bin1635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-05', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2022-01-09 03:25:44.081956', job_id='834290', GAL2='0.97', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1641727544.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.98e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1635' AND source_name='4FGL J1223.8+8039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  9 03:25:44 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 834389: <4FGL_J1223.8+8039_daily_bin1635> in cluster <slac> Done

Job <4FGL_J1223.8+8039_daily_bin1635> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  9 00:07:07 2022
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  9 02:50:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  9 02:50:51 2022
Terminated at Sun Jan  9 03:25:02 2022
Results reported at Sun Jan  9 03:25:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_daily_bin1635 185.971 80.6598 663120001 663379201 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 :                                   2038.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             343.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2050 sec.
    Turnaround time :                            11875 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 834290: <4FGL_J1223.8+8039_daily_bin1635> in cluster <slac> Done

Job <4FGL_J1223.8+8039_daily_bin1635> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan  9 00:07:02 2022
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  9 02:49:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  9 02:49:31 2022
Terminated at Sun Jan  9 03:25:44 2022
Results reported at Sun Jan  9 03:25:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_daily_bin1635 185.971 80.6598 663120001 663379201 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 :                                   2138.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             339.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2173 sec.
    Turnaround time :                            11922 sec.

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

