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


Performing analysis on: 4FGL_J1729.0+6103_monthly_bin178
RA = 262.265, Dec = 61.06
tmin = 698371201, tmax = 700963201
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='135836', job_status='RUN', time_executed='2023-03-20 05:38:16.497198', time_epoch_executed='1679315896.5' WHERE source_name='4FGL J1729.0+6103' and cadence='monthly' and bin_id='178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135836

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135836/ft1_4FGL_J1729.0+6103_monthly_bin178.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135836/ft1_4FGL_J1729.0+6103_monthly_bin178.fits outfile=/scratch/kocevski/135836/ft1_filteredMKT_4FGL_J1729.0+6103_monthly_bin178.fits ra=262.265 dec=61.06 rad=12.0 tmin=698371201.0 tmax=700963201.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 33.58
user 32.57
sys 0.78

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.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/135836/ft1_filteredMKT_4FGL_J1729.0+6103_monthly_bin178.fits evtable="EVENTS" outfile="/scratch/kocevski/135836/ft1_filtered_4FGL_J1729.0+6103_monthly_bin178.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.85
user 0.67
sys 0.16

Number of photons that the gtmktime cut: 12419

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135836/ft1_filtered_4FGL_J1729.0+6103_monthly_bin178.fits" evtable="EVENTS" scfile=/scratch/kocevski/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.fits sctable="SC_DATA" outfile=/scratch/kocevski/135836/ltcube_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.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/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.fits
.....................!
real 117.06
user 115.38
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135836/ft1_filtered_4FGL_J1729.0+6103_monthly_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.fits sctable="SC_DATA" expcube=/scratch/kocevski/135836/ltcube_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.fits outfile=/scratch/kocevski/135836/expmap_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.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/135836/ltcube_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.fits
.....................!
real 193.36
user 186.78
sys 5.22

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

Setting source of interest to:
4FGL J1729.0+6103 @ 262.265 61.06

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/135836/ft1_filtered_4FGL_J1729.0+6103_monthly_bin178.fits scfile=/scratch/kocevski/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.fits outfile=/scratch/kocevski/135836/cmap_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.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=262.265 yref=61.06 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.79
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135836/ft1_filtered_4FGL_J1729.0+6103_monthly_bin178.fits scfile=/scratch/kocevski/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.fits outfile=/scratch/kocevski/135836/cmap_HighResolution_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.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=262.265 yref=61.06 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.80
user 0.63
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/135836/ft1_filtered_4FGL_J1729.0+6103_monthly_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135836/Model_4FGL_J1729.0+6103_monthly_bin178.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/135836/ft1_filtered_4FGL_J1729.0+6103_monthly_bin178.fits.....................!
real 1045.48
user 1036.65
sys 2.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135836/ft1_filtered_4FGL_J1729.0+6103_monthly_bin178.fits', '/scratch/kocevski/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.fits', expMap='/scratch/kocevski/135836/expmap_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.fits', expCube='/scratch/kocevski/135836/ltcube_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135836/Model_4FGL_J1729.0+6103_monthly_bin178.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1729.0+6103'

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  5.100e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
359        Index:  2.405e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/135836/ft1_filtered_4FGL_J1729.0+6103_monthly_bin178.fits
Spacecraft file(s): /scratch/kocevski/135836/ft2_4FGL_J1729.0+6103_monthly_bin178.fits
Exposure map: /scratch/kocevski/135836/expmap_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.fits
Exposure cube: /scratch/kocevski/135836/ltcube_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135836/Model_4FGL_J1729.0+6103_monthly_bin178.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) = 128914.363082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.123       1.0000          .0000       .10000E+07
     2 'norm      '    .33764E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.7494       1.0000          .0000       .10000E+07
     4 'norm      '    6.3011       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.6162       1.0000          .0000       .10000E+07
     6 'Prefactor '    11.770       1.0000          .0000       .10000E+07
     7 'norm      '    4.2597       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.6698       1.0000          .0000       .10000E+07
     9 'Prefactor '    .81291E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .24972       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15232       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6052       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.5310       1.0000          .0000       .10000E+07
    14 'Prefactor '    .91432E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .65372       1.0000          .0000       .10000E+07
    16 'Prefactor '    14.100       1.0000          .0000       .10000E+07
    17 'norm      '    .31026       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.2395       1.0000          .0000       .10000E+07
    19 'Prefactor '    30.360       1.0000          .0000       .10000E+07
    20 'Prefactor '    .95553E-04   1.0000          .0000       .10000E+07
    21 'norm      '    3.8317       1.0000          .0000       .10000E+07
    22 'Prefactor '    10.085       1.0000          .0000       .10000E+07
    23 'norm      '    4.2636       1.0000          .0000       .10000E+07
    24 'Prefactor '    .58833E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .55701E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .18926       1.0000          .0000       .10000E+07
    27 'norm      '    3.8950       1.0000          .0000       .10000E+07
    28 'Prefactor '    .49664       1.0000          .0000       .10000E+07
    29 'Prefactor '    7.4458       1.0000          .0000       .10000E+07
    30 'Prefactor '    .21254E-03   1.0000          .0000       .10000E+07
    31 'norm      '    .52619       1.0000          .0000       .10000E+07
    32 'Normalizat'    .99993       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0287       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   128914.1     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2663 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.714        10.520        .10795E-06   -.98261E-02
   2  norm           .0000        2.8573        .52402E-06** at limit **
   3  Prefactor     5.7495        4.8233        .19273E-07    .16556E-02
   4  norm          6.2969        3.9586       -.34887E-07   -.56788E-03
   5  Prefactor     4.6156        1.6449        .52053E-07    .48321E-02
   6  Prefactor     11.772        6.7918       -.30788E-06    .55575E-03
   7  norm          4.2600        1.7124        .22746E-07    .40785E-02
   8  Prefactor     2.6709        1.8227       -.60080E-07   -.17005E-02
   9  Prefactor      .0000        .73390       -.52391E-07** at limit **
  10  norm          .24980        .15499        .14948E-07** at limit **
  11  Prefactor     .14846        2.3511       -.81376E-07** at limit **
  12  Prefactor     6.6111        2.8642       -.11843E-07    .32968E-02
  13  Prefactor     1.5273        1.1995        .94671E-07   -.43281E-02
  14  Prefactor      .0000        1.5623        .67798E-07** at limit **
  15  Prefactor     .65393        .51791        .12887E-06    .74470E-02
  16  Prefactor     14.204        11.401       -.90469E-06   -.15405E-02
  17  norm          .30911        .96097        .17426E-06    .33887E-03
  18  Prefactor     1.2375        1.0177        .35613E-07    .28016E-02
  19  Prefactor     30.395        1.6372        .69143E-07    .38488E-02
  20  Prefactor     .79381E-08    8.4764        .28189E-06** at limit **
  21  norm          3.8315        .61951       -.61401E-08    .33638E-02
  22  Prefactor     10.067        3.6400       -.11763E-07   -.13860E-03
  23  norm          4.2634        .99812       -.18860E-07    .11032E-02
  24  Prefactor     .33862E-08    145.26        .82801E-05** at limit **
  25  Prefactor      .0000        5.0025        .36753E-06** at limit **
  26  Prefactor     .19038        1.9827       -.30462E-07** at limit **
  27  norm          3.8948        1.4841        .51000E-07    .25640E-02
  28  Prefactor     .49161        5.5202        .70351E-09   -.14503E-02
  29  Prefactor     7.4481        4.2650       -.48336E-07   -.16785E-02
  30  Prefactor     .40523E-08    9.0997        .11434E-06** at limit **
  31  norm          .52657        .59465        .13170E-06   -.98825E-02
  32  Normalizat    1.0000        .57217E-01    .25928E-05    .18430E-03
  33  Prefactor     1.0287        .41992E-01   -.27066E-05   -.97222E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.714
  norm       = 0
  Prefactor  = 5.74951
  norm       = 6.29685
  Prefactor  = 4.61561
  Prefactor  = 11.7721
  norm       = 4.26
  Prefactor  = 2.67089
  Prefactor  = 0
  norm       = 0.249797
  Prefactor  = 0.148463
  Prefactor  = 6.61109
  Prefactor  = 1.52732
  Prefactor  = 0
  Prefactor  = 0.653933
  Prefactor  = 14.2045
  norm       = 0.30911
  Prefactor  = 1.23751
  Prefactor  = 30.3954
  Prefactor  = 7.93809e-09
  norm       = 3.83148
  Prefactor  = 10.0667
  norm       = 4.26337
  Prefactor  = 3.38618e-09
  Prefactor  = 0
  Prefactor  = 0.190378
  norm       = 3.89478
  Prefactor  = 0.491613
  Prefactor  = 7.44806
  Prefactor  = 4.05231e-09
  norm       = 0.526566
  Normalizat = 1
  Prefactor  = 1.02868
 **********
 **   18 **HESSE 
 **********

 FCN=   128914.1     FROM HESSE     STATUS=OK           815 CALLS     3478 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.714        16.077        .23499E-03   -1.5624    
   2  norm           .0000        .33096        .69544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7495        4.8642        .41865E-03   -1.5660    
   4  norm          6.2969        3.9634        .39964E-03   -1.5658    
   5  Prefactor     4.6156        1.6365        .46822E-03   -1.5665    
   6  Prefactor     11.772        6.8730        .29175E-03   -1.5639    
   7  norm          4.2600        1.7204        .48794E-03   -1.5667    
   8  Prefactor     2.6709        1.8311        .62347E-03   -1.5675    
   9  Prefactor      .0000        .73447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .24980        .15909        .23848E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14846        .37520        .89503E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6111        2.9316        .39022E-03   -1.5657    
  13  Prefactor     1.5273        1.2322        .86222E-03   -1.5683    
  14  Prefactor      .0000        1.5359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .65393        .51955        .64547E-04   -1.5692    
  16  Prefactor     14.204        11.777        .26649E-03   -1.5633    
  17  norm          .30911        .55227        .59570E-02   -1.5697    
  18  Prefactor     1.2375        1.0916        .10071E-02   -1.5686    
  19  Prefactor     30.395        11.777        .18152E-03   -1.5598    
  20  Prefactor     .79381E-08    11.282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.8315        .62344        .51535E-03   -1.5669    
  22  Prefactor     10.067        3.6366        .31528E-03   -1.5645    
  23  norm          4.2634        1.0109        .48771E-03   -1.5667    
  24  Prefactor     .33862E-08    .77444        .11147E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        5.0169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .19038        .37218        .83825E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.8948        1.4872        .51100E-03   -1.5668    
  28  Prefactor     .49161        1.1785        .98805E-02   -1.5694    
  29  Prefactor     7.4481        4.3348        .36731E-03   -1.5653    
  30  Prefactor     .40523E-08    11.030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .52657        .59990        .76117E-04   -1.5693    
  32  Normalizat    1.0000        .49774E-01    .69002E-01   -.93030    
  33  Prefactor     1.0287        .35672E-01    .41360E-01   -.91779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19254e-07
Minuit parameter uncertainties:
  1  16.0766
  2  4.83678e-06
  3  4.86418
  4  3.96345
  5  1.63645
  6  6.87298
  7  1.72044
  8  1.83114
  9  7.3283e-06
  10  0.159086
  11  0.3752
  12  2.93163
  13  1.23222
  14  4.25045e-06
  15  0.519552
  16  11.7771
  17  0.552273
  18  1.09161
  19  11.7774
  20  0.00059845
  21  0.623435
  22  3.63663
  23  1.01091
  24  0.000102407
  25  3.99031e-06
  26  0.372181
  27  1.48725
  28  1.17854
  29  4.33483
  30  0.000423145
  31  0.599897
  32  0.0497761
  33  0.0356726
Done.

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

Extracting fit parameters...

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  1.420e+01  1.178e+01  0.000e+00  1.000e+06 ( 1.000e-14)
359        Index:  2.405e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.029e+00  3.567e-02  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.000e+00  4.978e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 262.265 61.060
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.57e-09 +/- 6.27e-09
Energy Flux (Fixed Index): 2.47e-06 +/- 2.04e-06

TS (Fixed Index): 2.45
Ra Dec: 262.265 61.060
Photon Flux Upper Limit: 1.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135836/likelihoodResults_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.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) = 128914.089721
delta logL = 0.0449949009926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 128914.068615
delta logL = 0.0661010571348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.019       1.0000          .0000       .10000E+07
     2 'Index     '    2.2091       1.0000          .0000       10.000    
     3 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0278       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   128914.1     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      269 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.020        14.438        .97003E-05    .97510E-03
   2  Index         2.2092        .52997        .46868E-02    .27416E-03
   3  Normalizat    1.0020        .53811E-01    .30497E-03    .19719E-02
   4  Prefactor     1.0278        .41038E-01    .22967E-03    .35599E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0204
  Index      = 2.20921
  Normalizat = 1.00202
  Prefactor  = 1.02778
 **********
 **   18 **HESSE 
 **********

 FCN=   128914.1     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.020        14.241        .38801E-06   -1.5625    
   2  Index         2.2092        .52249        .18747E-03   -.59216    
   3  Normalizat    1.0020        .53845E-01    .12199E-04   -.92963    
   4  Prefactor     1.0278        .41070E-01    .45934E-04   -.91809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58293e-09
Minuit parameter uncertainties:
  1  14.2413
  2  0.523878
  3  0.0538481
  4  0.0410717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135836': 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) = 128914.068614
delta logL = 0.0661010959302

Extracting fit parameters...

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  1.702e+01  1.424e+01  0.000e+00  1.000e+06 ( 1.000e-14)
359        Index:  2.209e+00  5.239e-01  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.028e+00  4.107e-02  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.002e+00  5.385e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 262.265 61.060
Photon Index (Free Index): 2.21 +/- 0.52
Photon Flux (Free Index): 6.15e-09 +/- 6.29e-09
Energy Flux (Free Index): 2.71e-06 +/- 2.22e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/135836/cmap_HighResolution_698371201_700963201_4FGL_J1729.0+6103_monthly_bin178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-03', comment='SUCCESS', photon_flux='7.57e-09', energy_flux2='2.71e-06', photon_flux_error='6.27e-09', dlogl='6.61e-02', energy_flux='2.47e-06', photon_flux2='6.15e-09', job_status='DONE', time_completed='2023-03-20 08:52:05.972045', photon_index_error2='0.52', photon_index2='2.21', ts='2.45', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.93e-08', energy_flux_error2='2.22e-06', EG='1.00', time_epoch_completed='1679327525.97', return_code='0', job_id='135836', GAL2='1.03', EG2='1.00', return_code2='0', energy_flux_error='2.04e-06', photon_flux_error2='6.29e-09', ts2='2.58', photon_index='2.41' WHERE bin_id='178' AND source_name='4FGL J1729.0+6103' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Mar 20 08:52:06 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 135836: <4FGL_J1729.0+6103_monthly_bin178> in cluster <slac> Done

Job <4FGL_J1729.0+6103_monthly_bin178> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 20 05:35:23 2023
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 05:35:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 05:35:24 2023
Terminated at Mon Mar 20 08:52:07 2023
Results reported at Mon Mar 20 08:52:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1729.0+6103_monthly_bin178 262.265 61.06 698371201 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1729.0+6103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11570.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             494.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11802 sec.
    Turnaround time :                            11804 sec.

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

