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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1029
RA = 185.988, Dec = 50.0089
tmin = 506044801, tmax = 506304001
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='575323', job_status='RUN', time_executed='2021-09-05 12:10:31.198444', time_epoch_executed='1630869031.2' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575323/ft1_4FGL_J1223.9+5000_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575323/ft2_4FGL_J1223.9+5000_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575323/ft1_4FGL_J1223.9+5000_daily_bin1029.fits outfile=/scratch/kocevski/575323/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1029.fits ra=185.988 dec=50.0089 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.30
user 4.06
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575323/ft2_4FGL_J1223.9+5000_daily_bin1029.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/575323/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/575323/ft1_filtered_4FGL_J1223.9+5000_daily_bin1029.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575323/ft1_filtered_4FGL_J1223.9+5000_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/575323/ft2_4FGL_J1223.9+5000_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/575323/ltcube_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.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/575323/ft2_4FGL_J1223.9+5000_daily_bin1029.fits
.....................!
real 12.17
user 11.82
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575323/ft1_filtered_4FGL_J1223.9+5000_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/575323/ft2_4FGL_J1223.9+5000_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/575323/ltcube_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.fits outfile=/scratch/kocevski/575323/expmap_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.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/575323/ltcube_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.fits
.....................!
real 192.09
user 186.26
sys 5.08

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/575323/ft1_filtered_4FGL_J1223.9+5000_daily_bin1029.fits scfile=/scratch/kocevski/575323/ft2_4FGL_J1223.9+5000_daily_bin1029.fits outfile=/scratch/kocevski/575323/cmap_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.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 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575323/ft1_filtered_4FGL_J1223.9+5000_daily_bin1029.fits scfile=/scratch/kocevski/575323/ft2_4FGL_J1223.9+5000_daily_bin1029.fits outfile=/scratch/kocevski/575323/cmap_HighResolution_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.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 0.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575323/ft1_filtered_4FGL_J1223.9+5000_daily_bin1029.fits', '/scratch/kocevski/575323/ft2_4FGL_J1223.9+5000_daily_bin1029.fits', expMap='/scratch/kocevski/575323/expmap_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.fits', expCube='/scratch/kocevski/575323/ltcube_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575323/Model_4FGL_J1223.9+5000_daily_bin1029.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/575323/ft1_filtered_4FGL_J1223.9+5000_daily_bin1029.fits
Spacecraft file(s): /scratch/kocevski/575323/ft2_4FGL_J1223.9+5000_daily_bin1029.fits
Exposure map: /scratch/kocevski/575323/expmap_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.fits
Exposure cube: /scratch/kocevski/575323/ltcube_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575323/Model_4FGL_J1223.9+5000_daily_bin1029.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) = 5679.87234409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    6.8260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28383E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15198E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.358       1.0000         .10000E-03   10000.    
     8 'norm      '    .15289E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.915       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11624E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3745       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5372       1.0000         .10000E-03   10000.    
    14 'norm      '    27.402       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0286       1.0000         .10000E-03   10000.    
    17 'norm      '    .49628       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4741       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.5136       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .21852E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12509E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.1345       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93558       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0222       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.

 FCN=   5679.720     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3211 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.456       -.22944E-06** at limit **
   2  norm          6.8261        24.940        .33387E-05   -.22710E-04
   3  Prefactor     .10000E-03    3.5690       -.28780E-07** at limit **
   4  norm          .10000E-03    .98978       -.12558E-06** at limit **
   5  norm          .10000E-03    3.8740        .71730E-08** at limit **
   6  Prefactor     .10000E-03    1.6834       -.24323E-06** at limit **
   7  Prefactor     24.349        42.623        .28833E-06   -.41376E-04
   8  norm          .10000E-03    3.3666        .10701E-05** at limit **
   9  Prefactor     18.927        18.041        .31606E-06    .44849E-04
  10  Prefactor     .10000E-03    3.5988        .44299E-06** at limit **
  11  Prefactor     .10000E-03    27.222        .22821E-05** at limit **
  12  norm          3.3744        2.0602        .32942E-07   -.18521E-03
  13  Prefactor     6.5729        65.524        .94095E-05    .11284E-03
  14  norm          27.402        9.1049        .83775E-07   -.11272E-04
  15  Prefactor     .10000E-03    4.7487       -.14911E-06** at limit **
  16  Prefactor     1.0406        8.6080        .33173E-05   -.53992E-04
  17  norm          .49431        1.5804       -.25966E-06   -.75402E-03
  18  Prefactor     .10000E-03    10.742        .22712E-06** at limit **
  19  norm          5.4742        2.4215       -.27973E-07   -.16413E-03
  20  Prefactor     .10001E-03    67.418       -.52125E-05** at limit **
  21  Prefactor     .10000E-03    8.6316       -.70206E-06** at limit **
  22  norm          .10000E-03    4.3870        .11141E-06** at limit **
  23  norm          5.5153        4.3338        .18354E-05   -.41438E-03
  24  Prefactor     .10000E-03    10.026        .57421E-07** at limit **
  25  Prefactor     .10071E-03    9.7254        .19979E-05** at limit **
  26  Prefactor     .10000E-03    55.618        .42850E-05** at limit **
  27  norm          2.1357        3.4348        .36714E-06   -.60326E-03
  28  Normalizat    .93563        .16032       -.90194E-06   -.27491E-03
  29  Prefactor     1.0222        .19840       -.75920E-06   -.19509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.8261
  Prefactor  = 0.000100002
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.3489
  norm       = 0.000100004
  Prefactor  = 18.9268
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.37442
  Prefactor  = 6.57286
  norm       = 27.4024
  Prefactor  = 0.0001
  Prefactor  = 1.04059
  norm       = 0.494313
  Prefactor  = 0.0001
  norm       = 5.4742
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.51529
  Prefactor  = 0.0001
  Prefactor  = 0.00010071
  Prefactor  = 0.000100005
  norm       = 2.13568
  Normalizat = 0.935627
  Prefactor  = 1.02222
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.720     FROM HESSE     STATUS=OK           557 CALLS     3768 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.8261        24.978        .76784E-03   -1.5185    
   3  Prefactor     .10000E-03    17.856        .27270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.4819        .14098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.8789        .14486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7546        .18614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.349        41.488        .81164E-04   -1.4721    
   8  norm          .10000E-03    6.8305        .26257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.927        17.782        .92092E-04   -1.4838    
  10  Prefactor     .10000E-03    3.6182        .13941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3744        2.0593        .80823E-04   -1.5341    
  13  Prefactor     6.5729        69.275        .15696E-03   -1.5195    
  14  norm          27.402        9.1021        .76532E-04   -1.4661    
  15  Prefactor     .10000E-03    4.7509        .16040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0406        7.9086        .38325E-03   -1.5504    
  17  norm          .49431        1.4322        .14772E-03   -1.5567    
  18  Prefactor     .10000E-03    10.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4742        2.4203        .75568E-04   -1.5240    
  20  Prefactor     .10001E-03    68.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.3892        .15418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.5153        4.3839        .67675E-03   -1.5238    
  24  Prefactor     .10000E-03    10.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10071E-03    66.760        .41886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    56.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.1357        3.2337        .16233E-03   -1.5416    
  28  Normalizat    .93563        .18707        .22270E-03   -.95219    
  29  Prefactor     1.0222        .23496        .27129E-03   -.91992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22238e-08
Minuit parameter uncertainties:
  1  4.19865e-05
  2  25.0162
  3  0.000378306
  4  7.20627e-05
  5  7.33872e-06
  6  9.81477e-05
  7  41.537
  8  0.000327765
  9  17.7867
  10  1.37726e-05
  11  0.00029492
  12  2.05937
  13  42.7403
  14  9.10254
  15  1.08853e-05
  16  5.73823
  17  1.43233
  18  3.26792e-05
  19  2.42039
  20  0.0014765
  21  7.09196e-05
  22  1.04292e-05
  23  4.38417
  24  2.63814e-07
  25  0.0137847
  26  0.00106456
  27  3.23398
  28  0.187196
  29  0.235191
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.740e+01  9.103e+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:  1.022e+00  2.352e-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:  9.356e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.57
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 3.65e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 1.14e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5678.66738064
delta logL = 1.05241563327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5678.59423634
delta logL = 1.12555993572

Fit tolerance = 1e-08

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

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

 FCN=   5678.594     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.171        11.808        .17945E-02    .48073E-04
   2  alpha         1.8641        .37993        .25162       -.62034E-04
   3  Normalizat    .97075        .15799        .45800E-01   -.26700E-04
   4  Prefactor     .99706        .19957        .46230E-01   -.60427E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.171
  alpha      = 1.86407
  Normalizat = 0.970752
  Prefactor  = 0.997058
 **********
 **   18 **HESSE 
 **********

 FCN=   5678.594     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.171        10.957        .71779E-04   -1.4591    
   2  alpha         1.8641        .37053        .10547E-01   -.25720    
   3  Normalizat    .97075        .18418        .21937E-03   -.94017    
   4  Prefactor     .99706        .23266        .27416E-03   -.92828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13851e-10
Minuit parameter uncertainties:
  1  10.9578
  2  0.372001
  3  0.184304
  4  0.232891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575323': 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) = 5678.59423539
delta logL = 1.12556088527

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.117e+01  1.096e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.864e+00  3.720e-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:  9.971e-01  2.329e-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:  9.708e-01  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.87
Ra Dec: 185.988 50.009
Photon Index (Free Index): 1.86 +/- 0.37
Photon Flux (Free Index): 7.80e-08 +/- 3.52e-08
Energy Flux (Free Index): 4.18e-05 +/- 1.61e-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/575323/cmap_HighResolution_506044801_506304001_4FGL_J1223.9+5000_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='4.18e-05', photon_flux_error='3.65e-08', dlogl='1.13e+00', energy_flux='3.44e-05', photon_flux2='7.80e-08', job_status='DONE', time_completed='2021-09-05 12:22:38.230713', photon_index_error2='0.37', photon_index2='1.86', ts='24.57', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.94', time_epoch_completed='1630869758.23', return_code='0', job_id='575323', GAL2='1.00', EG2='0.97', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.52e-08', ts2='26.87', photon_index='2.42' WHERE bin_id='1029' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:22:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 575323: <4FGL_J1223.9+5000_daily_bin1029> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1029> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 12:10:22 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:10:23 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:10:23 2021
Terminated at Sun Sep  5 12:22:40 2021
Results reported at Sun Sep  5 12:22:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1029 185.988 50.0089 506044801 506304001 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 :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            738 sec.

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

