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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1620
RA = 187.712, Dec = 12.3883
tmin = 659232001, tmax = 659491201
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='333612', job_status='RUN', time_executed='2021-12-07 23:17:48.459012', time_epoch_executed='1638947868.46' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333612

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333612/ft1_4FGL_J1230.8+1223_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333612/ft2_4FGL_J1230.8+1223_daily_bin1620.fits


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

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/333612/ft2_4FGL_J1230.8+1223_daily_bin1620.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/333612/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1620.fits evtable="EVENTS" outfile="/scratch/kocevski/333612/ft1_filtered_4FGL_J1230.8+1223_daily_bin1620.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/333612/ft1_filtered_4FGL_J1230.8+1223_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/333612/ft2_4FGL_J1230.8+1223_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/333612/ltcube_659232001_659491201_4FGL_J1230.8+1223_daily_bin1620.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/333612/ft2_4FGL_J1230.8+1223_daily_bin1620.fits
.....................!
real 16.85
user 16.43
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333612/ft1_filtered_4FGL_J1230.8+1223_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/333612/ft2_4FGL_J1230.8+1223_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/333612/ltcube_659232001_659491201_4FGL_J1230.8+1223_daily_bin1620.fits outfile=/scratch/kocevski/333612/expmap_659232001_659491201_4FGL_J1230.8+1223_daily_bin1620.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/333612/ltcube_659232001_659491201_4FGL_J1230.8+1223_daily_bin1620.fits
.....................!
real 193.26
user 186.71
sys 6.18

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/333612/ft1_filtered_4FGL_J1230.8+1223_daily_bin1620.fits scfile=/scratch/kocevski/333612/ft2_4FGL_J1230.8+1223_daily_bin1620.fits outfile=/scratch/kocevski/333612/cmap_659232001_659491201_4FGL_J1230.8+1223_daily_bin1620.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333612/ft1_filtered_4FGL_J1230.8+1223_daily_bin1620.fits scfile=/scratch/kocevski/333612/ft2_4FGL_J1230.8+1223_daily_bin1620.fits outfile=/scratch/kocevski/333612/cmap_HighResolution_659232001_659491201_4FGL_J1230.8+1223_daily_bin1620.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22627       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8532       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9075       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4201       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10874E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.894       1.0000         .10000E-03   10000.    
    13 'norm      '    .66098E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.160       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3990       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.064       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26526E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.779       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96099       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=   7826.883     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3137 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23378        5.0995        .61152E-07    .22136E-04
   2  Prefactor     .10000E-03    94.607        .68294E-06** at limit **
   3  Prefactor     7.3303        6.5267        .12482E-06   -.18551E-04
   4  Prefactor     .10000E-03    2.9891        .58494E-07** at limit **
   5  Prefactor     1.8529        1.7412       -.57790E-07   -.14130E-03
   6  Prefactor     .10000E-03    22.771        .83449E-07** at limit **
   7  Prefactor     4.8942        27.788        .93698E-06   -.88058E-05
   8  Prefactor     2.4195        2.1624        .14116E-06   -.98280E-04
   9  Prefactor     .10000E-03    1.0209        .79198E-07** at limit **
  10  Prefactor     .10000E-03    9.0457        .80549E-07** at limit **
  11  norm          .10000E-03    1.7308        .45609E-06** at limit **
  12  Prefactor     14.880        25.507        .14506E-06   -.31814E-04
  13  norm          .66037E-01    .12369        .25661E-06    .29823E-02
  14  norm          .10000E-03    12.772        .85989E-07** at limit **
  15  Prefactor     .10000E-03    51.480       -.18879E-07** at limit **
  16  norm          2.1467        .60498       -.91702E-08   -.15030E-02
  17  Prefactor     2.1872        11.602        .29056E-05    .93910E-04
  18  Prefactor     38.181        29.383       -.10002E-05   -.10224E-03
  19  norm          1.3996        1.2743       -.50535E-07   -.30858E-03
  20  Prefactor     16.974        47.186       -.98823E-07   -.57442E-04
  21  Prefactor     .10000E-03    19.835        .17721E-06** at limit **
  22  Prefactor     .10009E-03    5.7832       -.18675E-05** at limit **
  23  Prefactor     .10000E-03    8.9949        .24690E-06** at limit **
  24  Prefactor     18.774        12.314        .18094E-06   -.29900E-04
  25  Normalizat    1.0633        .16720       -.15119E-05   -.19194E-03
  26  Prefactor     .96094        .14642        .11100E-06   -.22912E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.23378
  Prefactor  = 0.0001
  Prefactor  = 7.33029
  Prefactor  = 0.0001
  Prefactor  = 1.85294
  Prefactor  = 0.0001
  Prefactor  = 4.89424
  Prefactor  = 2.41946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.8804
  norm       = 0.0660369
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.14667
  Prefactor  = 2.1872
  Prefactor  = 38.1807
  norm       = 1.39955
  Prefactor  = 16.9741
  Prefactor  = 0.0001
  Prefactor  = 0.00010009
  Prefactor  = 0.0001
  Prefactor  = 18.774
  Normalizat = 1.06326
  Prefactor  = 0.960938
 **********
 **   18 **HESSE 
 **********

 FCN=   7826.883     FROM HESSE     STATUS=OK           468 CALLS     3605 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23378        62.886        .38640E-02   -1.5611    
   2  Prefactor     .10000E-03    94.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3303        6.5302        .14812E-03   -1.5166    
   4  Prefactor     .10000E-03    2.9916        .14939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8529        1.7508        .10937E-03   -1.5436    
   6  Prefactor     .10000E-03    22.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8942        27.670        .18156E-03   -1.5265    
   8  Prefactor     2.4195        2.1400        .11574E-03   -1.5397    
   9  Prefactor     .10000E-03    1.0370        .87067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.6023        .21786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.880        25.483        .10378E-03   -1.4936    
  13  norm          .66037E-01    .12368        .42505E-03   -1.5657    
  14  norm          .10000E-03    12.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1467        .59232        .33828E-04   -1.5415    
  17  Prefactor     2.1872        11.415        .27732E-03   -1.5412    
  18  Prefactor     38.181        29.067        .64882E-04   -1.4471    
  19  norm          1.3996        1.2500        .90329E-04   -1.5471    
  20  Prefactor     16.974        47.206        .96956E-04   -1.4884    
  21  Prefactor     .10000E-03    19.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10009E-03    19.460        .35995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.1201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.774        12.331        .92425E-04   -1.4841    
  25  Normalizat    1.0633        .19386        .25444E-03   -.90940    
  26  Prefactor     .96094        .17190        .24367E-03   -.94043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1991e-09
Minuit parameter uncertainties:
  1  7.67499
  2  0.000315864
  3  6.53087
  4  3.30869e-06
  5  1.75085
  6  8.71481e-06
  7  23.2905
  8  2.14009
  9  1.673e-06
  10  8.825e-06
  11  1.13367e-05
  12  25.5019
  13  0.123685
  14  8.61574e-06
  15  2.99793e-05
  16  0.592325
  17  9.99633
  18  29.0774
  19  1.25002
  20  47.3097
  21  3.84301e-05
  22  0.00264114
  23  2.79324e-05
  24  12.3331
  25  0.193988
  26  0.171999
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.187e+00  9.996e+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:  9.609e-01  1.720e-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  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/333612/likelihoodResults_659232001_659491201_4FGL_J1230.8+1223_daily_bin1620.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) = 7826.68553309
delta logL = 0.197683060698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7826.68351881
delta logL = 0.19969733554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2046       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7574       1.0000          .0000       10.000    
     3 'Normalizat'    1.0484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96492       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=   7826.684     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      292 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2051        7.1986        .19926E-03    .31837E-03
   2  Index         2.7571        1.4233        .90931E-02    .94743E-04
   3  Normalizat    1.0483        .18817        .25576E-03    .18896E-03
   4  Prefactor     .96491        .17137        .24310E-03    .19109E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.20506
  Index      = 2.75707
  Normalizat = 1.04833
  Prefactor  = 0.964914
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2051        5.4169        .79703E-05   -1.5411    
   2  Index         2.7571        1.0780        .36372E-03   -.46518    
   3  Normalizat    1.0483        .18798        .10231E-04   -.91428    
   4  Prefactor     .96491        .17107        .97239E-05   -.93908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50758e-10
Minuit parameter uncertainties:
  1  5.41807
  2  1.08879
  3  0.188095
  4  0.171168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333612': 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) = 7826.68351869
delta logL = 0.199697459047

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.205e+00  5.418e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.757e+00  1.089e+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:  9.649e-01  1.712e-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.048e+00  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 187.712 12.388

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/333612/cmap_HighResolution_659232001_659491201_4FGL_J1230.8+1223_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-12-07 23:31:51.166724', job_id='333612', GAL2='0.96', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1638948711.17', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.00e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1620' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:31:51 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 333612: <4FGL_J1230.8+1223_daily_bin1620> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1620> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 23:15:17 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:15:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 23:15:45 2021
Terminated at Tue Dec  7 23:31:51 2021
Results reported at Tue Dec  7 23:31:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1620 187.712 12.3883 659232001 659491201 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 :                                   842.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            994 sec.

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

