/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 80 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1829.5+4845_daily_bin261
RA = 277.4, Dec = 48.7646
tmin = 306979201, tmax = 307238401
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='948288', job_status='RUN', time_executed='2021-09-20 13:27:50.318933', time_epoch_executed='1632169670.32' WHERE source_name='4FGL J1829.5+4845' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948288/ft1_4FGL_J1829.5+4845_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948288/ft2_4FGL_J1829.5+4845_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948288/ft1_4FGL_J1829.5+4845_daily_bin261.fits outfile=/scratch/kocevski/948288/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin261.fits ra=277.4 dec=48.7646 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.02
user 13.52
sys 0.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/948288/ft2_4FGL_J1829.5+4845_daily_bin261.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948288/ft2_4FGL_J1829.5+4845_daily_bin261.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/948288/ft1_filteredMKT_4FGL_J1829.5+4845_daily_bin261.fits evtable="EVENTS" outfile="/scratch/kocevski/948288/ft1_filtered_4FGL_J1829.5+4845_daily_bin261.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948288/ft1_filtered_4FGL_J1829.5+4845_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/948288/ft2_4FGL_J1829.5+4845_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/948288/ltcube_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.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/948288/ft2_4FGL_J1829.5+4845_daily_bin261.fits
.....................!
real 11.54
user 11.14
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948288/ft1_filtered_4FGL_J1829.5+4845_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/948288/ft2_4FGL_J1829.5+4845_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/948288/ltcube_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.fits outfile=/scratch/kocevski/948288/expmap_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.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/948288/ltcube_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.fits
.....................!
real 190.71
user 185.13
sys 5.24

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
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 208 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1829.5+4845 @ 277.4 48.7646

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/948288/ft1_filtered_4FGL_J1829.5+4845_daily_bin261.fits scfile=/scratch/kocevski/948288/ft2_4FGL_J1829.5+4845_daily_bin261.fits outfile=/scratch/kocevski/948288/cmap_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.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=277.4 yref=48.7646 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/948288/ft1_filtered_4FGL_J1829.5+4845_daily_bin261.fits scfile=/scratch/kocevski/948288/ft2_4FGL_J1829.5+4845_daily_bin261.fits outfile=/scratch/kocevski/948288/cmap_HighResolution_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.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=277.4 yref=48.7646 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948288/ft1_filtered_4FGL_J1829.5+4845_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/948288/ft2_4FGL_J1829.5+4845_daily_bin261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948288/Model_4FGL_J1829.5+4845_daily_bin261.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
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/948288/ft1_filtered_4FGL_J1829.5+4845_daily_bin261.fits.....................!
real 88.87
user 87.38
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948288/ft1_filtered_4FGL_J1829.5+4845_daily_bin261.fits', '/scratch/kocevski/948288/ft2_4FGL_J1829.5+4845_daily_bin261.fits', expMap='/scratch/kocevski/948288/expmap_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.fits', expCube='/scratch/kocevski/948288/ltcube_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948288/Model_4FGL_J1829.5+4845_daily_bin261.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1829.5+4845'

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  9.103e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  2.356e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  6.155e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  5.525e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/948288/ft1_filtered_4FGL_J1829.5+4845_daily_bin261.fits
Spacecraft file(s): /scratch/kocevski/948288/ft2_4FGL_J1829.5+4845_daily_bin261.fits
Exposure map: /scratch/kocevski/948288/expmap_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.fits
Exposure cube: /scratch/kocevski/948288/ltcube_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948288/Model_4FGL_J1829.5+4845_daily_bin261.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) = 9136.0897456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3240       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4900       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.590       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.995       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13899E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0119       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.367       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1586       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3736       1.0000         .10000E-03   10000.    
    13 'norm      '    8.7316       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.587       1.0000         .10000E-03   10000.    
    15 'norm      '    13.841       1.0000         .10000E-03   10000.    
    16 'norm      '    14.614       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0558       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5176       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74220       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9136.075     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2029 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3243        2.5655        .63752E-07   -.10426E-03
   2  Prefactor     5.4900        4.1720        .30392E-06    .36178E-04
   3  norm          4.1068        7.7363       -.22638E-05   -.12619E-03
   4  Prefactor     50.326        57.688       -.60960E-05   -.34712E-04
   5  Prefactor     2.6175        2.1672        .85041E-06   -.41284E-02
   6  Prefactor     29.579        41.301       -.86227E-05   -.47219E-04
   7  Prefactor     50.998        64.843        .24547E-05    .10728E-04
   8  Prefactor     .10000E-03    40.785        .89809E-06** at limit **
   9  Prefactor     8.0122        10.809        .27215E-05    .54640E-04
  10  Prefactor     10.360        19.919        .66803E-05    .58517E-04
  11  norm          5.1585        8.3860        .17022E-05    .38929E-05
  12  Prefactor     6.3761        13.309       -.44723E-06   -.14056E-04
  13  norm          8.7334        7.2207       -.50738E-05   -.33506E-03
  14  Prefactor     13.521        29.298       -.58110E-05   -.35067E-04
  15  norm          13.841        9.6835        .22205E-05    .12409E-03
  16  norm          14.612        14.704        .91103E-06    .24784E-04
  17  Prefactor     3.0556        2.0789       -.10771E-06   -.10448E-03
  18  norm          5.5175        2.5200        .48649E-08   -.52660E-03
  19  Normalizat    .74202        .25023        .17717E-05   -.92455E-05
  20  Prefactor     1.1930        .12272       -.32759E-06    .79546E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.32427
  Prefactor  = 5.49004
  norm       = 4.10676
  Prefactor  = 50.3262
  Prefactor  = 2.61752
  Prefactor  = 29.5791
  Prefactor  = 50.9976
  Prefactor  = 0.0001
  Prefactor  = 8.01219
  Prefactor  = 10.3599
  norm       = 5.15851
  Prefactor  = 6.37608
  norm       = 8.73335
  Prefactor  = 13.5206
  norm       = 13.8415
  norm       = 14.6123
  Prefactor  = 3.05561
  norm       = 5.51745
  Normalizat = 0.742024
  Prefactor  = 1.19297
 **********
 **   18 **HESSE 
 **********

 FCN=   9136.075     FROM HESSE     STATUS=OK           303 CALLS     2332 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3243        2.5668        .11101E-03   -1.5292    
   2  Prefactor     5.4900        4.1675        .16170E-03   -1.5239    
   3  norm          4.1068        7.9410        .19890E-03   -1.5303    
   4  Prefactor     50.326        57.603        .56526E-04   -1.4288    
   5  Prefactor     2.6175        6.1199        .12615E-02   -1.5384    
   6  Prefactor     29.579        42.526        .73654E-04   -1.4620    
   7  Prefactor     50.998        64.851        .56160E-04   -1.4278    
   8  Prefactor     .10000E-03    40.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0122        10.802        .14165E-03   -1.5142    
  10  Prefactor     10.360        19.919        .12444E-03   -1.5064    
  11  norm          5.1585        8.3733        .17700E-03   -1.5254    
  12  Prefactor     6.3761        13.295        .15899E-03   -1.5203    
  13  norm          8.7334        7.2337        .13565E-03   -1.5117    
  14  Prefactor     13.521        29.295        .10867E-03   -1.4972    
  15  norm          13.841        9.6879        .10766E-03   -1.4964    
  16  norm          14.612        14.699        .10477E-03   -1.4943    
  17  Prefactor     3.0556        2.0742        .10929E-03   -1.5358    
  18  norm          5.5175        2.5220        .49833E-03   -1.5238    
  19  Normalizat    .74202        .28435        .44265E-03   -1.0226    
  20  Prefactor     1.1930        .13921        .18656E-03   -.86548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33898e-08
Minuit parameter uncertainties:
  1  2.56691
  2  4.16771
  3  7.94306
  4  57.6669
  5  6.12138
  6  42.5701
  7  64.9406
  8  0.000274042
  9  10.8045
  10  19.9321
  11  8.37518
  12  13.3011
  13  7.23443
  14  29.3259
  15  9.68905
  16  14.7028
  17  2.07427
  18  2.52206
  19  0.284923
  20  0.139253
Done.

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

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  1.384e+01  9.689e+00  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  2.356e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  6.155e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  5.525e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  1.193e+00  1.393e-01  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  7.420e-01  2.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.53
Ra Dec: 277.400 48.765
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 5.24e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.19e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9133.54776458
delta logL = 2.52713479058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9130.54873047
delta logL = 5.52616889787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96843E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .33705E-05   1.0000          .0000       5.0000    
     3 'Normalizat'    .78888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9130.549     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      254 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96995E-01    .11522        .65601E-02   -.16999E-02
   2  alpha         .26368E-13    .41204        .46298    ** at limit **
   3  Normalizat    .78819        .22761        .97105E-01    .48324E-04
   4  Prefactor     1.1875        .11964        .34941E-01    .21546E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0969945
  alpha      = 2.63678e-14
  Normalizat = 0.788191
  Prefactor  = 1.18754
 **********
 **   18 **HESSE 
 **********

 FCN=   9130.549     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96995E-01    .97722E-01    .24350E-03   -1.5646    
   2  alpha         .26368E-13    .52630        .38307E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .78819        .25585        .43028E-03   -1.0051    
   4  Prefactor     1.1875        .13493        .18700E-03   -.86716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19056e-12
Minuit parameter uncertainties:
  1  0.0977217
  2  2.40073e-07
  3  0.25624
  4  0.134972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948288': 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) = 9130.54872238
delta logL = 5.52617699264

Extracting fit parameters...

4FGL J1829.5+4845
   Spectrum: LogParabola
392         norm:  9.699e-02  9.772e-02  1.000e-04  1.000e+04 ( 1.000e-12)
393        alpha:  2.637e-14  2.401e-07  0.000e+00  5.000e+00 ( 1.000e+00)
394         beta:  6.155e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  5.525e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  1.188e+00  1.350e-01  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  7.882e-01  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.45
Ra Dec: 277.400 48.765
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.38e-09 +/- 3.41e-09
Energy Flux (Free Index): 1.28e-04 +/- 1.29e-04

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/948288/cmap_HighResolution_306979201_307238401_4FGL_J1829.5+4845_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.24e-08', energy_flux2='1.28e-04', photon_flux_error='3.67e-08', dlogl='5.53e+00', energy_flux='1.70e-05', photon_flux2='3.38e-09', job_status='DONE', time_completed='2021-09-20 13:41:19.442753', photon_index_error2='0.00', photon_index2='0.00', ts='9.53', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.29e-04', EG='0.74', time_epoch_completed='1632170479.44', return_code='0', job_id='948288', GAL2='1.19', EG2='0.79', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.41e-09', ts2='20.45', photon_index='2.36' WHERE bin_id='261' AND source_name='4FGL J1829.5+4845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 13:41:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 948288: <4FGL_J1829.5+4845_daily_bin261> in cluster <slac> Done

Job <4FGL_J1829.5+4845_daily_bin261> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Sep 20 13:26:17 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 13:26:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 13:26:23 2021
Terminated at Mon Sep 20 13:41:19 2021
Results reported at Mon Sep 20 13:41:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1829.5+4845_daily_bin261 277.4 48.7646 306979201 307238401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1829.5+4845 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   803.36 sec.
    Max Memory :                                 1241 MB
    Average Memory :                             312.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            902 sec.

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

