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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1773
RA = 187.712, Dec = 12.3883
tmin = 698889601, tmax = 699148801
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='790514', job_status='RUN', time_executed='2023-02-27 09:49:51.572119', time_epoch_executed='1677520191.57' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790514

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790514/ft1_4FGL_J1230.8+1223_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790514/ft2_4FGL_J1230.8+1223_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790514/ft1_4FGL_J1230.8+1223_daily_bin1773.fits outfile=/scratch/kocevski/790514/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1773.fits ra=187.712 dec=12.3883 rad=12.0 tmin=698889601.0 tmax=699148801.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.96
user 2.74
sys 0.20

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

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

Number of photons that the gtmktime cut: 137

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790514/ft1_filtered_4FGL_J1230.8+1223_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/790514/ft2_4FGL_J1230.8+1223_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/790514/ltcube_698889601_699148801_4FGL_J1230.8+1223_daily_bin1773.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/790514/ft2_4FGL_J1230.8+1223_daily_bin1773.fits
.....................!
real 14.73
user 14.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790514/ft1_filtered_4FGL_J1230.8+1223_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790514/ft2_4FGL_J1230.8+1223_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/790514/ltcube_698889601_699148801_4FGL_J1230.8+1223_daily_bin1773.fits outfile=/scratch/kocevski/790514/expmap_698889601_699148801_4FGL_J1230.8+1223_daily_bin1773.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/790514/ltcube_698889601_699148801_4FGL_J1230.8+1223_daily_bin1773.fits
.....................!
real 190.76
user 185.72
sys 4.58

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/790514/ft1_filtered_4FGL_J1230.8+1223_daily_bin1773.fits scfile=/scratch/kocevski/790514/ft2_4FGL_J1230.8+1223_daily_bin1773.fits outfile=/scratch/kocevski/790514/cmap_698889601_699148801_4FGL_J1230.8+1223_daily_bin1773.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790514/ft1_filtered_4FGL_J1230.8+1223_daily_bin1773.fits scfile=/scratch/kocevski/790514/ft2_4FGL_J1230.8+1223_daily_bin1773.fits outfile=/scratch/kocevski/790514/cmap_HighResolution_698889601_699148801_4FGL_J1230.8+1223_daily_bin1773.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.058       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11785E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .51463E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    41.051       1.0000          .0000       .10000E+07
     5 'Prefactor '    .57028E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .71737       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44400       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22549E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .66500E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18840       1.0000          .0000       .10000E+07
    11 'norm      '    .10270E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16354       1.0000          .0000       .10000E+07
    13 'norm      '    .22538E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .22940       1.0000          .0000       .10000E+07
    15 'norm      '    .16120E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15677E-01   1.0000          .0000       .10000E+07
    17 'norm      '    3.4836       1.0000          .0000       .10000E+07
    18 'Prefactor '    .77993E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.744       1.0000          .0000       .10000E+07
    20 'Prefactor '    .19155E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    2.1795       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=   1680.712     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     1900 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.146        108.02        .57837E-06    .32668E-01
   2  Prefactor     .39553E-05    379.15        .14254E-05** at limit **
   3  Prefactor      .0000        46.217        .38052E-06** at limit **
   4  Prefactor     39.539        59.365       -.58497E-06    .38833E-01
   5  Prefactor      .0000        8.0713        .34965E-06** at limit **
   6  Prefactor     .17930E-07    361.56       -.26183E-05** at limit **
   7  Prefactor      .0000        140.29        .17765E-06** at limit **
   8  Prefactor      .0000        3.6045       -.10331E-06** at limit **
   9  Prefactor      .0000        4.0257        .44624E-07** at limit **
  10  Prefactor      .0000        72.425       -.37084E-06** at limit **
  11  norm           .0000        16.417        .53299E-06** at limit **
  12  Prefactor      .0000        67.462        .32461E-07** at limit **
  13  norm           .0000        2.7730       -.19675E-06** at limit **
  14  norm           .0000        80.830        .12224E-06** at limit **
  15  norm           .0000        1.8823       -.11654E-06** at limit **
  16  Prefactor      .0000        19.159        .19871E-06** at limit **
  17  norm          3.4874        4.4290       -.12379E-06    .29390E-03
  18  Prefactor      .0000        22.973        .68666E-06** at limit **
  19  Prefactor     16.741        25.956       -.89490E-10   -.16882E-03
  20  Prefactor      .0000        15.855       -.58176E-07** at limit **
  21  Normalizat    .10000E-01    .24942        .17452E-04** at limit **
  22  Prefactor     2.1796        .22779       -.11213E-05    .70639E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.1459
  Prefactor  = 3.95528e-06
  Prefactor  = 0
  Prefactor  = 39.5391
  Prefactor  = 0
  Prefactor  = 1.79301e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 0
  Prefactor  = 0
  norm       = 3.48739
  Prefactor  = 0
  Prefactor  = 16.7411
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 2.17959
 **********
 **   18 **HESSE 
 **********

 FCN=   1680.712     FROM HESSE     STATUS=OK           378 CALLS     2278 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.146        117.76        .10538E-03   -1.5514    
   2  Prefactor     .39553E-05    386.28        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        46.367        .15483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.539        120.83        .15609E-03   -1.5582    
   5  Prefactor      .0000        8.0732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17930E-07    362.78        .59309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        140.42        .84556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.6066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        4.0268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        72.416        .11986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        16.293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        67.465        .12464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .66499        .19264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        80.780        .11274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.8284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        19.117        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4874        4.4384        .54151E-03   -1.5671    
  18  Prefactor      .0000        22.913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.741        25.910        .24450E-03   -1.5626    
  20  Prefactor      .0000        15.753        .17093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .24892        .32094E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1796        .23524        .45733E-01   -.59932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67465e-07
Minuit parameter uncertainties:
  1  117.759
  2  0.0781805
  3  2.92915e-05
  4  120.842
  5  1.09969e-05
  6  0.00510153
  7  9.90118e-06
  8  1.74113e-06
  9  1.16936e-06
  10  3.07497e-05
  11  2.20667e-05
  12  3.16672e-06
  13  1.45058e-06
  14  1.62536e-05
  15  1.45486e-06
  16  8.53523e-06
  17  4.43839
  18  3.4694e-05
  19  25.9102
  20  2.18388e-06
  21  2.96558e-07
  22  0.235367
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  0.000e+00  8.535e-06  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:  2.180e+00  2.354e-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.000e-02  2.966e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 2.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/790514/likelihoodResults_698889601_699148801_4FGL_J1230.8+1223_daily_bin1773.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) = 1680.56289097
delta logL = 0.149400416865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1680.71229163
delta logL = -2.4389396458e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16631E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .13881E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.1795       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=   1680.482     FROM MIGRAD    STATUS=CONVERGED    163 CALLS      405 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56345E-04    .10699E-01    .12613E-04** at limit **
   2  Index         7.5988        8.7351        .13704        .53055E-04
   3  Normalizat    .10000E-01    .16636        .25802    ** at limit **
   4  Prefactor     2.1586        .22870        .45797E-01    .14694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.63453e-05
  Index      = 7.59875
  Normalizat = 0.01
  Prefactor  = 2.15861
 **********
 **   18 **HESSE 
 **********

 FCN=   1680.482     FROM HESSE     STATUS=OK            33 CALLS      438 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56345E-04    .68281E-03    .74902E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5988        2.4825        .49984E-02    .54656    
   3  Normalizat    .10000E-01    .20307        .91254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1586        .20971        .20238E-03   -.60441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05572e-07
Minuit parameter uncertainties:
  1  0.000392292
  2  2.64907
  3  2.76324e-06
  4  0.209805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790514': 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) = 1680.48195369
delta logL = 0.230337696348

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  5.635e-05  3.923e-04  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  7.599e+00  2.649e+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:  2.159e+00  2.098e-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.000e-02  2.763e-06  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/790514/cmap_HighResolution_698889601_699148801_4FGL_J1230.8+1223_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', job_status='DONE', photon_flux_upper_limit='2.20e-07', time_completed='2023-02-27 09:56:17.241708', job_id='790514', GAL2='2.16', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677520577.24', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='2.18', dlogl='2.30e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1773' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 09:56:17 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 790514: <4FGL_J1230.8+1223_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 09:45:16 2023
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:45:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:45:17 2023
Terminated at Mon Feb 27 09:56:18 2023
Results reported at Mon Feb 27 09:56:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1773 187.712 12.3883 698889601 699148801 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 :                                   386.52 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             217.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            662 sec.

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

