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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin590
RA = 185.988, Dec = 50.0089
tmin = 392256001, tmax = 392515201
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='569617', job_status='RUN', time_executed='2021-09-05 11:56:05.426137', time_epoch_executed='1630868165.43' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569617/ft1_4FGL_J1223.9+5000_daily_bin590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569617/ft2_4FGL_J1223.9+5000_daily_bin590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569617/ft1_4FGL_J1223.9+5000_daily_bin590.fits outfile=/scratch/kocevski/569617/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin590.fits ra=185.988 dec=50.0089 rad=12.0 tmin=392256001.0 tmax=392515201.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 3.32
user 3.08
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569617/ft1_filtered_4FGL_J1223.9+5000_daily_bin590.fits" evtable="EVENTS" scfile=/scratch/kocevski/569617/ft2_4FGL_J1223.9+5000_daily_bin590.fits sctable="SC_DATA" outfile=/scratch/kocevski/569617/ltcube_392256001_392515201_4FGL_J1223.9+5000_daily_bin590.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/569617/ft2_4FGL_J1223.9+5000_daily_bin590.fits
.....................!
real 11.59
user 11.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569617/ft1_filtered_4FGL_J1223.9+5000_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/569617/ft2_4FGL_J1223.9+5000_daily_bin590.fits sctable="SC_DATA" expcube=/scratch/kocevski/569617/ltcube_392256001_392515201_4FGL_J1223.9+5000_daily_bin590.fits outfile=/scratch/kocevski/569617/expmap_392256001_392515201_4FGL_J1223.9+5000_daily_bin590.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/569617/ltcube_392256001_392515201_4FGL_J1223.9+5000_daily_bin590.fits
.....................!
real 189.37
user 184.94
sys 4.01

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/569617/ft1_filtered_4FGL_J1223.9+5000_daily_bin590.fits scfile=/scratch/kocevski/569617/ft2_4FGL_J1223.9+5000_daily_bin590.fits outfile=/scratch/kocevski/569617/cmap_392256001_392515201_4FGL_J1223.9+5000_daily_bin590.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569617/ft1_filtered_4FGL_J1223.9+5000_daily_bin590.fits scfile=/scratch/kocevski/569617/ft2_4FGL_J1223.9+5000_daily_bin590.fits outfile=/scratch/kocevski/569617/cmap_HighResolution_392256001_392515201_4FGL_J1223.9+5000_daily_bin590.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7979       1.0000         .10000E-03   10000.    
     2 'norm      '    53.120       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8787       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.1812       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5780       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6416       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.418       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.442       1.0000         .10000E-03   10000.    
    17 'norm      '    8.1295       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.525       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5144       1.0000         .10000E-03   10000.    
    23 'norm      '    .14748E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.789       1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.125       1.0000         .10000E-03   10000.    
    26 'Prefactor '    42.628       1.0000         .10000E-03   10000.    
    27 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .68728       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4827       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=   5785.359     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3862 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7002        370.48       -.45321E-03    .54999E-04
   2  norm          53.126        47.630        .65789E-05    .79871E-04
   3  Prefactor     .10000E-03    8.5915       -.98020E-05** at limit **
   4  norm          5.8779        2.0002       -.14961E-06    .55150E-04
   5  norm          .10000E-03    3.1467        .10293E-06** at limit **
   6  Prefactor     .10000E-03    1.3998       -.45012E-07** at limit **
   7  Prefactor     .10000E-03    25.670        .61590E-05** at limit **
   8  norm          8.1806        5.7809        .33159E-06    .65081E-04
   9  Prefactor     .10000E-03    20.736       -.19387E-04** at limit **
  10  Prefactor     3.5776        5.8472        .45534E-06   -.12952E-03
  11  Prefactor     .10000E-03    10.229        .26564E-05** at limit **
  12  norm          2.6413        3.0301       -.67941E-06   -.37589E-03
  13  Prefactor     .10000E-03    48.525       -.11266E-04** at limit **
  14  norm          .10000E-03    3.2327       -.27164E-07** at limit **
  15  Prefactor     11.412        16.443       -.14373E-05   -.35397E-03
  16  Prefactor     17.441        10.086       -.45207E-06   -.13575E-03
  17  norm          8.1296        3.8348       -.70889E-06   -.27584E-03
  18  Prefactor     13.514        19.731       -.50866E-05   -.22508E-04
  19  norm          .10000E-03    1.3784        .31129E-07** at limit **
  20  Prefactor     .10000E-03    27.919        .18773E-04** at limit **
  21  Prefactor     .10000E-03    10.506        .61635E-05** at limit **
  22  norm          5.5135        8.6115       -.42965E-06   -.53934E-04
  23  norm          .10003E-03    2.5187        .48146E-06** at limit **
  24  Prefactor     34.792        50.361        .42318E-05   -.51396E-04
  25  Prefactor     21.125        15.597       -.69415E-06   -.19882E-04
  26  Prefactor     42.625        58.669       -.43648E-05   -.28420E-04
  27  norm          .10000E-03    1.3946       -.22047E-08** at limit **
  28  Normalizat    .68736        .17893        .11730E-05    .41776E-03
  29  Prefactor     1.4826        .21981        .50249E-05    .14411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.70024
  norm       = 53.1256
  Prefactor  = 0.0001
  norm       = 5.87794
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.18058
  Prefactor  = 0.0001
  Prefactor  = 3.57756
  Prefactor  = 0.0001
  norm       = 2.64126
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4118
  Prefactor  = 17.441
  norm       = 8.12957
  Prefactor  = 13.5141
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.51348
  norm       = 0.000100031
  Prefactor  = 34.7922
  Prefactor  = 21.1248
  Prefactor  = 42.625
  norm       = 0.0001
  Normalizat = 0.687357
  Prefactor  = 1.48259
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.359     FROM HESSE     STATUS=OK           553 CALLS     4415 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7002        377.35        .20713E-03   -1.5323    
   2  norm          53.126        47.651        .55031E-04   -1.4249    
   3  Prefactor     .10000E-03    8.9673        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8779        2.0016        .60565E-04   -1.5223    
   5  norm          .10000E-03    3.1477        .13177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4144        .87834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.1806        5.7750        .14017E-03   -1.5136    
   9  Prefactor     .10000E-03    20.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5776        5.8300        .21364E-03   -1.5330    
  11  Prefactor     .10000E-03    10.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6413        3.0199        .13084E-03   -1.5383    
  13  Prefactor     .10000E-03    48.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.2477        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.412        16.460        .59280E-03   -1.5032    
  16  Prefactor     17.441        10.110        .95900E-04   -1.4872    
  17  norm          8.1296        3.8375        .90808E-04   -1.5138    
  18  Prefactor     13.514        19.717        .10892E-03   -1.4973    
  19  norm          .10000E-03    1.4228        .17429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5135        8.6053        .17110E-03   -1.5238    
  23  norm          .10003E-03    7.8772        .22685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     34.792        49.460        .67942E-04   -1.4528    
  25  Prefactor     21.125        15.592        .87144E-04   -1.4788    
  26  Prefactor     42.625        58.531        .61401E-04   -1.4401    
  27  norm          .10000E-03    1.3972        .87659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .68736        .21230        .27976E-03   -1.0439    
  29  Prefactor     1.4826        .26196        .25655E-03   -.78028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89879e-09
Minuit parameter uncertainties:
  1  75.2256
  2  47.6851
  3  6.93496e-05
  4  2.00159
  5  2.60891e-06
  6  1.03677e-06
  7  1.61715e-05
  8  5.77538
  9  1.23383e-05
  10  5.83088
  11  1.33285e-05
  12  3.02009
  13  6.35923e-05
  14  2.82191e-06
  15  16.4661
  16  10.1113
  17  3.83758
  18  19.726
  19  1.16105e-05
  20  7.09083e-05
  21  3.56121e-05
  22  8.60721
  23  0.000993861
  24  49.5183
  25  15.5948
  26  58.6105
  27  2.1996e-06
  28  0.212557
  29  0.2622
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  2.822e-06  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.483e+00  2.622e-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:  6.874e-01  2.126e-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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/569617/likelihoodResults_392256001_392515201_4FGL_J1223.9+5000_daily_bin590.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) = 5785.36029298
delta logL = -0.00145940174752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5785.35883683
delta logL = -3.2579036997e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12111E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4248       1.0000          .0000       5.0000    
     3 'Normalizat'    .68740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4826       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5785.145     FROM MIGRAD    STATUS=FAILED       143 CALLS      291 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23184        29.989        .12580E-01    .21240E-02
   2  alpha         5.0000        3.5594        .16470    ** at limit **
   3  Normalizat    .64525        .44589        .27976E-02    .52215E-04
   4  Prefactor     1.5157        .22287        .25655E-03    .58485E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5785.145     FROM SIMPLEX   STATUS=UNCHANGED    167 CALLS      458 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23184        29.989        .18044E-06    .21240E-02
   2  alpha         5.0000        3.5594        .95872E-02** at limit **
   3  Normalizat    .64525        .44589        .43135E-06    .52215E-04
   4  Prefactor     1.5157        .22287        .16120E-07    .58485E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5785.145     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      490 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23184        .38328        .56334E-04    .54488E-05
   2  alpha         5.0000        3.4014        .32940E-01** at limit **
   3  Normalizat    .64525        .20994        .11190E-03    .48257E-04
   4  Prefactor     1.5157        .26510        .51310E-04    .58494E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.231838
  alpha      = 5
  Normalizat = 0.645253
  Prefactor  = 1.51573
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.145     FROM HESSE     STATUS=OK            23 CALLS      513 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23184        .38301        .22534E-05   -1.5612    
   2  alpha         5.0000        3.4013        .65880E-02    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .64525        .20988        .44761E-05   -1.0610    
   4  Prefactor     1.5157        .26506        .10262E-04   -.77100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22356e-12
Minuit parameter uncertainties:
  1  0.383014
  2  4.14556e-06
  3  0.210141
  4  0.265303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569617': 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) = 5785.14481287
delta logL = 0.214020708261

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.318e-01  3.830e-01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  5.000e+00  4.146e-06  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:  1.516e+00  2.653e-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:  6.453e-01  2.101e-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/569617/cmap_HighResolution_392256001_392515201_4FGL_J1223.9+5000_daily_bin590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-05', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-05 12:11:54.340129', job_id='569617', GAL2='1.52', fit_tolerance='1e-08', EG2='0.65', EG='0.69', time_epoch_completed='1630869114.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.48', dlogl='2.14e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='590' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:11:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 569617: <4FGL_J1223.9+5000_daily_bin590> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin590> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 11:55:41 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:55:42 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:55:42 2021
Terminated at Sun Sep  5 12:11:54 2021
Results reported at Sun Sep  5 12:11:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin590 185.988 50.0089 392256001 392515201 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 :                                   944.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

