/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 50 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.8+1223_daily_bin271
RA = 187.712, Dec = 12.3883
tmin = 309571201, tmax = 309830401
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='751397', job_status='RUN', time_executed='2021-09-05 21:18:33.294766', time_epoch_executed='1630901913.29' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751397

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751397/ft1_4FGL_J1230.8+1223_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751397/ft2_4FGL_J1230.8+1223_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751397/ft1_4FGL_J1230.8+1223_daily_bin271.fits outfile=/scratch/kocevski/751397/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin271.fits ra=187.712 dec=12.3883 rad=12.0 tmin=309571201.0 tmax=309830401.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 7.45
user 4.90
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751397/ft2_4FGL_J1230.8+1223_daily_bin271.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/751397/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin271.fits evtable="EVENTS" outfile="/scratch/kocevski/751397/ft1_filtered_4FGL_J1230.8+1223_daily_bin271.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.37
user 0.29
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751397/ft1_filtered_4FGL_J1230.8+1223_daily_bin271.fits" evtable="EVENTS" scfile=/scratch/kocevski/751397/ft2_4FGL_J1230.8+1223_daily_bin271.fits sctable="SC_DATA" outfile=/scratch/kocevski/751397/ltcube_309571201_309830401_4FGL_J1230.8+1223_daily_bin271.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/751397/ft2_4FGL_J1230.8+1223_daily_bin271.fits
.....................!
real 16.87
user 15.04
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751397/ft1_filtered_4FGL_J1230.8+1223_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/751397/ft2_4FGL_J1230.8+1223_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/751397/ltcube_309571201_309830401_4FGL_J1230.8+1223_daily_bin271.fits outfile=/scratch/kocevski/751397/expmap_309571201_309830401_4FGL_J1230.8+1223_daily_bin271.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/751397/ltcube_309571201_309830401_4FGL_J1230.8+1223_daily_bin271.fits
.....................!
real 160.64
user 153.36
sys 4.45

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/751397/ft1_filtered_4FGL_J1230.8+1223_daily_bin271.fits scfile=/scratch/kocevski/751397/ft2_4FGL_J1230.8+1223_daily_bin271.fits outfile=/scratch/kocevski/751397/cmap_309571201_309830401_4FGL_J1230.8+1223_daily_bin271.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751397/ft1_filtered_4FGL_J1230.8+1223_daily_bin271.fits scfile=/scratch/kocevski/751397/ft2_4FGL_J1230.8+1223_daily_bin271.fits outfile=/scratch/kocevski/751397/cmap_HighResolution_309571201_309830401_4FGL_J1230.8+1223_daily_bin271.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.48
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.869       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.761       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.064       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25233E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13337E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.404       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5648       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.3587       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13245E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    6.7496       1.0000         .10000E-03   10000.    
    14 'norm      '    .16134E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11994E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8614       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9562       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.8468       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.100       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4114       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66711       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=   6550.193     FROM MIGRAD    STATUS=CONVERGED   1119 CALLS     4086 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6877        .18142E-02** at limit **
   2  Prefactor     37.809        98.131        .65130E-04    .14837E-04
   3  Prefactor     19.759        14.395        .90099E-04    .45803E-04
   4  Prefactor     26.029        21.116        .78466E-04    .72443E-05
   5  Prefactor     .10000E-03    2.1012        .38884E-01** at limit **
   6  Prefactor     .10000E-03    77.110        .18142E-02** at limit **
   7  Prefactor     51.443        42.874        .55937E-04    .34185E-04
   8  Prefactor     .10000E-03    .92690        .75791E-03** at limit **
   9  Prefactor     4.5653        2.8340        .10355E-03    .14514E-03
  10  Prefactor     .10000E-03    13.767        .18142E-02** at limit **
  11  norm          6.3518        4.2538        .12659E-03    .14935E-03
  12  Prefactor     .10002E-03    40.019        .14538    ** at limit **
  13  norm          6.7493        .63766        .18818E-04    .48815E-03
  14  norm          .10000E-03    42.508        .18142E-02** at limit **
  15  Prefactor     .10000E-03    76.332        .18142E-02** at limit **
  16  norm          3.8606        .93791        .35519E-04    .36936E-03
  17  Prefactor     .10000E-03    2.6406        .12841E-02** at limit **
  18  Prefactor     .10000E-03    6.8717        .18142E-02** at limit **
  19  norm          2.9552        2.3997        .10483E-03   -.74614E-04
  20  Prefactor     .10000E-03    71.750        .18142E-02** at limit **
  21  Prefactor     .10000E-03    15.026        .18142E-02** at limit **
  22  Prefactor     .10000E-03    5.6456        .36285E-03** at limit **
  23  Prefactor     9.8494        13.069        .12770E-03   -.59648E-05
  24  Prefactor     23.092        14.828        .83342E-04   -.32738E-05
  25  Normalizat    1.4121        .28881        .28681E-03    .68414E-03
  26  Prefactor     .66642        .23184        .34740E-03    .14376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 37.8093
  Prefactor  = 19.759
  Prefactor  = 26.0291
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 51.4427
  Prefactor  = 0.0001
  Prefactor  = 4.56533
  Prefactor  = 0.0001
  norm       = 6.35181
  Prefactor  = 0.00010002
  norm       = 6.74934
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.86055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.84941
  Prefactor  = 23.0924
  Normalizat = 1.41215
  Prefactor  = 0.666421
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.193     FROM HESSE     STATUS=OK           450 CALLS     4536 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.809        98.129        .13026E-04   -1.4477    
   3  Prefactor     19.759        14.396        .36040E-05   -1.4819    
   4  Prefactor     26.029        21.117        .31387E-05   -1.4687    
   5  Prefactor     .10000E-03    2.0334        .40175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    77.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     51.443        42.874        .11187E-04   -1.4272    
   8  Prefactor     .10000E-03    .92694        .15158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5653        2.8340        .41421E-05   -1.5281    
  10  Prefactor     .10000E-03    13.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3518        4.2537        .50635E-05   -1.5204    
  12  Prefactor     .10002E-03    40.595        .14393       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.7493        .63769        .75271E-06   -1.5188    
  14  norm          .10000E-03    42.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    76.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8606        .93790        .14208E-05   -1.5315    
  17  Prefactor     .10000E-03    2.6406        .25682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9552        2.3996        .41931E-05   -1.5364    
  20  Prefactor     .10000E-03    71.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.6459        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.8494        13.069        .51080E-05   -1.5080    
  24  Prefactor     23.092        14.829        .33337E-05   -1.4747    
  25  Normalizat    1.4121        .28910        .57361E-04   -.80278    
  26  Prefactor     .66642        .23207        .13896E-04   -1.0486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04332e-09
Minuit parameter uncertainties:
  1  1.27496e-05
  2  98.5525
  3  14.3981
  4  21.1234
  5  7.20112e-05
  6  0.000124166
  7  42.8999
  8  2.99461e-06
  9  2.83407
  10  6.01123e-06
  11  4.2539
  12  0.00182398
  13  0.637693
  14  0.000151905
  15  0.000150329
  16  0.937901
  17  3.75821e-06
  18  6.65396e-06
  19  2.39967
  20  0.000146676
  21  2.67102e-06
  22  2.86103e-05
  23  13.0729
  24  14.8313
  25  0.289432
  26  0.232405
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  3.758e-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:  6.664e-01  2.324e-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:  1.412e+00  2.894e-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: 4.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751397/likelihoodResults_309571201_309830401_4FGL_J1230.8+1223_daily_bin271.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) = 6550.19482045
delta logL = -0.0016565604501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6550.19316361
delta logL = 2.83870576823e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0376       1.0000          .0000       10.000    
     3 'Normalizat'    1.4122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66640       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=   6550.193     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10262E-03    3.5352        .13074E-01** at limit **
   2  Index         1.9483        5.4648        .50000        .52568E-04
   3  Normalizat    1.4121        .62289E-02    .28681E-03    .48201E-04
   4  Prefactor     .66643        .54139E-02    .34740E-03    .55435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102618
  Index      = 1.94827
  Normalizat = 1.41214
  Prefactor  = 0.666429
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.193     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10262E-03    47.546        .13427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9483        6.1627        .50000       -.65650    
   3  Normalizat    1.4121        .23219E-01    .11472E-04   -.80278    
   4  Prefactor     .66643        .20180E-01    .13896E-04   -1.0486    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.64486e-08
Minuit parameter uncertainties:
  1  0.022332
  2  296.605
  3  0.0232188
  4  0.0201807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751397': 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) = 6550.19316272
delta logL = 1.16966020869e-06

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.026e-04  2.233e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.948e+00  2.966e+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:  6.664e-01  2.018e-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:  1.412e+00  2.322e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/751397/cmap_HighResolution_309571201_309830401_4FGL_J1230.8+1223_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-03', job_status='DONE', photon_flux_upper_limit='4.09e-08', time_completed='2021-09-05 21:31:12.189229', job_id='751397', GAL2='0.67', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630902672.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='271' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:31:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 751397: <4FGL_J1230.8+1223_daily_bin271> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin271 187.712 12.3883 309571201 309830401 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 :                                   742.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            928 sec.

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

