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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1506
RA = 185.988, Dec = 50.0089
tmin = 629683201, tmax = 629942401
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='577076', job_status='RUN', time_executed='2021-09-05 12:18:58.840246', time_epoch_executed='1630869538.84' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577076

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577076/ft1_4FGL_J1223.9+5000_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577076/ft1_4FGL_J1223.9+5000_daily_bin1506.fits outfile=/scratch/kocevski/577076/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1506.fits ra=185.988 dec=50.0089 rad=12.0 tmin=629683201.0 tmax=629942401.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.85
user 2.64
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.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/577076/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1506.fits evtable="EVENTS" outfile="/scratch/kocevski/577076/ft1_filtered_4FGL_J1223.9+5000_daily_bin1506.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.43
user 0.28
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577076/ft1_filtered_4FGL_J1223.9+5000_daily_bin1506.fits" evtable="EVENTS" scfile=/scratch/kocevski/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.fits sctable="SC_DATA" outfile=/scratch/kocevski/577076/ltcube_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.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/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.fits
.....................!
real 9.36
user 9.03
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577076/ft1_filtered_4FGL_J1223.9+5000_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/577076/ltcube_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.fits outfile=/scratch/kocevski/577076/expmap_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.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/577076/ltcube_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.fits
.....................!
real 149.72
user 141.94
sys 3.78

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

Setting source of interest to:
4FGL J1223.9+5000 @ 185.988 50.0089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/577076/ft1_filtered_4FGL_J1223.9+5000_daily_bin1506.fits scfile=/scratch/kocevski/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.fits outfile=/scratch/kocevski/577076/cmap_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.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.988 yref=50.0089 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 1.33
user 0.30
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577076/ft1_filtered_4FGL_J1223.9+5000_daily_bin1506.fits scfile=/scratch/kocevski/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.fits outfile=/scratch/kocevski/577076/cmap_HighResolution_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.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.988 yref=50.0089 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 1.40
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/577076/ft1_filtered_4FGL_J1223.9+5000_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/577076/Model_4FGL_J1223.9+5000_daily_bin1506.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/577076/ft1_filtered_4FGL_J1223.9+5000_daily_bin1506.fits.....................!
real 47.53
user 36.77
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/577076/ft1_filtered_4FGL_J1223.9+5000_daily_bin1506.fits', '/scratch/kocevski/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.fits', expMap='/scratch/kocevski/577076/expmap_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.fits', expCube='/scratch/kocevski/577076/ltcube_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/577076/Model_4FGL_J1223.9+5000_daily_bin1506.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.9+5000'

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.480e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/577076/ft1_filtered_4FGL_J1223.9+5000_daily_bin1506.fits
Spacecraft file(s): /scratch/kocevski/577076/ft2_4FGL_J1223.9+5000_daily_bin1506.fits
Exposure map: /scratch/kocevski/577076/expmap_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.fits
Exposure cube: /scratch/kocevski/577076/ltcube_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/577076/Model_4FGL_J1223.9+5000_daily_bin1506.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) = 5421.54062916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1687       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0687       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.9437       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2479       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .35253E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    105.21       1.0000         .10000E-03   10000.    
    14 'norm      '    10.309       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.112       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6417       1.0000         .10000E-03   10000.    
    17 'norm      '    .73549       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5564       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8297       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.101       1.0000         .10000E-03   10000.    
    22 'norm      '    19.125       1.0000         .10000E-03   10000.    
    23 'norm      '    11.340       1.0000         .10000E-03   10000.    
    24 'Prefactor '    85.423       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1333       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .93832E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0835       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70105       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5421.500     FROM MIGRAD    STATUS=CONVERGED     65 CALLS     3074 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    9.5826        .26939E-04** at limit **
   2  norm          .10001E-03    10.830        .34700E-04** at limit **
   3  Prefactor     3.1701        1.5944        .49158E-05    .34299E-02
   4  norm          3.0688        1.5495       -.49000E-07   -.19194E-03
   5  norm          .10000E-03    3.0626        .24561E-06** at limit **
   6  Prefactor     2.0770        2.3195        .24454E-06   -.15602E-03
   7  Prefactor     .10000E-03    7.5711       -.82111E-05** at limit **
   8  norm          5.9444        4.8369        .66133E-05    .51523E-03
   9  Prefactor     8.2500        1.0969        .11575E-05   -.50592E-03
  10  Prefactor     .10012E-03    10.806       -.24391E-04** at limit **
  11  Prefactor     .10022E-03    7.4509        .21010E-04** at limit **
  12  norm          .10000E-03    6.4320        .59040E-06** at limit **
  13  Prefactor     105.21        1.0643       -.26193E-06    .19516E-02
  14  norm          10.310        1.0173       -.35514E-07    .15200E-03
  15  Prefactor     24.113        1.0178        .25710E-06   -.35499E-03
  16  Prefactor     3.6403        1.4077       -.17879E-05   -.19883E-02
  17  norm          .73605        2.2270        .90920E-06    .74804E-03
  18  Prefactor     2.5591        1.0937        .15523E-05   -.19144E-03
  19  norm          1.8297        1.5251        .41555E-06    .83205E-03
  20  Prefactor     .10013E-03    8.6244        .49452E-05** at limit **
  21  Prefactor     11.103        1.0111       -.18930E-06   -.37784E-03
  22  norm          19.126        1.0065        .15324E-06   -.12473E-03
  23  norm          11.342        2.9417       -.29690E-05   -.74165E-03
  24  Prefactor     85.425        1.3269        .70622E-06   -.43703E-02
  25  Prefactor     7.1498        1.3830        .19469E-05   -.13016E-03
  26  Prefactor     .10005E-03    27.451       -.59221E-04** at limit **
  27  norm          .10102E-03    8.5256       -.41020E-04** at limit **
  28  Normalizat    1.0833        .18949       -.19867E-05    .64604E-05
  29  Prefactor     .70128        .22845        .60407E-07    .66208E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010004
  norm       = 0.000100006
  Prefactor  = 3.1701
  norm       = 3.0688
  norm       = 0.0001
  Prefactor  = 2.07698
  Prefactor  = 0.0001
  norm       = 5.9444
  Prefactor  = 8.24997
  Prefactor  = 0.000100125
  Prefactor  = 0.000100223
  norm       = 0.000100001
  Prefactor  = 105.208
  norm       = 10.3095
  Prefactor  = 24.1126
  Prefactor  = 3.64034
  norm       = 0.736053
  Prefactor  = 2.55914
  norm       = 1.8297
  Prefactor  = 0.000100135
  Prefactor  = 11.1026
  norm       = 19.1257
  norm       = 11.3416
  Prefactor  = 85.4254
  Prefactor  = 7.14976
  Prefactor  = 0.000100055
  norm       = 0.000101023
  Normalizat = 1.08328
  Prefactor  = 0.701279
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.500     FROM HESSE     STATUS=OK           635 CALLS     3709 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    30.652        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    29.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1701        6.5612        .56919E-02   -1.5352    
   4  norm          3.0688        1.5547        .57890E-02   -1.5358    
   5  norm          .10000E-03    3.0608        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0770        2.4872        .71641E-02   -1.5420    
   7  Prefactor     .10000E-03    21.056        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.9444        5.8079        .41177E-02   -1.5220    
   9  Prefactor     8.2500        19.857        .34899E-02   -1.5133    
  10  Prefactor     .10012E-03    20.129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10022E-03    22.294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0991        .46381E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     105.21        81.292        .98011E-03   -1.3653    
  14  norm          10.310        7.9099        .31198E-02   -1.5066    
  15  Prefactor     24.113        22.952        .20394E-02   -1.4725    
  16  Prefactor     3.6403        6.9038        .52923E-02   -1.5326    
  17  norm          .73605        2.6225        .12197E-01   -1.5536    
  18  Prefactor     2.5591        29.407        .63837E-02   -1.5388    
  19  norm          1.8297        1.5190        .77139E-02   -1.5437    
  20  Prefactor     .10013E-03    33.003        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.103        10.983        .30060E-02   -1.5041    
  22  norm          19.126        14.344        .22896E-02   -1.4833    
  23  norm          11.342        6.0280        .29742E-02   -1.5034    
  24  Prefactor     85.425        51.758        .10866E-02   -1.3857    
  25  Prefactor     7.1498        14.561        .37548E-02   -1.5173    
  26  Prefactor     .10005E-03    39.460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10102E-03    3.4003        .76197E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0833        .17581        .38714E-01   -.90290    
  29  Prefactor     .70128        .19947        .70291E-01   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42802e-07
Minuit parameter uncertainties:
  1  0.00220988
  2  0.000852657
  3  6.56272
  4  1.55473
  5  3.18823e-05
  6  2.48733
  7  0.000186456
  8  5.80848
  9  19.8733
  10  0.00317022
  11  0.00446527
  12  7.08326e-05
  13  81.3782
  14  7.91073
  15  22.9609
  16  6.9053
  17  2.62289
  18  17.3605
  19  1.51907
  20  0.00421731
  21  10.9852
  22  14.3463
  23  6.02831
  24  51.7855
  25  14.5678
  26  0.00294788
  27  0.00373052
  28  0.175905
  29  0.199677
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.031e+01  7.911e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  7.013e-01  1.997e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.083e+00  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 9.92e-06

TS (Fixed Index): 3.30
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577076/likelihoodResults_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.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) = 5421.49281189
delta logL = 0.00717980045374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5421.49142141
delta logL = 0.00857028413066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9370       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5137       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70370       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+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=   5421.491     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9369        7.8713        .12712E-03    .34370E-03
   2  alpha         2.5138        .73457        .16016E-01    .27273E-04
   3  Normalizat    1.0802        .18954        .21070E-03   -.30216E-04
   4  Prefactor     .70369        .22892        .31058E-03   -.27929E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.93693
  alpha      = 2.51377
  Normalizat = 1.08017
  Prefactor  = 0.703694
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.491     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9369        7.7204        .50847E-05   -1.5077    
   2  alpha         2.5138        .72050        .64062E-03    .55081E-02
   3  Normalizat    1.0802        .18963        .84280E-05   -.90391    
   4  Prefactor     .70369        .22906        .12423E-04   -1.0338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38636e-11
Minuit parameter uncertainties:
  1  7.72112
  2  0.730865
  3  0.189753
  4  0.229365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577076': 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) = 5421.4914214
delta logL = 0.00857028766586

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  9.937e+00  7.721e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.514e+00  7.309e-01  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  7.037e-01  2.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.080e+00  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.33
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.51 +/- 0.73
Photon Flux (Free Index): 4.40e-08 +/- 3.65e-08
Energy Flux (Free Index): 1.28e-05 +/- 9.08e-06

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/577076/cmap_HighResolution_629683201_629942401_4FGL_J1223.9+5000_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-05', comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='1.28e-05', photon_flux_error='3.17e-08', dlogl='8.57e-03', energy_flux='1.29e-05', photon_flux2='4.40e-08', job_status='DONE', time_completed='2021-09-05 12:29:51.836329', photon_index_error2='0.73', photon_index2='2.51', ts='3.30', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='9.08e-06', EG='1.08', time_epoch_completed='1630870191.84', return_code='0', job_id='577076', GAL2='0.70', EG2='1.08', return_code2='0', energy_flux_error='9.92e-06', photon_flux_error2='3.65e-08', ts2='3.33', photon_index='2.42' WHERE bin_id='1506' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:29:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 577076: <4FGL_J1223.9+5000_daily_bin1506> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1506> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:32 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:15:33 2021
Terminated at Sun Sep  5 12:29:52 2021
Results reported at Sun Sep  5 12:29:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1506 185.988 50.0089 629683201 629942401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.9+5000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             261.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            860 sec.

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

