/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7627
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1504
RA = 187.712, Dec = 12.3883
tmin = 629164801, tmax = 629424001
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='759449', job_status='RUN', time_executed='2021-09-05 21:42:39.795508', time_epoch_executed='1630903359.8' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759449

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759449/ft1_4FGL_J1230.8+1223_daily_bin1504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759449/ft2_4FGL_J1230.8+1223_daily_bin1504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759449/ft1_4FGL_J1230.8+1223_daily_bin1504.fits outfile=/scratch/kocevski/759449/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1504.fits ra=187.712 dec=12.3883 rad=12.0 tmin=629164801.0 tmax=629424001.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.74
user 3.48
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759449/ft1_filtered_4FGL_J1230.8+1223_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/759449/ft2_4FGL_J1230.8+1223_daily_bin1504.fits sctable="SC_DATA" expcube=/scratch/kocevski/759449/ltcube_629164801_629424001_4FGL_J1230.8+1223_daily_bin1504.fits outfile=/scratch/kocevski/759449/expmap_629164801_629424001_4FGL_J1230.8+1223_daily_bin1504.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/759449/ltcube_629164801_629424001_4FGL_J1230.8+1223_daily_bin1504.fits
.....................!
real 191.51
user 186.10
sys 4.99

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/759449/ft1_filtered_4FGL_J1230.8+1223_daily_bin1504.fits scfile=/scratch/kocevski/759449/ft2_4FGL_J1230.8+1223_daily_bin1504.fits outfile=/scratch/kocevski/759449/cmap_629164801_629424001_4FGL_J1230.8+1223_daily_bin1504.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.62
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759449/ft1_filtered_4FGL_J1230.8+1223_daily_bin1504.fits scfile=/scratch/kocevski/759449/ft2_4FGL_J1230.8+1223_daily_bin1504.fits outfile=/scratch/kocevski/759449/cmap_HighResolution_629164801_629424001_4FGL_J1230.8+1223_daily_bin1504.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9183       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0475       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.577       1.0000         .10000E-03   10000.    
     7 'Prefactor '    78.837       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66547       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.797       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5465       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.792       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    37.093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23355E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1454       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9143       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.783       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4342       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.496       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3400       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89268       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=   7125.507     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3117 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9176        13.092        .13363E-05   -.93270E-04
   2  Prefactor     .10000E-03    88.218        .38043E-06** at limit **
   3  Prefactor     6.0473        7.9290        .20939E-05   -.15777E-03
   4  Prefactor     .10000E-03    6.4441       -.26778E-07** at limit **
   5  Prefactor     .10000E-03    1.2839       -.16616E-07** at limit **
   6  Prefactor     27.573        48.152       -.62445E-06   -.11349E-05
   7  Prefactor     78.831        47.737       -.24682E-06    .98636E-05
   8  Prefactor     .66497        1.4286       -.31443E-06   -.15713E-02
   9  Prefactor     .10000E-03    1.2414       -.54467E-09** at limit **
  10  Prefactor     46.798        35.191        .30229E-06    .11356E-05
  11  norm          7.5457        5.5622       -.11952E-05   -.36612E-03
  12  Prefactor     45.801        46.474        .12434E-05   -.97953E-05
  13  norm          .10000E-03    .57590E-01    .12166E-07** at limit **
  14  norm          37.114        60.769        .11463E-04   -.63120E-04
  15  Prefactor     .10000E-03    391.80        .14646E-05** at limit **
  16  norm          3.1454        .83122       -.64409E-07    .17116E-03
  17  Prefactor     8.9145        8.8328       -.15997E-05    .13993E-03
  18  Prefactor     12.779        31.843       -.14197E-06   -.24467E-03
  19  norm          3.4341        1.6742       -.30117E-09   -.95610E-04
  20  Prefactor     .10000E-03    37.423        .13649E-06** at limit **
  21  Prefactor     .10000E-03    55.574       -.33949E-06** at limit **
  22  Prefactor     .10000E-03    1.9704       -.27949E-07** at limit **
  23  Prefactor     23.494        14.774       -.18819E-07   -.68836E-05
  24  Prefactor     .10000E-03    11.365        .14292E-06** at limit **
  25  Normalizat    1.3402        .19570        .43276E-06   -.25091E-04
  26  Prefactor     .89262        .16851       -.69759E-06    .19266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91765
  Prefactor  = 0.0001
  Prefactor  = 6.04726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5735
  Prefactor  = 78.831
  Prefactor  = 0.66497
  Prefactor  = 0.0001
  Prefactor  = 46.7979
  norm       = 7.54566
  Prefactor  = 45.8013
  norm       = 0.0001
  norm       = 37.1136
  Prefactor  = 0.0001
  norm       = 3.14538
  Prefactor  = 8.91453
  Prefactor  = 12.7788
  norm       = 3.43413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4938
  Prefactor  = 0.0001
  Normalizat = 1.34016
  Prefactor  = 0.892616
 **********
 **   18 **HESSE 
 **********

 FCN=   7125.507     FROM HESSE     STATUS=OK           462 CALLS     3579 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9176        13.033        .18136E-03   -1.5264    
   2  Prefactor     .10000E-03    88.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0473        7.8145        .16327E-03   -1.5216    
   4  Prefactor     .10000E-03    6.4764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2957        .93360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.573        48.149        .76289E-04   -1.4657    
   7  Prefactor     78.831        47.773        .45230E-04   -1.3930    
   8  Prefactor     .66497        1.1621        .14762E-02   -1.5545    
   9  Prefactor     .10000E-03    1.2760        .18347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.798        35.173        .58613E-04   -1.4339    
  11  norm          7.5457        5.6421        .13551E-03   -1.5159    
  12  Prefactor     45.801        46.421        .59250E-04   -1.4353    
  13  norm          .10000E-03    .69496E-01    .39339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          37.114        60.212        .65805E-04   -1.4489    
  15  Prefactor     .10000E-03    392.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1454        .83202        .35495E-04   -1.5353    
  17  Prefactor     8.9145        8.6383        .13425E-03   -1.5111    
  18  Prefactor     12.779        32.331        .56018E-03   -1.4993    
  19  norm          3.4341        1.6722        .72834E-04   -1.5337    
  20  Prefactor     .10000E-03    37.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    55.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.9732        .11572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.494        14.818        .82637E-04   -1.4738    
  24  Prefactor     .10000E-03    11.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3402        .23158        .26421E-03   -.82375    
  26  Prefactor     .89262        .19816        .28499E-03   -.96400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10141e-09
Minuit parameter uncertainties:
  1  13.0404
  2  5.90638e-05
  3  7.81587
  4  2.8138e-06
  5  6.59247e-08
  6  48.217
  7  47.7962
  8  1.16212
  9  2.73386e-06
  10  35.189
  11  5.64249
  12  46.4573
  13  2.07511e-08
  14  60.311
  15  0.000326995
  16  0.832024
  17  8.63952
  18  32.3754
  19  1.67219
  20  4.1956e-06
  21  4.30941e-05
  22  3.32033e-07
  23  14.8202
  24  3.74583e-06
  25  0.231764
  26  0.19832
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  8.915e+00  8.640e+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:  8.926e-01  1.983e-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.340e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.25
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.43e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.42e-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) = 7123.84724527
delta logL = 1.66007709129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7123.47159517
delta logL = 2.03572718284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9319       1.0000         .10000E-03   10000.    
     2 'Index     '    .62010       1.0000          .0000       10.000    
     3 'Normalizat'    1.3545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89271       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=   7123.472     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      226 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9377        2.1932        .74701E-02   -.38562E-03
   2  Index         .62195        .42287        .27175       -.33170E-04
   3  Normalizat    1.3542        .18378        .59478E-01    .55738E-05
   4  Prefactor     .89280        .16655        .64437E-01    .16350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93775
  Index      = 0.621949
  Normalizat = 1.35422
  Prefactor  = 0.892797
 **********
 **   18 **HESSE 
 **********

 FCN=   7123.472     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9377        3.9435        .11368E-03   -1.5430    
   2  Index         .62195        .70529        .12698E-01   -1.0667    
   3  Normalizat    1.3542        .21584        .26303E-03   -.81962    
   4  Prefactor     .89280        .19549        .28500E-03   -.96393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34094e-12
Minuit parameter uncertainties:
  1  3.94406
  2  0.71572
  3  0.215989
  4  0.195643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759449': 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) = 7123.47158928
delta logL = 2.03573307581

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.938e+00  3.944e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  6.219e-01  7.157e-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:  8.928e-01  1.956e-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.354e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.32
Ra Dec: 187.712 12.388
Photon Index (Free Index): 0.62 +/- 0.72
Photon Flux (Free Index): 3.59e-09 +/- 3.74e-09
Energy Flux (Free Index): 1.06e-04 +/- 1.28e-04

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/759449/cmap_HighResolution_629164801_629424001_4FGL_J1230.8+1223_daily_bin1504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.43e-08', energy_flux2='1.06e-04', photon_flux_error='2.36e-08', dlogl='2.04e+00', energy_flux='1.47e-05', photon_flux2='3.59e-09', job_status='DONE', time_completed='2021-09-05 21:55:54.511172', photon_index_error2='0.72', photon_index2='0.62', ts='6.25', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.28e-04', EG='1.34', time_epoch_completed='1630904154.51', return_code='0', job_id='759449', GAL2='0.89', EG2='1.35', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='3.74e-09', ts2='10.32', photon_index='2.06' WHERE bin_id='1504' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:55:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 759449: <4FGL_J1230.8+1223_daily_bin1504> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1504 187.712 12.3883 629164801 629424001 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 :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            910 sec.

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

