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


Performing analysis on: 4FGL_J1230.8+1223_weekly_bin756
RA = 187.712, Dec = 12.3883
tmin = 696211201, tmax = 696816001
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='481657', job_status='RUN', time_executed='2023-01-31 03:03:01.709229', time_epoch_executed='1675162981.71' WHERE source_name='4FGL J1230.8+1223' and cadence='weekly' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481657

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481657/ft1_4FGL_J1230.8+1223_weekly_bin756.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481657/ft2_4FGL_J1230.8+1223_weekly_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481657/ft1_4FGL_J1230.8+1223_weekly_bin756.fits outfile=/scratch/kocevski/481657/ft1_filteredMKT_4FGL_J1230.8+1223_weekly_bin756.fits ra=187.712 dec=12.3883 rad=12.0 tmin=696211201.0 tmax=696816001.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 7.25
user 6.87
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481657/ft2_4FGL_J1230.8+1223_weekly_bin756.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/481657/ft1_filteredMKT_4FGL_J1230.8+1223_weekly_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/481657/ft1_filtered_4FGL_J1230.8+1223_weekly_bin756.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.59
user 0.40
sys 0.18

Number of photons that the gtmktime cut: 1383

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481657/ft1_filtered_4FGL_J1230.8+1223_weekly_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/481657/ft2_4FGL_J1230.8+1223_weekly_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/481657/ltcube_696211201_696816001_4FGL_J1230.8+1223_weekly_bin756.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/481657/ft2_4FGL_J1230.8+1223_weekly_bin756.fits
.....................!
real 32.88
user 32.30
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481657/ft1_filtered_4FGL_J1230.8+1223_weekly_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/481657/ft2_4FGL_J1230.8+1223_weekly_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/481657/ltcube_696211201_696816001_4FGL_J1230.8+1223_weekly_bin756.fits outfile=/scratch/kocevski/481657/expmap_696211201_696816001_4FGL_J1230.8+1223_weekly_bin756.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/481657/ltcube_696211201_696816001_4FGL_J1230.8+1223_weekly_bin756.fits
.....................!
real 161.80
user 155.59
sys 5.36

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/481657/ft1_filtered_4FGL_J1230.8+1223_weekly_bin756.fits scfile=/scratch/kocevski/481657/ft2_4FGL_J1230.8+1223_weekly_bin756.fits outfile=/scratch/kocevski/481657/cmap_696211201_696816001_4FGL_J1230.8+1223_weekly_bin756.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.712 yref=12.3883 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481657/ft1_filtered_4FGL_J1230.8+1223_weekly_bin756.fits scfile=/scratch/kocevski/481657/ft2_4FGL_J1230.8+1223_weekly_bin756.fits outfile=/scratch/kocevski/481657/cmap_HighResolution_696211201_696816001_4FGL_J1230.8+1223_weekly_bin756.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.53
user 0.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54522E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .14611E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.8348       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.0857       1.0000          .0000       .10000E+07
     5 'Prefactor '    .69433E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    35.780       1.0000          .0000       .10000E+07
     7 'Prefactor '    .18035E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .80137E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16542E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .25484E-03   1.0000          .0000       .10000E+07
    11 'norm      '    10.855       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2241       1.0000          .0000       .10000E+07
    13 'norm      '    .42420       1.0000          .0000       .10000E+07
    14 'norm      '    .77147E-03   1.0000          .0000       .10000E+07
    15 'norm      '    1.0234       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0011       1.0000          .0000       .10000E+07
    17 'norm      '    1.6581       1.0000          .0000       .10000E+07
    18 'Prefactor '    .85519       1.0000          .0000       .10000E+07
    19 'Prefactor '    .28804E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.5931       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3603       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76971       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=   15481.12     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1859 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.8505       -.96382E-06** at limit **
   2  Prefactor     .63283E-08    65.848        .45049E-05** at limit **
   3  Prefactor     3.8203        7.5483       -.15966E-05   -.26412E-02
   4  Prefactor     5.0727        5.2476       -.31703E-05    .89736E-02
   5  Prefactor      .0000        .87180        .18631E-07** at limit **
   6  Prefactor     36.294        68.031        .16849E-04    .22506E-03
   7  Prefactor     .55511E-10    3.9864        .65858E-06** at limit **
   8  Prefactor      .0000        1.6024       -.69869E-07** at limit **
   9  Prefactor      .0000        .67160       -.32344E-07** at limit **
  10  Prefactor     .16653E-09    3.7885        .47248E-06** at limit **
  11  norm          10.854        2.5818        .99280E-07   -.17363E-01
  12  Prefactor     3.2298        10.404       -.66874E-05    .78915E-04
  13  norm          .42435        .17152        .42973E-07    .84974E-02
  14  norm          .41744E-07    59.487       -.20337E-05** at limit **
  15  norm          1.0233        .32921        .45002E-07    .36977E-02
  16  Prefactor     4.0332        3.9021        .93234E-07   -.83593E-03
  17  norm          1.6577        .84429        .14999E-06    .34253E-01
  18  Prefactor     .86385        3.8488       -.36525E-05   -.34533E-02
  19  Prefactor     .66613E-09    17.014       -.53533E-06** at limit **
  20  Prefactor     1.5663        11.415        .11241E-05    .36665E-02
  21  Normalizat    1.3601        .14715       -.52030E-05   -.13692E-03
  22  Prefactor     .76984        .12228        .52909E-05   -.16441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 6.32827e-09
  Prefactor  = 3.82028
  Prefactor  = 5.07273
  Prefactor  = 0
  Prefactor  = 36.2941
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 10.8542
  Prefactor  = 3.22976
  norm       = 0.424345
  norm       = 4.17444e-08
  norm       = 1.02333
  Prefactor  = 4.0332
  norm       = 1.65769
  Prefactor  = 0.863847
  Prefactor  = 6.66134e-10
  Prefactor  = 1.56629
  Normalizat = 1.36014
  Prefactor  = 0.769839
 **********
 **   18 **HESSE 
 **********

 FCN=   15481.12     FROM HESSE     STATUS=OK           398 CALLS     2257 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.8758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .63283E-08    65.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8203        8.1261        .51513E-03   -1.5669    
   4  Prefactor     5.0727        8.8805        .44561E-03   -1.5663    
   5  Prefactor      .0000        .86914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.294        68.742        .16720E-03   -1.5587    
   7  Prefactor     .55511E-10    3.9905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.5636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .67020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16653E-09    3.7979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.854        2.5856        .30385E-03   -1.5642    
  12  Prefactor     3.2298        10.434        .56392E-03   -1.5672    
  13  norm          .42435        .17456        .70130E-03   -1.5695    
  14  norm          .41744E-07    59.064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0233        .33446        .84714E-03   -1.5688    
  16  Prefactor     4.0332        3.9056        .50395E-03   -1.5668    
  17  norm          1.6577        .85438        .81913E-03   -1.5682    
  18  Prefactor     .86385        4.4175        .48909E-03   -1.5689    
  19  Prefactor     .66613E-09    2.5273        .11390E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5663        12.816        .84018E-03   -1.5683    
  21  Normalizat    1.3601        .12675        .55287E-01   -.81789    
  22  Prefactor     .76984        .10512        .43322E-01   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5844e-07
Minuit parameter uncertainties:
  1  4.00547e-06
  2  0.0012924
  3  8.12617
  4  8.88057
  5  7.66923e-06
  6  68.743
  7  2.42799e-05
  8  1.28265e-05
  9  6.40883e-06
  10  4.86256e-05
  11  2.58565
  12  10.4337
  13  0.174565
  14  0.00313984
  15  0.334457
  16  3.9056
  17  0.854382
  18  3.90696
  19  8.30029e-05
  20  8.96092
  21  0.126774
  22  0.105146
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.033e+00  3.906e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  7.698e-01  1.051e-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.360e+00  1.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.10e-08 +/- 1.06e-08
Energy Flux (Fixed Index): 6.64e-06 +/- 6.43e-06

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) = 15480.957525
delta logL = 0.160429473686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15480.9570986
delta logL = 0.16085583733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1123       1.0000          .0000       .10000E+07
     2 'Index     '    1.6566       1.0000          .0000       10.000    
     3 'Normalizat'    1.3644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76885       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=   15480.96     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1123        210.63        .49687E-03   -.59923E-02
   2  Index         1.6568        5.5647        .28236       -.46886E-04
   3  Normalizat    1.3644        .11873        .55213E-01    .96860E-05
   4  Prefactor     .76881        .65186E-01    .43310E-01    .47193E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.11234
  Index      = 1.65677
  Normalizat = 1.36444
  Prefactor  = 0.768805
 **********
 **   18 **HESSE 
 **********

 FCN=   15480.96     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1123        4.2358        .19875E-04   -1.5667    
   2  Index         1.6568        .67470        .16432E-01   -.73239    
   3  Normalizat    1.3644        .13943        .24414E-03   -.81663    
   4  Prefactor     .76881        .12148        .27314E-03   -1.0089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32737e-11
Minuit parameter uncertainties:
  1  4.23582
  2  0.678459
  3  0.139464
  4  0.121526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481657': 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) = 15480.9570985
delta logL = 0.160855968057

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.112e+00  4.236e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  1.657e+00  6.785e-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:  7.688e-01  1.215e-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.364e+00  1.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.66 +/- 0.68
Photon Flux (Free Index): 5.93e-09 +/- 8.92e-09
Energy Flux (Free Index): 1.11e-05 +/- 1.65e-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/481657/cmap_HighResolution_696211201_696816001_4FGL_J1230.8+1223_weekly_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-08', energy_flux2='1.11e-05', photon_flux_error='1.06e-08', dlogl='1.61e-01', energy_flux='6.64e-06', photon_flux2='5.93e-09', job_status='DONE', time_completed='2023-01-31 03:16:26.238439', photon_index_error2='0.68', photon_index2='1.66', ts='4.46', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='1.36', time_epoch_completed='1675163786.24', return_code='0', job_id='481657', GAL2='0.77', EG2='1.36', return_code2='0', energy_flux_error='6.43e-06', photon_flux_error2='8.92e-09', ts2='4.78', photon_index='2.06' WHERE bin_id='756' AND source_name='4FGL J1230.8+1223' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 31 03:16:26 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 481657: <4FGL_J1230.8+1223_weekly_bin756> in cluster <slac> Done

Job <4FGL_J1230.8+1223_weekly_bin756> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Jan 31 03:00:28 2023
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 03:00:49 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 03:00:49 2023
Terminated at Tue Jan 31 03:16:27 2023
Results reported at Tue Jan 31 03:16:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_weekly_bin756 187.712 12.3883 696211201 696816001 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 :                                   802.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            959 sec.

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

