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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1115
RA = 187.712, Dec = 12.3883
tmin = 528336001, tmax = 528595201
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='757697', job_status='RUN', time_executed='2021-09-05 21:39:41.298120', time_epoch_executed='1630903181.3' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757697/ft1_4FGL_J1230.8+1223_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757697/ft2_4FGL_J1230.8+1223_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757697/ft1_4FGL_J1230.8+1223_daily_bin1115.fits outfile=/scratch/kocevski/757697/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1115.fits ra=187.712 dec=12.3883 rad=12.0 tmin=528336001.0 tmax=528595201.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.53
user 3.23
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757697/ft1_filtered_4FGL_J1230.8+1223_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/757697/ft2_4FGL_J1230.8+1223_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/757697/ltcube_528336001_528595201_4FGL_J1230.8+1223_daily_bin1115.fits outfile=/scratch/kocevski/757697/expmap_528336001_528595201_4FGL_J1230.8+1223_daily_bin1115.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/757697/ltcube_528336001_528595201_4FGL_J1230.8+1223_daily_bin1115.fits
.....................!
real 191.99
user 186.52
sys 4.51

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/757697/ft1_filtered_4FGL_J1230.8+1223_daily_bin1115.fits scfile=/scratch/kocevski/757697/ft2_4FGL_J1230.8+1223_daily_bin1115.fits outfile=/scratch/kocevski/757697/cmap_528336001_528595201_4FGL_J1230.8+1223_daily_bin1115.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757697/ft1_filtered_4FGL_J1230.8+1223_daily_bin1115.fits scfile=/scratch/kocevski/757697/ft2_4FGL_J1230.8+1223_daily_bin1115.fits outfile=/scratch/kocevski/757697/cmap_HighResolution_528336001_528595201_4FGL_J1230.8+1223_daily_bin1115.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    64.643       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1707       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41947       1.0000         .10000E-03   10000.    
    11 'norm      '    6.3754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .40845E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3152       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.580       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.483       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8105       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.031       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2765       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0525       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=   5990.438     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3199 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.318       -.93280E-07** at limit **
   2  Prefactor     .10000E-03    26.146        .10367E-05** at limit **
   3  Prefactor     .10000E-03    5.1125        .53442E-07** at limit **
   4  Prefactor     .10000E-03    6.9534        .19742E-05** at limit **
   5  Prefactor     .10000E-03    2.9464       -.22850E-06** at limit **
   6  Prefactor     .10000E-03    27.456        .18031E-05** at limit **
   7  Prefactor     64.599        46.759       -.27478E-04   -.15405E-03
   8  Prefactor     .10000E-03    1.8095        .40711E-08** at limit **
   9  Prefactor     5.1723        4.2591       -.37044E-06   -.75674E-04
  10  Prefactor     .61517        39.423        .61626E-05   -.36409E-04
  11  norm          6.3653        4.6439        .36048E-06   -.11245E-02
  12  Prefactor     .10000E-03    17.866        .72526E-07** at limit **
  13  norm          .41004E-01    .19222       -.38767E-06   -.11125E-02
  14  norm          .10000E-03    25.467       -.20572E-05** at limit **
  15  Prefactor     .10000E-03    57.585       -.49338E-06** at limit **
  16  norm          1.3154        .67766       -.14274E-07   -.55848E-03
  17  Prefactor     16.581        10.865       -.22074E-06    .41011E-05
  18  Prefactor     .10000E-03    7.0930       -.61501E-06** at limit **
  19  norm          .10000E-03    1.1214       -.88640E-07** at limit **
  20  Prefactor     47.474        56.314        .16047E-05   -.98064E-06
  21  Prefactor     .10000E-03    28.224       -.82614E-06** at limit **
  22  Prefactor     1.8106        6.0950       -.19568E-05   -.66123E-03
  23  Prefactor     .10000E-03    6.8726       -.15319E-05** at limit **
  24  Prefactor     11.033        12.967       -.62517E-06   -.48702E-05
  25  Normalizat    1.2766        .21619        .29213E-05   -.53697E-04
  26  Prefactor     1.0524        .18557        .34943E-06    .75210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.5994
  Prefactor  = 0.0001
  Prefactor  = 5.17227
  Prefactor  = 0.615169
  norm       = 6.36527
  Prefactor  = 0.0001
  norm       = 0.0410038
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31543
  Prefactor  = 16.581
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.474
  Prefactor  = 0.0001
  Prefactor  = 1.81063
  Prefactor  = 0.0001
  Prefactor  = 11.033
  Normalizat = 1.27659
  Prefactor  = 1.05237
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.438     FROM HESSE     STATUS=OK           462 CALLS     3661 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1343        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3433        .25598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.599        46.935        .49914E-04   -1.4099    
   8  Prefactor     .10000E-03    1.8448        .20267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1723        4.2565        .13476E-03   -1.5253    
  10  Prefactor     .61517        47.243        .12192       -1.5551    
  11  norm          6.3653        4.6473        .12167E-03   -1.5203    
  12  Prefactor     .10000E-03    17.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .41004E-01    .39563        .62440E-03   -1.5668    
  14  norm          .10000E-03    25.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    57.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3154        .66974        .42058E-04   -1.5479    
  17  Prefactor     16.581        10.865        .98361E-04   -1.4893    
  18  Prefactor     .10000E-03    7.0946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1649        .15961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     47.474        56.270        .58190E-04   -1.4329    
  21  Prefactor     .10000E-03    28.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.8106        6.1277        .31051E-03   -1.5439    
  23  Prefactor     .10000E-03    6.8979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.033        12.968        .12063E-03   -1.5044    
  25  Normalizat    1.2766        .25650        .27034E-03   -.84268    
  26  Prefactor     1.0524        .22216        .26308E-03   -.91004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07357e-09
Minuit parameter uncertainties:
  1  2.14373e-05
  2  3.99311e-05
  3  4.63945e-06
  4  6.63354e-06
  5  5.93668e-05
  6  3.13564e-06
  7  46.9616
  8  7.55879e-07
  9  4.25675
  10  10.7899
  11  4.64752
  12  1.38515e-05
  13  0.254426
  14  9.08946e-06
  15  1.68147e-05
  16  0.669741
  17  10.8662
  18  3.39201e-06
  19  1.03579e-05
  20  56.3333
  21  3.24666e-05
  22  6.12983
  23  1.81528e-05
  24  12.9717
  25  0.256755
  26  0.222351
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.658e+01  1.087e+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:  1.052e+00  2.224e-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.277e+00  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.79e-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) = 5990.43155676
delta logL = 0.00691240880315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5990.42840869
delta logL = 0.0100604837917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.600       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9924       1.0000          .0000       10.000    
     3 'Normalizat'    1.2793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0509       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=   5990.428     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.599        13.641        .95470E-04    .56232E-03
   2  Index         1.9924        .46140        .61289E-02    .15352E-03
   3  Normalizat    1.2793        .24600        .27010E-03   -.67850E-04
   4  Prefactor     1.0509        .22088        .26324E-03   -.96525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5991
  Index      = 1.99245
  Normalizat = 1.27925
  Prefactor  = 1.0509
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.428     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.599        13.349        .19094E-04   -1.4869    
   2  Index         1.9924        .45153        .24516E-03   -.64539    
   3  Normalizat    1.2793        .24617        .10804E-04   -.84188    
   4  Prefactor     1.0509        .22105        .10530E-04   -.91051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18033e-10
Minuit parameter uncertainties:
  1  13.3512
  2  0.452494
  3  0.246392
  4  0.221241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757697': 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) = 5990.42840867
delta logL = 0.0100604968602

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.760e+01  1.335e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.992e+00  4.525e-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:  1.051e+00  2.212e-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.279e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.99 +/- 0.45
Photon Flux (Free Index): 4.28e-08 +/- 3.31e-08
Energy Flux (Free Index): 3.01e-05 +/- 2.91e-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/757697/cmap_HighResolution_528336001_528595201_4FGL_J1230.8+1223_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='3.01e-05', photon_flux_error='2.96e-08', dlogl='1.01e-02', energy_flux='2.73e-05', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-09-05 21:51:47.312968', photon_index_error2='0.45', photon_index2='1.99', ts='4.46', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.91e-05', EG='1.28', time_epoch_completed='1630903907.31', return_code='0', job_id='757697', GAL2='1.05', EG2='1.28', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='3.31e-08', ts2='4.47', photon_index='2.06' WHERE bin_id='1115' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 757697: <4FGL_J1230.8+1223_daily_bin1115> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1115> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:44 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:37:05 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:37:05 2021
Terminated at Sun Sep  5 21:51:47 2021
Results reported at Sun Sep  5 21:51:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1115 187.712 12.3883 528336001 528595201 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 :                                   648.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            963 sec.

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

