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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin997
RA = 187.56, Dec = 25.2983
tmin = 497750401, tmax = 498009601
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='741909', job_status='RUN', time_executed='2021-09-05 20:52:49.317785', time_epoch_executed='1630900369.32' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741909

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741909/ft1_4FGL_J1230.2+2517_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741909/ft2_4FGL_J1230.2+2517_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741909/ft1_4FGL_J1230.2+2517_daily_bin997.fits outfile=/scratch/kocevski/741909/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin997.fits ra=187.56 dec=25.2983 rad=12.0 tmin=497750401.0 tmax=498009601.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.80
user 4.44
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741909/ft2_4FGL_J1230.2+2517_daily_bin997.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/741909/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin997.fits evtable="EVENTS" outfile="/scratch/kocevski/741909/ft1_filtered_4FGL_J1230.2+2517_daily_bin997.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.60
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741909/ft1_filtered_4FGL_J1230.2+2517_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/741909/ft2_4FGL_J1230.2+2517_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/741909/ltcube_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.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/741909/ft2_4FGL_J1230.2+2517_daily_bin997.fits
.....................!
real 16.06
user 15.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741909/ft1_filtered_4FGL_J1230.2+2517_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/741909/ft2_4FGL_J1230.2+2517_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/741909/ltcube_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.fits outfile=/scratch/kocevski/741909/expmap_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.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/741909/ltcube_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.fits
.....................!
real 192.90
user 185.95
sys 5.18

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/741909/ft1_filtered_4FGL_J1230.2+2517_daily_bin997.fits scfile=/scratch/kocevski/741909/ft2_4FGL_J1230.2+2517_daily_bin997.fits outfile=/scratch/kocevski/741909/cmap_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741909/ft1_filtered_4FGL_J1230.2+2517_daily_bin997.fits scfile=/scratch/kocevski/741909/ft2_4FGL_J1230.2+2517_daily_bin997.fits outfile=/scratch/kocevski/741909/cmap_HighResolution_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/741909/ft1_filtered_4FGL_J1230.2+2517_daily_bin997.fits', '/scratch/kocevski/741909/ft2_4FGL_J1230.2+2517_daily_bin997.fits', expMap='/scratch/kocevski/741909/expmap_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.fits', expCube='/scratch/kocevski/741909/ltcube_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/741909/Model_4FGL_J1230.2+2517_daily_bin997.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/741909/ft1_filtered_4FGL_J1230.2+2517_daily_bin997.fits
Spacecraft file(s): /scratch/kocevski/741909/ft2_4FGL_J1230.2+2517_daily_bin997.fits
Exposure map: /scratch/kocevski/741909/expmap_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.fits
Exposure cube: /scratch/kocevski/741909/ltcube_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/741909/Model_4FGL_J1230.2+2517_daily_bin997.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) = 5464.87939575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .63726E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .96504       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.803       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16854       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19724E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.792       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9980       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .35702       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2218       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19854E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.445       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0625       1.0000         .10000E-03   10000.    
    21 'norm      '    13.101       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92141       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1253       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5464.868     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3600 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4001        .11563E-06** at limit **
   2  Prefactor     .10000E-03    2.9496       -.42579E-07** at limit **
   3  Prefactor     .10000E-03    .76260       -.87949E-07** at limit **
   4  Prefactor     .10006E-03    121.62       -.22665E-04** at limit **
   5  norm          .96296        1.2253        .26306E-06    .26555E-03
   6  Prefactor     .10000E-03    1.0168       -.14702E-07** at limit **
   7  Prefactor     42.777        33.922       -.18705E-04    .12560E-03
   8  Prefactor     .17153        1.5346       -.56961E-06   -.18311E-04
   9  Prefactor     .10000E-03    1.7886       -.20140E-06** at limit **
  10  norm          11.797        3.9997        .46634E-07    .60874E-07
  11  Prefactor     .10000E-03    2.1839        .86295E-07** at limit **
  12  Prefactor     .10000E-03    1.7760        .10581E-06** at limit **
  13  Prefactor     2.9976        2.1981       -.21038E-07   -.68575E-04
  14  Prefactor     .10000E-03    1.4067       -.47848E-07** at limit **
  15  norm          .35705        .20290       -.40623E-07    .44274E-04
  16  norm          6.2227        4.2402       -.96277E-07   -.52726E-04
  17  Prefactor     .10000E-03    2.5083        .18338E-07** at limit **
  18  Prefactor     .10000E-03    73.754        .73991E-05** at limit **
  19  Prefactor     13.440        39.572       -.85310E-05   -.16401E-05
  20  Prefactor     4.0638        4.4460       -.30614E-07    .41284E-04
  21  norm          13.102        5.5670        .45241E-07    .71384E-05
  22  Prefactor     .10000E-03    30.630       -.10016E-05** at limit **
  23  norm          .10000E-03    1.3436       -.47252E-07** at limit **
  24  norm          .10000E-03    .73138       -.10036E-08** at limit **
  25  norm          .10000E-03    1.4092        .20760E-07** at limit **
  26  norm          .10000E-03    12.594        .16251E-06** at limit **
  27  Normalizat    .92146        .17832        .38268E-05    .12230E-03
  28  Prefactor     1.1251        .19592       -.99238E-06    .32781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100063
  norm       = 0.962955
  Prefactor  = 0.0001
  Prefactor  = 42.7767
  Prefactor  = 0.171532
  Prefactor  = 0.0001
  norm       = 11.7965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99756
  Prefactor  = 0.0001
  norm       = 0.357048
  norm       = 6.22272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4403
  Prefactor  = 4.06376
  norm       = 13.102
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.921455
  Prefactor  = 1.12505
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.868     FROM HESSE     STATUS=OK           521 CALLS     4121 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9506        .12400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2431        .12552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    121.85        .42063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .96296        1.1511        .86968E-03   -1.5512    
   6  Prefactor     .10000E-03    1.0214        .72778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.777        33.897        .61275E-04   -1.4399    
   8  Prefactor     .17153        7.2089        .16629E-02   -1.5625    
   9  Prefactor     .10000E-03    8.0189        .18085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.797        3.8210        .78139E-04   -1.5021    
  11  Prefactor     .10000E-03    2.1895        .10669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5874        .18246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9976        2.1944        .88648E-04   -1.5362    
  14  Prefactor     .10000E-03    1.4076        .85619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .35705        .19963        .24075E-04   -1.5588    
  16  norm          6.2227        4.2376        .12116E-03   -1.5209    
  17  Prefactor     .10000E-03    2.5096        .11434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    74.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.440        39.597        .10924E-03   -1.4975    
  20  Prefactor     4.0638        4.4457        .15835E-03   -1.5305    
  21  norm          13.102        5.5606        .10828E-03   -1.4984    
  22  Prefactor     .10000E-03    30.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.3505        .83662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .73197        .61737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.4094        .85702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    12.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .92146        .20814        .24505E-03   -.95710    
  28  Prefactor     1.1251        .23002        .25645E-03   -.88670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55837e-08
Minuit parameter uncertainties:
  1  4.04711e-06
  2  1.09179e-06
  3  9.13948e-06
  4  0.00555787
  5  1.15112
  6  1.45358e-06
  7  33.9123
  8  2.22365
  9  1.51195e-05
  10  3.82104
  11  1.24517e-05
  12  3.13313e-05
  13  2.19445
  14  1.12449e-06
  15  0.199631
  16  4.23784
  17  8.52261e-07
  18  0.000294736
  19  39.6745
  20  4.44602
  21  5.56077
  22  6.08936e-05
  23  5.00545e-06
  24  6.4941e-07
  25  3.7024e-07
  26  1.94018e-05
  27  0.208319
  28  0.230223
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.223e+00  4.238e+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.125e+00  2.302e-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:  9.215e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.48e-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) = 5464.82669544
delta logL = 0.0411877916058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5464.82120077
delta logL = 0.0466824623663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8044       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2221       1.0000          .0000       5.0000    
     3 'Normalizat'    .91177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1317       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5464.821     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      250 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8039        4.4264        .11281E-03    .92515E-04
   2  alpha         2.2224        .73308        .15085E-01    .15073E-03
   3  Normalizat    .91175        .20295        .24617E-03    .49830E-04
   4  Prefactor     1.1317        .23039        .25579E-03    .52090E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.80385
  alpha      = 2.22237
  Normalizat = 0.911751
  Prefactor  = 1.13171
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.821     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8039        4.3259        .45123E-05   -1.5226    
   2  alpha         2.2224        .71645        .30171E-02   -.11128    
   3  Normalizat    .91175        .20297        .98470E-05   -.96048    
   4  Prefactor     1.1317        .23050        .10232E-04   -.88460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48107e-12
Minuit parameter uncertainties:
  1  4.32618
  2  0.726775
  3  0.203138
  4  0.230705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741909': 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) = 5464.82120069
delta logL = 0.0466825417961

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  5.804e+00  4.326e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.222e+00  7.268e-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.132e+00  2.307e-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:  9.118e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.60
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.22 +/- 0.73
Photon Flux (Free Index): 4.41e-08 +/- 3.77e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.49e-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/741909/cmap_HighResolution_497750401_498009601_4FGL_J1230.2+2517_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='1.80e-05', photon_flux_error='2.49e-08', dlogl='4.67e-02', energy_flux='2.17e-05', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-09-05 21:04:24.181316', photon_index_error2='0.73', photon_index2='2.22', ts='4.51', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='0.92', time_epoch_completed='1630901064.18', return_code='0', job_id='741909', GAL2='1.13', EG2='0.91', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='3.77e-08', ts2='4.60', photon_index='2.00' WHERE bin_id='997' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:04:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 741909: <4FGL_J1230.2+2517_daily_bin997> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin997> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:37 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:46 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:50:46 2021
Terminated at Sun Sep  5 21:04:24 2021
Results reported at Sun Sep  5 21:04:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin997 187.56 25.2983 497750401 498009601 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 :                                   688.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            827 sec.

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

