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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1302
RA = 187.712, Dec = 12.3883
tmin = 576806401, tmax = 577065601
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='758002', job_status='RUN', time_executed='2021-09-05 21:41:33.664669', time_epoch_executed='1630903293.66' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/758002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/758002/ft1_4FGL_J1230.8+1223_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/758002/ft2_4FGL_J1230.8+1223_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/758002/ft1_4FGL_J1230.8+1223_daily_bin1302.fits outfile=/scratch/kocevski/758002/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1302.fits ra=187.712 dec=12.3883 rad=12.0 tmin=576806401.0 tmax=577065601.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.11
user 2.85
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/758002/ft1_filtered_4FGL_J1230.8+1223_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/758002/ft2_4FGL_J1230.8+1223_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/758002/ltcube_576806401_577065601_4FGL_J1230.8+1223_daily_bin1302.fits outfile=/scratch/kocevski/758002/expmap_576806401_577065601_4FGL_J1230.8+1223_daily_bin1302.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/758002/ltcube_576806401_577065601_4FGL_J1230.8+1223_daily_bin1302.fits
.....................!
real 191.12
user 185.92
sys 4.34

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/758002/ft1_filtered_4FGL_J1230.8+1223_daily_bin1302.fits scfile=/scratch/kocevski/758002/ft2_4FGL_J1230.8+1223_daily_bin1302.fits outfile=/scratch/kocevski/758002/cmap_576806401_577065601_4FGL_J1230.8+1223_daily_bin1302.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/758002/ft1_filtered_4FGL_J1230.8+1223_daily_bin1302.fits scfile=/scratch/kocevski/758002/ft2_4FGL_J1230.8+1223_daily_bin1302.fits outfile=/scratch/kocevski/758002/cmap_HighResolution_576806401_577065601_4FGL_J1230.8+1223_daily_bin1302.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.278       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6786       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    151.91       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46075       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7493       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .27906       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.000       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.4350       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4250       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.949       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11385E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90969       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0969       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=   5104.900     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3095 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.282        14.934        .26621E-06   -.86371E-05
   2  Prefactor     59.630        96.903        .69619E-07   -.32551E-05
   3  Prefactor     7.6778        10.629        .13900E-06    .27738E-05
   4  Prefactor     .10000E-03    18.420        .47721E-07** at limit **
   5  Prefactor     .96073E-01    2.2231       -.14118E-06    .22103E-03
   6  Prefactor     .10000E-03    58.888       -.14994E-06** at limit **
   7  Prefactor     151.91        89.341        .63235E-06   -.68268E-05
   8  Prefactor     .46117        2.6785        .16479E-05    .81339E-04
   9  Prefactor     4.0989        3.7022       -.12722E-06   -.34629E-03
  10  Prefactor     .10000E-03    11.906       -.78397E-08** at limit **
  11  norm          2.7487        4.1011        .64506E-07    .27282E-04
  12  Prefactor     .10000E-03    29.493        .19167E-06** at limit **
  13  norm          .27910        .24791        .13192E-06    .34638E-03
  14  norm          .10000E-03    57.196       -.18379E-06** at limit **
  15  Prefactor     .10000E-03    67.330        .80899E-07** at limit **
  16  norm          2.4568        1.3206        .12000E-07    .70321E-04
  17  Prefactor     16.001        11.798        .34302E-07   -.15413E-04
  18  Prefactor     .10000E-03    18.306        .32860E-06** at limit **
  19  norm          6.4347        3.4630        .11094E-07    .22171E-04
  20  Prefactor     .10000E-03    85.416        .59705E-06** at limit **
  21  Prefactor     3.1483        471.10        .14751E-04   -.12983E-04
  22  Prefactor     .10000E-03    3.5568        .14922E-06** at limit **
  23  Prefactor     18.963        27.058       -.81882E-05   -.54704E-04
  24  Prefactor     .10000E-03    20.780        .67742E-05** at limit **
  25  Normalizat    .90944        .24046       -.77319E-05    .56861E-04
  26  Prefactor     1.0972        .20072        .46798E-05   -.44650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2818
  Prefactor  = 59.6304
  Prefactor  = 7.67784
  Prefactor  = 0.0001
  Prefactor  = 0.0960729
  Prefactor  = 0.0001
  Prefactor  = 151.906
  Prefactor  = 0.461174
  Prefactor  = 4.09889
  Prefactor  = 0.0001
  norm       = 2.74871
  Prefactor  = 0.0001
  norm       = 0.279101
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45677
  Prefactor  = 16.001
  Prefactor  = 0.0001
  norm       = 6.43475
  Prefactor  = 0.000100001
  Prefactor  = 3.14835
  Prefactor  = 0.0001
  Prefactor  = 18.9633
  Prefactor  = 0.000100002
  Normalizat = 0.909437
  Prefactor  = 1.0972
 **********
 **   18 **HESSE 
 **********

 FCN=   5104.900     FROM HESSE     STATUS=OK           460 CALLS     3555 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.282        14.988        .11929E-03   -1.5036    
   2  Prefactor     59.630        96.917        .51953E-04   -1.4162    
   3  Prefactor     7.6778        10.629        .14471E-03   -1.5154    
   4  Prefactor     .10000E-03    18.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .96073E-01    44.472        .19303E-02   -1.5646    
   6  Prefactor     .10000E-03    58.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     151.91        89.359        .32704E-04   -1.3237    
   8  Prefactor     .46117        2.5175        .20464E-03   -1.5572    
   9  Prefactor     4.0989        3.6053        .11440E-03   -1.5303    
  10  Prefactor     .10000E-03    11.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7487        4.0783        .16831E-03   -1.5376    
  12  Prefactor     .10000E-03    29.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27910        .24026        .30099E-04   -1.5602    
  14  norm          .10000E-03    57.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    67.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4568        1.3171        .56724E-04   -1.5394    
  17  Prefactor     16.001        11.801        .10013E-03   -1.4908    
  18  Prefactor     .10000E-03    18.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.4347        3.4602        .92622E-04   -1.5201    
  20  Prefactor     .10000E-03    85.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1483        505.26        .21857E-02   -1.5353    
  22  Prefactor     .10000E-03    3.5797        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.963        27.940        .92009E-04   -1.4837    
  24  Prefactor     .10000E-03    21.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90944        .26988        .29176E-03   -.96129    
  26  Prefactor     1.0972        .22677        .24428E-03   -.89556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70465e-09
Minuit parameter uncertainties:
  1  14.9934
  2  97.1747
  3  10.6319
  4  5.36056e-05
  5  4.13499
  6  8.03058e-05
  7  89.439
  8  2.15489
  9  3.60547
  10  3.63887e-06
  11  4.07869
  12  6.61004e-05
  13  0.240265
  14  0.000176787
  15  8.52436e-05
  16  1.31715
  17  11.803
  18  8.2593e-05
  19  3.46033
  20  0.000459526
  21  80.4676
  22  7.56672e-06
  23  27.9594
  24  0.000387575
  25  0.270284
  26  0.226965
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.600e+01  1.180e+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.097e+00  2.270e-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:  9.094e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.21
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.36e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.94e-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) = 5104.8968148
delta logL = 0.00368463855648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5104.89561029
delta logL = 0.00488914801281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.391       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1155       1.0000          .0000       10.000    
     3 'Normalizat'    .90670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0984       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=   5104.896     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      250 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.391        13.401        .10209E-03    .11470E-04
   2  Index         2.1155        .60618        .73268E-02   -.28361E-04
   3  Normalizat    .90670        .24403        .29217E-03    .28950E-04
   4  Prefactor     1.0984        .22222        .24416E-03    .42604E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.391
  Index      = 2.11547
  Normalizat = 0.906704
  Prefactor  = 1.09836
 **********
 **   18 **HESSE 
 **********

 FCN=   5104.896     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.391        13.082        .40837E-05   -1.4923    
   2  Index         2.1155        .59141        .29307E-03   -.61494    
   3  Normalizat    .90670        .24405        .11687E-04   -.96225    
   4  Prefactor     1.0984        .22235        .97665E-05   -.89519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55185e-11
Minuit parameter uncertainties:
  1  13.0844
  2  0.593496
  3  0.244343
  4  0.222533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/758002': 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) = 5104.89561029
delta logL = 0.00488914926427

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.539e+01  1.308e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.115e+00  5.935e-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.098e+00  2.225e-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:  9.067e-01  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.20
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.12 +/- 0.59
Photon Flux (Free Index): 4.67e-08 +/- 4.65e-08
Energy Flux (Free Index): 2.48e-05 +/- 2.31e-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/758002/cmap_HighResolution_576806401_577065601_4FGL_J1230.8+1223_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.36e-08', energy_flux2='2.48e-05', photon_flux_error='3.22e-08', dlogl='4.89e-03', energy_flux='2.63e-05', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-05 21:51:27.196466', photon_index_error2='0.59', photon_index2='2.12', ts='4.21', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.31e-05', EG='0.91', time_epoch_completed='1630903887.2', return_code='0', job_id='758002', GAL2='1.10', EG2='0.91', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='4.65e-08', ts2='4.20', photon_index='2.06' WHERE bin_id='1302' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 758002: <4FGL_J1230.8+1223_daily_bin1302> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1302 187.712 12.3883 576806401 577065601 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 :                                   578.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            911 sec.

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

