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


Performing analysis on: 4FGL_J1230.8+1223_weekly_bin734
RA = 187.712, Dec = 12.3883
tmin = 682905601, tmax = 683510401
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='236193', job_status='RUN', time_executed='2022-09-16 23:27:46.709278', time_epoch_executed='1663396066.71' WHERE source_name='4FGL J1230.8+1223' and cadence='weekly' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236193

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236193/ft1_4FGL_J1230.8+1223_weekly_bin734.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236193/ft2_4FGL_J1230.8+1223_weekly_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236193/ft1_4FGL_J1230.8+1223_weekly_bin734.fits outfile=/scratch/kocevski/236193/ft1_filteredMKT_4FGL_J1230.8+1223_weekly_bin734.fits ra=187.712 dec=12.3883 rad=12.0 tmin=682905601.0 tmax=683510401.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 9.74
user 9.32
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236193/ft2_4FGL_J1230.8+1223_weekly_bin734.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/236193/ft1_filteredMKT_4FGL_J1230.8+1223_weekly_bin734.fits evtable="EVENTS" outfile="/scratch/kocevski/236193/ft1_filtered_4FGL_J1230.8+1223_weekly_bin734.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.57
user 0.39
sys 0.17

Number of photons that the gtmktime cut: 1204

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236193/ft1_filtered_4FGL_J1230.8+1223_weekly_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/236193/ft2_4FGL_J1230.8+1223_weekly_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/236193/ltcube_682905601_683510401_4FGL_J1230.8+1223_weekly_bin734.fits outfile=/scratch/kocevski/236193/expmap_682905601_683510401_4FGL_J1230.8+1223_weekly_bin734.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/236193/ltcube_682905601_683510401_4FGL_J1230.8+1223_weekly_bin734.fits
.....................!
real 193.32
user 187.38
sys 5.43

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/236193/ft1_filtered_4FGL_J1230.8+1223_weekly_bin734.fits scfile=/scratch/kocevski/236193/ft2_4FGL_J1230.8+1223_weekly_bin734.fits outfile=/scratch/kocevski/236193/cmap_682905601_683510401_4FGL_J1230.8+1223_weekly_bin734.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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236193/ft1_filtered_4FGL_J1230.8+1223_weekly_bin734.fits scfile=/scratch/kocevski/236193/ft2_4FGL_J1230.8+1223_weekly_bin734.fits outfile=/scratch/kocevski/236193/cmap_HighResolution_682905601_683510401_4FGL_J1230.8+1223_weekly_bin734.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.60
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17120E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    45.628       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.9931       1.0000          .0000       .10000E+07
     4 'Prefactor '    .18085E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.9295       1.0000          .0000       .10000E+07
     6 'Prefactor '    .35372E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    55.848       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.8875       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10968E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    19.753       1.0000          .0000       .10000E+07
    11 'norm      '    3.2184       1.0000          .0000       .10000E+07
    12 'Prefactor '    46.831       1.0000          .0000       .10000E+07
    13 'norm      '    .17335       1.0000          .0000       .10000E+07
    14 'norm      '    25.856       1.0000          .0000       .10000E+07
    15 'norm      '    .94055       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.9527       1.0000          .0000       .10000E+07
    17 'norm      '    1.4748       1.0000          .0000       .10000E+07
    18 'Prefactor '    .27403E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19138E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    14.161       1.0000          .0000       .10000E+07
    21 'Normalizat'    .96160       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1109       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=   13910.26     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1480 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    3.1889        .10601E-05** at limit **
   2  Prefactor     45.614        3.8156       -.50248E-06    .17347    
   3  Prefactor     7.9827        6.9597       -.20928E-06    .17451E-04
   4  Prefactor     .46074E-08    6.6765        .29163E-05** at limit **
   5  Prefactor     1.9304        2.9631       -.15720E-07    .77373E-02
   6  Prefactor     .89706E-07    17.591       -.26095E-05** at limit **
   7  Prefactor     55.922        2.2602       -.20141E-06    .62629E-01
   8  Prefactor     1.8879        2.0226       -.12307E-06   -.44270E-03
   9  Prefactor     .55511E-10    1.2525        .26451E-06** at limit **
  10  Prefactor     19.747        1.1656        .49180E-07    .84155E-02
  11  norm          3.2211        2.6129        .12250E-06    .50092E-02
  12  Prefactor     46.855        1.8530       -.16287E-06    .21333E-01
  13  norm          .17342        .12847        .75199E-07** at limit **
  14  norm          25.784        2.4673       -.41332E-06    .39680E-01
  15  norm          .94088        .37101        .21530E-07    .22643E-01
  16  Prefactor     8.0244        6.1267        .51399E-06    .14949E-02
  17  norm          1.4751        .82765       -.32808E-06    .50438E-02
  18  Prefactor     .11102E-09    10.543       -.20196E-05** at limit **
  19  Prefactor     .28660E-06    24.453       -.10844E-04** at limit **
  20  Prefactor     14.186        11.706       -.20790E-05   -.48508E-02
  21  Normalizat    .96139        .16382       -.30019E-05    .85601E-03
  22  Prefactor     1.1109        .14029       -.20699E-05    .12167E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Prefactor  = 45.6138
  Prefactor  = 7.98273
  Prefactor  = 4.60743e-09
  Prefactor  = 1.93041
  Prefactor  = 8.9706e-08
  Prefactor  = 55.9216
  Prefactor  = 1.88789
  Prefactor  = 5.55112e-11
  Prefactor  = 19.7469
  norm       = 3.22109
  Prefactor  = 46.8552
  norm       = 0.173425
  norm       = 25.7838
  norm       = 0.940882
  Prefactor  = 8.02439
  norm       = 1.47515
  Prefactor  = 1.11022e-10
  Prefactor  = 2.86604e-07
  Prefactor  = 14.1864
  Normalizat = 0.961393
  Prefactor  = 1.11086
 **********
 **   18 **HESSE 
 **********

 FCN=   13910.26     FROM HESSE     STATUS=OK           394 CALLS     1874 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    3.2025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.614        69.839        .14805E-03   -1.5573    
   3  Prefactor     7.9827        7.0037        .35440E-03   -1.5651    
   4  Prefactor     .46074E-08    6.6682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9304        3.0390        .74748E-03   -1.5680    
   6  Prefactor     .89706E-07    17.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     55.922        32.649        .13382E-03   -1.5558    
   8  Prefactor     1.8879        2.0588        .75720E-03   -1.5680    
   9  Prefactor     .55511E-10    1.2539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.747        15.292        .22507E-03   -1.5619    
  11  norm          3.2211        2.9664        .56445E-03   -1.5672    
  12  Prefactor     46.855        24.863        .14614E-03   -1.5571    
  13  norm          .17342        .13913        .79122E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          25.784        29.283        .19670E-03   -1.5606    
  15  norm          .94088        .37935        .42996E-03   -1.5689    
  16  Prefactor     8.0244        6.1380        .35531E-03   -1.5651    
  17  norm          1.4751        .83943        .88408E-03   -1.5684    
  18  Prefactor     .11102E-09    10.503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .28660E-06    24.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.186        11.732        .26590E-03   -1.5633    
  21  Normalizat    .96139        .13960        .65362E-01   -.94335    
  22  Prefactor     1.1109        .11738        .54766E-01   -.89120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2079e-06
Minuit parameter uncertainties:
  1  5.1405e-05
  2  69.8405
  3  7.00373
  4  0.000350029
  5  3.03901
  6  0.00251931
  7  32.6486
  8  2.05885
  9  1.87469e-05
  10  15.2919
  11  2.96638
  12  24.8631
  13  0.139133
  14  29.2831
  15  0.379348
  16  6.13798
  17  0.839425
  18  6.68713e-05
  19  0.00527988
  20  11.7319
  21  0.139656
  22  0.117407
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  8.024e+00  6.138e+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:  1.111e+00  1.174e-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:  9.614e-01  1.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.36
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.67e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.01e-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) = 13910.2518797
delta logL = 0.0108745629113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13910.2511362
delta logL = 0.0116180282184

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7960       1.0000          .0000       .10000E+07
     2 'Index     '    2.1411       1.0000          .0000       10.000    
     3 'Normalizat'    .95878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13910.25     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      254 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7961        6.2796        .14356E-04   -.46534E-02
   2  Index         2.1407        .55623        .10475E-01   -.43169E-04
   3  Normalizat    .95878        .15667        .28946E-03   -.57186E-04
   4  Prefactor     1.1117        .13981        .24206E-03   -.51944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.79614
  Index      = 2.14066
  Normalizat = 0.958779
  Prefactor  = 1.11168
 **********
 **   18 **HESSE 
 **********

 FCN=   13910.25     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7961        6.1439        .57423E-06   -1.5652    
   2  Index         2.1407        .54386        .41900E-03   -.60878    
   3  Normalizat    .95878        .15669        .11578E-04   -.94424    
   4  Prefactor     1.1117        .13991        .96826E-05   -.89094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18296e-10
Minuit parameter uncertainties:
  1  6.14394
  2  0.545463
  3  0.15677
  4  0.139959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236193': 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) = 13910.2511358
delta logL = 0.0116184532872

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  7.796e+00  6.144e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.141e+00  5.455e-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.112e+00  1.400e-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:  9.588e-01  1.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.38
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.14 +/- 0.55
Photon Flux (Free Index): 2.48e-08 +/- 2.67e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.02e-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/236193/cmap_HighResolution_682905601_683510401_4FGL_J1230.8+1223_weekly_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='1.25e-05', photon_flux_error='1.67e-08', dlogl='1.16e-02', energy_flux='1.32e-05', photon_flux2='2.48e-08', job_status='DONE', time_completed='2022-09-16 23:41:34.170078', photon_index_error2='0.55', photon_index2='2.14', ts='5.36', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.02e-05', EG='0.96', time_epoch_completed='1663396894.17', return_code='0', job_id='236193', GAL2='1.11', EG2='0.96', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.67e-08', ts2='5.38', photon_index='2.06' WHERE bin_id='734' AND source_name='4FGL J1230.8+1223' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:41:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 236193: <4FGL_J1230.8+1223_weekly_bin734> in cluster <slac> Done

Job <4FGL_J1230.8+1223_weekly_bin734> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 16 23:25:41 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:27:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:27:28 2022
Terminated at Fri Sep 16 23:41:35 2022
Results reported at Fri Sep 16 23:41:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_weekly_bin734 187.712 12.3883 682905601 683510401 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 :                                   825.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            954 sec.

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

