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


Performing analysis on: 4FGL_J1230.8+1223_weekly_bin759
RA = 187.712, Dec = 12.3883
tmin = 698025601, tmax = 698630401
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='589742', job_status='RUN', time_executed='2023-02-21 03:31:04.121197', time_epoch_executed='1676979064.12' WHERE source_name='4FGL J1230.8+1223' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589742

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589742/ft1_4FGL_J1230.8+1223_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589742/ft2_4FGL_J1230.8+1223_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589742/ft1_4FGL_J1230.8+1223_weekly_bin759.fits outfile=/scratch/kocevski/589742/ft1_filteredMKT_4FGL_J1230.8+1223_weekly_bin759.fits ra=187.712 dec=12.3883 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.54
user 8.22
sys 0.27

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

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

Number of photons that the gtmktime cut: 632

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589742/ft1_filtered_4FGL_J1230.8+1223_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/589742/ft2_4FGL_J1230.8+1223_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/589742/ltcube_698025601_698630401_4FGL_J1230.8+1223_weekly_bin759.fits outfile=/scratch/kocevski/589742/expmap_698025601_698630401_4FGL_J1230.8+1223_weekly_bin759.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/589742/ltcube_698025601_698630401_4FGL_J1230.8+1223_weekly_bin759.fits
.....................!
real 194.77
user 189.67
sys 4.77

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/589742/ft1_filtered_4FGL_J1230.8+1223_weekly_bin759.fits scfile=/scratch/kocevski/589742/ft2_4FGL_J1230.8+1223_weekly_bin759.fits outfile=/scratch/kocevski/589742/cmap_698025601_698630401_4FGL_J1230.8+1223_weekly_bin759.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589742/ft1_filtered_4FGL_J1230.8+1223_weekly_bin759.fits scfile=/scratch/kocevski/589742/ft2_4FGL_J1230.8+1223_weekly_bin759.fits outfile=/scratch/kocevski/589742/cmap_HighResolution_698025601_698630401_4FGL_J1230.8+1223_weekly_bin759.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/589742/ft1_filtered_4FGL_J1230.8+1223_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/589742/ft2_4FGL_J1230.8+1223_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589742/Model_4FGL_J1230.8+1223_weekly_bin759.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/589742/ft1_filtered_4FGL_J1230.8+1223_weekly_bin759.fits.....................!
real 59.04
user 57.75
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/589742/ft1_filtered_4FGL_J1230.8+1223_weekly_bin759.fits', '/scratch/kocevski/589742/ft2_4FGL_J1230.8+1223_weekly_bin759.fits', expMap='/scratch/kocevski/589742/expmap_698025601_698630401_4FGL_J1230.8+1223_weekly_bin759.fits', expCube='/scratch/kocevski/589742/ltcube_698025601_698630401_4FGL_J1230.8+1223_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/589742/Model_4FGL_J1230.8+1223_weekly_bin759.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/589742/ft1_filtered_4FGL_J1230.8+1223_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/589742/ft2_4FGL_J1230.8+1223_weekly_bin759.fits
Exposure map: /scratch/kocevski/589742/expmap_698025601_698630401_4FGL_J1230.8+1223_weekly_bin759.fits
Exposure cube: /scratch/kocevski/589742/ltcube_698025601_698630401_4FGL_J1230.8+1223_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/589742/Model_4FGL_J1230.8+1223_weekly_bin759.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7125.37240032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15713E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    15.162       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.1399       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13254E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.3457       1.0000          .0000       .10000E+07
     6 'Prefactor '    .34276E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .22482E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .23688E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.0648       1.0000          .0000       .10000E+07
    10 'Prefactor '    .19888E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.3988       1.0000          .0000       .10000E+07
    12 'Prefactor '    20.133       1.0000          .0000       .10000E+07
    13 'norm      '    .58329E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .18144E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .42740       1.0000          .0000       .10000E+07
    16 'Prefactor '    35.988       1.0000          .0000       .10000E+07
    17 'norm      '    .82949       1.0000          .0000       .10000E+07
    18 'Prefactor '    .50263E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .75213E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    16.539       1.0000          .0000       .10000E+07
    21 'Normalizat'    .75621       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2540       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=   7123.687     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1170 TOTAL
                     EDM=   .10E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.399       -.76031E-07** at limit **
   2  Prefactor     23.113        79.875       -.30715E-07    .24458E-04
   3  Prefactor     6.0365        9.2160       -.48637E-08   -.86481E-04
   4  Prefactor      .0000        7.6142        .86990E-07** at limit **
   5  Prefactor     1.3485        3.9604        .45023E-07   -.34021E-04
   6  Prefactor      .0000        29.680       -.80390E-07** at limit **
   7  Prefactor      .0000        8.5506       -.52873E-07** at limit **
   8  Prefactor      .0000        2.2739       -.13135E-06** at limit **
   9  Prefactor     2.0679        2.2739        .40617E-07   -.69376E-04
  10  Prefactor      .0000        11.711       -.12475E-06** at limit **
  11  norm          2.4011        2.9082        .25724E-08   -.10877E-04
  12  Prefactor     19.836        27.087       -.37996E-07   -.53840E-04
  13  norm          .59034E-01    .16396       -.15709E-07** at limit **
  14  norm           .0000        18.757       -.27173E-07** at limit **
  15  norm          .42749        .40862        .58897E-09   -.75551E-04
  16  Prefactor     36.116        1.8417        .34276E-08   -.79542E-02
  17  norm          .83340        1.2574       -.95886E-08   -.32036E-05
  18  Prefactor      .0000        10.176        .11240E-06** at limit **
  19  Prefactor      .0000        4.0606        .65960E-07** at limit **
  20  Prefactor     16.501        12.015       -.52540E-07   -.43110E-03
  21  Normalizat    .75492        .20327        .89353E-06   -.26002E-05
  22  Prefactor     1.2539        .18382       -.54459E-07   -.31122E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 23.1131
  Prefactor  = 6.03647
  Prefactor  = 0
  Prefactor  = 1.34847
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.06791
  Prefactor  = 0
  norm       = 2.40112
  Prefactor  = 19.8359
  norm       = 0.0590338
  norm       = 0
  norm       = 0.427489
  Prefactor  = 36.116
  norm       = 0.833403
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 16.5015
  Normalizat = 0.754921
  Prefactor  = 1.25392
 **********
 **   18 **HESSE 
 **********

 FCN=   7123.687     FROM HESSE     STATUS=OK           390 CALLS     1560 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.113        79.755        .25696E-03   -1.5612    
   3  Prefactor     6.0365        9.2430        .40493E-03   -1.5659    
   4  Prefactor      .0000        7.6176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3485        3.9674        .94359E-03   -1.5685    
   6  Prefactor      .0000        29.633        .16233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        8.5426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.2535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0679        2.2864        .71877E-03   -1.5679    
  10  Prefactor      .0000        11.699        .17044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4011        2.9565        .66088E-03   -1.5677    
  12  Prefactor     19.836        27.071        .22294E-03   -1.5619    
  13  norm          .59034E-01    .14664        .12322E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        18.713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .42749        .42603        .86378E-03   -1.5695    
  16  Prefactor     36.116        13.724        .16671E-03   -1.5588    
  17  norm          .83340        1.2736        .50762E-03   -1.5690    
  18  Prefactor      .0000        10.139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        4.0580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.501        12.066        .24601E-03   -1.5627    
  21  Normalizat    .75492        .17583        .66594E-01   -1.0176    
  22  Prefactor     1.2539        .15551        .49545E-01   -.84688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57716e-08
Minuit parameter uncertainties:
  1  2.85888e-07
  2  79.7582
  3  9.24297
  4  1.55003e-05
  5  3.96739
  6  5.25969e-08
  7  1.10872e-06
  8  8.1743e-07
  9  2.28644
  10  1.35457e-06
  11  2.9565
  12  27.0707
  13  0.146639
  14  4.14487e-06
  15  0.426029
  16  13.724
  17  1.27364
  18  1.87829e-05
  19  1.35878e-06
  20  12.0664
  21  0.175962
  22  0.155563
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.612e+01  1.372e+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.254e+00  1.556e-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:  7.549e-01  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.37
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 9.85e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 5.94e-05 +/- 2.26e-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.6867816
delta logL = 0.000329755989696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7123.68664648
delta logL = 0.000464875166472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.334       1.0000          .0000       .10000E+07
     2 'Index     '    2.0471       1.0000          .0000       10.000    
     3 'Normalizat'    .75593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2537       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.687     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      229 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.373        224.65        .16592E-03   -.94146E-04
   2  Index         2.0481        2.6519        .11334        .93180E-04
   3  Normalizat    .75587        .14059        .66558E-01    .37565E-03
   4  Prefactor     1.2535        .83280E-01    .49553E-01    .45752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.3729
  Index      = 2.04808
  Normalizat = 0.755868
  Prefactor  = 1.25348
 **********
 **   18 **HESSE 
 **********

 FCN=   7123.687     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.373        16.396        .66367E-05   -1.5587    
   2  Index         2.0481        .30310        .43773E-02   -.63153    
   3  Normalizat    .75587        .19798        .29448E-03   -1.0173    
   4  Prefactor     1.2535        .18392        .21906E-03   -.84701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35961e-09
Minuit parameter uncertainties:
  1  16.3963
  2  0.30339
  3  0.198166
  4  0.184014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589742': 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.68662874
delta logL = 0.00048261475149

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.637e+01  1.640e+01  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.048e+00  3.034e-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.253e+00  1.840e-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:  7.559e-01  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.33
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.05 +/- 0.30
Photon Flux (Free Index): 9.76e-08 +/- 4.75e-08
Energy Flux (Free Index): 6.01e-05 +/- 3.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/589742/cmap_HighResolution_698025601_698630401_4FGL_J1230.8+1223_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.85e-08', energy_flux2='6.01e-05', photon_flux_error='3.74e-08', dlogl='4.83e-04', energy_flux='5.94e-05', photon_flux2='9.76e-08', job_status='DONE', time_completed='2023-02-21 03:40:27.464558', photon_index_error2='0.30', photon_index2='2.05', ts='24.37', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='3.30e-05', EG='0.75', time_epoch_completed='1676979627.46', return_code='0', job_id='589742', GAL2='1.25', EG2='0.76', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='4.75e-08', ts2='24.33', photon_index='2.06' WHERE bin_id='759' AND source_name='4FGL J1230.8+1223' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:40:27 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 589742: <4FGL_J1230.8+1223_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1230.8+1223_weekly_bin759> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 03:30:25 2023
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:30:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:30:25 2023
Terminated at Tue Feb 21 03:40:28 2023
Results reported at Tue Feb 21 03:40:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_weekly_bin759 187.712 12.3883 698025601 698630401 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 :                                   564.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             307.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            603 sec.

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

