/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 4 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 = 7472
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1729.0+6103_daily_bin567
RA = 262.265, Dec = 61.06
tmin = 386294401, tmax = 386553601
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='773035', job_status='RUN', time_executed='2021-09-17 14:30:44.550551', time_epoch_executed='1631914244.55' WHERE source_name='4FGL J1729.0+6103' and cadence='daily' and bin_id='567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773035/ft1_4FGL_J1729.0+6103_daily_bin567.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773035/ft2_4FGL_J1729.0+6103_daily_bin567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773035/ft1_4FGL_J1729.0+6103_daily_bin567.fits outfile=/scratch/kocevski/773035/ft1_filteredMKT_4FGL_J1729.0+6103_daily_bin567.fits ra=262.265 dec=61.06 rad=12.0 tmin=386294401.0 tmax=386553601.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 3.05
user 2.86
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/773035/ft1_filtered_4FGL_J1729.0+6103_daily_bin567.fits" evtable="EVENTS" scfile=/scratch/kocevski/773035/ft2_4FGL_J1729.0+6103_daily_bin567.fits sctable="SC_DATA" outfile=/scratch/kocevski/773035/ltcube_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.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/773035/ft2_4FGL_J1729.0+6103_daily_bin567.fits
.....................!
real 9.07
user 8.78
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773035/ft1_filtered_4FGL_J1729.0+6103_daily_bin567.fits evtable="EVENTS" scfile=/scratch/kocevski/773035/ft2_4FGL_J1729.0+6103_daily_bin567.fits sctable="SC_DATA" expcube=/scratch/kocevski/773035/ltcube_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.fits outfile=/scratch/kocevski/773035/expmap_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.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/773035/ltcube_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.fits
.....................!
real 143.96
user 140.61
sys 3.10

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/773035/ft1_filtered_4FGL_J1729.0+6103_daily_bin567.fits scfile=/scratch/kocevski/773035/ft2_4FGL_J1729.0+6103_daily_bin567.fits outfile=/scratch/kocevski/773035/cmap_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773035/ft1_filtered_4FGL_J1729.0+6103_daily_bin567.fits scfile=/scratch/kocevski/773035/ft2_4FGL_J1729.0+6103_daily_bin567.fits outfile=/scratch/kocevski/773035/cmap_HighResolution_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.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.45
user 0.30
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/773035/ft1_filtered_4FGL_J1729.0+6103_daily_bin567.fits', '/scratch/kocevski/773035/ft2_4FGL_J1729.0+6103_daily_bin567.fits', expMap='/scratch/kocevski/773035/expmap_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.fits', expCube='/scratch/kocevski/773035/ltcube_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/773035/Model_4FGL_J1729.0+6103_daily_bin567.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/773035/ft1_filtered_4FGL_J1729.0+6103_daily_bin567.fits
Spacecraft file(s): /scratch/kocevski/773035/ft2_4FGL_J1729.0+6103_daily_bin567.fits
Exposure map: /scratch/kocevski/773035/expmap_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.fits
Exposure cube: /scratch/kocevski/773035/ltcube_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/773035/Model_4FGL_J1729.0+6103_daily_bin567.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) = 8136.90401492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.823       1.0000         .10000E-03   10000.    
     2 'norm      '    27.269       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.899       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.145       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9306       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9113       1.0000         .10000E-03   10000.    
    17 'norm      '    .48010       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2720       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21235E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.390       1.0000         .10000E-03   10000.    
    21 'norm      '    5.3216       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.2277       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.9593       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.9311       1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.5795       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    1.7890       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .48192       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.2419       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=   8136.901     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     4552 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.802        3.0733       -.28037E-05    .14110E-02
   2  norm          27.268        1.0531        .13436E-06    .48192E-03
   3  Prefactor     .10000E-03    28.027       -.92951E-05** at limit **
   4  norm          .10000E-03    10.786        .12920E-04** at limit **
   5  Prefactor     .10000E-03    3.2024        .64634E-06** at limit **
   6  Prefactor     .10000E-03    8.5651        .45005E-06** at limit **
   7  norm          3.5515        4.1325       -.84652E-06    .57342E-04
   8  Prefactor     32.904        1.2720       -.39504E-06   -.14886E-04
   9  Prefactor     22.895        1.1601        .92508E-07    .14668E-03
  10  norm          1.4194        .67940        .16127E-06   -.12218E-05
  11  Prefactor     5.4552        5.7593       -.69935E-05   -.21492E-03
  12  Prefactor     .11005E-03    525.50       -.72364E-04** at limit **
  13  Prefactor     .10000E-03    4.5875       -.79012E-06** at limit **
  14  Prefactor     11.143        1.0654        .48449E-06   -.11276E-04
  15  Prefactor     1.9303        2.2609       -.69065E-07   -.13005E-04
  16  Prefactor     5.8093        11.954       -.19121E-04    .29400E-02
  17  norm          .47999        5.1777        .13737E-05   -.73222E-04
  18  Prefactor     4.2679        3.9621        .19162E-06    .28084E-04
  19  Prefactor     .10090E-03    114.65        .47880E-04** at limit **
  20  Prefactor     68.375        2.9274       -.14662E-05    .33792E-02
  21  norm          5.3223        2.4837       -.91796E-07   -.98025E-04
  22  Prefactor     .10000E-03    14.437       -.99506E-05** at limit **
  23  Prefactor     .10000E-03    17.116        .75916E-05** at limit **
  24  Prefactor     .10000E-03    5.3598       -.48037E-06** at limit **
  25  norm          4.2271        3.7514       -.40233E-06    .78474E-05
  26  Prefactor     .10022E-03    32.000        .29857E-04** at limit **
  27  Prefactor     .10000E-03    47.343       -.42339E-04** at limit **
  28  Prefactor     .10000E-03    5.1242        .15113E-05** at limit **
  29  norm          2.9589        1.0416        .81076E-07    .12872E-03
  30  Prefactor     .10000E-03    10.111       -.90631E-05** at limit **
  31  Prefactor     2.8982        3.0574        .29971E-05    .16951E-03
  32  Prefactor     6.5783        1.0121       -.16232E-07    .48736E-04
  33  Prefactor     .10017E-03    17.920       -.77993E-06** at limit **
  34  norm          1.7888        2.2989       -.10411E-06    .11723E-04
  35  Normalizat    .48192        .20565        .44517E-05    .89753E-04
  36  Prefactor     1.2420        .16362       -.32440E-06    .19129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8019
  norm       = 27.2679
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.55149
  Prefactor  = 32.9042
  Prefactor  = 22.895
  norm       = 1.41936
  Prefactor  = 5.45518
  Prefactor  = 0.000110049
  Prefactor  = 0.0001
  Prefactor  = 11.1434
  Prefactor  = 1.93034
  Prefactor  = 5.80929
  norm       = 0.479989
  Prefactor  = 4.26794
  Prefactor  = 0.000100899
  Prefactor  = 68.3746
  norm       = 5.32225
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.22715
  Prefactor  = 0.00010022
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 2.95893
  Prefactor  = 0.0001
  Prefactor  = 2.89825
  Prefactor  = 6.57826
  Prefactor  = 0.000100171
  norm       = 1.78885
  Normalizat = 0.481922
  Prefactor  = 1.24203
 **********
 **   18 **HESSE 
 **********

 FCN=   8136.901     FROM HESSE     STATUS=OK           895 CALLS     5447 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.802        56.630        .23718E-02   -1.4864    
   2  norm          27.268        10.672        .19179E-02   -1.4663    
   3  Prefactor     .10000E-03    28.021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.782        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1689        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.5676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.5515        4.1436        .53615E-02   -1.5331    
   8  Prefactor     32.904        14.640        .17463E-02   -1.4560    
   9  Prefactor     22.895        16.948        .20926E-02   -1.4751    
  10  norm          1.4194        .70146        .90847E-02   -1.5470    
  11  Prefactor     5.4552        5.8286        .43020E-02   -1.5241    
  12  Prefactor     .11005E-03    8.8710        .96894E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5768        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.143        8.8681        .30001E-02   -1.5040    
  15  Prefactor     1.9303        2.2682        .74731E-02   -1.5430    
  16  Prefactor     5.8093        138.12        .41291E-02   -1.5226    
  17  norm          .47999        5.1705        .11189E-01   -1.5569    
  18  Prefactor     4.2679        3.9914        .48732E-02   -1.5295    
  19  Prefactor     .10090E-03    116.03        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     68.375        96.628        .12134E-02   -1.4052    
  21  norm          5.3223        2.4928        .43555E-02   -1.5247    
  22  Prefactor     .10000E-03    14.363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.899        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.3572        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.2271        3.7957        .48994E-02   -1.5297    
  26  Prefactor     .10022E-03    40.987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    55.576        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.0147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.9589        7.9374        .59015E-02   -1.5364    
  30  Prefactor     .10000E-03    10.121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.8982        46.321        .59315E-02   -1.5367    
  32  Prefactor     6.5783        9.1185        .39112E-02   -1.5195    
  33  Prefactor     .10017E-03    46.718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          1.7888        2.3423        .78187E-02   -1.5440    
  35  Normalizat    .48192        .20996        .91017E-01   -1.1326    
  36  Prefactor     1.2420        .15426        .33708E-01   -.85048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15816e-07
Minuit parameter uncertainties:
  1  56.8021
  2  10.6729
  3  0.00062614
  4  5.53933e-05
  5  1.46406e-05
  6  6.20456e-05
  7  4.14398
  8  14.6413
  9  16.9512
  10  0.70146
  11  5.82916
  12  0.0188863
  13  2.26778e-05
  14  8.86911
  15  2.26834
  16  56.8005
  17  3.15076
  18  3.99164
  19  0.0204642
  20  96.8508
  21  2.49286
  22  0.000142667
  23  0.000268181
  24  1.87616e-05
  25  3.79597
  26  0.00601045
  27  0.000931795
  28  3.31106e-05
  29  7.94027
  30  0.000109364
  31  23.1941
  32  9.12042
  33  0.00566009
  34  2.34238
  35  0.210306
  36  0.154313
Done.

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

Extracting fit parameters...

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  5.809e+00  5.680e+01  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:  1.242e+00  1.543e-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:  4.819e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/773035/likelihoodResults_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.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) = 8136.89756036
delta logL = 0.00331592914063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8136.89411426
delta logL = 0.00676203774128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.440       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9883       1.0000          .0000       10.000    
     3 'Normalizat'    .48291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2412       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=   8136.894     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      299 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.642        142.58        .11357E-03    .12613E-04
   2  Index         1.9680        2.6207        .91800E-02    .39016E-04
   3  Normalizat    .48350        .20346        .40264E-03   -.44256E-03
   4  Prefactor     1.2407        .16214        .20579E-03    .73405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6425
  Index      = 1.96802
  Normalizat = 0.483503
  Prefactor  = 1.24066
 **********
 **   18 **HESSE 
 **********

 FCN=   8136.894     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.642        139.13        .45429E-05   -1.4997    
   2  Index         1.9680        2.5943        .36720E-03   -.65152    
   3  Normalizat    .48350        .20349        .16106E-04   -1.1319    
   4  Prefactor     1.2407        .16216        .41158E-04   -.85089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77289e-09
Minuit parameter uncertainties:
  1  84.1294
  2  2.82641
  3  0.203802
  4  0.16223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773035': 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) = 8136.89408412
delta logL = 0.0067921696118

Extracting fit parameters...

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  1.264e+01  8.413e+01  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  1.968e+00  2.826e+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:  1.241e+00  1.622e-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:  4.835e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/773035/cmap_HighResolution_386294401_386553601_4FGL_J1729.0+6103_daily_bin567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-09-17 14:47:08.528787', job_id='773035', GAL2='1.24', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1631915228.53', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='6.79e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='567' AND source_name='4FGL J1729.0+6103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 14:47:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 773035: <4FGL_J1729.0+6103_daily_bin567> in cluster <slac> Done

Job <4FGL_J1729.0+6103_daily_bin567> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 17 14:30:30 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 14:30:31 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:30:31 2021
Terminated at Fri Sep 17 14:47:09 2021
Results reported at Fri Sep 17 14:47:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1729.0+6103_daily_bin567 262.265 61.06 386294401 386553601 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 :                                   977.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

