/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 126 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.9+5000_daily_bin385
RA = 185.988, Dec = 50.0089
tmin = 339120001, tmax = 339379201
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='567797', job_status='RUN', time_executed='2021-09-05 11:54:05.638428', time_epoch_executed='1630868045.64' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567797

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567797/ft1_4FGL_J1223.9+5000_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567797/ft2_4FGL_J1223.9+5000_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567797/ft1_4FGL_J1223.9+5000_daily_bin385.fits outfile=/scratch/kocevski/567797/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin385.fits ra=185.988 dec=50.0089 rad=12.0 tmin=339120001.0 tmax=339379201.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.58
user 6.09
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/567797/ft2_4FGL_J1223.9+5000_daily_bin385.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/567797/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin385.fits evtable="EVENTS" outfile="/scratch/kocevski/567797/ft1_filtered_4FGL_J1223.9+5000_daily_bin385.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567797/ft1_filtered_4FGL_J1223.9+5000_daily_bin385.fits" evtable="EVENTS" scfile=/scratch/kocevski/567797/ft2_4FGL_J1223.9+5000_daily_bin385.fits sctable="SC_DATA" outfile=/scratch/kocevski/567797/ltcube_339120001_339379201_4FGL_J1223.9+5000_daily_bin385.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/567797/ft2_4FGL_J1223.9+5000_daily_bin385.fits
.....................!
real 11.26
user 10.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567797/ft1_filtered_4FGL_J1223.9+5000_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/567797/ft2_4FGL_J1223.9+5000_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/567797/ltcube_339120001_339379201_4FGL_J1223.9+5000_daily_bin385.fits outfile=/scratch/kocevski/567797/expmap_339120001_339379201_4FGL_J1223.9+5000_daily_bin385.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/567797/ltcube_339120001_339379201_4FGL_J1223.9+5000_daily_bin385.fits
.....................!
real 190.94
user 185.36
sys 5.06

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/567797/ft1_filtered_4FGL_J1223.9+5000_daily_bin385.fits scfile=/scratch/kocevski/567797/ft2_4FGL_J1223.9+5000_daily_bin385.fits outfile=/scratch/kocevski/567797/cmap_339120001_339379201_4FGL_J1223.9+5000_daily_bin385.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567797/ft1_filtered_4FGL_J1223.9+5000_daily_bin385.fits scfile=/scratch/kocevski/567797/ft2_4FGL_J1223.9+5000_daily_bin385.fits outfile=/scratch/kocevski/567797/cmap_HighResolution_339120001_339379201_4FGL_J1223.9+5000_daily_bin385.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.956       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1488       1.0000         .10000E-03   10000.    
     5 'norm      '    .11215E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.241       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1631       1.0000         .10000E-03   10000.    
     8 'norm      '    5.7211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4148       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4430       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0154       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9983       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.480       1.0000         .10000E-03   10000.    
    22 'norm      '    8.5553       1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.403       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .76789       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0440       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96988       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=   5598.272     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3157 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    133.00       -.28416E-06** at limit **
   2  norm          11.874        42.188       -.94846E-06   -.74035E-04
   3  Prefactor     .10000E-03    1.3305       -.20700E-08** at limit **
   4  norm          3.1485        1.9279        .13944E-06   -.37090E-03
   5  norm          .10000E-03    24.495        .78807E-05** at limit **
   6  Prefactor     16.237        5.4680        .37458E-07   -.31285E-04
   7  Prefactor     4.2096        242.05       -.43305E-05   -.26760E-04
   8  norm          5.7248        6.6465       -.83708E-07   -.50257E-04
   9  Prefactor     .10000E-03    14.304       -.48503E-07** at limit **
  10  Prefactor     2.4071        9.8341        .10838E-05   -.10185E-04
  11  Prefactor     .10000E-03    9.6531       -.43159E-07** at limit **
  12  norm          1.4428        1.7728        .12741E-06   -.75819E-05
  13  Prefactor     .10000E-03    28.045       -.88159E-07** at limit **
  14  norm          .10000E-03    2.6241        .89133E-08** at limit **
  15  Prefactor     .10000E-03    18.990        .14812E-07** at limit **
  16  Prefactor     .10000E-03    2.2047       -.10747E-07** at limit **
  17  norm          2.0154        1.6097       -.26566E-07   -.11364E-04
  18  Prefactor     .10000E-03    12.691        .10848E-06** at limit **
  19  norm          3.9982        2.3192        .83269E-08   -.31616E-04
  20  Prefactor     .10000E-03    47.884       -.43499E-07** at limit **
  21  Prefactor     12.479        9.3195        .54109E-06   -.36445E-04
  22  norm          8.5556        10.386        .87186E-08   -.10555E-05
  23  norm          .10000E-03    1.8208        .63135E-08** at limit **
  24  Prefactor     14.408        31.421       -.55363E-06   -.23724E-04
  25  Prefactor     .10000E-03    10.597       -.50043E-06** at limit **
  26  Prefactor     .10000E-03    26.550        .46203E-07** at limit **
  27  norm          .76898        5.9920        .27630E-05   -.70096E-04
  28  Normalizat    1.0439        .17487       -.75372E-06   -.92586E-04
  29  Prefactor     .96998        .20846        .23871E-06   -.13559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 11.8739
  Prefactor  = 0.0001
  norm       = 3.14853
  norm       = 0.0001
  Prefactor  = 16.2375
  Prefactor  = 4.20958
  norm       = 5.72484
  Prefactor  = 0.0001
  Prefactor  = 2.4071
  Prefactor  = 0.0001
  norm       = 1.44281
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01539
  Prefactor  = 0.0001
  norm       = 3.9982
  Prefactor  = 0.0001
  Prefactor  = 12.4792
  norm       = 8.55565
  norm       = 0.0001
  Prefactor  = 14.4077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.768982
  Normalizat = 1.04392
  Prefactor  = 0.969979
 **********
 **   18 **HESSE 
 **********

 FCN=   5598.272     FROM HESSE     STATUS=OK           553 CALLS     3710 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    133.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.874        42.273        .11585E-03   -1.5019    
   3  Prefactor     .10000E-03    1.3313        .84285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1485        1.9183        .72530E-04   -1.5353    
   5  norm          .10000E-03    24.869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.237        5.4798        .95409E-04   -1.4902    
   7  Prefactor     4.2096        238.05        .19754E-03   -1.5298    
   8  norm          5.7248        6.4918        .16626E-03   -1.5229    
   9  Prefactor     .10000E-03    14.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4071        9.5059        .26342E-03   -1.5398    
  11  Prefactor     .10000E-03    9.6553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4428        1.7501        .10582E-03   -1.5468    
  13  Prefactor     .10000E-03    28.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.6325        .11836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2156        .10847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0154        1.6138        .82289E-04   -1.5424    
  18  Prefactor     .10000E-03    12.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9982        2.3186        .84028E-04   -1.5308    
  20  Prefactor     .10000E-03    47.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.479        9.3132        .56696E-03   -1.5001    
  22  norm          8.5556        10.385        .13705E-03   -1.5123    
  23  norm          .10000E-03    1.8543        .98542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.408        31.381        .10554E-03   -1.4949    
  25  Prefactor     .10000E-03    10.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .76898        6.0446        .34425E-03   -1.5533    
  28  Normalizat    1.0439        .20322        .23060E-03   -.91573    
  29  Prefactor     .96998        .24229        .29098E-03   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03712e-10
Minuit parameter uncertainties:
  1  0.000571481
  2  42.3796
  3  2.09983e-07
  4  1.91832
  5  0.000141994
  6  5.47998
  7  63.5786
  8  6.49262
  9  1.92005e-05
  10  9.51183
  11  2.99849e-06
  12  1.75012
  13  3.63445e-05
  14  9.97261e-07
  15  9.11022e-07
  16  2.41833e-07
  17  1.61382
  18  3.26816e-05
  19  2.31869
  20  3.81448e-05
  21  9.31424
  22  10.3875
  23  5.64356e-07
  24  31.4172
  25  8.12372e-05
  26  2.93462e-06
  27  4.31224
  28  0.203375
  29  0.24256
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  9.973e-07  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:  9.700e-01  2.426e-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.044e+00  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/567797/likelihoodResults_339120001_339379201_4FGL_J1223.9+5000_daily_bin385.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): 102
logL (Free Index) = 5598.27348312
delta logL = -0.00179834103983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5598.27168475
delta logL = 2.78605511994e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4093       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96999       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=   5598.272     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      236 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    190.55        .11878E-01** at limit **
   2  alpha         1.7622        4.0930        .16474       -.99372E-07
   3  Normalizat    1.0439        .36711E-01    .23060E-03    .97468E-04
   4  Prefactor     .96998        .45030E-01    .29098E-03    .66185E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76216
  Normalizat = 1.04392
  Prefactor  = 0.96998
 **********
 **   18 **HESSE 
 **********

 FCN=   5598.272     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0696        .12750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7622        2.7021        .65897E-02   -.29960    
   3  Normalizat    1.0439        .19507        .92239E-05   -.91573    
   4  Prefactor     .96998        .23908        .11639E-04   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31224e-10
Minuit parameter uncertainties:
  1  2.60911e-05
  2  245.788
  3  0.195204
  4  0.239341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567797': 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) = 5598.27168208
delta logL = 2.69506926998e-06

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  2.609e-05  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.762e+00  2.458e+02  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.700e-01  2.393e-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.044e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.988 50.009

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/567797/cmap_HighResolution_339120001_339379201_4FGL_J1223.9+5000_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-05', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2021-09-05 12:07:54.718495', job_id='567797', GAL2='0.97', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630868874.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.70e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='385' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:07:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 567797: <4FGL_J1223.9+5000_daily_bin385> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin385> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:51:22 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:51:24 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:51:24 2021
Terminated at Sun Sep  5 12:07:55 2021
Results reported at Sun Sep  5 12:07:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin385 185.988 50.0089 339120001 339379201 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 :                                   823.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

