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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1520
RA = 185.988, Dec = 50.0089
tmin = 633312001, tmax = 633571201
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='577097', job_status='RUN', time_executed='2021-09-05 12:15:48.589940', time_epoch_executed='1630869348.59' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577097

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577097/ft1_4FGL_J1223.9+5000_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577097/ft2_4FGL_J1223.9+5000_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577097/ft1_4FGL_J1223.9+5000_daily_bin1520.fits outfile=/scratch/kocevski/577097/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1520.fits ra=185.988 dec=50.0089 rad=12.0 tmin=633312001.0 tmax=633571201.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.76
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577097/ft1_filtered_4FGL_J1223.9+5000_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/577097/ft2_4FGL_J1223.9+5000_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/577097/ltcube_633312001_633571201_4FGL_J1223.9+5000_daily_bin1520.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/577097/ft2_4FGL_J1223.9+5000_daily_bin1520.fits
.....................!
real 12.26
user 11.85
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577097/ft1_filtered_4FGL_J1223.9+5000_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/577097/ft2_4FGL_J1223.9+5000_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/577097/ltcube_633312001_633571201_4FGL_J1223.9+5000_daily_bin1520.fits outfile=/scratch/kocevski/577097/expmap_633312001_633571201_4FGL_J1223.9+5000_daily_bin1520.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/577097/ltcube_633312001_633571201_4FGL_J1223.9+5000_daily_bin1520.fits
.....................!
real 190.94
user 184.89
sys 5.41

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/577097/ft1_filtered_4FGL_J1223.9+5000_daily_bin1520.fits scfile=/scratch/kocevski/577097/ft2_4FGL_J1223.9+5000_daily_bin1520.fits outfile=/scratch/kocevski/577097/cmap_633312001_633571201_4FGL_J1223.9+5000_daily_bin1520.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.56
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    9.3294       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2129       1.0000         .10000E-03   10000.    
     5 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2609       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.737       1.0000         .10000E-03   10000.    
     8 'norm      '    .56192E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.390       1.0000         .10000E-03   10000.    
    12 'norm      '    .53601       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.866       1.0000         .10000E-03   10000.    
    14 'norm      '    7.3031       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19430E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.601       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5318       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.405       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.873       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6706       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .27197       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94567       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78877       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=   5592.123     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     4623 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.404       -.61530E-07** at limit **
   2  norm          9.3343        30.742        .17792E-05    .50730E-04
   3  Prefactor     .10000E-03    2.9949        .22646E-06** at limit **
   4  norm          3.2134        1.7885        .55397E-08   -.15738E-03
   5  norm          .10000E-03    5.2916        .26560E-06** at limit **
   6  Prefactor     3.2619        2.6294       -.66727E-07   -.22735E-03
   7  Prefactor     16.731        42.419       -.71943E-06   -.29377E-04
   8  norm          .10002E-03    5.2198       -.22686E-05** at limit **
   9  Prefactor     .10000E-03    7.1271        .65422E-07** at limit **
  10  Prefactor     .10000E-03    2.6896       -.14359E-06** at limit **
  11  Prefactor     10.384        16.074        .29537E-06    .10405E-03
  12  norm          .53618        1.7362       -.86356E-06   -.80705E-03
  13  Prefactor     43.864        45.742       -.12320E-06    .21616E-04
  14  norm          7.3011        6.1459       -.18554E-06   -.25557E-03
  15  Prefactor     .10004E-03    83.812       -.42795E-05** at limit **
  16  Prefactor     .10000E-03    3.2513        .21190E-06** at limit **
  17  norm          3.0245        1.9269       -.22695E-07   -.14107E-03
  18  Prefactor     29.602        24.671        .77729E-06    .74096E-04
  19  norm          1.5320        1.7992       -.76094E-07   -.27909E-03
  20  Prefactor     39.412        42.418        .18213E-05    .12219E-03
  21  Prefactor     .10000E-03    3.6151        .20882E-06** at limit **
  22  norm          13.874        11.761       -.95289E-07   -.19900E-04
  23  norm          1.6715        4.1650       -.12815E-05   -.65541E-03
  24  Prefactor     .10000E-03    34.206       -.44592E-06** at limit **
  25  Prefactor     .39437        47.440       -.52730E-05    .17237E-03
  26  Prefactor     .10000E-03    16.298        .17307E-06** at limit **
  27  norm          .10000E-03    1.4637        .10322E-06** at limit **
  28  Normalizat    .94554        .15100        .63901E-06   -.17190E-03
  29  Prefactor     .78866        .17785       -.12981E-05   -.17748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.33427
  Prefactor  = 0.0001
  norm       = 3.21335
  norm       = 0.0001
  Prefactor  = 3.26187
  Prefactor  = 16.7305
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3842
  norm       = 0.53618
  Prefactor  = 43.8639
  norm       = 7.30108
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  norm       = 3.02448
  Prefactor  = 29.6018
  norm       = 1.53205
  Prefactor  = 39.412
  Prefactor  = 0.0001
  norm       = 13.8744
  norm       = 1.67146
  Prefactor  = 0.0001
  Prefactor  = 0.394369
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.945544
  Prefactor  = 0.788663
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.123     FROM HESSE     STATUS=OK           557 CALLS     5180 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.3343        30.792        .13121E-03   -1.5097    
   3  Prefactor     .10000E-03    3.0355        .12651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2134        1.7902        .67994E-04   -1.5349    
   5  norm          .10000E-03    5.3526        .16804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2619        2.6252        .10440E-03   -1.5347    
   7  Prefactor     16.731        42.468        .97900E-04   -1.4890    
   8  norm          .10002E-03    8.4341        .21753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6964        .11969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.384        16.007        .12430E-03   -1.5063    
  12  norm          .53618        1.7683        .16853E-03   -1.5562    
  13  Prefactor     43.864        45.708        .60531E-04   -1.4382    
  14  norm          7.3011        5.9542        .14842E-03   -1.5167    
  15  Prefactor     .10004E-03    119.01        .55505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3170        .13170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0245        1.9248        .80173E-04   -1.5360    
  18  Prefactor     29.602        24.735        .73640E-04   -1.4619    
  19  norm          1.5320        1.7824        .10480E-03   -1.5460    
  20  Prefactor     39.412        42.661        .63853E-04   -1.4452    
  21  Prefactor     .10000E-03    3.6351        .13894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.874        11.765        .10754E-03   -1.4963    
  23  norm          1.6715        4.2846        .23386E-03   -1.5449    
  24  Prefactor     .10000E-03    34.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .39437        106.35        .45203E-02   -1.5582    
  26  Prefactor     .10000E-03    16.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.4718        .88289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .94554        .17281        .20449E-03   -.94878    
  29  Prefactor     .78866        .20374        .27325E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30668e-09
Minuit parameter uncertainties:
  1  1.15988e-05
  2  30.8449
  3  2.23497e-05
  4  1.79021
  5  3.77545e-05
  6  2.62526
  7  42.5452
  8  0.00074801
  9  1.67852e-05
  10  5.87513e-06
  11  16.0132
  12  1.76844
  13  45.7442
  14  5.95468
  15  0.0045458
  16  2.30095e-05
  17  1.92481
  18  24.7434
  19  1.78246
  20  42.6936
  21  2.04511e-05
  22  11.7667
  23  4.28543
  24  4.8808e-05
  25  12.9741
  26  3.32181e-05
  27  8.8209e-06
  28  0.172912
  29  0.203938
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  7.887e-01  2.039e-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.455e-01  1.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 2.93e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 9.16e-06 +/- 7.47e-06

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

Saving results to:
/scratch/kocevski/577097/likelihoodResults_633312001_633571201_4FGL_J1223.9+5000_daily_bin1520.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5591.97798027
delta logL = 0.144809993822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5591.96307695
delta logL = 0.159713311348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1625       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6826       1.0000          .0000       5.0000    
     3 'Normalizat'    .96340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77786       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=   5591.963     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1626        5.5413        .40430E-02    .47540E-02
   2  alpha         1.6824        .84074        .44349       -.31437E-04
   3  Normalizat    .96340        .14071        .45707E-01    .42994E-05
   4  Prefactor     .77785        .17314        .62231E-01    .19936E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.16255
  alpha      = 1.68239
  Normalizat = 0.963399
  Prefactor  = 0.777853
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.963     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1626        6.7587        .16172E-03   -1.5211    
   2  alpha         1.6824        1.1047        .26252E-01   -.33317    
   3  Normalizat    .96340        .16356        .20286E-03   -.94267    
   4  Prefactor     .77785        .20140        .27525E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12949e-08
Minuit parameter uncertainties:
  1  6.75958
  2  1.14947
  3  0.16365
  4  0.201589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577097': 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) = 5591.96307693
delta logL = 0.159713339547

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  7.779e-01  2.016e-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.634e-01  1.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.62
Ra Dec: 185.988 50.009
Photon Index (Free Index): 1.68 +/- 1.15
Photon Flux (Free Index): 1.39e-08 +/- 2.10e-08
Energy Flux (Free Index): 9.37e-06 +/- 9.01e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/577097/cmap_HighResolution_633312001_633571201_4FGL_J1223.9+5000_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', comment='SUCCESS', photon_flux='2.93e-08', energy_flux2='9.37e-06', photon_flux_error='2.39e-08', dlogl='1.60e-01', energy_flux='9.16e-06', photon_flux2='1.39e-08', job_status='DONE', time_completed='2021-09-05 12:31:32.665357', photon_index_error2='1.15', photon_index2='1.68', ts='3.30', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='8.59e-08', energy_flux_error2='9.01e-06', EG='0.95', time_epoch_completed='1630870292.67', return_code='0', job_id='577097', GAL2='0.78', EG2='0.96', return_code2='0', energy_flux_error='7.47e-06', photon_flux_error2='2.10e-08', ts2='3.62', photon_index='2.42' WHERE bin_id='1520' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 577097: <4FGL_J1223.9+5000_daily_bin1520> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1520 185.988 50.0089 633312001 633571201 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 :                                   931.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            960 sec.

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

