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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1649
RA = 187.712, Dec = 12.3883
tmin = 666748801, tmax = 667008001
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='132560', job_status='RUN', time_executed='2022-02-20 00:15:02.858930', time_epoch_executed='1645344902.86' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/132560

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/132560/ft1_4FGL_J1230.8+1223_daily_bin1649.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/132560/ft2_4FGL_J1230.8+1223_daily_bin1649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/132560/ft1_4FGL_J1230.8+1223_daily_bin1649.fits outfile=/scratch/kocevski/132560/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1649.fits ra=187.712 dec=12.3883 rad=12.0 tmin=666748801.0 tmax=667008001.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.13
user 2.91
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/132560/ft1_filtered_4FGL_J1230.8+1223_daily_bin1649.fits evtable="EVENTS" scfile=/scratch/kocevski/132560/ft2_4FGL_J1230.8+1223_daily_bin1649.fits sctable="SC_DATA" expcube=/scratch/kocevski/132560/ltcube_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.fits outfile=/scratch/kocevski/132560/expmap_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.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/132560/ltcube_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.fits
.....................!
real 190.72
user 186.39
sys 4.01

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/132560/ft1_filtered_4FGL_J1230.8+1223_daily_bin1649.fits scfile=/scratch/kocevski/132560/ft2_4FGL_J1230.8+1223_daily_bin1649.fits outfile=/scratch/kocevski/132560/cmap_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.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 1.21
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/132560/ft1_filtered_4FGL_J1230.8+1223_daily_bin1649.fits scfile=/scratch/kocevski/132560/ft2_4FGL_J1230.8+1223_daily_bin1649.fits outfile=/scratch/kocevski/132560/cmap_HighResolution_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.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 1.13
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/132560/ft1_filtered_4FGL_J1230.8+1223_daily_bin1649.fits', '/scratch/kocevski/132560/ft2_4FGL_J1230.8+1223_daily_bin1649.fits', expMap='/scratch/kocevski/132560/expmap_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.fits', expCube='/scratch/kocevski/132560/ltcube_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/132560/Model_4FGL_J1230.8+1223_daily_bin1649.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/132560/ft1_filtered_4FGL_J1230.8+1223_daily_bin1649.fits
Spacecraft file(s): /scratch/kocevski/132560/ft2_4FGL_J1230.8+1223_daily_bin1649.fits
Exposure map: /scratch/kocevski/132560/expmap_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.fits
Exposure cube: /scratch/kocevski/132560/ltcube_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/132560/Model_4FGL_J1230.8+1223_daily_bin1649.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) = 2053.65970701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.472       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    115.19       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29416E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.502       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .65102       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.590       1.0000         .10000E-03   10000.    
    13 'norm      '    .13747       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12910E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2989       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.381       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19499E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.396       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90888       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3921       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=   2053.508     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3678 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.706       -.13076E-06** at limit **
   2  Prefactor     .10000E-03    251.99       -.79641E-06** at limit **
   3  Prefactor     21.472        45.940       -.89487E-06   -.46246E-04
   4  Prefactor     .10000E-03    52.972       -.26377E-05** at limit **
   5  Prefactor     .10000E-03    14.395        .31864E-06** at limit **
   6  Prefactor     115.03        285.41        .17529E-05   -.97516E-05
   7  Prefactor     .10033E-03    1287.1       -.30075E-04** at limit **
   8  Prefactor     .10000E-03    7.8184        .11487E-05** at limit **
   9  Prefactor     10.511        12.288       -.27141E-06   -.20012E-03
  10  Prefactor     .10000E-03    61.106       -.36402E-06** at limit **
  11  norm          .65078        16.810       -.52644E-05    .24112E-03
  12  Prefactor     31.621        107.40       -.18056E-06   -.16377E-04
  13  norm          .13732        .60015        .52757E-06    .14342E-03
  14  norm          .10000E-03    105.58       -.89512E-06** at limit **
  15  Prefactor     .10000E-03    190.68        .63685E-06** at limit **
  16  norm          .10000E-03    .72483       -.32247E-06** at limit **
  17  Prefactor     .10000E-03    6.8861        .11574E-06** at limit **
  18  Prefactor     .10000E-03    16.978        .12538E-06** at limit **
  19  norm          3.2997        3.2453        .21302E-06    .11610E-03
  20  Prefactor     .10000E-03    59.756       -.97149E-07** at limit **
  21  Prefactor     31.536        202.09        .27220E-05    .61640E-05
  22  Prefactor     .10032E-03    21.234       -.30783E-05** at limit **
  23  Prefactor     45.394        35.794        .17101E-06    .16370E-04
  24  Prefactor     .10000E-03    11.012       -.64038E-06** at limit **
  25  Normalizat    .90824        .43961        .49202E-05   -.16664E-03
  26  Prefactor     1.3925        .35950       -.69854E-05   -.26327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.4716
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 115.032
  Prefactor  = 0.000100331
  Prefactor  = 0.0001
  Prefactor  = 10.5105
  Prefactor  = 0.0001
  norm       = 0.650784
  Prefactor  = 31.6212
  norm       = 0.137317
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.29974
  Prefactor  = 0.0001
  Prefactor  = 31.5356
  Prefactor  = 0.000100318
  Prefactor  = 45.3937
  Prefactor  = 0.0001
  Normalizat = 0.908238
  Prefactor  = 1.39252
 **********
 **   18 **HESSE 
 **********

 FCN=   2053.508     FROM HESSE     STATUS=OK           450 CALLS     4128 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    252.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.472        45.922        .86439E-04   -1.4781    
   4  Prefactor     .10000E-03    53.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.463        .16794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     115.03        285.88        .18743E-03   -1.3559    
   7  Prefactor     .10033E-03    1332.8        .19850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9088        .12413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.511        12.170        .12364E-03   -1.5059    
  10  Prefactor     .10000E-03    61.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .65078        22.469        .27834E-02   -1.5547    
  12  Prefactor     31.621        106.81        .71290E-04   -1.4583    
  13  norm          .13732        .80423        .62197E-03   -1.5634    
  14  norm          .10000E-03    105.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    190.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .72879        .73955E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.8883        .11616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2997        3.2300        .76567E-04   -1.5345    
  20  Prefactor     .10000E-03    59.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.536        201.93        .71526E-04   -1.4584    
  22  Prefactor     .10032E-03    103.06        .36755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.394        36.161        .59507E-04   -1.4359    
  24  Prefactor     .10000E-03    11.039        .14693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90824        .49797        .33356E-03   -.96171    
  26  Prefactor     1.3925        .41433        .24205E-03   -.80596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70785e-09
Minuit parameter uncertainties:
  1  9.7166e-05
  2  0.000850369
  3  45.9975
  4  0.000591081
  5  3.77095e-05
  6  289.417
  7  0.0430274
  8  0.000120155
  9  12.1724
  10  9.07332e-06
  11  7.65035
  12  107.461
  13  0.664404
  14  0.000261488
  15  0.000754768
  16  3.86873e-06
  17  1.33594e-05
  18  2.30913e-05
  19  3.23021
  20  1.39468e-05
  21  160.398
  22  0.0114674
  23  36.1783
  24  7.31072e-05
  25  0.500527
  26  0.415329
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.336e-05  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.393e+00  4.153e-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:  9.082e-01  5.005e-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: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/132560/likelihoodResults_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.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) = 2053.5086273
delta logL = -0.000406830974498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2053.50822036
delta logL = 1.11042481876e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0393       1.0000          .0000       10.000    
     3 'Normalizat'    .90818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3926       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2053.508     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10227E-03    105.00        .11869E-02** at limit **
   2  Index         1.9664        8.4880        .50000        .24282E-04
   3  Normalizat    .90824        .36470E-01    .33355E-03   -.19615E-04
   4  Prefactor     1.3925        .32112E-01    .24205E-03    .22770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010227
  Index      = 1.96642
  Normalizat = 0.908236
  Prefactor  = 1.39253
 **********
 **   18 **HESSE 
 **********

 FCN=   2053.508     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10227E-03    400.06        .23737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9664        5.2956        .50000       -.65192    
   3  Normalizat    .90824        .75068E-01    .13342E-04   -.96171    
   4  Prefactor     1.3925        .66100E-01    .48411E-04   -.80596    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38017e-08
Minuit parameter uncertainties:
  1  0.0606861
  2  673.711
  3  0.0750765
  4  0.0661042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/132560': 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) = 2053.50822001
delta logL = 4.58110662294e-07

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.023e-04  6.069e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.966e+00  6.737e+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.393e+00  6.610e-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:  9.082e-01  7.508e-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/132560/cmap_HighResolution_666748801_667008001_4FGL_J1230.8+1223_daily_bin1649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2022-02-20 00:22:55.094016', job_id='132560', GAL2='1.39', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1645345375.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='4.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1649' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 20 00:22:55 PST 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 132559: <4FGL_J1230.8+1223_daily_bin1649> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1649> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Feb 20 00:08:26 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 20 00:09:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 20 00:09:09 2022
Terminated at Sun Feb 20 00:20:38 2022
Results reported at Sun Feb 20 00:20:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1649 187.712 12.3883 666748801 667008001 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 :                                   460.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            732 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 132560: <4FGL_J1230.8+1223_daily_bin1649> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1649> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Feb 20 00:08:26 2022
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 20 00:09:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 20 00:09:09 2022
Terminated at Sun Feb 20 00:22:57 2022
Results reported at Sun Feb 20 00:22:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1649 187.712 12.3883 666748801 667008001 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 :                                   463.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             181.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            871 sec.

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

