/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 80 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.8+1223_daily_bin395
RA = 187.712, Dec = 12.3883
tmin = 341712001, tmax = 341971201
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='751580', job_status='RUN', time_executed='2021-09-05 21:19:27.716430', time_epoch_executed='1630901967.72' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751580/ft1_4FGL_J1230.8+1223_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751580/ft2_4FGL_J1230.8+1223_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751580/ft1_4FGL_J1230.8+1223_daily_bin395.fits outfile=/scratch/kocevski/751580/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin395.fits ra=187.712 dec=12.3883 rad=12.0 tmin=341712001.0 tmax=341971201.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 4.15
user 3.24
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/751580/ft2_4FGL_J1230.8+1223_daily_bin395.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751580/ft2_4FGL_J1230.8+1223_daily_bin395.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/751580/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin395.fits evtable="EVENTS" outfile="/scratch/kocevski/751580/ft1_filtered_4FGL_J1230.8+1223_daily_bin395.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 1.88
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751580/ft1_filtered_4FGL_J1230.8+1223_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/751580/ft2_4FGL_J1230.8+1223_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/751580/ltcube_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.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/751580/ft2_4FGL_J1230.8+1223_daily_bin395.fits
.....................!
real 19.45
user 17.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751580/ft1_filtered_4FGL_J1230.8+1223_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/751580/ft2_4FGL_J1230.8+1223_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/751580/ltcube_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.fits outfile=/scratch/kocevski/751580/expmap_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.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/751580/ltcube_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.fits
.....................!
real 195.40
user 185.45
sys 4.15

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

Setting source of interest to:
4FGL J1230.8+1223 @ 187.712 12.3883

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/751580/ft1_filtered_4FGL_J1230.8+1223_daily_bin395.fits scfile=/scratch/kocevski/751580/ft2_4FGL_J1230.8+1223_daily_bin395.fits outfile=/scratch/kocevski/751580/cmap_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.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=187.712 yref=12.3883 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751580/ft1_filtered_4FGL_J1230.8+1223_daily_bin395.fits scfile=/scratch/kocevski/751580/ft2_4FGL_J1230.8+1223_daily_bin395.fits outfile=/scratch/kocevski/751580/cmap_HighResolution_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.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=187.712 yref=12.3883 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/751580/ft1_filtered_4FGL_J1230.8+1223_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/751580/ft2_4FGL_J1230.8+1223_daily_bin395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/751580/Model_4FGL_J1230.8+1223_daily_bin395.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/751580/ft1_filtered_4FGL_J1230.8+1223_daily_bin395.fits.....................!
real 55.29
user 53.95
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/751580/ft1_filtered_4FGL_J1230.8+1223_daily_bin395.fits', '/scratch/kocevski/751580/ft2_4FGL_J1230.8+1223_daily_bin395.fits', expMap='/scratch/kocevski/751580/expmap_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.fits', expCube='/scratch/kocevski/751580/ltcube_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/751580/Model_4FGL_J1230.8+1223_daily_bin395.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.8+1223'

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.672e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/751580/ft1_filtered_4FGL_J1230.8+1223_daily_bin395.fits
Spacecraft file(s): /scratch/kocevski/751580/ft2_4FGL_J1230.8+1223_daily_bin395.fits
Exposure map: /scratch/kocevski/751580/expmap_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.fits
Exposure cube: /scratch/kocevski/751580/ltcube_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/751580/Model_4FGL_J1230.8+1223_daily_bin395.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) = 6200.51024394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.270       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.137       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9306       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8265       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2743       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.285       1.0000         .10000E-03   10000.    
    13 'norm      '    .38960       1.0000         .10000E-03   10000.    
    14 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0040       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.351       1.0000         .10000E-03   10000.    
    19 'norm      '    8.3304       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3600       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1727       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.548       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .80562       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2586       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6200.502     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3095 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3667        .30930E-08** at limit **
   2  Prefactor     27.478        90.191        .90753E-06    .60360E-05
   3  Prefactor     .10000E-03    7.4316        .52408E-06** at limit **
   4  Prefactor     15.147        22.576       -.72845E-06    .22452E-04
   5  Prefactor     .10000E-03    1.4187       -.44983E-07** at limit **
   6  Prefactor     3.5947        510.55        .14167E-04    .53534E-05
   7  Prefactor     .10000E-03    14.808        .31226E-07** at limit **
   8  Prefactor     15.359        4.2854        .44919E-07    .25377E-04
   9  Prefactor     4.8269        3.2882        .72511E-06    .14191E-03
  10  Prefactor     .10000E-03    9.8965       -.61410E-07** at limit **
  11  norm          3.2744        3.0257        .11250E-06    .75177E-05
  12  Prefactor     29.291        26.416       -.75168E-07   -.49537E-04
  13  norm          .38960        .22888        .16334E-07   -.36787E-04
  14  norm          .10000E-03    14.001       -.98192E-08** at limit **
  15  Prefactor     .10000E-03    71.720       -.30876E-06** at limit **
  16  norm          1.0040        .61084        .31721E-07    .25522E-04
  17  Prefactor     .10000E-03    5.3473       -.63443E-06** at limit **
  18  Prefactor     34.357        25.717        .55988E-07   -.41895E-04
  19  norm          8.3305        2.4210        .13973E-06    .63033E-04
  20  Prefactor     1.3587        303.98        .33191E-05    .24644E-05
  21  Prefactor     .10000E-03    29.238       -.23758E-06** at limit **
  22  Prefactor     .10000E-03    3.0254       -.63254E-07** at limit **
  23  Prefactor     3.1705        8.7436        .81856E-06    .15384E-04
  24  Prefactor     13.550        13.892        .25973E-06    .45060E-04
  25  Normalizat    .80560        .22337       -.26990E-05    .32588E-04
  26  Prefactor     1.2587        .19171        .13021E-05   -.99860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.478
  Prefactor  = 0.0001
  Prefactor  = 15.1475
  Prefactor  = 0.0001
  Prefactor  = 3.59469
  Prefactor  = 0.0001
  Prefactor  = 15.3594
  Prefactor  = 4.82691
  Prefactor  = 0.0001
  norm       = 3.27437
  Prefactor  = 29.2914
  norm       = 0.389595
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00399
  Prefactor  = 0.0001
  Prefactor  = 34.3573
  norm       = 8.33048
  Prefactor  = 1.35872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.17055
  Prefactor  = 13.5496
  Normalizat = 0.805596
  Prefactor  = 1.25868
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.502     FROM HESSE     STATUS=OK           458 CALLS     3553 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3697        .16070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.478        90.186        .76716E-04   -1.4659    
   3  Prefactor     .10000E-03    7.4443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.147        22.298        .10294E-03   -1.4929    
   5  Prefactor     .10000E-03    1.4424        .91569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5947        497.72        .20348E-03   -1.5329    
   7  Prefactor     .10000E-03    14.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.359        4.2840        .39424E-03   -1.4924    
   9  Prefactor     4.8269        3.3017        .54779E-03   -1.5269    
  10  Prefactor     .10000E-03    9.9024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2744        3.0062        .12305E-03   -1.5346    
  12  Prefactor     29.291        26.418        .74035E-04   -1.4625    
  13  norm          .38960        .22500        .27421E-04   -1.5583    
  14  norm          .10000E-03    14.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    71.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0040        .59436        .44247E-04   -1.5508    
  17  Prefactor     .10000E-03    5.3723        .17778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.357        25.731        .68373E-04   -1.4535    
  19  norm          8.3305        2.4166        .30988E-03   -1.5131    
  20  Prefactor     1.3587        309.17        .37454E-03   -1.5475    
  21  Prefactor     .10000E-03    29.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0343        .13373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1705        8.7260        .22752E-03   -1.5352    
  24  Prefactor     13.550        13.886        .10882E-03   -1.4972    
  25  Normalizat    .80560        .24851        .31687E-03   -.99861    
  26  Prefactor     1.2587        .21694        .24317E-03   -.84544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01126e-10
Minuit parameter uncertainties:
  1  8.65617e-07
  2  90.6383
  3  3.84098e-06
  4  22.3098
  5  1.65594e-07
  6  85.3296
  7  6.52624e-07
  8  4.28406
  9  3.30187
  10  1.21288e-06
  11  3.00638
  12  26.4289
  13  0.224998
  14  1.79932e-06
  15  8.42228e-05
  16  0.594363
  17  5.1639e-06
  18  25.7391
  19  2.41665
  20  41.2072
  21  1.62002e-05
  22  1.87471e-06
  23  8.72953
  24  13.8891
  25  0.248862
  26  0.217098
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  5.164e-06  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.259e+00  2.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.056e-01  2.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 5.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751580/likelihoodResults_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.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) = 6200.50279775
delta logL = -0.000884309459252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6200.50191345
delta logL = -6.34008756606e-09

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 'Index     '    2.0589       1.0000          .0000       10.000    
     3 'Normalizat'    .80560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2587       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6200.502     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2206        .90712E-02** at limit **
   2  Index         2.0604        5.0188        .50000       -.22744E-05
   3  Normalizat    .80559        .49269E-02    .71607E-01    .26448E-04
   4  Prefactor     1.2587        .46369E-02    .54998E-01    .64331E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06044
  Normalizat = 0.805594
  Prefactor  = 1.25868
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.502     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.571        .17780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0604        7.6646        .50000       -.62848    
   3  Normalizat    .80559        .18009E-01    .31688E-03   -.99862    
   4  Prefactor     1.2587        .16972E-01    .24317E-03   -.84544    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27369e-08
Minuit parameter uncertainties:
  1  1.96145e-06
  2  367.964
  3  0.0180092
  4  0.0169724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751580': 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) = 6200.50191344
delta logL = 1.88538251678e-09

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.961e-06  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.060e+00  3.680e+02  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.259e+00  1.697e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.056e-01  1.801e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.712 12.388

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/751580/cmap_HighResolution_341712001_341971201_4FGL_J1230.8+1223_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-05 21:31:54.099163', job_id='751580', GAL2='1.26', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630902714.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.89e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='395' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:31:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 751580: <4FGL_J1230.8+1223_daily_bin395> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin395> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:16:03 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:16: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 21:16:36 2021
Terminated at Sun Sep  5 21:31:54 2021
Results reported at Sun Sep  5 21:31:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin395 187.712 12.3883 341712001 341971201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.8+1223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            951 sec.

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

