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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin551
RA = 187.712, Dec = 12.3883
tmin = 382147201, tmax = 382406401
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='754298', job_status='RUN', time_executed='2021-09-05 21:26:11.176602', time_epoch_executed='1630902371.18' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754298

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754298/ft1_4FGL_J1230.8+1223_daily_bin551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754298/ft2_4FGL_J1230.8+1223_daily_bin551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754298/ft1_4FGL_J1230.8+1223_daily_bin551.fits outfile=/scratch/kocevski/754298/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin551.fits ra=187.712 dec=12.3883 rad=12.0 tmin=382147201.0 tmax=382406401.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.48
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/754298/ft2_4FGL_J1230.8+1223_daily_bin551.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/754298/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin551.fits evtable="EVENTS" outfile="/scratch/kocevski/754298/ft1_filtered_4FGL_J1230.8+1223_daily_bin551.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/754298/ft1_filtered_4FGL_J1230.8+1223_daily_bin551.fits" evtable="EVENTS" scfile=/scratch/kocevski/754298/ft2_4FGL_J1230.8+1223_daily_bin551.fits sctable="SC_DATA" outfile=/scratch/kocevski/754298/ltcube_382147201_382406401_4FGL_J1230.8+1223_daily_bin551.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/754298/ft2_4FGL_J1230.8+1223_daily_bin551.fits
.....................!
real 17.94
user 17.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754298/ft1_filtered_4FGL_J1230.8+1223_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/754298/ft2_4FGL_J1230.8+1223_daily_bin551.fits sctable="SC_DATA" expcube=/scratch/kocevski/754298/ltcube_382147201_382406401_4FGL_J1230.8+1223_daily_bin551.fits outfile=/scratch/kocevski/754298/expmap_382147201_382406401_4FGL_J1230.8+1223_daily_bin551.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/754298/ltcube_382147201_382406401_4FGL_J1230.8+1223_daily_bin551.fits
.....................!
real 195.20
user 187.46
sys 4.79

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/754298/ft1_filtered_4FGL_J1230.8+1223_daily_bin551.fits scfile=/scratch/kocevski/754298/ft2_4FGL_J1230.8+1223_daily_bin551.fits outfile=/scratch/kocevski/754298/cmap_382147201_382406401_4FGL_J1230.8+1223_daily_bin551.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754298/ft1_filtered_4FGL_J1230.8+1223_daily_bin551.fits scfile=/scratch/kocevski/754298/ft2_4FGL_J1230.8+1223_daily_bin551.fits outfile=/scratch/kocevski/754298/cmap_HighResolution_382147201_382406401_4FGL_J1230.8+1223_daily_bin551.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2291       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.401       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2887       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .79390       1.0000         .10000E-03   10000.    
    14 'norm      '    .10450E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .56688       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.957       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    33.466       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.449       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.855       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4661       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.579       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.167       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2566       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .61554       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=   6432.463     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     4011 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0569       -.94904E-08** at limit **
   2  Prefactor     8.2195        62.399       -.93914E-06   -.20400E-04
   3  Prefactor     .10000E-03    2.8489        .22005E-07** at limit **
   4  Prefactor     .10000E-03    8.3651       -.37360E-07** at limit **
   5  Prefactor     .10000E-03    1.1609       -.13393E-07** at limit **
   6  Prefactor     .10000E-03    71.242        .37522E-05** at limit **
   7  Prefactor     46.431        41.891        .14548E-05    .88761E-04
   8  Prefactor     .10000E-03    1.2045       -.19147E-07** at limit **
   9  Prefactor     8.2895        3.7329        .12319E-06   -.51793E-04
  10  Prefactor     .10000E-03    13.937        .21812E-06** at limit **
  11  norm          .10000E-03    2.0585       -.33708E-06** at limit **
  12  Prefactor     .10000E-03    15.231       -.23945E-06** at limit **
  13  norm          .79396        .29432        .33863E-07   -.24587E-03
  14  norm          .10000E-03    31.907        .32549E-07** at limit **
  15  Prefactor     .10000E-03    45.288       -.19432E-05** at limit **
  16  norm          .56705        .51801        .13788E-05   -.21516E-02
  17  Prefactor     27.959        15.885        .10260E-06   -.97453E-05
  18  Prefactor     .10000E-03    49.085       -.10188E-05** at limit **
  19  norm          33.467        3.8363       -.20347E-06   -.43827E-03
  20  Prefactor     17.424        44.225       -.30555E-05   -.77633E-04
  21  Prefactor     14.945        50.920        .12023E-04    .18762E-03
  22  Prefactor     1.4656        7.5230        .20252E-05   -.12087E-03
  23  Prefactor     19.565        15.224       -.10410E-05   -.89639E-04
  24  Prefactor     29.173        16.311        .35796E-06   -.24628E-04
  25  Normalizat    1.2564        .20288       -.13508E-05   -.46168E-04
  26  Prefactor     .61567        .16938       -.51452E-06   -.78949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.21951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 46.4313
  Prefactor  = 0.0001
  Prefactor  = 8.28947
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.79396
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.567052
  Prefactor  = 27.9591
  Prefactor  = 0.0001
  norm       = 33.4671
  Prefactor  = 17.4244
  Prefactor  = 14.9453
  Prefactor  = 1.46561
  Prefactor  = 19.5646
  Prefactor  = 29.1733
  Normalizat = 1.25641
  Prefactor  = 0.615669
 **********
 **   18 **HESSE 
 **********

 FCN=   6432.463     FROM HESSE     STATUS=OK           454 CALLS     4465 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.2195        62.536        .13976E-03   -1.5134    
   3  Prefactor     .10000E-03    2.8530        .13220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1691        .84372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    71.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     46.431        42.069        .58862E-04   -1.4344    
   8  Prefactor     .10000E-03    1.2180        .85802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.2895        3.7371        .98499E-04   -1.5132    
  10  Prefactor     .10000E-03    13.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1033        .11243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .79396        .29412        .25014E-04   -1.5530    
  14  norm          .10000E-03    32.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .56705        .52518        .27743E-02   -1.5557    
  17  Prefactor     27.959        15.908        .75769E-04   -1.4650    
  18  Prefactor     .10000E-03    49.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          33.467        3.8410        .50186E-04   -1.4550    
  20  Prefactor     17.424        44.381        .95882E-04   -1.4873    
  21  Prefactor     14.945        52.613        .10392E-03   -1.4935    
  22  Prefactor     1.4656        7.5370        .35511E-03   -1.5466    
  23  Prefactor     19.565        15.348        .90517E-04   -1.4823    
  24  Prefactor     29.173        16.362        .74185E-04   -1.4627    
  25  Normalizat    1.2564        .23906        .26353E-03   -.84877    
  26  Prefactor     .61567        .19655        .31661E-03   -1.0693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09379e-09
Minuit parameter uncertainties:
  1  1.08869e-05
  2  45.4098
  3  2.06289e-06
  4  9.77123e-06
  5  1.75803e-06
  6  0.00090385
  7  42.0955
  8  2.46667e-06
  9  3.7372
  10  1.10766e-05
  11  3.78472e-05
  12  2.45054e-05
  13  0.294119
  14  0.000105124
  15  0.00036675
  16  0.525184
  17  15.9107
  18  0.000135789
  19  3.84105
  20  44.4651
  21  52.7766
  22  6.6483
  23  15.3513
  24  16.3645
  25  0.239268
  26  0.196765
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.796e+01  1.591e+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:  6.157e-01  1.968e-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.256e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.74
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 7.63e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 4.60e-05 +/- 2.62e-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) = 6428.38614452
delta logL = 4.0769973582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6428.36760235
delta logL = 4.09553952523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2273       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5715       1.0000          .0000       10.000    
     3 'Normalizat'    1.0632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72550       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=   6428.368     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      292 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2268        55.043        .22549E-04   -.94634E-03
   2  Index         3.5716        3.3391        .22131E-02   -.32392E-03
   3  Normalizat    1.0632        .30084        .28125E-03   -.32566E-03
   4  Prefactor     .72551        .25992        .29290E-03   -.38700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.22679
  Index      = 3.5716
  Normalizat = 1.06323
  Prefactor  = 0.725514
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.368     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2268        4.6119        .90196E-06   -1.5349    
   2  Index         3.5716        .63632        .88525E-04   -.28972    
   3  Normalizat    1.0632        .23160        .56249E-04   -.90941    
   4  Prefactor     .72551        .19850        .58580E-04   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41091e-10
Minuit parameter uncertainties:
  1  4.61236
  2  0.638206
  3  0.231821
  4  0.198694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754298': 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) = 6428.36760234
delta logL = 4.09553954012

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.227e+00  4.612e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  3.572e+00  6.382e-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:  7.255e-01  1.987e-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.063e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.43
Ra Dec: 187.712 12.388
Photon Index (Free Index): 3.57 +/- 0.64
Photon Flux (Free Index): 2.35e-07 +/- 8.35e-08
Energy Flux (Free Index): 3.83e-05 +/- 1.30e-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/754298/cmap_HighResolution_382147201_382406401_4FGL_J1230.8+1223_daily_bin551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.63e-08', energy_flux2='3.83e-05', photon_flux_error='4.34e-08', dlogl='4.10e+00', energy_flux='4.60e-05', photon_flux2='2.35e-07', job_status='DONE', time_completed='2021-09-05 21:39:11.276919', photon_index_error2='0.64', photon_index2='3.57', ts='6.74', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='1.26', time_epoch_completed='1630903151.28', return_code='0', job_id='754298', GAL2='0.73', EG2='1.06', return_code2='0', energy_flux_error='2.62e-05', photon_flux_error2='8.35e-08', ts2='15.43', photon_index='2.06' WHERE bin_id='551' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:39:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 754298: <4FGL_J1230.8+1223_daily_bin551> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin551> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:25:18 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:25:51 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:25:51 2021
Terminated at Sun Sep  5 21:39:12 2021
Results reported at Sun Sep  5 21:39:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin551 187.712 12.3883 382147201 382406401 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 :                                   769.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            834 sec.

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

