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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1019
RA = 185.988, Dec = 50.0089
tmin = 503452801, tmax = 503712001
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='573872', job_status='RUN', time_executed='2021-09-05 12:09:02.356165', time_epoch_executed='1630868942.36' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573872/ft1_4FGL_J1223.9+5000_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573872/ft2_4FGL_J1223.9+5000_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573872/ft1_4FGL_J1223.9+5000_daily_bin1019.fits outfile=/scratch/kocevski/573872/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1019.fits ra=185.988 dec=50.0089 rad=12.0 tmin=503452801.0 tmax=503712001.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 5.92
user 5.66
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573872/ft2_4FGL_J1223.9+5000_daily_bin1019.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/573872/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/573872/ft1_filtered_4FGL_J1223.9+5000_daily_bin1019.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.41
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573872/ft1_filtered_4FGL_J1223.9+5000_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/573872/ft2_4FGL_J1223.9+5000_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/573872/ltcube_503452801_503712001_4FGL_J1223.9+5000_daily_bin1019.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/573872/ft2_4FGL_J1223.9+5000_daily_bin1019.fits
.....................!
real 8.67
user 8.38
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573872/ft1_filtered_4FGL_J1223.9+5000_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/573872/ft2_4FGL_J1223.9+5000_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/573872/ltcube_503452801_503712001_4FGL_J1223.9+5000_daily_bin1019.fits outfile=/scratch/kocevski/573872/expmap_503452801_503712001_4FGL_J1223.9+5000_daily_bin1019.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/573872/ltcube_503452801_503712001_4FGL_J1223.9+5000_daily_bin1019.fits
.....................!
real 139.76
user 136.15
sys 3.32

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/573872/ft1_filtered_4FGL_J1223.9+5000_daily_bin1019.fits scfile=/scratch/kocevski/573872/ft2_4FGL_J1223.9+5000_daily_bin1019.fits outfile=/scratch/kocevski/573872/cmap_503452801_503712001_4FGL_J1223.9+5000_daily_bin1019.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.45
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573872/ft1_filtered_4FGL_J1223.9+5000_daily_bin1019.fits scfile=/scratch/kocevski/573872/ft2_4FGL_J1223.9+5000_daily_bin1019.fits outfile=/scratch/kocevski/573872/cmap_HighResolution_503452801_503712001_4FGL_J1223.9+5000_daily_bin1019.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    42.072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9408       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1508       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.423       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5716       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5919       1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.864       1.0000         .10000E-03   10000.    
    14 'norm      '    14.639       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.116       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.7722       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0157       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    138.44       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .42425       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.5858       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=   5424.604     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3664 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.117        .16338E-04** at limit **
   2  norm          42.074        38.801        .17516E-05   -.37887E-05
   3  Prefactor     .10000E-03    7.4182       -.71300E-06** at limit **
   4  norm          4.9407        2.0290       -.43260E-07   -.23649E-04
   5  norm          .10000E-03    3.9908       -.96896E-06** at limit **
   6  Prefactor     1.1531        3.5679        .38252E-05   -.21749E-03
   7  Prefactor     .10000E-03    23.899       -.59047E-06** at limit **
   8  norm          .10000E-03    2.2898       -.25162E-07** at limit **
   9  Prefactor     21.403        29.821       -.17107E-04   -.15728E-03
  10  Prefactor     2.5716        4.3709        .91156E-07   -.21887E-03
  11  Prefactor     .10000E-03    7.9780        .10172E-05** at limit **
  12  norm          2.5913        2.4277       -.30235E-06   -.55704E-03
  13  Prefactor     58.862        51.690       -.29013E-05    .18362E-06
  14  norm          14.638        9.8371        .75627E-06   -.67060E-04
  15  Prefactor     26.112        30.160       -.25578E-05   -.21056E-04
  16  Prefactor     .10000E-03    2.5514       -.32513E-07** at limit **
  17  norm          4.7352        2.3114       -.73264E-07    .68504E-04
  18  Prefactor     .10000E-03    11.715        .14007E-06** at limit **
  19  norm          4.7722        2.5533       -.17446E-06   -.14203E-04
  20  Prefactor     34.081        43.944       -.86387E-05    .10896E-04
  21  Prefactor     .10000E-03    6.9749       -.16093E-05** at limit **
  22  norm          .10000E-03    3.9715        .93639E-06** at limit **
  23  norm          1.0138        3.9475       -.26044E-05   -.10530E-02
  24  Prefactor     .10000E-03    70.295       -.15075E-04** at limit **
  25  Prefactor     .10000E-03    6.6001        .10316E-05** at limit **
  26  Prefactor     138.44        58.092        .37686E-05    .15839E-03
  27  norm          .10000E-03    1.1799       -.24265E-07** at limit **
  28  Normalizat    .42439        .17871        .37349E-05   -.46129E-05
  29  Prefactor     1.5857        .22493        .53773E-06   -.81532E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 42.0736
  Prefactor  = 0.0001
  norm       = 4.94069
  norm       = 0.0001
  Prefactor  = 1.15311
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.4027
  Prefactor  = 2.57158
  Prefactor  = 0.0001
  norm       = 2.59128
  Prefactor  = 58.8618
  norm       = 14.6384
  Prefactor  = 26.1123
  Prefactor  = 0.0001
  norm       = 4.73524
  Prefactor  = 0.0001
  norm       = 4.77221
  Prefactor  = 34.0813
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.01383
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 138.44
  norm       = 0.0001
  Normalizat = 0.424385
  Prefactor  = 1.58569
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.604     FROM HESSE     STATUS=OK           551 CALLS     4215 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          42.074        38.793        .61803E-04   -1.4410    
   3  Prefactor     .10000E-03    7.7172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9407        2.0275        .64808E-04   -1.5263    
   5  norm          .10000E-03    3.9995        .14368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1531        3.3712        .19702E-03   -1.5493    
   7  Prefactor     .10000E-03    23.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.3356        .10879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.403        28.688        .86538E-04   -1.4782    
  10  Prefactor     2.5716        4.3481        .19475E-03   -1.5387    
  11  Prefactor     .10000E-03    7.9797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5913        2.4157        .10405E-03   -1.5386    
  13  Prefactor     58.862        51.663        .26146E-03   -1.4172    
  14  norm          14.638        9.8190        .10468E-03   -1.4943    
  15  Prefactor     26.112        30.111        .78389E-04   -1.4686    
  16  Prefactor     .10000E-03    2.5671        .11481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7352        2.3092        .75823E-04   -1.5273    
  18  Prefactor     .10000E-03    11.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.7722        2.5511        .83140E-04   -1.5271    
  20  Prefactor     34.081        43.774        .68635E-04   -1.4540    
  21  Prefactor     .10000E-03    7.0756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.9710        .14334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0138        4.0294        .27957E-03   -1.5507    
  24  Prefactor     .10000E-03    70.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.6070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     138.44        58.179        .34235E-04   -1.3349    
  27  norm          .10000E-03    1.1809        .78123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .42439        .19840        .32697E-03   -1.1606    
  29  Prefactor     1.5857        .25476        .23686E-03   -.75167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18736e-09
Minuit parameter uncertainties:
  1  5.31064e-05
  2  38.8165
  3  4.67177e-05
  4  2.0275
  5  5.36726e-07
  6  3.37174
  7  3.28503e-06
  8  4.88642e-06
  9  28.7066
  10  4.34862
  11  1.01212e-06
  12  2.41576
  13  51.7019
  14  9.82006
  15  30.1289
  16  4.76008e-06
  17  2.3092
  18  5.28953e-06
  19  2.55119
  20  43.8155
  21  2.0099e-05
  22  2.20214e-06
  23  4.03045
  24  0.000389964
  25  1.33817e-05
  26  58.2033
  27  2.73987e-06
  28  0.19873
  29  0.254966
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.464e+01  9.820e+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.586e+00  2.550e-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:  4.244e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.36
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.87e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.23e-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) = 5424.30583639
delta logL = 0.298087269182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5424.27129088
delta logL = 0.332632776322

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.913       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5353       1.0000          .0000       5.0000    
     3 'Normalizat'    .46284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5604       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=   5424.271     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      223 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.905        8.3443        .29016E-02    .43439E-03
   2  alpha         1.5345        .60767        .45912       -.31987E-04
   3  Normalizat    .46280        .16802        .70956E-01    .16061E-03
   4  Prefactor     1.5605        .22142        .53962E-01   -.12002E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9047
  alpha      = 1.53453
  Normalizat = 0.4628
  Prefactor  = 1.56052
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.271     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.905        11.325        .11606E-03   -1.5018    
   2  alpha         1.5345        .90121        .18873E-01   -.39650    
   3  Normalizat    .46280        .19081        .31414E-03   -1.1417    
   4  Prefactor     1.5605        .25266        .23856E-03   -.75859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77312e-09
Minuit parameter uncertainties:
  1  11.3269
  2  0.925891
  3  0.191084
  4  0.25287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573872': 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) = 5424.27129045
delta logL = 0.332633207244

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.190e+01  1.133e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.535e+00  9.259e-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:  1.561e+00  2.529e-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:  4.628e-01  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.07
Ra Dec: 185.988 50.009
Photon Index (Free Index): 1.53 +/- 0.93
Photon Flux (Free Index): 2.51e-08 +/- 3.03e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.68e-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/573872/cmap_HighResolution_503452801_503712001_4FGL_J1223.9+5000_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.87e-08', energy_flux2='2.09e-05', photon_flux_error='3.94e-08', dlogl='3.33e-01', energy_flux='1.84e-05', photon_flux2='2.51e-08', job_status='DONE', time_completed='2021-09-05 12:18:16.057297', photon_index_error2='0.93', photon_index2='1.53', ts='7.36', fit_tolerance='1e-08', GAL='1.59', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='0.42', time_epoch_completed='1630869496.06', return_code='0', job_id='573872', GAL2='1.56', EG2='0.46', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.03e-08', ts2='8.07', photon_index='2.42' WHERE bin_id='1019' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:18:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 573872: <4FGL_J1223.9+5000_daily_bin1019> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1019> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 12:05:35 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:05:36 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:05:36 2021
Terminated at Sun Sep  5 12:18:16 2021
Results reported at Sun Sep  5 12:18:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1019 185.988 50.0089 503452801 503712001 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 :                                   548.25 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             274.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            761 sec.

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

