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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1383
RA = 187.712, Dec = 12.3883
tmin = 597801601, tmax = 598060801
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='759163', job_status='RUN', time_executed='2021-09-05 21:42:51.021103', time_epoch_executed='1630903371.02' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759163

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759163/ft1_4FGL_J1230.8+1223_daily_bin1383.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759163/ft2_4FGL_J1230.8+1223_daily_bin1383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759163/ft1_4FGL_J1230.8+1223_daily_bin1383.fits outfile=/scratch/kocevski/759163/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1383.fits ra=187.712 dec=12.3883 rad=12.0 tmin=597801601.0 tmax=598060801.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.63
user 3.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759163/ft1_filtered_4FGL_J1230.8+1223_daily_bin1383.fits" evtable="EVENTS" scfile=/scratch/kocevski/759163/ft2_4FGL_J1230.8+1223_daily_bin1383.fits sctable="SC_DATA" outfile=/scratch/kocevski/759163/ltcube_597801601_598060801_4FGL_J1230.8+1223_daily_bin1383.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/759163/ft2_4FGL_J1230.8+1223_daily_bin1383.fits
.....................!
real 12.38
user 11.93
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759163/ft1_filtered_4FGL_J1230.8+1223_daily_bin1383.fits evtable="EVENTS" scfile=/scratch/kocevski/759163/ft2_4FGL_J1230.8+1223_daily_bin1383.fits sctable="SC_DATA" expcube=/scratch/kocevski/759163/ltcube_597801601_598060801_4FGL_J1230.8+1223_daily_bin1383.fits outfile=/scratch/kocevski/759163/expmap_597801601_598060801_4FGL_J1230.8+1223_daily_bin1383.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/759163/ltcube_597801601_598060801_4FGL_J1230.8+1223_daily_bin1383.fits
.....................!
real 190.48
user 185.78
sys 4.29

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/759163/ft1_filtered_4FGL_J1230.8+1223_daily_bin1383.fits scfile=/scratch/kocevski/759163/ft2_4FGL_J1230.8+1223_daily_bin1383.fits outfile=/scratch/kocevski/759163/cmap_597801601_598060801_4FGL_J1230.8+1223_daily_bin1383.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759163/ft1_filtered_4FGL_J1230.8+1223_daily_bin1383.fits scfile=/scratch/kocevski/759163/ft2_4FGL_J1230.8+1223_daily_bin1383.fits outfile=/scratch/kocevski/759163/cmap_HighResolution_597801601_598060801_4FGL_J1230.8+1223_daily_bin1383.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.59
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .77837E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.691       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.228       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7569       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.707       1.0000         .10000E-03   10000.    
    11 'norm      '    .10334E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    84.843       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .57475       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.200       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.3427       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19969E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2746       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3085       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91735       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=   6135.450     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     2738 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.069        .90712E-02** at limit **
   2  Prefactor     .10000E-03    35.511        .90712E-02** at limit **
   3  Prefactor     .10001E-03    6.0608        .92619E-01** at limit **
   4  Prefactor     .10000E-03    22.644        .90712E-02** at limit **
   5  Prefactor     .10000E-03    1.9361        .90712E-02** at limit **
   6  Prefactor     20.739        52.236        .22014E-02   -.46686E-03
   7  Prefactor     28.250        27.327        .18851E-02    .67753E-03
   8  Prefactor     .10000E-03    1.0734        .90712E-02** at limit **
   9  Prefactor     4.7567        3.3352        .46120E-02    .29150E-03
  10  Prefactor     38.717        28.904        .16106E-02    .59821E-03
  11  norm          .10000E-03    2.0990        .37557E-01** at limit **
  12  Prefactor     .10000E-03    16.095        .90712E-02** at limit **
  13  norm          .10000E-03    .66375E-01    .90712E-02** at limit **
  14  norm          84.907        46.631        .10903E-02    .22786E-02
  15  Prefactor     .10001E-03    50.612        .90712E-02** at limit **
  16  norm          .57521        .54160        .11222E-01    .97076E-03
  17  Prefactor     30.202        13.379        .18227E-02    .16585E-03
  18  Prefactor     .10000E-03    10.581        .90712E-02** at limit **
  19  norm          3.3430        1.6749        .55342E-02    .12003E-03
  20  Prefactor     .10001E-03    21.537        .90712E-02** at limit **
  21  Prefactor     .10024E-03    485.60        .90712E-02** at limit **
  22  Prefactor     6.2755        7.5274        .40062E-02    .17004E-03
  23  Prefactor     .10001E-03    8.4918        .90712E-01** at limit **
  24  Prefactor     .10000E-03    5.0757        .90712E-02** at limit **
  25  Normalizat    1.3086        .20083        .56320E-01    .94985E-04
  26  Prefactor     .91726        .17713        .45226E-01    .57303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7392
  Prefactor  = 28.2499
  Prefactor  = 0.0001
  Prefactor  = 4.75665
  Prefactor  = 38.7173
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 84.9074
  Prefactor  = 0.000100013
  norm       = 0.575205
  Prefactor  = 30.2022
  Prefactor  = 0.0001
  norm       = 3.34301
  Prefactor  = 0.000100005
  Prefactor  = 0.000100245
  Prefactor  = 6.27545
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Normalizat = 1.30864
  Prefactor  = 0.917262
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.450     FROM HESSE     STATUS=OK           460 CALLS     3198 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    9.2960        .65042E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9718        .10639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.739        52.203        .88054E-04   -1.4797    
   7  Prefactor     28.250        27.324        .75405E-04   -1.4644    
   8  Prefactor     .10000E-03    1.0807        .78984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7567        3.3247        .11319E-03   -1.5272    
  10  Prefactor     38.717        28.715        .64424E-04   -1.4463    
  11  norm          .10000E-03    3.6127        .20811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .80006E-01    .39203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          84.907        45.232        .21806E-03   -1.3862    
  15  Prefactor     .10001E-03    50.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .57521        .51401        .51475E-03   -1.5556    
  17  Prefactor     30.202        13.380        .72907E-04   -1.4608    
  18  Prefactor     .10000E-03    10.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.3430        1.6699        .68534E-04   -1.5342    
  20  Prefactor     .10001E-03    21.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10024E-03    502.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.2755        7.5234        .16025E-03   -1.5207    
  23  Prefactor     .10001E-03    50.258        .42859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.0864        .17231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3086        .23142        .24905E-03   -.83309    
  26  Prefactor     .91726        .20756        .26701E-03   -.95540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76476e-08
Minuit parameter uncertainties:
  1  0.000510277
  2  7.53227e-05
  3  0.000604517
  4  8.86433e-05
  5  5.15846e-06
  6  52.3183
  7  27.3362
  8  2.40685e-06
  9  3.3248
  10  28.7252
  11  1.03401e-05
  12  5.75986e-05
  13  1.78239e-07
  14  45.2507
  15  0.00160621
  16  0.514016
  17  13.3816
  18  6.33423e-06
  19  1.66993
  20  0.000662984
  21  0.0223824
  22  7.52457
  23  0.0016016
  24  6.03107e-07
  25  0.231607
  26  0.207739
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.020e+01  1.338e+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:  9.173e-01  2.077e-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.309e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.59
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 8.24e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 4.97e-05 +/- 2.20e-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) = 6135.37675501
delta logL = 0.0735288354699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6135.34664509
delta logL = 0.103638756333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.397       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9126       1.0000          .0000       10.000    
     3 'Normalizat'    1.3191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91175       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=   6135.347     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      266 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.398        17.474        .68327E-04   -.98667E-04
   2  Index         1.9126        .31542        .47874E-02    .30292E-03
   3  Normalizat    1.3192        .22591        .24823E-03   -.12089E-03
   4  Prefactor     .91173        .20752        .26773E-03   -.15147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3982
  Index      = 1.91265
  Normalizat = 1.31915
  Prefactor  = 0.911727
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.347     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.398        17.274        .13665E-04   -1.4534    
   2  Index         1.9126        .31175        .95748E-03   -.66552    
   3  Normalizat    1.3192        .22606        .49647E-04   -.82996    
   4  Prefactor     .91173        .20768        .10709E-04   -.95733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35893e-11
Minuit parameter uncertainties:
  1  17.2769
  2  0.312081
  3  0.226228
  4  0.207858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759163': 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) = 6135.34664507
delta logL = 0.103638775612

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.440e+01  1.728e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.913e+00  3.121e-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:  9.117e-01  2.079e-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.319e+00  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.78
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.91 +/- 0.31
Photon Flux (Free Index): 7.29e-08 +/- 3.90e-08
Energy Flux (Free Index): 6.32e-05 +/- 4.50e-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/759163/cmap_HighResolution_597801601_598060801_4FGL_J1230.8+1223_daily_bin1383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.24e-08', energy_flux2='6.32e-05', photon_flux_error='3.65e-08', dlogl='1.04e-01', energy_flux='4.97e-05', photon_flux2='7.29e-08', job_status='DONE', time_completed='2021-09-05 21:55:01.176356', photon_index_error2='0.31', photon_index2='1.91', ts='12.59', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='4.50e-05', EG='1.31', time_epoch_completed='1630904101.18', return_code='0', job_id='759163', GAL2='0.91', EG2='1.32', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='3.90e-08', ts2='12.78', photon_index='2.06' WHERE bin_id='1383' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:55:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 759163: <4FGL_J1230.8+1223_daily_bin1383> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1383 187.712 12.3883 597801601 598060801 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 :                                   621.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            872 sec.

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

