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


Performing analysis on: 4FGL_J1049.8+1429_weekly_bin752
RA = 162.467, Dec = 14.4835
tmin = 693792001, tmax = 694396801
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='436554', job_status='RUN', time_executed='2023-01-03 01:39:00.514223', time_epoch_executed='1672738740.51' WHERE source_name='4FGL J1049.8+1429' and cadence='weekly' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436554

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436554/ft1_4FGL_J1049.8+1429_weekly_bin752.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436554/ft1_4FGL_J1049.8+1429_weekly_bin752.fits outfile=/scratch/kocevski/436554/ft1_filteredMKT_4FGL_J1049.8+1429_weekly_bin752.fits ra=162.467 dec=14.4835 rad=12.0 tmin=693792001.0 tmax=694396801.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.63
user 8.22
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.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/436554/ft1_filteredMKT_4FGL_J1049.8+1429_weekly_bin752.fits evtable="EVENTS" outfile="/scratch/kocevski/436554/ft1_filtered_4FGL_J1049.8+1429_weekly_bin752.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.60
user 0.39
sys 0.19

Number of photons that the gtmktime cut: 839

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436554/ft1_filtered_4FGL_J1049.8+1429_weekly_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/436554/ltcube_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.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/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.fits
.....................!
real 32.92
user 32.24
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436554/ft1_filtered_4FGL_J1049.8+1429_weekly_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/436554/ltcube_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.fits outfile=/scratch/kocevski/436554/expmap_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.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/436554/ltcube_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.fits
.....................!
real 192.31
user 186.84
sys 5.01

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J1049.8+1429 @ 162.467 14.4835

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/436554/ft1_filtered_4FGL_J1049.8+1429_weekly_bin752.fits scfile=/scratch/kocevski/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.fits outfile=/scratch/kocevski/436554/cmap_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.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=162.467 yref=14.4835 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436554/ft1_filtered_4FGL_J1049.8+1429_weekly_bin752.fits scfile=/scratch/kocevski/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.fits outfile=/scratch/kocevski/436554/cmap_HighResolution_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.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=162.467 yref=14.4835 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.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436554/ft1_filtered_4FGL_J1049.8+1429_weekly_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436554/Model_4FGL_J1049.8+1429_weekly_bin752.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/436554/ft1_filtered_4FGL_J1049.8+1429_weekly_bin752.fits.....................!
real 80.25
user 78.75
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/436554/ft1_filtered_4FGL_J1049.8+1429_weekly_bin752.fits', '/scratch/kocevski/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.fits', expMap='/scratch/kocevski/436554/expmap_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.fits', expCube='/scratch/kocevski/436554/ltcube_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/436554/Model_4FGL_J1049.8+1429_weekly_bin752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1049.8+1429'

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.091e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/436554/ft1_filtered_4FGL_J1049.8+1429_weekly_bin752.fits
Spacecraft file(s): /scratch/kocevski/436554/ft2_4FGL_J1049.8+1429_weekly_bin752.fits
Exposure map: /scratch/kocevski/436554/expmap_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.fits
Exposure cube: /scratch/kocevski/436554/ltcube_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/436554/Model_4FGL_J1049.8+1429_weekly_bin752.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) = 9216.03640232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76510       1.0000          .0000       .10000E+07
     2 'Prefactor '    20.464       1.0000          .0000       .10000E+07
     3 'Prefactor '    20.632       1.0000          .0000       .10000E+07
     4 'Prefactor '    .49213       1.0000          .0000       .10000E+07
     5 'Prefactor '    .53068E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.3064       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3580       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.3673       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.0430       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.8861       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.934       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.2931       1.0000          .0000       .10000E+07
    13 'norm      '    .15354E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    17.026       1.0000          .0000       .10000E+07
    15 'Prefactor '    .34053E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .16764E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .52497E-06   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3373       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80775       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9216.001     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1510 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15543E-08    162.59        .17888E-04** at limit **
   2  Prefactor     21.401        28.926       -.14378E-06    .33128E-06
   3  Prefactor     23.790        51.092       -.45201E-05    .81620E-03
   4  Prefactor     .66613E-09    145.57       -.13035E-04** at limit **
   5  Prefactor      .0000        3.6977       -.63900E-07** at limit **
   6  Prefactor     2.3101        1.8728       -.17752E-06   -.20209E-03
   7  Prefactor     1.3602        1.6839       -.16970E-06   -.56921E-04
   8  Prefactor     6.3597        4.7884       -.64513E-06   -.93254E-03
   9  Prefactor     6.9693        5.7772        .22222E-07    .12375E-04
  10  Prefactor     4.8759        10.526        .20592E-05   -.76572E-04
  11  Prefactor     15.769        10.790       -.74201E-06   -.16593E-02
  12  Prefactor     8.3289        15.141       -.22611E-05   -.66586E-03
  13  norm           .0000        .41287       -.91392E-07** at limit **
  14  Prefactor     17.009        15.065       -.81858E-06   -.40671E-03
  15  Prefactor      .0000        3.2052       -.83265E-06** at limit **
  16  norm           .0000        6.8558        .13051E-05** at limit **
  17  Prefactor      .0000        4.1236       -.78355E-06** at limit **
  18  Normalizat    1.3374        .17542        .43285E-05    .41442E-04
  19  Prefactor     .80743        .16026       -.22871E-05    .27686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55431e-09
  Prefactor  = 21.4006
  Prefactor  = 23.7904
  Prefactor  = 6.66134e-10
  Prefactor  = 0
  Prefactor  = 2.31008
  Prefactor  = 1.36021
  Prefactor  = 6.35973
  Prefactor  = 6.96932
  Prefactor  = 4.87593
  Prefactor  = 15.7694
  Prefactor  = 8.32886
  norm       = 0
  Prefactor  = 17.0093
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Normalizat = 1.33744
  Prefactor  = 0.807427
 **********
 **   18 **HESSE 
 **********

 FCN=   9216.001     FROM HESSE     STATUS=OK           316 CALLS     1826 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15543E-08    161.78        .55573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.401        28.893        .22112E-03   -1.5615    
   3  Prefactor     23.790        62.068        .22022E-03   -1.5610    
   4  Prefactor     .66613E-09    20.077        .12131E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.6733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3101        1.8811        .67537E-03   -1.5678    
   7  Prefactor     1.3602        1.7123        .93727E-03   -1.5685    
   8  Prefactor     6.3597        4.7785        .39753E-03   -1.5658    
   9  Prefactor     6.9693        5.7874        .37777E-03   -1.5655    
  10  Prefactor     4.8759        10.774        .45481E-03   -1.5664    
  11  Prefactor     15.769        10.875        .25064E-03   -1.5629    
  12  Prefactor     8.3289        15.379        .34789E-03   -1.5650    
  13  norm           .0000        .40458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.009        15.075        .24246E-03   -1.5625    
  15  Prefactor      .0000        3.2007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        6.8206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        4.1040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3374        .14950        .51536E-01   -.82456    
  19  Prefactor     .80743        .13767        .43818E-01   -.99455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3747e-08
Minuit parameter uncertainties:
  1  0.0010037
  2  28.8928
  3  62.0698
  4  0.000233972
  5  2.15034e-06
  6  1.88112
  7  1.71227
  8  4.77851
  9  5.7874
  10  10.7744
  11  10.8746
  12  15.3795
  13  8.9423e-08
  14  15.0751
  15  5.53034e-06
  16  2.37492e-05
  17  1.69937e-05
  18  0.149544
  19  0.13773
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  6.360e+00  4.779e+00  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  8.074e-01  1.377e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.337e+00  1.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.48
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 7.51e-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) = 9214.53184886
delta logL = 1.46938211353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9214.36356624
delta logL = 1.63766473694

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9214.364     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9558        2.8228        .59002E-03    .94480E-03
   2  Index         1.4431        .32342        .21669       -.15380E-03
   3  Normalizat    1.3699        .13968        .51013E-01    .40633E-04
   4  Prefactor     .79283        .13492        .62435E-01    .12466E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95579
  Index      = 1.44307
  Normalizat = 1.36985
  Prefactor  = 0.792826
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9558        4.4391        .14655E-04   -1.5674    
   2  Index         1.4431        .58932        .82400E-02   -.79147    
   3  Normalizat    1.3699        .16347        .22553E-03   -.81505    
   4  Prefactor     .79283        .15778        .27616E-03   -.99993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30161e-11
Minuit parameter uncertainties:
  1  4.43913
  2  0.592117
  3  0.163537
  4  0.157873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436554': 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) = 9214.36356579
delta logL = 1.63766518504

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.956e+00  4.439e+00  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  1.443e+00  5.921e-01  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  7.928e-01  1.579e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.370e+00  1.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.74
Ra Dec: 162.467 14.483
Photon Index (Free Index): 1.44 +/- 0.59
Photon Flux (Free Index): 8.01e-09 +/- 1.14e-08
Energy Flux (Free Index): 3.07e-05 +/- 3.90e-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/436554/cmap_HighResolution_693792001_694396801_4FGL_J1049.8+1429_weekly_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='3.07e-05', photon_flux_error='2.84e-08', dlogl='1.64e+00', energy_flux='1.00e-05', photon_flux2='8.01e-09', job_status='DONE', time_completed='2023-01-03 01:50:06.785881', photon_index_error2='0.59', photon_index2='1.44', ts='6.48', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='3.90e-05', EG='1.34', time_epoch_completed='1672739406.79', return_code='0', job_id='436554', GAL2='0.79', EG2='1.37', return_code2='0', energy_flux_error='7.51e-06', photon_flux_error2='1.14e-08', ts2='9.74', photon_index='2.59' WHERE bin_id='752' AND source_name='4FGL J1049.8+1429' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan  3 01:50:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 436554: <4FGL_J1049.8+1429_weekly_bin752> in cluster <slac> Done

Job <4FGL_J1049.8+1429_weekly_bin752> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jan  3 01:35:32 2023
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan  3 01:36:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan  3 01:36:25 2023
Terminated at Tue Jan  3 01:50:07 2023
Results reported at Tue Jan  3 01:50:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_weekly_bin752 162.467 14.4835 693792001 694396801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1049.8+1429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            875 sec.

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

