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


Performing analysis on: 4FGL_J1729.0+6103_daily_bin653
RA = 262.265, Dec = 61.06
tmin = 408585601, tmax = 408844801
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='774312', job_status='RUN', time_executed='2021-09-17 14:37:23.226538', time_epoch_executed='1631914643.23' WHERE source_name='4FGL J1729.0+6103' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774312/ft1_4FGL_J1729.0+6103_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774312/ft2_4FGL_J1729.0+6103_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774312/ft1_4FGL_J1729.0+6103_daily_bin653.fits outfile=/scratch/kocevski/774312/ft1_filteredMKT_4FGL_J1729.0+6103_daily_bin653.fits ra=262.265 dec=61.06 rad=12.0 tmin=408585601.0 tmax=408844801.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.34
user 4.10
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/774312/ft2_4FGL_J1729.0+6103_daily_bin653.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/774312/ft1_filteredMKT_4FGL_J1729.0+6103_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/774312/ft1_filtered_4FGL_J1729.0+6103_daily_bin653.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774312/ft1_filtered_4FGL_J1729.0+6103_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/774312/ft2_4FGL_J1729.0+6103_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/774312/ltcube_408585601_408844801_4FGL_J1729.0+6103_daily_bin653.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/774312/ft2_4FGL_J1729.0+6103_daily_bin653.fits
.....................!
real 11.81
user 11.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774312/ft1_filtered_4FGL_J1729.0+6103_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/774312/ft2_4FGL_J1729.0+6103_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/774312/ltcube_408585601_408844801_4FGL_J1729.0+6103_daily_bin653.fits outfile=/scratch/kocevski/774312/expmap_408585601_408844801_4FGL_J1729.0+6103_daily_bin653.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/774312/ltcube_408585601_408844801_4FGL_J1729.0+6103_daily_bin653.fits
.....................!
real 190.55
user 185.02
sys 5.19

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/774312/ft1_filtered_4FGL_J1729.0+6103_daily_bin653.fits scfile=/scratch/kocevski/774312/ft2_4FGL_J1729.0+6103_daily_bin653.fits outfile=/scratch/kocevski/774312/cmap_408585601_408844801_4FGL_J1729.0+6103_daily_bin653.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774312/ft1_filtered_4FGL_J1729.0+6103_daily_bin653.fits scfile=/scratch/kocevski/774312/ft2_4FGL_J1729.0+6103_daily_bin653.fits outfile=/scratch/kocevski/774312/cmap_HighResolution_408585601_408844801_4FGL_J1729.0+6103_daily_bin653.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    170.96       1.0000         .10000E-03   10000.    
     4 'norm      '    51.679       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1038       1.0000         .10000E-03   10000.    
     6 'Prefactor '    77.925       1.0000         .10000E-03   10000.    
     7 'norm      '    22.042       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.479       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.350       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.902       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2582       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6951       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .28998E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .44043E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.592       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.1473       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .28456E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    26.026       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    16.407       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.3788       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .71622       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.

 FCN=   2149.782     FROM MIGRAD    STATUS=CONVERGED   1055 CALLS     5388 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.754        .24688E-05** at limit **
   2  norm          .10000E-03    18.920       -.81604E-06** at limit **
   3  Prefactor     170.99        123.98        .12757E-05    .27347E-04
   4  norm          51.677        51.201       -.83373E-07   -.53421E-05
   5  Prefactor     8.1032        8.2835       -.79616E-07   -.32125E-04
   6  Prefactor     77.929        69.955       -.88423E-07   -.35456E-05
   7  norm          22.041        22.669       -.86492E-07   -.40171E-04
   8  Prefactor     16.476        25.917        .30182E-06   -.28772E-05
   9  Prefactor     .10000E-03    24.759        .14366E-05** at limit **
  10  norm          .10000E-03    .56846       -.47931E-08** at limit **
  11  Prefactor     .10000E-03    14.782        .13267E-06** at limit **
  12  Prefactor     37.350        44.046       -.69699E-06    .42146E-04
  13  Prefactor     10.891        17.645       -.10306E-05   -.17231E-03
  14  Prefactor     1.2554        69.125       -.25125E-06   -.10535E-04
  15  Prefactor     .10000E-03    2.7840       -.17779E-06** at limit **
  16  Prefactor     .10000E-03    244.37        .49173E-05** at limit **
  17  norm          .10000E-03    5.4274       -.44752E-06** at limit **
  18  Prefactor     4.6940        7.8509       -.21459E-05   -.50934E-03
  19  Prefactor     .10000E-03    38.043       -.21432E-05** at limit **
  20  Prefactor     .10000E-03    111.04       -.51965E-05** at limit **
  21  norm          .89847E-03    19.769       -.44427E-05** at limit **
  22  Prefactor     .10073E-03    441.69        .13057E-04** at limit **
  23  Prefactor     .10000E-03    17.322        .79259E-06** at limit **
  24  Prefactor     13.553        38.381        .11687E-05    .40652E-05
  25  norm          .10000E-03    5.2064        .86832E-07** at limit **
  26  Prefactor     5.0992        80.560        .27134E-05    .12715E-04
  27  Prefactor     .10000E-03    219.62       -.39334E-05** at limit **
  28  Prefactor     .10002E-03    16.338        .18576E-06** at limit **
  29  norm          26.025        22.848       -.15723E-06   -.53192E-04
  30  Prefactor     .10000E-03    32.826        .34651E-05** at limit **
  31  Prefactor     .10000E-03    16.618       -.82460E-07** at limit **
  32  Prefactor     .10000E-03    28.435       -.27565E-05** at limit **
  33  Prefactor     .10000E-03    96.545        .21746E-05** at limit **
  34  norm          16.404        10.119        .77942E-07    .40018E-04
  35  Normalizat    1.3794        .41001        .10389E-05   -.65774E-04
  36  Prefactor     .71562        .27587       -.24101E-05   -.81621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 170.993
  norm       = 51.6774
  Prefactor  = 8.10322
  Prefactor  = 77.9294
  norm       = 22.0405
  Prefactor  = 16.4757
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.3498
  Prefactor  = 10.8913
  Prefactor  = 1.25537
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 4.69398
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000898471
  Prefactor  = 0.000100733
  Prefactor  = 0.0001
  Prefactor  = 13.5527
  norm       = 0.0001
  Prefactor  = 5.0992
  Prefactor  = 0.000100001
  Prefactor  = 0.000100023
  norm       = 26.0249
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 16.4037
  Normalizat = 1.37945
  Prefactor  = 0.715618
 **********
 **   18 **HESSE 
 **********

 FCN=   2149.782     FROM HESSE     STATUS=OK           813 CALLS     6201 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    18.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     170.99        124.60        .15429E-03   -1.3085    
   4  norm          51.677        51.241        .55789E-04   -1.4269    
   5  Prefactor     8.1032        8.2914        .13129E-03   -1.5139    
   6  Prefactor     77.929        69.937        .45491E-04   -1.3940    
   7  norm          22.041        22.739        .85315E-04   -1.4769    
   8  Prefactor     16.476        26.073        .98661E-04   -1.4896    
   9  Prefactor     .10000E-03    24.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .56918        .34097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.850        .17408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.350        44.265        .65580E-04   -1.4485    
  13  Prefactor     10.891        17.497        .12134E-03   -1.5048    
  14  Prefactor     1.2554        68.577        .39787E-03   -1.5484    
  15  Prefactor     .10000E-03    2.7855        .75545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    244.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.4409        .10544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6940        7.8763        .80315E-03   -1.5275    
  19  Prefactor     .10000E-03    37.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    110.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .89847E-03    25.040        .36977E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10073E-03    431.48        .69186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.553        37.915        .10864E-03   -1.4972    
  25  norm          .10000E-03    5.2130        .10329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.0992        80.413        .17720E-03   -1.5256    
  27  Prefactor     .10000E-03    219.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10002E-03    119.88        .35756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          26.025        22.841        .78524E-04   -1.4687    
  30  Prefactor     .10000E-03    32.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    16.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    28.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    96.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          16.404        10.071        .98879E-04   -1.4898    
  35  Normalizat    1.3794        .48724        .28965E-03   -.81225    
  36  Prefactor     .71562        .32056        .27504E-03   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62838e-09
Minuit parameter uncertainties:
  1  0.000478969
  2  9.93177e-05
  3  124.794
  4  51.2851
  5  8.2926
  6  70.0114
  7  22.7482
  8  26.0908
  9  0.000164341
  10  1.1491e-06
  11  3.64818e-05
  12  44.3044
  13  17.5048
  14  18.5786
  15  6.57424e-06
  16  0.00186864
  17  2.38787e-05
  18  7.87803
  19  0.000271425
  20  0.00102994
  21  0.282919
  22  0.0358379
  23  8.88724e-05
  24  37.9823
  25  1.86171e-05
  26  40.5636
  27  0.00110477
  28  0.00330547
  29  22.8483
  30  0.000395656
  31  9.9962e-06
  32  0.000264132
  33  0.000427242
  34  10.0717
  35  0.488892
  36  0.321393
Done.

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

Extracting fit parameters...

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  1.000e-04  1.869e-03  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.156e-01  3.214e-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:  1.379e+00  4.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/774312/likelihoodResults_408585601_408844801_4FGL_J1729.0+6103_daily_bin653.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): 102
logL (Free Index) = 2149.78208281
delta logL = -1.93092760128e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2149.78206351
delta logL = -7.86894815974e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4331       1.0000          .0000       10.000    
     3 'Normalizat'    1.3794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71562       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.

 FCN=   2149.782     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      245 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    227.40        .90712E-02** at limit **
   2  Index         2.4001        6.1997        .50000        .11579E-05
   3  Normalizat    1.3794        .37359        .65481E-01   -.13373E-04
   4  Prefactor     .71562        .26623        .62179E-01   -.65872E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100041
  Index      = 2.40007
  Normalizat = 1.37944
  Prefactor  = 0.715619
 **********
 **   18 **HESSE 
 **********

 FCN=   2149.782     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    511.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4001        5.9018        .50000       -.54683    
   3  Normalizat    1.3794        .43669        .28965E-03   -.81225    
   4  Prefactor     .71562        .31108        .27504E-03   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98262e-10
Minuit parameter uncertainties:
  1  0.00921302
  2  6.48078
  3  0.437878
  4  0.311836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774312': 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) = 2149.7820635
delta logL = 1.33013600134e-09

Extracting fit parameters...

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  1.000e-04  9.213e-03  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.400e+00  6.481e+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:  7.156e-01  3.118e-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:  1.379e+00  4.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/774312/cmap_HighResolution_408585601_408844801_4FGL_J1729.0+6103_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-02', job_status='DONE', photon_flux_upper_limit='2.34e-07', time_completed='2021-09-17 14:47:40.205565', job_id='774312', GAL2='0.72', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1631915260.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.33e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='653' AND source_name='4FGL J1729.0+6103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 14:47:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 774312: <4FGL_J1729.0+6103_daily_bin653> in cluster <slac> Done

Job <4FGL_J1729.0+6103_daily_bin653> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 14:35:19 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 14:35:20 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:35:20 2021
Terminated at Fri Sep 17 14:47:43 2021
Results reported at Fri Sep 17 14:47:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1729.0+6103_daily_bin653 262.265 61.06 408585601 408844801 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 :                                   616.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            744 sec.

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

