/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 17 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1729.0+6103_daily_bin974
RA = 262.265, Dec = 61.06
tmin = 491788801, tmax = 492048001
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='777104', job_status='RUN', time_executed='2021-09-17 14:45:43.682120', time_epoch_executed='1631915143.68' WHERE source_name='4FGL J1729.0+6103' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/777104

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/777104/ft1_4FGL_J1729.0+6103_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/777104/ft2_4FGL_J1729.0+6103_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/777104/ft1_4FGL_J1729.0+6103_daily_bin974.fits outfile=/scratch/kocevski/777104/ft1_filteredMKT_4FGL_J1729.0+6103_daily_bin974.fits ra=262.265 dec=61.06 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.28
user 4.04
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/777104/ft2_4FGL_J1729.0+6103_daily_bin974.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/777104/ft1_filteredMKT_4FGL_J1729.0+6103_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/777104/ft1_filtered_4FGL_J1729.0+6103_daily_bin974.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/777104/ft1_filtered_4FGL_J1729.0+6103_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/777104/ft2_4FGL_J1729.0+6103_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/777104/ltcube_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.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/777104/ft2_4FGL_J1729.0+6103_daily_bin974.fits
.....................!
real 11.95
user 11.62
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/777104/ft1_filtered_4FGL_J1729.0+6103_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/777104/ft2_4FGL_J1729.0+6103_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/777104/ltcube_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.fits outfile=/scratch/kocevski/777104/expmap_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.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/777104/ltcube_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.fits
.....................!
real 193.01
user 188.12
sys 4.31

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/777104/ft1_filtered_4FGL_J1729.0+6103_daily_bin974.fits scfile=/scratch/kocevski/777104/ft2_4FGL_J1729.0+6103_daily_bin974.fits outfile=/scratch/kocevski/777104/cmap_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/777104/ft1_filtered_4FGL_J1729.0+6103_daily_bin974.fits scfile=/scratch/kocevski/777104/ft2_4FGL_J1729.0+6103_daily_bin974.fits outfile=/scratch/kocevski/777104/cmap_HighResolution_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/777104/ft1_filtered_4FGL_J1729.0+6103_daily_bin974.fits', '/scratch/kocevski/777104/ft2_4FGL_J1729.0+6103_daily_bin974.fits', expMap='/scratch/kocevski/777104/expmap_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.fits', expCube='/scratch/kocevski/777104/ltcube_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/777104/Model_4FGL_J1729.0+6103_daily_bin974.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  1.000e-04  1.000e+04 ( 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/777104/ft1_filtered_4FGL_J1729.0+6103_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/777104/ft2_4FGL_J1729.0+6103_daily_bin974.fits
Exposure map: /scratch/kocevski/777104/expmap_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.fits
Exposure cube: /scratch/kocevski/777104/ltcube_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/777104/Model_4FGL_J1729.0+6103_daily_bin974.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) = 1204.19246845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.908       1.0000         .10000E-03   10000.    
     2 'norm      '    29.651       1.0000         .10000E-03   10000.    
     3 'Prefactor '    156.80       1.0000         .10000E-03   10000.    
     4 'norm      '    73.943       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.780       1.0000         .10000E-03   10000.    
     6 'Prefactor '    209.21       1.0000         .10000E-03   10000.    
     7 'norm      '    33.571       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.851       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20114E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.544       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23190E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23279E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3659       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.545       1.0000         .10000E-03   10000.    
    17 'norm      '    .10245E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.123       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .37604E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13176E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .84273       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12656E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    58.139       1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.726       1.0000         .10000E-03   10000.    
    25 'norm      '    8.8857       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.649       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .98447E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    65.395       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .17805E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    54.169       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .14345E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    449.84       1.0000         .10000E-03   10000.    
    34 'norm      '    1.1695       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .25837       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .71059       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=   1203.037     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     4077 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     109.29        243.20       -.21066E-03    .10757E-01
   2  norm          29.289        29.276        .67753E-05   -.53337E-03
   3  Prefactor     163.25        121.87        .20643E-04    .29067E-01
   4  norm          73.964        67.548        .10086E-03   -.44739E-02
   5  Prefactor     30.819        26.270        .17052E-05    .34743E-03
   6  Prefactor     201.62        118.93        .35142E-04    .30371E-01
   7  norm          34.612        33.432        .59529E-05    .37965E-03
   8  Prefactor     35.837        26.127        .71871E-05    .10034E-03
   9  Prefactor     .10000E-03    18.280        .17131E-05** at limit **
  10  norm          .10000E-03    1.3332       -.19275E-05** at limit **
  11  Prefactor     22.048        21.744       -.51018E-05   -.12782E-04
  12  Prefactor     .10000E-03    40.319        .33364E-04** at limit **
  13  Prefactor     .10000E-03    7.0370        .88099E-05** at limit **
  14  Prefactor     .10000E-03    13.240       -.51438E-05** at limit **
  15  Prefactor     7.3849        9.7692        .14204E-05    .16217E-04
  16  Prefactor     39.309        146.52        .17062E-04    .28804E-02
  17  norm          .10000E-03    11.684       -.55341E-05** at limit **
  18  Prefactor     15.342        15.120        .10494E-06    .14104E-03
  19  Prefactor     .10000E-03    115.59        .41146E-04** at limit **
  20  Prefactor     .10000E-03    102.77       -.97993E-05** at limit **
  21  norm          .89654        8.6076        .23639E-05    .48956E-04
  22  Prefactor     .10000E-03    55.918        .51381E-05** at limit **
  23  Prefactor     55.903        35.337        .21213E-05    .46277E-03
  24  Prefactor     42.352        53.978        .16228E-04    .44846E-03
  25  norm          8.9510        9.0247       -.12861E-05    .44121E-04
  26  Prefactor     30.938        61.118       -.19340E-04    .40426E-03
  27  Prefactor     .10000E-03    128.71       -.52429E-04** at limit **
  28  Prefactor     .10000E-03    3.8001        .60024E-06** at limit **
  29  norm          66.510        34.201       -.10728E-04    .20627E-03
  30  Prefactor     .10000E-03    47.238        .12354E-04** at limit **
  31  Prefactor     55.165        52.965       -.11396E-07    .24002E-03
  32  Prefactor     .10000E-03    13.101       -.66690E-05** at limit **
  33  Prefactor     546.85        380.81       -.23250E-03   -.43083E-02
  34  norm          .10001E-03    76.757       -.19328E-04** at limit **
  35  Normalizat    .24597        .57238        .93621E-04    .21257E-04
  36  Prefactor     .70579        .38680       -.19325E-04    .36527E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 109.29
  norm       = 29.2888
  Prefactor  = 163.254
  norm       = 73.9637
  Prefactor  = 30.8194
  Prefactor  = 201.624
  norm       = 34.6123
  Prefactor  = 35.8373
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.0479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.38489
  Prefactor  = 39.3086
  norm       = 0.0001
  Prefactor  = 15.3421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.896541
  Prefactor  = 0.0001
  Prefactor  = 55.9025
  Prefactor  = 42.3523
  norm       = 8.95101
  Prefactor  = 30.9378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 66.5097
  Prefactor  = 0.0001
  Prefactor  = 55.1646
  Prefactor  = 0.0001
  Prefactor  = 546.852
  norm       = 0.000100009
  Normalizat = 0.245971
  Prefactor  = 0.705788
 **********
 **   18 **HESSE 
 **********

 FCN=   1203.037     FROM HESSE     STATUS=OK           887 CALLS     4964 TOTAL
                     EDM=   .67E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     109.29        334.85        .10208E-02   -1.3613    
   2  norm          29.289        29.698        .18395E-02   -1.4625    
   3  Prefactor     163.25        164.60        .80492E-03   -1.3146    
   4  norm          73.964        67.670        .11673E-02   -1.3986    
   5  Prefactor     30.819        33.930        .18055E-02   -1.4597    
   6  Prefactor     201.62        177.95        .69871E-03   -1.2858    
   7  norm          34.612        39.089        .17290E-02   -1.4531    
   8  Prefactor     35.837        26.136        .16733E-02   -1.4510    
   9  Prefactor     .10000E-03    18.247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3099        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.048        23.556        .21574E-02   -1.4769    
  12  Prefactor     .10000E-03    40.225        .91384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0396        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3849        9.7370        .36945E-02   -1.5164    
  16  Prefactor     39.309        164.38        .19815E-02   -1.4453    
  17  norm          .10000E-03    11.728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.342        16.558        .25748E-02   -1.4924    
  19  Prefactor     .10000E-03    114.96        .10646E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    103.17        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .89654        9.5032        .12598E-01   -1.5519    
  22  Prefactor     .10000E-03    55.808        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     55.903        37.726        .13154E-02   -1.4211    
  24  Prefactor     42.352        56.982        .15333E-02   -1.4405    
  25  norm          8.9510        9.2618        .33615E-02   -1.5110    
  26  Prefactor     30.938        62.016        .19775E-02   -1.4595    
  27  Prefactor     .10000E-03    128.06        .10386E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.7950        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          66.510        34.466        .12407E-02   -1.4075    
  30  Prefactor     .10000E-03    47.258        .10165E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     55.165        53.652        .13625E-02   -1.4221    
  32  Prefactor     .10000E-03    13.024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     546.85        442.72        .48246E-03   -1.0987    
  34  norm          .10001E-03    12.020        .68871E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .24597        1.4860        .11643       -1.2622    
  36  Prefactor     .70579        .63262        .42542E-01   -1.0330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67302e-05
Minuit parameter uncertainties:
  1  340.923
  2  29.7133
  3  165.063
  4  67.7403
  5  33.9512
  6  178.429
  7  39.1182
  8  26.1444
  9  3.60622e-06
  10  1.89277e-06
  11  23.5654
  12  5.29273e-05
  13  5.86275e-06
  14  6.05466e-06
  15  9.7391
  16  161.534
  17  4.69482e-06
  18  16.5628
  19  3.80525e-06
  20  0.000226974
  21  5.83866
  22  1.76214e-05
  23  37.7422
  24  57.0555
  25  9.26333
  26  62.1459
  27  1.71927e-05
  28  1.65145e-07
  29  34.476
  30  2.64317e-05
  31  53.6988
  32  9.51569e-06
  33  445.566
  34  0.000661576
  35  1.23253
  36  0.639238
Done.

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

Extracting fit parameters...

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  3.931e+01  1.615e+02  1.000e-04  1.000e+04 ( 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:  7.058e-01  6.392e-01  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:  2.460e-01  1.233e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 262.265 61.060
Photon Flux Upper Limit: 2.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/777104/likelihoodResults_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.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) = 1202.94200186
delta logL = 0.0951916184345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1202.93704379
delta logL = 0.100149688004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    153.01       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6046       1.0000          .0000       10.000    
     3 'Normalizat'    .28547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67005       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=   1202.937     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      299 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     153.02        330.34        .32587E-04   -.41271E-04
   2  Index         1.6045        1.1468        .90457E-02   -.40150E-04
   3  Normalizat    .28567        .47399        .47775E-03   -.23850E-04
   4  Prefactor     .66993        .36349        .23535E-03   -.31314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 153.017
  Index      = 1.6045
  Normalizat = 0.285675
  Prefactor  = 0.669928
 **********
 **   18 **HESSE 
 **********

 FCN=   1202.937     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     153.02        329.71        .65175E-05   -1.3228    
   2  Index         1.6045        1.1446        .36183E-03   -.74654    
   3  Normalizat    .28567        .47358        .19110E-04   -1.2370    
   4  Prefactor     .66993        .36320        .94141E-05   -1.0472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77775e-10
Minuit parameter uncertainties:
  1  333.805
  2  1.16405
  3  0.48045
  4  0.364491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/777104': 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) = 1202.93704369
delta logL = 0.100149789935

Extracting fit parameters...

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  1.530e+02  3.338e+02  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  1.604e+00  1.164e+00  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:  6.699e-01  3.645e-01  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:  2.857e-01  4.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 262.265 61.060

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/777104/cmap_HighResolution_491788801_492048001_4FGL_J1729.0+6103_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-02', job_status='DONE', photon_flux_upper_limit='2.51e-07', time_completed='2021-09-17 14:54:08.505754', job_id='777104', GAL2='0.67', fit_tolerance='1e-08', EG2='0.29', EG='0.25', time_epoch_completed='1631915648.51', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.00e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='974' AND source_name='4FGL J1729.0+6103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 14:54:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 777104: <4FGL_J1729.0+6103_daily_bin974> in cluster <slac> Done

Job <4FGL_J1729.0+6103_daily_bin974> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 17 14:45:16 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 14:45:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 14:45:18 2021
Terminated at Fri Sep 17 14:54:09 2021
Results reported at Fri Sep 17 14:54:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1729.0+6103_daily_bin974 262.265 61.06 491788801 492048001 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 :                                   501.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             311.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            533 sec.

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

