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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1059
RA = 187.712, Dec = 12.3883
tmin = 513820801, tmax = 514080001
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='757611', job_status='RUN', time_executed='2021-09-05 21:36:51.447676', time_epoch_executed='1630903011.45' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757611/ft1_4FGL_J1230.8+1223_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757611/ft2_4FGL_J1230.8+1223_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757611/ft1_4FGL_J1230.8+1223_daily_bin1059.fits outfile=/scratch/kocevski/757611/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1059.fits ra=187.712 dec=12.3883 rad=12.0 tmin=513820801.0 tmax=514080001.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.78
user 3.53
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757611/ft1_filtered_4FGL_J1230.8+1223_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/757611/ft2_4FGL_J1230.8+1223_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/757611/ltcube_513820801_514080001_4FGL_J1230.8+1223_daily_bin1059.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/757611/ft2_4FGL_J1230.8+1223_daily_bin1059.fits
.....................!
real 16.61
user 16.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757611/ft1_filtered_4FGL_J1230.8+1223_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/757611/ft2_4FGL_J1230.8+1223_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/757611/ltcube_513820801_514080001_4FGL_J1230.8+1223_daily_bin1059.fits outfile=/scratch/kocevski/757611/expmap_513820801_514080001_4FGL_J1230.8+1223_daily_bin1059.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/757611/ltcube_513820801_514080001_4FGL_J1230.8+1223_daily_bin1059.fits
.....................!
real 194.62
user 188.48
sys 4.69

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/757611/ft1_filtered_4FGL_J1230.8+1223_daily_bin1059.fits scfile=/scratch/kocevski/757611/ft2_4FGL_J1230.8+1223_daily_bin1059.fits outfile=/scratch/kocevski/757611/cmap_513820801_514080001_4FGL_J1230.8+1223_daily_bin1059.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757611/ft1_filtered_4FGL_J1230.8+1223_daily_bin1059.fits scfile=/scratch/kocevski/757611/ft2_4FGL_J1230.8+1223_daily_bin1059.fits outfile=/scratch/kocevski/757611/cmap_HighResolution_513820801_514080001_4FGL_J1230.8+1223_daily_bin1059.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.712 yref=12.3883 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.717       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7842       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.743       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40307E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2157       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.9220       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0617       1.0000         .10000E-03   10000.    
    13 'norm      '    .15319E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    54.340       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6321       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0351       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.3280       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0050       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.337       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5760       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62968       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=   6829.007     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3110 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.720        19.644        .83719E-07    .17432E-06
   2  Prefactor     .10000E-03    53.243       -.90645E-06** at limit **
   3  Prefactor     3.7846        4.8289        .62800E-07   -.36392E-03
   4  Prefactor     .10000E-03    7.2807       -.17395E-07** at limit **
   5  Prefactor     11.743        7.2955       -.15791E-07   -.58078E-05
   6  Prefactor     .10000E-03    53.369       -.58316E-06** at limit **
   7  Prefactor     .10000E-03    113.01       -.92623E-05** at limit **
   8  Prefactor     1.2188        4.0061       -.81712E-08   -.10869E-03
   9  Prefactor     .10000E-03    1.6696        .30076E-08** at limit **
  10  Prefactor     .10000E-03    10.754        .17364E-08** at limit **
  11  norm          3.9209        3.4077        .10199E-06    .41673E-04
  12  Prefactor     3.0593        39.121       -.76834E-06   -.29628E-05
  13  norm          .15379E-01    .96281E-01   -.10416E-07   -.12143E-04
  14  norm          54.337        39.137       -.13894E-05    .25895E-05
  15  Prefactor     .10000E-03    69.401       -.30546E-05** at limit **
  16  norm          2.6322        .71747        .19095E-07   -.91240E-04
  17  Prefactor     7.0394        9.8561        .66014E-06   -.36349E-05
  18  Prefactor     .10000E-03    15.811        .14619E-06** at limit **
  19  norm          2.3280        1.3923        .59254E-08   -.29784E-04
  20  Prefactor     .10000E-03    64.186        .56521E-05** at limit **
  21  Prefactor     .10000E-03    14.474       -.16318E-06** at limit **
  22  Prefactor     7.0073        7.9478        .18852E-07   -.24824E-03
  23  Prefactor     .10000E-03    5.1458       -.23184E-07** at limit **
  24  Prefactor     10.338        10.818        .40495E-06    .21114E-06
  25  Normalizat    1.5757        .19633       -.74911E-07    .47918E-04
  26  Prefactor     .62975        .16168       -.27554E-07    .20398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7201
  Prefactor  = 0.0001
  Prefactor  = 3.78459
  Prefactor  = 0.0001
  Prefactor  = 11.7433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92091
  Prefactor  = 3.05934
  norm       = 0.0153789
  norm       = 54.3375
  Prefactor  = 0.0001
  norm       = 2.63217
  Prefactor  = 7.0394
  Prefactor  = 0.0001
  norm       = 2.32802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.00727
  Prefactor  = 0.0001
  Prefactor  = 10.3384
  Normalizat = 1.57571
  Prefactor  = 0.62975
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.007     FROM HESSE     STATUS=OK           460 CALLS     3570 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.720        19.635        .95153E-04   -1.4866    
   2  Prefactor     .10000E-03    53.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7846        9.5193        .10376E-02   -1.5319    
   4  Prefactor     .10000E-03    7.2931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.743        7.1459        .11690E-03   -1.5022    
   6  Prefactor     .10000E-03    53.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    114.39        .42520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2188        3.9914        .25981E-03   -1.5487    
   9  Prefactor     .10000E-03    1.6898        .10385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.9209        3.4106        .13028E-03   -1.5312    
  12  Prefactor     3.0593        39.197        .23184E-03   -1.5358    
  13  norm          .15379E-01    .39676        .49146E-03   -1.5683    
  14  norm          54.337        39.247        .27207E-03   -1.4232    
  15  Prefactor     .10000E-03    69.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6322        .71845        .33319E-04   -1.5383    
  17  Prefactor     7.0394        9.8602        .15125E-03   -1.5177    
  18  Prefactor     .10000E-03    15.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.3280        1.3908        .72150E-04   -1.5403    
  20  Prefactor     .10000E-03    64.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.0073        8.7457        .75787E-03   -1.5178    
  23  Prefactor     .10000E-03    5.1640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.338        10.835        .12462E-03   -1.5065    
  25  Normalizat    1.5757        .23330        .24487E-03   -.75673    
  26  Prefactor     .62975        .18660        .31177E-03   -1.0635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20995e-08
Minuit parameter uncertainties:
  1  19.6421
  2  2.64303e-06
  3  9.52307
  4  3.4713e-07
  5  7.14643
  6  7.28208e-07
  7  0.000297342
  8  3.9923
  9  2.12863e-07
  10  2.13095e-06
  11  3.41072
  12  21.9187
  13  0.15572
  14  39.2652
  15  1.01314e-05
  16  0.718449
  17  9.86248
  18  1.54192e-05
  19  1.39081
  20  1.42529e-05
  21  1.3011e-06
  22  8.74732
  23  2.04948e-06
  24  10.8367
  25  0.233458
  26  0.186787
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  7.039e+00  9.862e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  6.298e-01  1.868e-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.576e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757611/likelihoodResults_513820801_514080001_4FGL_J1230.8+1223_daily_bin1059.txt

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) = 6828.84670036
delta logL = 0.160200654195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6828.84193212
delta logL = 0.164968892117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4868       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6218       1.0000          .0000       10.000    
     3 'Normalizat'    1.5547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63943       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=   6828.842     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      298 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4861        11.320        .18857E-03   -.30181E-03
   2  Index         2.6219        1.3854        .80579E-02   -.62808E-04
   3  Normalizat    1.5547        .22451        .24623E-03   -.20340E-03
   4  Prefactor     .63941        .18758        .30952E-03   -.22695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.48614
  Index      = 2.62186
  Normalizat = 1.55468
  Prefactor  = 0.63941
 **********
 **   18 **HESSE 
 **********

 FCN=   6828.842     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4861        8.6178        .75427E-05   -1.5284    
   2  Index         2.6219        1.0605        .32232E-03   -.49568    
   3  Normalizat    1.5547        .22224        .49245E-04   -.76253    
   4  Prefactor     .63941        .18609        .12381E-04   -1.0595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19434e-10
Minuit parameter uncertainties:
  1  8.62018
  2  1.0711
  3  0.222384
  4  0.186271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757611': 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) = 6828.84193211
delta logL = 0.164968907046

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.486e+00  8.620e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.622e+00  1.071e+00  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:  6.394e-01  1.863e-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.555e+00  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.62 +/- 1.07
Photon Flux (Free Index): 3.78e-08 +/- 5.10e-08
Energy Flux (Free Index): 9.72e-06 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/757611/cmap_HighResolution_513820801_514080001_4FGL_J1230.8+1223_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', comment='SUCCESS', energy_flux2='9.72e-06', dlogl='1.65e-01', photon_flux2='3.78e-08', job_status='DONE', time_completed='2021-09-05 21:49:56.471596', photon_index_error2='1.07', photon_index2='2.62', ts='0.73', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='8.66e-08', energy_flux_error2='1.12e-05', EG='1.58', time_epoch_completed='1630903796.47', return_code='0', job_id='757611', GAL2='0.64', EG2='1.55', return_code2='0', photon_flux_error2='5.10e-08', ts2='1.06', photon_index='2.06' WHERE bin_id='1059' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:49:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 757611: <4FGL_J1230.8+1223_daily_bin1059> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1059> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:38 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:36:39 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:36:39 2021
Terminated at Sun Sep  5 21:49:57 2021
Results reported at Sun Sep  5 21:49:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1059 187.712 12.3883 513820801 514080001 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 :                                   774.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            859 sec.

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

