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 7 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_J0746.5+2730_weekly_bin759
RA = 116.628, Dec = 27.5153
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='579591', job_status='RUN', time_executed='2023-02-21 02:55:37.463966', time_epoch_executed='1676976937.46' WHERE source_name='4FGL J0746.5+2730' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579591

Creating custom pfile directory:
/scratch/kocevski/579591/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/579591/ft1_4FGL_J0746.5+2730_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/579591/ft2_4FGL_J0746.5+2730_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579591/ft1_4FGL_J0746.5+2730_weekly_bin759.fits outfile=/scratch/kocevski/579591/ft1_filteredMKT_4FGL_J0746.5+2730_weekly_bin759.fits ra=116.628 dec=27.5153 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.48
user 8.16
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/579591/ft2_4FGL_J0746.5+2730_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579591/ft2_4FGL_J0746.5+2730_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/579591/ft1_filteredMKT_4FGL_J0746.5+2730_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/579591/ft1_filtered_4FGL_J0746.5+2730_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.55
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 846

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579591/ft1_filtered_4FGL_J0746.5+2730_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/579591/ft2_4FGL_J0746.5+2730_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/579591/ltcube_698025601_698630401_4FGL_J0746.5+2730_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/579591/ft2_4FGL_J0746.5+2730_weekly_bin759.fits
.....................!
real 26.41
user 25.96
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579591/ft1_filtered_4FGL_J0746.5+2730_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/579591/ft2_4FGL_J0746.5+2730_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/579591/ltcube_698025601_698630401_4FGL_J0746.5+2730_weekly_bin759.fits outfile=/scratch/kocevski/579591/expmap_698025601_698630401_4FGL_J0746.5+2730_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/579591/ltcube_698025601_698630401_4FGL_J0746.5+2730_weekly_bin759.fits
.....................!
real 189.38
user 185.13
sys 3.90

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 178 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0746.5+2730 @ 116.628 27.5153

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/579591/ft1_filtered_4FGL_J0746.5+2730_weekly_bin759.fits scfile=/scratch/kocevski/579591/ft2_4FGL_J0746.5+2730_weekly_bin759.fits outfile=/scratch/kocevski/579591/cmap_698025601_698630401_4FGL_J0746.5+2730_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=116.628 yref=27.5153 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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579591/ft1_filtered_4FGL_J0746.5+2730_weekly_bin759.fits scfile=/scratch/kocevski/579591/ft2_4FGL_J0746.5+2730_weekly_bin759.fits outfile=/scratch/kocevski/579591/cmap_HighResolution_698025601_698630401_4FGL_J0746.5+2730_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=116.628 yref=27.5153 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/579591/ft1_filtered_4FGL_J0746.5+2730_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/579591/ft2_4FGL_J0746.5+2730_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579591/Model_4FGL_J0746.5+2730_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
adding source IC 443
Working on...
/scratch/kocevski/579591/ft1_filtered_4FGL_J0746.5+2730_weekly_bin759.fits.....................!
real 104.91
user 103.48
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/579591/ft1_filtered_4FGL_J0746.5+2730_weekly_bin759.fits', '/scratch/kocevski/579591/ft2_4FGL_J0746.5+2730_weekly_bin759.fits', expMap='/scratch/kocevski/579591/expmap_698025601_698630401_4FGL_J0746.5+2730_weekly_bin759.fits', expCube='/scratch/kocevski/579591/ltcube_698025601_698630401_4FGL_J0746.5+2730_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/579591/Model_4FGL_J0746.5+2730_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.5+2730'

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  7.489e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
260        Index:  2.622e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/579591/ft1_filtered_4FGL_J0746.5+2730_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/579591/ft2_4FGL_J0746.5+2730_weekly_bin759.fits
Exposure map: /scratch/kocevski/579591/expmap_698025601_698630401_4FGL_J0746.5+2730_weekly_bin759.fits
Exposure cube: /scratch/kocevski/579591/ltcube_698025601_698630401_4FGL_J0746.5+2730_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/579591/Model_4FGL_J0746.5+2730_weekly_bin759.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) = 9493.02950884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.858       1.0000          .0000       .10000E+07
     2 'norm      '    51.079       1.0000          .0000       .10000E+07
     3 'norm      '    .78534       1.0000          .0000       .10000E+07
     4 'Prefactor '    15.956       1.0000          .0000       .10000E+07
     5 'Prefactor '    .44514E-06   1.0000          .0000       .10000E+07
     6 'norm      '    10.413       1.0000          .0000       .10000E+07
     7 'norm      '    .56288E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    57.864       1.0000          .0000       .10000E+07
     9 'Prefactor '    27.839       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.7558       1.0000          .0000       .10000E+07
    11 'norm      '    .34034E-06   1.0000          .0000       .10000E+07
    12 'norm      '    185.43       1.0000          .0000       .10000E+07
    13 'Prefactor '    .13941E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    24.038       1.0000          .0000       .10000E+07
    15 'Prefactor '    9.5908       1.0000          .0000       .10000E+07
    16 'norm      '    1.1746       1.0000          .0000       .10000E+07
    17 'Normalizat'    .94631       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .80710       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9493.016     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1564 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.859        10.460       -.11984E-05   -.47743E-02
   2  norm          51.082        14.144        .58651E-06    .63563E-01
   3  norm          .78539        .49258       -.19153E-06    .24620E-02
   4  Prefactor     15.956        6.9368       -.67637E-06    .26899E-02
   5  Prefactor      .0000        3.3963        .12524E-05** at limit **
   6  norm          10.413        2.2352        .11042E-06   -.23799E-02
   7  norm           .0000        2.2836        .27102E-06** at limit **
   8  Prefactor     57.918        9.2586       -.88839E-06    .19951    
   9  Prefactor     27.839        17.009        .43067E-06    .10525E-01
  10  Prefactor     9.7654        3.1816       -.47099E-06    .11885E-01
  11  norm          .55511E-10    4.1730        .15328E-05** at limit **
  12  norm          185.45        1.0493       -.18513E-07    .13477E-01
  13  Prefactor     .32842E-05    334.73        .20709E-04** at limit **
  14  Prefactor     24.060        10.143        .78903E-06    .14805    
  15  Prefactor     9.5615        24.908        .44912E-05   -.69942E-02
  16  norm          1.1751        1.2632        .29680E-06   -.20982E-02
  17  Normalizat    .94638        .19308       -.12369E-04   -.11625E-03
  18  Prefactor     .80700        .12034        .89353E-05   -.23562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8592
  norm       = 51.0817
  norm       = 0.785393
  Prefactor  = 15.9557
  Prefactor  = 0
  norm       = 10.4133
  norm       = 0
  Prefactor  = 57.9176
  Prefactor  = 27.8393
  Prefactor  = 9.76543
  norm       = 5.55112e-11
  norm       = 185.446
  Prefactor  = 3.28415e-06
  Prefactor  = 24.0599
  Prefactor  = 9.56151
  norm       = 1.17512
  Normalizat = 0.946384
  Prefactor  = 0.807004
 **********
 **   18 **HESSE 
 **********

 FCN=   9493.016     FROM HESSE     STATUS=OK           284 CALLS     1848 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.859        10.476        .29066E-03   -1.5639    
   2  norm          51.082        14.291        .13993E-03   -1.5565    
   3  norm          .78539        .49325        .54034E-04   -1.5690    
   4  Prefactor     15.956        6.9319        .25047E-03   -1.5628    
   5  Prefactor      .0000        3.4014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.413        2.2618        .31025E-03   -1.5643    
   7  norm           .0000        2.2857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     57.918        40.592        .13147E-03   -1.5556    
   9  Prefactor     27.839        17.191        .18956E-03   -1.5602    
  10  Prefactor     9.7654        37.639        .32059E-03   -1.5645    
  11  norm          .55511E-10    4.1757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          185.45        105.05        .73443E-04   -1.5436    
  13  Prefactor     .32842E-05    324.61        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.060        23.199        .20401E-03   -1.5610    
  15  Prefactor     9.5615        28.453        .32335E-03   -1.5646    
  16  norm          1.1751        1.3084        .10568E-03   -1.5686    
  17  Normalizat    .94638        .17148        .68649E-01   -.94849    
  18  Prefactor     .80700        .10380        .43810E-01   -.99471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74314e-06
Minuit parameter uncertainties:
  1  10.4757
  2  14.2911
  3  0.493254
  4  6.93188
  5  1.77149e-05
  6  2.26177
  7  6.41306e-06
  8  40.5924
  9  17.1908
  10  37.6396
  11  2.41547e-05
  12  105.048
  13  0.0653054
  14  23.1993
  15  28.4537
  16  1.3084
  17  0.171577
  18  0.103821
Done.

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

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  5.792e+01  4.059e+01  0.000e+00  1.000e+06 ( 1.000e-13)
260        Index:  2.622e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.070e-01  1.038e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  9.464e-01  1.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 116.628 27.515
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 6.43e-08 +/- 4.50e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.16e-05

TS (Fixed Index): 3.21
Ra Dec: 116.628 27.515
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/579591/likelihoodResults_698025601_698630401_4FGL_J0746.5+2730_weekly_bin759.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) = 9492.73797761
delta logL = 0.277592499613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9492.71678622
delta logL = 0.298783889482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.045       1.0000          .0000       .10000E+07
     2 'Index     '    3.4831       1.0000          .0000       10.000    
     3 'Normalizat'    .89663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83081       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+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=   9492.717     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      306 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.892        394.91        .79945E-05    .91581E-03
   2  Index         3.4873        6.7211        .63318E-02    .60278E-04
   3  Normalizat    .89647        .20606        .31098E-03    .14616E-03
   4  Prefactor     .83098        .13276        .20631E-03    .38536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.892
  Index      = 3.48727
  Normalizat = 0.896475
  Prefactor  = 0.830984
 **********
 **   18 **HESSE 
 **********

 FCN=   9492.717     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.892        56.188        .31978E-06   -1.5608    
   2  Index         3.4873        1.4995        .25327E-03   -.30736    
   3  Normalizat    .89647        .19697        .12439E-04   -.96584    
   4  Prefactor     .83098        .12305        .41262E-04   -.98596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94076e-11
Minuit parameter uncertainties:
  1  56.189
  2  1.52536
  3  0.197133
  4  0.123086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579591': 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) = 9492.71678139
delta logL = 0.298788713046

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  2.489e+01  5.619e+01  0.000e+00  1.000e+06 ( 1.000e-13)
260        Index:  3.487e+00  1.525e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.310e-01  1.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.965e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.01
Ra Dec: 116.628 27.515
Photon Index (Free Index): 3.49 +/- 1.53
Photon Flux (Free Index): 1.00e-07 +/- 6.46e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.05e-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/579591/cmap_HighResolution_698025601_698630401_4FGL_J0746.5+2730_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='6.43e-08', energy_flux2='1.67e-05', photon_flux_error='4.50e-08', dlogl='2.99e-01', energy_flux='1.65e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2023-02-21 03:07:53.771525', photon_index_error2='1.53', photon_index2='3.49', ts='3.21', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.05e-05', EG='0.95', time_epoch_completed='1676977673.77', return_code='0', job_id='579591', GAL2='0.83', EG2='0.90', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='6.46e-08', ts2='4.01', photon_index='2.62' WHERE bin_id='759' AND source_name='4FGL J0746.5+2730' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:07:53 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 579591: <4FGL_J0746.5+2730_weekly_bin759> in cluster <slac> Done

Job <4FGL_J0746.5+2730_weekly_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 02:55:21 2023
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 02:55:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 02:55:22 2023
Terminated at Tue Feb 21 03:07:54 2023
Results reported at Tue Feb 21 03:07:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.5+2730_weekly_bin759 116.628 27.5153 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0746.5+2730 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             341.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

