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 70 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_J1049.8+1429_weekly_bin759
RA = 162.467, Dec = 14.4835
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='587332', job_status='RUN', time_executed='2023-02-21 03:21:56.276245', time_epoch_executed='1676978516.28' WHERE source_name='4FGL J1049.8+1429' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587332

Creating custom pfile directory:
/scratch/kocevski/587332/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/587332/ft1_4FGL_J1049.8+1429_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/587332/ft2_4FGL_J1049.8+1429_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587332/ft1_4FGL_J1049.8+1429_weekly_bin759.fits outfile=/scratch/kocevski/587332/ft1_filteredMKT_4FGL_J1049.8+1429_weekly_bin759.fits ra=162.467 dec=14.4835 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.17
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/587332/ft2_4FGL_J1049.8+1429_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/587332/ft1_filteredMKT_4FGL_J1049.8+1429_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/587332/ft1_filtered_4FGL_J1049.8+1429_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.39
sys 0.14

Number of photons that the gtmktime cut: 435

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587332/ft1_filtered_4FGL_J1049.8+1429_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/587332/ft2_4FGL_J1049.8+1429_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/587332/ltcube_698025601_698630401_4FGL_J1049.8+1429_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/587332/ft2_4FGL_J1049.8+1429_weekly_bin759.fits
.....................!
real 27.98
user 27.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587332/ft1_filtered_4FGL_J1049.8+1429_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/587332/ft2_4FGL_J1049.8+1429_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/587332/ltcube_698025601_698630401_4FGL_J1049.8+1429_weekly_bin759.fits outfile=/scratch/kocevski/587332/expmap_698025601_698630401_4FGL_J1049.8+1429_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/587332/ltcube_698025601_698630401_4FGL_J1049.8+1429_weekly_bin759.fits
.....................!
real 190.26
user 185.83
sys 4.03

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/587332/ft1_filtered_4FGL_J1049.8+1429_weekly_bin759.fits scfile=/scratch/kocevski/587332/ft2_4FGL_J1049.8+1429_weekly_bin759.fits outfile=/scratch/kocevski/587332/cmap_698025601_698630401_4FGL_J1049.8+1429_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=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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587332/ft1_filtered_4FGL_J1049.8+1429_weekly_bin759.fits scfile=/scratch/kocevski/587332/ft2_4FGL_J1049.8+1429_weekly_bin759.fits outfile=/scratch/kocevski/587332/cmap_HighResolution_698025601_698630401_4FGL_J1049.8+1429_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=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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/587332/ft1_filtered_4FGL_J1049.8+1429_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/587332/ft2_4FGL_J1049.8+1429_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/587332/Model_4FGL_J1049.8+1429_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/587332/ft1_filtered_4FGL_J1049.8+1429_weekly_bin759.fits.....................!
real 46.40
user 45.17
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/587332/ft1_filtered_4FGL_J1049.8+1429_weekly_bin759.fits', '/scratch/kocevski/587332/ft2_4FGL_J1049.8+1429_weekly_bin759.fits', expMap='/scratch/kocevski/587332/expmap_698025601_698630401_4FGL_J1049.8+1429_weekly_bin759.fits', expCube='/scratch/kocevski/587332/ltcube_698025601_698630401_4FGL_J1049.8+1429_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/587332/Model_4FGL_J1049.8+1429_weekly_bin759.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/587332/ft1_filtered_4FGL_J1049.8+1429_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/587332/ft2_4FGL_J1049.8+1429_weekly_bin759.fits
Exposure map: /scratch/kocevski/587332/expmap_698025601_698630401_4FGL_J1049.8+1429_weekly_bin759.fits
Exposure cube: /scratch/kocevski/587332/ltcube_698025601_698630401_4FGL_J1049.8+1429_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/587332/Model_4FGL_J1049.8+1429_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) = 4797.03945358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97056E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    11.081       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.880       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12459E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.2463       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.4787       1.0000          .0000       .10000E+07
     7 'Prefactor '    .62506E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    27.595       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.429       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.884       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.664       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57359E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    .49540E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    12.650       1.0000          .0000       .10000E+07
    16 'norm      '    .69500E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.5824       1.0000          .0000       .10000E+07
    18 'Normalizat'    .51969       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3659       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=   4796.960     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1137 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76605E-08    62.257       -.54787E-06** at limit **
   2  Prefactor     11.783        32.722        .38013E-06   -.31833E-02
   3  Prefactor     21.918        78.920       -.20644E-05   -.16190E-02
   4  Prefactor      .0000        15.792       -.16310E-06** at limit **
   5  Prefactor     4.3192        7.3094        .48631E-07   -.44519E-03
   6  Prefactor     4.4545        3.9971        .15560E-07   -.29404E-02
   7  Prefactor      .0000        1.1321       -.20753E-07** at limit **
   8  Prefactor     27.746        9.7604       -.11464E-06   -.58493E-01
   9  Prefactor     17.697        11.247       -.58838E-07    .39981E-01
  10  Prefactor     16.759        7.8656        .30674E-07   -.42787E-01
  11  Prefactor     14.574        5.7961        .18030E-07    .30119E-01
  12  Prefactor     .55511E-10    33.459        .15491E-06** at limit **
  13  norm           .0000        .55928        .62525E-07** at limit **
  14  Prefactor     .55511E-10    13.845       -.71209E-07** at limit **
  15  Prefactor     12.572        7.5911       -.31945E-07    .41546E-01
  16  norm           .0000        3.2481        .44040E-07** at limit **
  17  Prefactor     7.5998        3.7157        .38396E-07   -.13021    
  18  Normalizat    .51942        .23374        .14980E-05    .45960E-04
  19  Prefactor     1.3650        .22910        .52502E-06    .69999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.66054e-09
  Prefactor  = 11.7833
  Prefactor  = 21.9178
  Prefactor  = 0
  Prefactor  = 4.31923
  Prefactor  = 4.4545
  Prefactor  = 0
  Prefactor  = 27.7457
  Prefactor  = 17.6973
  Prefactor  = 16.7593
  Prefactor  = 14.5744
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 12.5719
  norm       = 0
  Prefactor  = 7.59976
  Normalizat = 0.519424
  Prefactor  = 1.36498
 **********
 **   18 **HESSE 
 **********

 FCN=   4796.960     FROM HESSE     STATUS=OK           316 CALLS     1453 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76605E-08    61.548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.783        32.630        .30072E-03   -1.5639    
   3  Prefactor     21.918        78.988        .22435E-03   -1.5614    
   4  Prefactor      .0000        15.682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3192        7.3916        .48873E-03   -1.5666    
   6  Prefactor     4.4545        4.0177        .47553E-03   -1.5666    
   7  Prefactor      .0000        1.1310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.746        10.034        .19040E-03   -1.5603    
   9  Prefactor     17.697        11.437        .23963E-03   -1.5624    
  10  Prefactor     16.759        14.101        .24348E-03   -1.5626    
  11  Prefactor     14.574        16.297        .26130E-03   -1.5632    
  12  Prefactor     .55511E-10    17.045        .79381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .55497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    13.837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.572        7.9441        .28139E-03   -1.5637    
  16  norm           .0000        3.2455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5998        10.316        .36396E-03   -1.5653    
  18  Normalizat    .51942        .20797        .73523E-01   -1.1152    
  19  Prefactor     1.3650        .19975        .48754E-01   -.81395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33109e-07
Minuit parameter uncertainties:
  1  0.00137148
  2  32.6304
  3  78.9918
  4  2.60348e-05
  5  7.39164
  6  4.01775
  7  3.12853e-06
  8  10.0338
  9  11.4367
  10  14.1007
  11  16.297
  12  7.22704e-05
  13  5.23419e-06
  14  4.10756e-05
  15  7.94406
  16  9.40556e-06
  17  10.3159
  18  0.208283
  19  0.199863
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.775e+01  1.003e+01  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:  1.365e+00  1.999e-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:  5.194e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.04
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.65e-07 +/- 5.97e-08
Energy Flux (Fixed Index): 4.36e-05 +/- 1.58e-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) = 4796.92853316
delta logL = 0.0310485565305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4796.92248345
delta logL = 0.0370982724926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.728       1.0000          .0000       .10000E+07
     2 'Index     '    2.4891       1.0000          .0000       10.000    
     3 'Normalizat'    .53061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3563       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4796.922     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      273 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.728        12.910        .73374E-05   -.61022E-02
   2  Index         2.4890        .37821        .44911E-02   -.20536E-03
   3  Normalizat    .53062        .22386        .32226E-03    .47848E-03
   4  Prefactor     1.3563        .22723        .21607E-03    .68476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7284
  Index      = 2.48905
  Normalizat = 0.53062
  Prefactor  = 1.35632
 **********
 **   18 **HESSE 
 **********

 FCN=   4796.922     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.728        12.707        .14675E-05   -1.5599    
   2  Index         2.4890        .37203        .17964E-03   -.52613    
   3  Normalizat    .53062        .22394        .12890E-04   -1.1102    
   4  Prefactor     1.3563        .22729        .43215E-04   -.81647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04353e-09
Minuit parameter uncertainties:
  1  12.7067
  2  0.372491
  3  0.22432
  4  0.227452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587332': 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) = 4796.92248344
delta logL = 0.0370982749146

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.973e+01  1.271e+01  0.000e+00  1.000e+06 ( 1.000e-12)
222        Index:  2.489e+00  3.725e-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:  1.356e+00  2.275e-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:  5.306e-01  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.95
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.49 +/- 0.37
Photon Flux (Free Index): 1.58e-07 +/- 6.40e-08
Energy Flux (Free Index): 4.64e-05 +/- 2.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/587332/cmap_HighResolution_698025601_698630401_4FGL_J1049.8+1429_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.65e-07', energy_flux2='4.64e-05', photon_flux_error='5.97e-08', dlogl='3.71e-02', energy_flux='4.36e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2023-02-21 03:30:06.785491', photon_index_error2='0.37', photon_index2='2.49', ts='17.04', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='0.52', time_epoch_completed='1676979006.79', return_code='0', job_id='587332', GAL2='1.36', EG2='0.53', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='6.40e-08', ts2='16.95', photon_index='2.59' WHERE bin_id='759' AND source_name='4FGL J1049.8+1429' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:30:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 587332: <4FGL_J1049.8+1429_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1049.8+1429_weekly_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 03:20:36 2023
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:20:37 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:20:37 2023
Terminated at Tue Feb 21 03:30:07 2023
Results reported at Tue Feb 21 03:30:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_weekly_bin759 162.467 14.4835 698025601 698630401 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 :                                   488.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            571 sec.

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

