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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1400
RA = 187.712, Dec = 12.3883
tmin = 602208001, tmax = 602467201
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='759188', job_status='RUN', time_executed='2021-09-05 21:42:17.355401', time_epoch_executed='1630903337.36' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759188/ft1_4FGL_J1230.8+1223_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759188/ft2_4FGL_J1230.8+1223_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759188/ft1_4FGL_J1230.8+1223_daily_bin1400.fits outfile=/scratch/kocevski/759188/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1400.fits ra=187.712 dec=12.3883 rad=12.0 tmin=602208001.0 tmax=602467201.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 5.27
user 5.02
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759188/ft1_filtered_4FGL_J1230.8+1223_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/759188/ft2_4FGL_J1230.8+1223_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/759188/ltcube_602208001_602467201_4FGL_J1230.8+1223_daily_bin1400.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/759188/ft2_4FGL_J1230.8+1223_daily_bin1400.fits
.....................!
real 14.48
user 14.13
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759188/ft1_filtered_4FGL_J1230.8+1223_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/759188/ft2_4FGL_J1230.8+1223_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/759188/ltcube_602208001_602467201_4FGL_J1230.8+1223_daily_bin1400.fits outfile=/scratch/kocevski/759188/expmap_602208001_602467201_4FGL_J1230.8+1223_daily_bin1400.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/759188/ltcube_602208001_602467201_4FGL_J1230.8+1223_daily_bin1400.fits
.....................!
real 191.27
user 186.54
sys 4.38

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/759188/ft1_filtered_4FGL_J1230.8+1223_daily_bin1400.fits scfile=/scratch/kocevski/759188/ft2_4FGL_J1230.8+1223_daily_bin1400.fits outfile=/scratch/kocevski/759188/cmap_602208001_602467201_4FGL_J1230.8+1223_daily_bin1400.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759188/ft1_filtered_4FGL_J1230.8+1223_daily_bin1400.fits scfile=/scratch/kocevski/759188/ft2_4FGL_J1230.8+1223_daily_bin1400.fits outfile=/scratch/kocevski/759188/cmap_HighResolution_602208001_602467201_4FGL_J1230.8+1223_daily_bin1400.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.339       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .50781E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16549E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .20383       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .70382E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5477       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11487E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4260       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    70.993       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5679       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5021       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1236       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13171E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76502       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3996       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=   6095.518     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3180 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8354       -.18325E-07** at limit **
   2  Prefactor     .10000E-03    48.599        .26996E-05** at limit **
   3  Prefactor     17.347        16.149        .15002E-05    .33601E-03
   4  Prefactor     .10007E-03    15.469       -.84691E-05** at limit **
   5  Prefactor     .10000E-03    1.3822       -.66330E-07** at limit **
   6  Prefactor     31.664        95.042        .20807E-04    .12106E-03
   7  Prefactor     .10000E-03    117.85        .12191E-04** at limit **
   8  Prefactor     .10000E-03    .80995       -.65323E-07** at limit **
   9  Prefactor     .10000E-03    .85845       -.69992E-07** at limit **
  10  Prefactor     .10000E-03    10.882       -.64203E-07** at limit **
  11  norm          .20001        2.0916       -.13798E-05    .16898E-02
  12  Prefactor     .10000E-03    25.181       -.30072E-07** at limit **
  13  norm          .70606E-01    .17659        .10617E-07   -.13175E-02
  14  norm          5.6478        75.933        .59325E-05    .15159E-03
  15  Prefactor     .10000E-03    77.577       -.90721E-05** at limit **
  16  norm          1.4259        .64436       -.95526E-07    .35416E-02
  17  Prefactor     .10000E-03    4.2223       -.68525E-08** at limit **
  18  Prefactor     70.971        32.331       -.17433E-06    .72018E-04
  19  norm          1.5684        1.1822       -.18688E-07    .30439E-03
  20  Prefactor     8.5543        31.438       -.15712E-05    .19254E-05
  21  Prefactor     2.2397        327.67        .23689E-04    .24671E-04
  22  Prefactor     .10000E-03    2.4765       -.40328E-07** at limit **
  23  Prefactor     .10000E-03    6.3609        .86461E-06** at limit **
  24  Prefactor     .10002E-03    6.3875       -.13334E-05** at limit **
  25  Normalizat    .76574        .19633        .36462E-05    .39510E-03
  26  Prefactor     1.3986        .17753       -.15615E-05    .76303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3468
  Prefactor  = 0.000100073
  Prefactor  = 0.0001
  Prefactor  = 31.6636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.200006
  Prefactor  = 0.0001
  norm       = 0.0706059
  norm       = 5.64776
  Prefactor  = 0.000100001
  norm       = 1.42586
  Prefactor  = 0.0001
  Prefactor  = 70.9712
  norm       = 1.56841
  Prefactor  = 8.55426
  Prefactor  = 2.23972
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100019
  Normalizat = 0.765744
  Prefactor  = 1.39859
 **********
 **   18 **HESSE 
 **********

 FCN=   6095.518     FROM HESSE     STATUS=OK           456 CALLS     3636 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8374        .14933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.347        16.111        .96185E-04   -1.4875    
   4  Prefactor     .10007E-03    60.691        .53022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3984        .89615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.664        97.107        .71132E-04   -1.4582    
   7  Prefactor     .10000E-03    118.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .81770        .68591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .86625        .70622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .20001        16.341        .18264E-02   -1.5619    
  12  Prefactor     .10000E-03    25.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .70606E-01    .18511        .48341E-03   -1.5655    
  14  norm          5.6478        90.553        .17057E-03   -1.5233    
  15  Prefactor     .10000E-03    77.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4259        .63891        .37573E-04   -1.5469    
  17  Prefactor     .10000E-03    4.2273        .15662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     70.971        32.419        .47644E-04   -1.4021    
  19  norm          1.5684        1.1740        .71021E-04   -1.5457    
  20  Prefactor     8.5543        31.428        .13748E-03   -1.5123    
  21  Prefactor     2.2397        319.80        .28299E-03   -1.5409    
  22  Prefactor     .10000E-03    2.4905        .11999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    33.566        .37571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .76574        .22355        .30252E-03   -1.0135    
  26  Prefactor     1.3986        .20648        .22282E-03   -.80421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8129e-08
Minuit parameter uncertainties:
  1  8.27135e-07
  2  7.23123e-05
  3  16.1154
  4  0.00422536
  5  1.92993e-06
  6  97.5973
  7  0.000376008
  8  5.42134e-07
  9  5.13337e-07
  10  2.05825e-06
  11  3.61586
  12  1.00778e-05
  13  0.185107
  14  45.3104
  15  0.00050656
  16  0.638913
  17  7.02697e-06
  18  32.4267
  19  1.17407
  20  31.4886
  21  53.8205
  22  1.07466e-06
  23  0.000132421
  24  0.00159812
  25  0.223815
  26  0.206597
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  7.027e-06  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.399e+00  2.066e-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:  7.657e-01  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/759188/likelihoodResults_602208001_602467201_4FGL_J1230.8+1223_daily_bin1400.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) = 6095.51911083
delta logL = -0.00112067336613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6095.51799015
delta logL = 1.88720150618e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0535       1.0000          .0000       10.000    
     3 'Normalizat'    .76575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3986       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=   6095.518     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    252.14        .90712E-02** at limit **
   2  Index         2.0498        5.6659        .50000        .69664E-05
   3  Normalizat    .76575        .39007E-01    .68369E-01    .24395E-04
   4  Prefactor     1.3986        .37732E-01    .50405E-01    .21469E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04981
  Normalizat = 0.765746
  Prefactor  = 1.39859
 **********
 **   18 **HESSE 
 **********

 FCN=   6095.518     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7748        .15671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0498        6.0059        .50000       -.63111    
   3  Normalizat    .76575        .20820        .30252E-03   -1.0135    
   4  Prefactor     1.3986        .20182        .22283E-03   -.80421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56449e-11
Minuit parameter uncertainties:
  1  1.2897e-06
  2  4.29165
  3  0.208421
  4  0.201937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759188': 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) = 6095.51799014
delta logL = 1.35942173074e-08

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.290e-06  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.050e+00  4.292e+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:  1.399e+00  2.019e-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:  7.657e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.712 12.388

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/759188/cmap_HighResolution_602208001_602467201_4FGL_J1230.8+1223_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-09-05 21:55:33.092600', job_id='759188', GAL2='1.40', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630904133.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='1.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1400' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:55:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 759188: <4FGL_J1230.8+1223_daily_bin1400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1400 187.712 12.3883 602208001 602467201 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            901 sec.

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

