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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin721
RA = 185.883, Dec = 8.3017
tmin = 426211201, tmax = 426470401
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='546702', job_status='RUN', time_executed='2021-09-05 10:46:26.002179', time_epoch_executed='1630863986.0' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546702

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546702/ft1_4FGL_J1223.5+0818_daily_bin721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546702/ft2_4FGL_J1223.5+0818_daily_bin721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546702/ft1_4FGL_J1223.5+0818_daily_bin721.fits outfile=/scratch/kocevski/546702/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin721.fits ra=185.883 dec=8.3017 rad=12.0 tmin=426211201.0 tmax=426470401.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.58
user 3.34
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/546702/ft2_4FGL_J1223.5+0818_daily_bin721.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546702/ft2_4FGL_J1223.5+0818_daily_bin721.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/546702/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin721.fits evtable="EVENTS" outfile="/scratch/kocevski/546702/ft1_filtered_4FGL_J1223.5+0818_daily_bin721.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.55
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546702/ft1_filtered_4FGL_J1223.5+0818_daily_bin721.fits" evtable="EVENTS" scfile=/scratch/kocevski/546702/ft2_4FGL_J1223.5+0818_daily_bin721.fits sctable="SC_DATA" outfile=/scratch/kocevski/546702/ltcube_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.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/546702/ft2_4FGL_J1223.5+0818_daily_bin721.fits
.....................!
real 14.97
user 14.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546702/ft1_filtered_4FGL_J1223.5+0818_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/546702/ft2_4FGL_J1223.5+0818_daily_bin721.fits sctable="SC_DATA" expcube=/scratch/kocevski/546702/ltcube_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.fits outfile=/scratch/kocevski/546702/expmap_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.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/546702/ltcube_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.fits
.....................!
real 191.56
user 186.95
sys 3.98

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.5+0818 @ 185.883 8.3017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/546702/ft1_filtered_4FGL_J1223.5+0818_daily_bin721.fits scfile=/scratch/kocevski/546702/ft2_4FGL_J1223.5+0818_daily_bin721.fits outfile=/scratch/kocevski/546702/cmap_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.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.883 yref=8.3017 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546702/ft1_filtered_4FGL_J1223.5+0818_daily_bin721.fits scfile=/scratch/kocevski/546702/ft2_4FGL_J1223.5+0818_daily_bin721.fits outfile=/scratch/kocevski/546702/cmap_HighResolution_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.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.883 yref=8.3017 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/546702/ft1_filtered_4FGL_J1223.5+0818_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/546702/ft2_4FGL_J1223.5+0818_daily_bin721.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546702/Model_4FGL_J1223.5+0818_daily_bin721.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/546702/ft1_filtered_4FGL_J1223.5+0818_daily_bin721.fits.....................!
real 63.38
user 62.11
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/546702/ft1_filtered_4FGL_J1223.5+0818_daily_bin721.fits', '/scratch/kocevski/546702/ft2_4FGL_J1223.5+0818_daily_bin721.fits', expMap='/scratch/kocevski/546702/expmap_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.fits', expCube='/scratch/kocevski/546702/ltcube_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/546702/Model_4FGL_J1223.5+0818_daily_bin721.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.5+0818'

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.243e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/546702/ft1_filtered_4FGL_J1223.5+0818_daily_bin721.fits
Spacecraft file(s): /scratch/kocevski/546702/ft2_4FGL_J1223.5+0818_daily_bin721.fits
Exposure map: /scratch/kocevski/546702/expmap_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.fits
Exposure cube: /scratch/kocevski/546702/ltcube_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/546702/Model_4FGL_J1223.5+0818_daily_bin721.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) = 7226.07257392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    30.062       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2276       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.610       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    124.86       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20581E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43679       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0351       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2323       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12374E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.920       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7216       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1292       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .27953E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3489       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4644       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7226.066     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3845 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0117        .27627E-07** at limit **
   2  Prefactor     30.033        93.118        .24809E-05   -.13466E-04
   3  Prefactor     1.2098        34.942        .43269E-04   -.76673E-04
   4  Prefactor     10.611        8.3438        .42670E-06    .68371E-05
   5  Prefactor     .10001E-03    12.142       -.33303E-05** at limit **
   6  Prefactor     124.69        119.81        .12998E-04   -.17784E-04
   7  Prefactor     .10000E-03    17.434        .73289E-06** at limit **
   8  Prefactor     .10001E-03    66.143       -.51236E-05** at limit **
   9  Prefactor     .44810        2.4298        .15561E-06   -.27098E-03
  10  Prefactor     .10000E-03    1.6896       -.14012E-06** at limit **
  11  Prefactor     .10000E-03    30.322       -.26534E-05** at limit **
  12  Prefactor     .10000E-03    7.1104        .25948E-06** at limit **
  13  norm          1.0347        1.8413        .79910E-06    .11335E-02
  14  norm          3.2283        3.3520        .78604E-07   -.41623E-03
  15  Prefactor     .10000E-03    15.380       -.67824E-06** at limit **
  16  norm          .10000E-03    134.20        .45248E-05** at limit **
  17  Prefactor     39.921        66.972        .59562E-07   -.10351E-04
  18  norm          1.7215        .58339       -.24658E-09   -.23222E-02
  19  Prefactor     8.1320        11.821        .71937E-06   -.55403E-04
  20  Prefactor     .10000E-03    19.207        .13202E-06** at limit **
  21  Prefactor     .10000E-03    16.688        .12666E-05** at limit **
  22  norm          .10004E-03    .55939        .39438E-06** at limit **
  23  Prefactor     5.3504        7.8548        .28731E-05    .15040E-03
  24  Prefactor     .10000E-03    11.742       -.10053E-05** at limit **
  25  Prefactor     .10000E-03    45.290        .78676E-05** at limit **
  26  Prefactor     .10000E-03    14.190       -.24371E-06** at limit **
  27  Prefactor     .10000E-03    11.866        .83741E-06** at limit **
  28  Normalizat    1.4643        .19873       -.12013E-06   -.19841E-04
  29  Prefactor     .81101        .16007       -.46201E-05   -.30193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.033
  Prefactor  = 1.20975
  Prefactor  = 10.6109
  Prefactor  = 0.000100013
  Prefactor  = 124.69
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.448101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03467
  norm       = 3.22832
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.9214
  norm       = 1.72153
  Prefactor  = 8.132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010004
  Prefactor  = 5.35037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.46426
  Prefactor  = 0.811014
 **********
 **   18 **HESSE 
 **********

 FCN=   7226.066     FROM HESSE     STATUS=OK           559 CALLS     4404 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.033        93.280        .73074E-04   -1.4611    
   3  Prefactor     1.2098        35.647        .20311E-02   -1.5488    
   4  Prefactor     10.611        8.3449        .12300E-03   -1.5056    
   5  Prefactor     .10001E-03    12.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     124.69        120.81        .18012E-03   -1.3470    
   7  Prefactor     .10000E-03    17.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    68.725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44810        5.0816        .24827E-02   -1.5574    
  10  Prefactor     .10000E-03    1.7088        .10749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0347        1.5610        .14785E-02   -1.5505    
  14  norm          3.2283        3.3295        .14279E-03   -1.5349    
  15  Prefactor     .10000E-03    15.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    134.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.921        66.977        .63441E-04   -1.4443    
  18  norm          1.7215        .57808        .33834E-04   -1.5446    
  19  Prefactor     8.1320        11.820        .14062E-03   -1.5138    
  20  Prefactor     .10000E-03    19.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10004E-03    1.5450        .21798E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.3504        7.8479        .86884E-03   -1.5245    
  24  Prefactor     .10000E-03    11.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    45.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4643        .23551        .25630E-03   -.78788    
  29  Prefactor     .81101        .18902        .28018E-03   -.99324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66459e-08
Minuit parameter uncertainties:
  1  2.81884e-06
  2  93.7378
  3  13.1419
  4  8.3458
  5  0.000792825
  6  121.051
  7  3.47971e-05
  8  0.00128424
  9  3.01799
  10  7.91458e-06
  11  6.75559e-05
  12  2.11939e-05
  13  1.56111
  14  3.32965
  15  1.75255e-07
  16  6.91874e-05
  17  67.1031
  18  0.578081
  19  11.8237
  20  8.72264e-06
  21  7.82774e-05
  22  0.000495864
  23  7.84943
  24  1.75892e-05
  25  0.000207338
  26  0.000152598
  27  8.15697e-05
  28  0.235688
  29  0.189174
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.753e-07  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.110e-01  1.892e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.464e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 4.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546702/likelihoodResults_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.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) = 7226.06632378
delta logL = -0.000308789904921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7226.06601676
delta logL = -1.76692810783e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4304       1.0000          .0000       10.000    
     3 'Normalizat'    1.4642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81102       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7226.066     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      244 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.376        .90712E-02** at limit **
   2  Index         2.4027        6.1531        .50000        .22834E-04
   3  Normalizat    1.4643        .59424E-02    .57960E-01   -.21896E-04
   4  Prefactor     .81102        .50329E-02    .63344E-01   -.30562E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40269
  Normalizat = 1.46425
  Prefactor  = 0.811017
 **********
 **   18 **HESSE 
 **********

 FCN=   7226.066     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    828.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4027        6.7086        .50000       -.54622    
   3  Normalizat    1.4643        .48697E-01    .25630E-03   -.78788    
   4  Prefactor     .81102        .41211E-01    .28018E-03   -.99323    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.59302e-08
Minuit parameter uncertainties:
  1  0.000164142
  2  38.6371
  3  0.0486983
  4  0.0412122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546702': 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): 102
logL (Free Index) = 7226.06601652
delta logL = -1.5303330656e-06

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.641e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.403e+00  3.864e+01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.110e-01  4.121e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.464e+00  4.870e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.883 8.302

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/546702/cmap_HighResolution_426211201_426470401_4FGL_J1223.5+0818_daily_bin721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', job_status='DONE', photon_flux_upper_limit='4.45e-08', time_completed='2021-09-05 11:01:48.689921', job_id='546702', GAL2='0.81', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1630864908.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-1.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='721' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 546702: <4FGL_J1223.5+0818_daily_bin721> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin721> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:46:06 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:46:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:46:07 2021
Terminated at Sun Sep  5 11:01:49 2021
Results reported at Sun Sep  5 11:01:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin721 185.883 8.3017 426211201 426470401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.5+0818 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   917.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

