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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin437
RA = 187.56, Dec = 25.2983
tmin = 352598401, tmax = 352857601
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='738770', job_status='RUN', time_executed='2021-09-05 20:44:51.275463', time_epoch_executed='1630899891.28' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738770

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738770/ft1_4FGL_J1230.2+2517_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738770/ft2_4FGL_J1230.2+2517_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738770/ft1_4FGL_J1230.2+2517_daily_bin437.fits outfile=/scratch/kocevski/738770/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin437.fits ra=187.56 dec=25.2983 rad=12.0 tmin=352598401.0 tmax=352857601.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.20
user 3.92
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/738770/ft2_4FGL_J1230.2+2517_daily_bin437.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738770/ft2_4FGL_J1230.2+2517_daily_bin437.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/738770/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin437.fits evtable="EVENTS" outfile="/scratch/kocevski/738770/ft1_filtered_4FGL_J1230.2+2517_daily_bin437.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.52
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738770/ft1_filtered_4FGL_J1230.2+2517_daily_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/738770/ft2_4FGL_J1230.2+2517_daily_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/738770/ltcube_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.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/738770/ft2_4FGL_J1230.2+2517_daily_bin437.fits
.....................!
real 17.05
user 16.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738770/ft1_filtered_4FGL_J1230.2+2517_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/738770/ft2_4FGL_J1230.2+2517_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/738770/ltcube_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.fits outfile=/scratch/kocevski/738770/expmap_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.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/738770/ltcube_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.fits
.....................!
real 192.62
user 187.55
sys 4.61

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

Setting source of interest to:
4FGL J1230.2+2517 @ 187.56 25.2983

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/738770/ft1_filtered_4FGL_J1230.2+2517_daily_bin437.fits scfile=/scratch/kocevski/738770/ft2_4FGL_J1230.2+2517_daily_bin437.fits outfile=/scratch/kocevski/738770/cmap_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.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.56 yref=25.2983 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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738770/ft1_filtered_4FGL_J1230.2+2517_daily_bin437.fits scfile=/scratch/kocevski/738770/ft2_4FGL_J1230.2+2517_daily_bin437.fits outfile=/scratch/kocevski/738770/cmap_HighResolution_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.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.56 yref=25.2983 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.61
user 0.41
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738770/ft1_filtered_4FGL_J1230.2+2517_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/738770/ft2_4FGL_J1230.2+2517_daily_bin437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738770/Model_4FGL_J1230.2+2517_daily_bin437.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/738770/ft1_filtered_4FGL_J1230.2+2517_daily_bin437.fits.....................!
real 57.04
user 55.62
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/738770/ft1_filtered_4FGL_J1230.2+2517_daily_bin437.fits', '/scratch/kocevski/738770/ft2_4FGL_J1230.2+2517_daily_bin437.fits', expMap='/scratch/kocevski/738770/expmap_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.fits', expCube='/scratch/kocevski/738770/ltcube_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/738770/Model_4FGL_J1230.2+2517_daily_bin437.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.2+2517'

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.557e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/738770/ft1_filtered_4FGL_J1230.2+2517_daily_bin437.fits
Spacecraft file(s): /scratch/kocevski/738770/ft2_4FGL_J1230.2+2517_daily_bin437.fits
Exposure map: /scratch/kocevski/738770/expmap_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.fits
Exposure cube: /scratch/kocevski/738770/ltcube_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/738770/Model_4FGL_J1230.2+2517_daily_bin437.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) = 6267.61884559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15266E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .78218       1.0000         .10000E-03   10000.    
     5 'norm      '    11.196       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0293       1.0000         .10000E-03   10000.    
    10 'norm      '    9.5001       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2728       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1690       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0686       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8260       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    89.795       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11023E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.2445       1.0000         .10000E-03   10000.    
    24 'norm      '    .21350E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.772       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76592       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2317       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6267.610     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     2897 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.763       -.15301E-05** at limit **
   2  Prefactor     1.7004        1.0786       -.32328E-06    .18188E-03
   3  Prefactor     .27027        1.3632       -.57863E-07   -.10283E-03
   4  Prefactor     .56790        547.79       -.15567E-04   -.37659E-04
   5  norm          11.193        2.3017       -.11968E-06    .63951E-03
   6  Prefactor     6.3103        1.0900       -.41638E-06    .32422E-03
   7  Prefactor     .10000E-03    19.797        .10283E-06** at limit **
   8  Prefactor     .10000E-03    1.0186        .35144E-07** at limit **
   9  Prefactor     5.0302        1.6414       -.14176E-05    .16847E-03
  10  norm          9.5006        3.4009        .25695E-05    .58065E-03
  11  Prefactor     9.2719        1.0657        .10256E-06    .39257E-03
  12  Prefactor     .10000E-03    1.3300        .35142E-07** at limit **
  13  Prefactor     1.1689        1.2050       -.20246E-06    .34916E-04
  14  Prefactor     .10000E-03    3.1861        .78022E-06** at limit **
  15  norm          1.0686        .32202        .12909E-07   -.12318E-03
  16  norm          2.8257        2.7247       -.13731E-06   -.26334E-03
  17  Prefactor     .10000E-03    3.3016       -.53837E-06** at limit **
  18  Prefactor     2.2587        1.9495       -.24486E-06    .72672E-03
  19  Prefactor     89.814        3.8316        .25414E-06   -.66352E-02
  20  Prefactor     .10000E-03    2.6603       -.13398E-06** at limit **
  21  norm          .10000E-03    2.3634       -.81271E-08** at limit **
  22  Prefactor     .10000E-03    13.891       -.13825E-05** at limit **
  23  norm          3.2442        1.0497        .26211E-06    .11865E-03
  24  norm          .10000E-03    5.3014       -.13076E-06** at limit **
  25  norm          12.789        7.2945       -.15938E-05   -.20199E-03
  26  norm          .10000E-03    8.8702       -.31038E-06** at limit **
  27  Normalizat    .76623        .21730        .10030E-05    .11124E-03
  28  Prefactor     1.2313        .23238       -.44292E-06    .59420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.7004
  Prefactor  = 0.270273
  Prefactor  = 0.567904
  norm       = 11.1934
  Prefactor  = 6.31026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.03021
  norm       = 9.50065
  Prefactor  = 9.27189
  Prefactor  = 0.0001
  Prefactor  = 1.16893
  Prefactor  = 0.0001
  norm       = 1.06856
  norm       = 2.82572
  Prefactor  = 0.0001
  Prefactor  = 2.25872
  Prefactor  = 89.8144
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.24421
  norm       = 0.0001
  norm       = 12.7885
  norm       = 0.0001
  Normalizat = 0.766234
  Prefactor  = 1.23128
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.610     FROM HESSE     STATUS=OK           589 CALLS     3486 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.310        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7004        13.226        .80715E-02   -1.5447    
   3  Prefactor     .27027        1.4186        .10291E-01   -1.5604    
   4  Prefactor     .56790        33.217        .14882       -1.5557    
   5  norm          11.193        2.3224        .29933E-02   -1.5039    
   6  Prefactor     6.3103        4.9300        .39943E-02   -1.5206    
   7  Prefactor     .10000E-03    19.803        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0302        3.9553        .44827E-02   -1.5259    
  10  norm          9.5006        3.6874        .32505E-02   -1.5091    
  11  Prefactor     9.2719        7.0816        .32903E-02   -1.5099    
  12  Prefactor     .10000E-03    1.3045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1689        1.1896        .10618E-01   -1.5492    
  14  Prefactor     .10000E-03    3.1648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0686        .32419        .52847E-02   -1.5501    
  16  norm          2.8257        2.7221        .60482E-02   -1.5372    
  17  Prefactor     .10000E-03    3.3055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2587        88.956        .68499E-02   -1.5407    
  19  Prefactor     89.814        97.746        .10601E-02   -1.3810    
  20  Prefactor     .10000E-03    2.6535        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2442        3.5836        .56215E-02   -1.5348    
  24  norm          .10000E-03    5.2025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.789        7.4124        .28020E-02   -1.4993    
  26  norm          .10000E-03    8.8658        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .76623        .19181        .68413E-01   -1.0133    
  28  Prefactor     1.2313        .20031        .60412E-01   -.85374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85923e-07
Minuit parameter uncertainties:
  1  0.000176002
  2  9.48712
  3  1.23821
  4  8.69085
  5  2.3224
  6  4.93032
  7  0.000175564
  8  1.7643e-06
  9  3.95553
  10  3.68753
  11  7.08227
  12  1.96446e-06
  13  1.18967
  14  1.7486e-05
  15  0.324189
  16  2.7222
  17  2.23459e-05
  18  28.3946
  19  97.9214
  20  1.60724e-06
  21  1.87513e-06
  22  0.000349529
  23  3.58386
  24  2.6313e-05
  25  7.41289
  26  1.28396e-05
  27  0.191983
  28  0.200431
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.826e+00  2.722e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.231e+00  2.004e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.662e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.93
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.66e-08 +/- 1.60e-08
Energy Flux (Fixed Index): 9.87e-06 +/- 9.51e-06

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) = 6266.79605273
delta logL = 0.813799585544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6266.63596542
delta logL = 0.973886899887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3447       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0510       1.0000          .0000       5.0000    
     3 'Normalizat'    .77563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2283       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6266.636     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3438        1.3694        .94425E-02   -.33215E-03
   2  alpha         1.0497        .40727        .35711       -.39664E-04
   3  Normalizat    .77555        .17882        .68027E-01    .21001E-04
   4  Prefactor     1.2285        .19630        .60466E-01    .42465E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34379
  alpha      = 1.04965
  Normalizat = 0.775552
  Prefactor  = 1.22846
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.636     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3438        1.9393        .85986E-04   -1.5476    
   2  alpha         1.0497        .60464        .14660E-01   -.61890    
   3  Normalizat    .77555        .20958        .30100E-03   -1.0098    
   4  Prefactor     1.2285        .23035        .26740E-03   -.85460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85274e-12
Minuit parameter uncertainties:
  1  1.93938
  2  0.613898
  3  0.209802
  4  0.230542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738770': 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) = 6266.63596115
delta logL = 0.973891163104

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.344e+00  1.939e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.050e+00  6.139e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.228e+00  2.305e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.756e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.87
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.05 +/- 0.61
Photon Flux (Free Index): 5.57e-09 +/- 6.46e-09
Energy Flux (Free Index): 4.18e-05 +/- 5.92e-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/738770/cmap_HighResolution_352598401_352857601_4FGL_J1230.2+2517_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.66e-08', energy_flux2='4.18e-05', photon_flux_error='1.60e-08', dlogl='9.74e-01', energy_flux='9.87e-06', photon_flux2='5.57e-09', job_status='DONE', time_completed='2021-09-05 20:56:07.362085', photon_index_error2='0.61', photon_index2='1.05', ts='6.93', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='5.92e-05', EG='0.77', time_epoch_completed='1630900567.36', return_code='0', job_id='738770', GAL2='1.23', EG2='0.78', return_code2='0', energy_flux_error='9.51e-06', photon_flux_error2='6.46e-09', ts2='8.87', photon_index='2.00' WHERE bin_id='437' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:56:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 738770: <4FGL_J1230.2+2517_daily_bin437> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin437> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 20:40:58 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:42:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:42:28 2021
Terminated at Sun Sep  5 20:56:08 2021
Results reported at Sun Sep  5 20:56:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin437 187.56 25.2983 352598401 352857601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.2+2517 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            910 sec.

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

