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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1555
RA = 187.712, Dec = 12.3883
tmin = 642384001, tmax = 642643201
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='759592', job_status='RUN', time_executed='2021-09-05 21:41:49.365994', time_epoch_executed='1630903309.37' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759592

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759592/ft1_4FGL_J1230.8+1223_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759592/ft2_4FGL_J1230.8+1223_daily_bin1555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759592/ft1_4FGL_J1230.8+1223_daily_bin1555.fits outfile=/scratch/kocevski/759592/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1555.fits ra=187.712 dec=12.3883 rad=12.0 tmin=642384001.0 tmax=642643201.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.92
user 3.41
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759592/ft1_filtered_4FGL_J1230.8+1223_daily_bin1555.fits" evtable="EVENTS" scfile=/scratch/kocevski/759592/ft2_4FGL_J1230.8+1223_daily_bin1555.fits sctable="SC_DATA" outfile=/scratch/kocevski/759592/ltcube_642384001_642643201_4FGL_J1230.8+1223_daily_bin1555.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/759592/ft2_4FGL_J1230.8+1223_daily_bin1555.fits
.....................!
real 16.07
user 14.57
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759592/ft1_filtered_4FGL_J1230.8+1223_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/759592/ft2_4FGL_J1230.8+1223_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/759592/ltcube_642384001_642643201_4FGL_J1230.8+1223_daily_bin1555.fits outfile=/scratch/kocevski/759592/expmap_642384001_642643201_4FGL_J1230.8+1223_daily_bin1555.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/759592/ltcube_642384001_642643201_4FGL_J1230.8+1223_daily_bin1555.fits
.....................!
real 193.44
user 185.70
sys 5.95

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/759592/ft1_filtered_4FGL_J1230.8+1223_daily_bin1555.fits scfile=/scratch/kocevski/759592/ft2_4FGL_J1230.8+1223_daily_bin1555.fits outfile=/scratch/kocevski/759592/cmap_642384001_642643201_4FGL_J1230.8+1223_daily_bin1555.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759592/ft1_filtered_4FGL_J1230.8+1223_daily_bin1555.fits scfile=/scratch/kocevski/759592/ft2_4FGL_J1230.8+1223_daily_bin1555.fits outfile=/scratch/kocevski/759592/cmap_HighResolution_642384001_642643201_4FGL_J1230.8+1223_daily_bin1555.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.238       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42607       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38056E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9059       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11198E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .23248E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11215E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.590       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7401       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .48027       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10637E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.775       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2494       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73638       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=   5655.010     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3577 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2188        .29989E-07** at limit **
   2  Prefactor     54.221        57.790       -.16239E-06   -.69016E-05
   3  Prefactor     .10000E-03    14.814       -.85644E-06** at limit **
   4  Prefactor     .10000E-03    12.800       -.11317E-05** at limit **
   5  Prefactor     .42434        2.3707       -.51193E-08    .26060E-03
   6  Prefactor     .10000E-03    1485.6       -.37709E-04** at limit **
   7  Prefactor     .10000E-03    36.365        .43846E-06** at limit **
   8  Prefactor     1.9051        2.9281        .12346E-06   -.32817E-03
   9  Prefactor     .10000E-03    2.0527        .43775E-06** at limit **
  10  Prefactor     .10000E-03    13.823       -.10518E-06** at limit **
  11  norm          .10029E-03    1.9414       -.54550E-06** at limit **
  12  Prefactor     .10000E-03    13.752       -.76265E-06** at limit **
  13  norm          .10000E-03    .13162        .15250E-06** at limit **
  14  norm          .10000E-03    56.772       -.17551E-08** at limit **
  15  Prefactor     66.466        127.82        .12223E-05   -.22905E-04
  16  norm          2.7406        .78466        .13407E-06    .78742E-03
  17  Prefactor     27.781        13.307        .20486E-06   -.44420E-04
  18  Prefactor     .10000E-03    11.191        .13582E-06** at limit **
  19  norm          .47956        1.6457        .13857E-05    .22097E-03
  20  Prefactor     .10000E-03    71.002        .15783E-07** at limit **
  21  Prefactor     .10000E-03    21.963        .14948E-06** at limit **
  22  Prefactor     .10000E-03    21.917        .10063E-05** at limit **
  23  Prefactor     .10000E-03    31.383        .11966E-05** at limit **
  24  Prefactor     10.777        14.174        .95655E-06   -.43747E-04
  25  Normalizat    1.2495        .19613       -.24764E-05   -.15415E-03
  26  Prefactor     .73648        .16778       -.15545E-05   -.17837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 54.2205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.42434
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 1.90513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100292
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 66.4659
  norm       = 2.74057
  Prefactor  = 27.7808
  Prefactor  = 0.0001
  norm       = 0.479562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7769
  Normalizat = 1.24946
  Prefactor  = 0.736478
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.010     FROM HESSE     STATUS=OK           458 CALLS     4035 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2207        .15086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     54.221        57.801        .27232E-03   -1.4234    
   3  Prefactor     .10000E-03    14.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42434        8.2084        .21826E-02   -1.5578    
   6  Prefactor     .10000E-03    1466.0        .39111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9051        2.7339        .14123E-03   -1.5432    
   9  Prefactor     .10000E-03    3.2393        .19875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10029E-03    30.252        .18601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .33338        .52654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    56.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     66.466        127.98        .24592E-03   -1.4076    
  16  norm          2.7406        .73957        .31645E-04   -1.5377    
  17  Prefactor     27.781        13.312        .76009E-04   -1.4653    
  18  Prefactor     .10000E-03    11.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .47956        1.6710        .16460E-02   -1.5569    
  20  Prefactor     .10000E-03    71.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.777        14.189        .12205E-03   -1.5051    
  25  Normalizat    1.2495        .23003        .23796E-03   -.85088    
  26  Prefactor     .73648        .19824        .26341E-03   -1.0211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03367e-08
Minuit parameter uncertainties:
  1  4.47731e-06
  2  57.8612
  3  0.000165848
  4  4.10657e-05
  5  3.73278
  6  0.00541282
  7  0.000156791
  8  2.73406
  9  6.68236e-05
  10  2.71055e-05
  11  0.00594943
  12  1.01727e-05
  13  1.30636e-06
  14  0.000146856
  15  128.516
  16  0.739577
  17  13.313
  18  2.59683e-05
  19  1.67121
  20  0.000112668
  21  2.01653e-05
  22  0.000191698
  23  0.000243872
  24  14.1934
  25  0.230214
  26  0.19843
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.778e+01  1.331e+01  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:  7.365e-01  1.984e-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.249e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.44
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 7.58e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 4.57e-05 +/- 2.19e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5654.97508724
delta logL = 0.0346674172542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5654.97394391
delta logL = 0.0358107448628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.493       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1777       1.0000          .0000       10.000    
     3 'Normalizat'    1.2385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74365       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=   5654.974     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      254 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.506        214.89        .20235E-02    .33392E-03
   2  Index         2.1782        2.9738        .11974        .22535E-03
   3  Normalizat    1.2385        .12310        .54015E-01    .59564E-04
   4  Prefactor     .74338        .77118E-01    .42979E-01   -.15221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.506
  Index      = 2.17819
  Normalizat = 1.23855
  Prefactor  = 0.743376
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.974     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.506        18.549        .80939E-04   -1.4717    
   2  Index         2.1782        .49297        .45795E-02   -.59966    
   3  Normalizat    1.2385        .22771        .23883E-03   -.85420    
   4  Prefactor     .74338        .19776        .26231E-03   -1.0185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21555e-10
Minuit parameter uncertainties:
  1  18.5537
  2  0.494151
  3  0.227895
  4  0.197949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759592': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5654.97393879
delta logL = 0.035815867066

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.451e+01  1.855e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.178e+00  4.942e-01  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:  7.434e-01  1.979e-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.239e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.45
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.18 +/- 0.49
Photon Flux (Free Index): 8.37e-08 +/- 4.93e-08
Energy Flux (Free Index): 3.92e-05 +/- 2.98e-05

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/759592/cmap_HighResolution_642384001_642643201_4FGL_J1230.8+1223_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.58e-08', energy_flux2='3.92e-05', photon_flux_error='3.63e-08', dlogl='3.58e-02', energy_flux='4.57e-05', photon_flux2='8.37e-08', job_status='DONE', time_completed='2021-09-05 21:52:44.482892', photon_index_error2='0.49', photon_index2='2.18', ts='9.44', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='2.98e-05', EG='1.25', time_epoch_completed='1630903964.48', return_code='0', job_id='759592', GAL2='0.74', EG2='1.24', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='4.93e-08', ts2='9.45', photon_index='2.06' WHERE bin_id='1555' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:52:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 759592: <4FGL_J1230.8+1223_daily_bin1555> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1555> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:40:52 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:41:20 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:41:20 2021
Terminated at Sun Sep  5 21:52:45 2021
Results reported at Sun Sep  5 21:52:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1555 187.712 12.3883 642384001 642643201 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 :                                   645.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            713 sec.

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

