aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 57 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1744
RA = 187.712, Dec = 12.3883
tmin = 691372801, tmax = 691632001
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='579376', job_status='RUN', time_executed='2022-12-02 00:56:33.814344', time_epoch_executed='1669971393.81' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579376

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579376/ft1_4FGL_J1230.8+1223_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579376/ft2_4FGL_J1230.8+1223_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579376/ft1_4FGL_J1230.8+1223_daily_bin1744.fits outfile=/scratch/kocevski/579376/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1744.fits ra=187.712 dec=12.3883 rad=12.0 tmin=691372801.0 tmax=691632001.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.54
user 2.31
sys 0.19

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

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

Number of photons that the gtmktime cut: 783

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579376/ft1_filtered_4FGL_J1230.8+1223_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/579376/ft2_4FGL_J1230.8+1223_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/579376/ltcube_691372801_691632001_4FGL_J1230.8+1223_daily_bin1744.fits outfile=/scratch/kocevski/579376/expmap_691372801_691632001_4FGL_J1230.8+1223_daily_bin1744.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/579376/ltcube_691372801_691632001_4FGL_J1230.8+1223_daily_bin1744.fits
.....................!
real 190.57
user 185.22
sys 4.54

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/579376/ft1_filtered_4FGL_J1230.8+1223_daily_bin1744.fits scfile=/scratch/kocevski/579376/ft2_4FGL_J1230.8+1223_daily_bin1744.fits outfile=/scratch/kocevski/579376/cmap_691372801_691632001_4FGL_J1230.8+1223_daily_bin1744.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.54
user 0.37
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/579376/ft1_filtered_4FGL_J1230.8+1223_daily_bin1744.fits', '/scratch/kocevski/579376/ft2_4FGL_J1230.8+1223_daily_bin1744.fits', expMap='/scratch/kocevski/579376/expmap_691372801_691632001_4FGL_J1230.8+1223_daily_bin1744.fits', expCube='/scratch/kocevski/579376/ltcube_691372801_691632001_4FGL_J1230.8+1223_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/579376/Model_4FGL_J1230.8+1223_daily_bin1744.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  0.000e+00  1.000e+06 ( 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/579376/ft1_filtered_4FGL_J1230.8+1223_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/579376/ft2_4FGL_J1230.8+1223_daily_bin1744.fits
Exposure map: /scratch/kocevski/579376/expmap_691372801_691632001_4FGL_J1230.8+1223_daily_bin1744.fits
Exposure cube: /scratch/kocevski/579376/ltcube_691372801_691632001_4FGL_J1230.8+1223_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/579376/Model_4FGL_J1230.8+1223_daily_bin1744.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) = 8659.04158725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16507E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .55698       1.0000          .0000       .10000E+07
     3 'Prefactor '    .72000       1.0000          .0000       .10000E+07
     4 'Prefactor '    .48735E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .78512       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14923E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    12.726       1.0000          .0000       .10000E+07
     8 'Prefactor '    .93814E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.9563       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10226E-01   1.0000          .0000       .10000E+07
    11 'norm      '    4.0567       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12019E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .92704E-08   1.0000          .0000       .10000E+07
    14 'norm      '    .45149E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .94088       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.273       1.0000          .0000       .10000E+07
    17 'norm      '    .75989       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16199E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    9.2472       1.0000          .0000       .10000E+07
    20 'Prefactor '    12.899       1.0000          .0000       .10000E+07
    21 'Normalizat'    .84102       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1876       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8659.033     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1723 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.7535       -.12420E-06** at limit **
   2  Prefactor     .12768E-07    87.427        .31864E-06** at limit **
   3  Prefactor     .74368        6.7786       -.20103E-06   -.34488E-02
   4  Prefactor      .0000        4.3227        .22732E-06** at limit **
   5  Prefactor     .82799        2.9813        .18748E-06   -.17545E-04
   6  Prefactor     .42588E-06    5.3401        .62838E-08** at limit **
   7  Prefactor     12.873        2.2118       -.70445E-08   -.16855E-02
   8  Prefactor      .0000        .73072       -.12331E-07** at limit **
   9  Prefactor     1.9558        1.7085        .20800E-07   -.21691E-03
  10  Prefactor     .83877E-07    14.580        .22263E-06** at limit **
  11  norm          4.0614        2.7637       -.85802E-07   -.64925E-03
  12  Prefactor     .15948E-06    10.015       -.39308E-08** at limit **
  13  norm           .0000        .24720       -.84322E-07** at limit **
  14  norm          .67835E-07    87.340        .48964E-06** at limit **
  15  norm          .94122        .40839       -.56522E-08   -.10606E-02
  16  Prefactor     17.286        2.9138       -.26835E-08   -.38402E-02
  17  norm          .76010        .80187       -.19407E-07   -.49107E-03
  18  Prefactor      .0000        2.4185       -.78362E-07** at limit **
  19  Prefactor     9.2750        8.6412       -.22971E-07   -.38796E-02
  20  Prefactor     12.929        4.9282       -.15938E-07    .22455E-02
  21  Normalizat    .84035        .18009       -.22859E-05   -.31814E-04
  22  Prefactor     1.1878        .16311        .49237E-06   -.28895E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.27676e-08
  Prefactor  = 0.743681
  Prefactor  = 0
  Prefactor  = 0.827988
  Prefactor  = 4.25882e-07
  Prefactor  = 12.8732
  Prefactor  = 0
  Prefactor  = 1.95577
  Prefactor  = 8.38773e-08
  norm       = 4.06137
  Prefactor  = 1.59484e-07
  norm       = 0
  norm       = 6.78346e-08
  norm       = 0.941221
  Prefactor  = 17.2856
  norm       = 0.760102
  Prefactor  = 0
  Prefactor  = 9.27498
  Prefactor  = 12.9288
  Normalizat = 0.840347
  Prefactor  = 1.18778
 **********
 **   18 **HESSE 
 **********

 FCN=   8659.033     FROM HESSE     STATUS=OK           398 CALLS     2121 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.4415        .17278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12768E-07    87.981        .73173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .74368        6.8410        .59099E-03   -1.5691    
   4  Prefactor      .0000        4.3230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .82799        2.9891        .54051E-03   -1.5690    
   6  Prefactor     .42588E-06    14.049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.873        25.555        .28054E-03   -1.5636    
   8  Prefactor      .0000        .73183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9558        1.7208        .74148E-03   -1.5680    
  10  Prefactor     .83877E-07    16.290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0614        2.9851        .50037E-03   -1.5668    
  12  Prefactor     .15948E-06    13.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .10115        .93004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .67835E-07    21.777        .15739E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .94122        .41426        .42974E-03   -1.5689    
  16  Prefactor     17.286        10.032        .24071E-03   -1.5625    
  17  norm          .76010        .80532        .55974E-03   -1.5691    
  18  Prefactor      .0000        2.4156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2750        11.319        .32933E-03   -1.5647    
  20  Prefactor     12.929        13.212        .27865E-03   -1.5636    
  21  Normalizat    .84035        .15933        .44143E-01   -.98589    
  22  Prefactor     1.1878        .14057        .50467E-01   -.86708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30664e-06
Minuit parameter uncertainties:
  1  5.66402e-06
  2  0.00211755
  3  4.5111
  4  6.21388e-06
  5  2.9891
  6  0.00489225
  7  25.5556
  8  2.20586e-07
  9  1.72082
  10  0.00233803
  11  2.98511
  12  0.00290895
  13  1.89369e-07
  14  0.00243069
  15  0.414262
  16  10.0321
  17  0.805316
  18  2.6767e-06
  19  11.3195
  20  13.2118
  21  0.159421
  22  0.140615
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.729e+01  1.003e+01  0.000e+00  1.000e+06 ( 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.188e+00  1.406e-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:  8.403e-01  1.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.50
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.71e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 1.65e-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) = 8658.67187008
delta logL = 0.3611480686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8658.6507185
delta logL = 0.382299652312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8778       1.0000          .0000       .10000E+07
     2 'Index     '    2.5538       1.0000          .0000       10.000    
     3 'Normalizat'    .80469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2097       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8658.651     FROM MIGRAD    STATUS=FAILED       100 CALLS      297 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8673        15.881        .63718E-04   -.65445E-03
   2  Index         2.5544        .90676        .45962E-02    .65614E-03
   3  Normalizat    .80463        .18410        .28242E-03   -.35666E-04
   4  Prefactor     1.2098        .16926        .22134E-03    .53108E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8658.651     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      373 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8673        15.881        .10883E-04   -1.5645    
   2  Index         2.5544        .90676        .50185E-03   -.51108    
   3  Normalizat    .80463        .18410        .27298E-03   -.99897    
   4  Prefactor     1.2098        .16926        .17651E-03   -.86032    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8658.651     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      413 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8672        11.690        .25487E-05   -.21411E-03
   2  Index         2.5544        .66895        .91924E-03    .49470E-05
   3  Normalizat    .80463        .17990        .11297E-04   -.12077E-05
   4  Prefactor     1.2098        .16647        .88538E-05   -.51362E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.86723
  Index      = 2.55441
  Normalizat = 0.80463
  Prefactor  = 1.20975
 **********
 **   18 **HESSE 
 **********

 FCN=   8658.651     FROM HESSE     STATUS=OK            23 CALLS      436 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8672        11.265        .10195E-06   -1.5645    
   2  Index         2.5544        .64428        .36770E-04   -.51108    
   3  Normalizat    .80463        .17944        .22593E-05   -.99897    
   4  Prefactor     1.2098        .16621        .17708E-05   -.86032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69835e-12
Minuit parameter uncertainties:
  1  11.265
  2  0.64665
  3  0.179568
  4  0.166284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579376': 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) = 8658.65071801
delta logL = 0.382300140429

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  9.867e+00  1.127e+01  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.554e+00  6.466e-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.210e+00  1.663e-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:  8.046e-01  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.27
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.55 +/- 0.65
Photon Flux (Free Index): 7.20e-08 +/- 4.63e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.21e-05

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/579376/cmap_HighResolution_691372801_691632001_4FGL_J1230.8+1223_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.71e-08', energy_flux2='1.97e-05', photon_flux_error='2.74e-08', dlogl='3.82e-01', energy_flux='2.84e-05', photon_flux2='7.20e-08', job_status='DONE', time_completed='2022-12-02 01:07:04.555048', photon_index_error2='0.65', photon_index2='2.55', ts='5.50', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='0.84', time_epoch_completed='1669972024.56', return_code='0', job_id='579376', GAL2='1.21', EG2='0.80', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='4.63e-08', ts2='6.27', photon_index='2.06' WHERE bin_id='1744' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 01:07:04 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 579376: <4FGL_J1230.8+1223_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:55:18 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:55:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:55:19 2022
Terminated at Fri Dec  2 01:07:05 2022
Results reported at Fri Dec  2 01:07:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1744 187.712 12.3883 691372801 691632001 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 :                                   631.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

