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


Performing analysis on: 4FGL_J1129.8-1447_daily_bin438
RA = 172.465, Dec = -14.796
tmin = 352857601, tmax = 353116801
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='885908', job_status='RUN', time_executed='2021-09-04 02:03:30.723984', time_epoch_executed='1630746210.72' WHERE source_name='4FGL J1129.8-1447' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885908/ft1_4FGL_J1129.8-1447_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885908/ft2_4FGL_J1129.8-1447_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885908/ft1_4FGL_J1129.8-1447_daily_bin438.fits outfile=/scratch/kocevski/885908/ft1_filteredMKT_4FGL_J1129.8-1447_daily_bin438.fits ra=172.465 dec=-14.796 rad=12.0 tmin=352857601.0 tmax=353116801.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.77
user 3.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/885908/ft2_4FGL_J1129.8-1447_daily_bin438.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/885908/ft2_4FGL_J1129.8-1447_daily_bin438.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/885908/ft1_filteredMKT_4FGL_J1129.8-1447_daily_bin438.fits evtable="EVENTS" outfile="/scratch/kocevski/885908/ft1_filtered_4FGL_J1129.8-1447_daily_bin438.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.66
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/885908/ft1_filtered_4FGL_J1129.8-1447_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/885908/ft2_4FGL_J1129.8-1447_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/885908/ltcube_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.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/885908/ft2_4FGL_J1129.8-1447_daily_bin438.fits
.....................!
real 14.29
user 13.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885908/ft1_filtered_4FGL_J1129.8-1447_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/885908/ft2_4FGL_J1129.8-1447_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/885908/ltcube_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.fits outfile=/scratch/kocevski/885908/expmap_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.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/885908/ltcube_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.fits
.....................!
real 193.18
user 186.62
sys 4.73

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

Setting source of interest to:
4FGL J1129.8-1447 @ 172.465 -14.796

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/885908/ft1_filtered_4FGL_J1129.8-1447_daily_bin438.fits scfile=/scratch/kocevski/885908/ft2_4FGL_J1129.8-1447_daily_bin438.fits outfile=/scratch/kocevski/885908/cmap_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.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=172.465 yref=-14.796 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.67
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/885908/ft1_filtered_4FGL_J1129.8-1447_daily_bin438.fits scfile=/scratch/kocevski/885908/ft2_4FGL_J1129.8-1447_daily_bin438.fits outfile=/scratch/kocevski/885908/cmap_HighResolution_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.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=172.465 yref=-14.796 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.78
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/885908/ft1_filtered_4FGL_J1129.8-1447_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/885908/ft2_4FGL_J1129.8-1447_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/885908/Model_4FGL_J1129.8-1447_daily_bin438.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/885908/ft1_filtered_4FGL_J1129.8-1447_daily_bin438.fits......................!
real 32.27
user 29.39
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/885908/ft1_filtered_4FGL_J1129.8-1447_daily_bin438.fits', '/scratch/kocevski/885908/ft2_4FGL_J1129.8-1447_daily_bin438.fits', expMap='/scratch/kocevski/885908/expmap_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.fits', expCube='/scratch/kocevski/885908/ltcube_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/885908/Model_4FGL_J1129.8-1447_daily_bin438.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.8-1447'

4FGL J1129.8-1447
   Spectrum: PowerLaw
291    Prefactor:  4.121e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.692e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  5.409e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/885908/ft1_filtered_4FGL_J1129.8-1447_daily_bin438.fits
Spacecraft file(s): /scratch/kocevski/885908/ft2_4FGL_J1129.8-1447_daily_bin438.fits
Exposure map: /scratch/kocevski/885908/expmap_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.fits
Exposure cube: /scratch/kocevski/885908/ltcube_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/885908/Model_4FGL_J1129.8-1447_daily_bin438.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) = 2531.08541396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2191       1.0000         .10000E-03   10000.    
     2 'norm      '    .11204E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5569       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.212       1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.882       1.0000         .10000E-03   10000.    
     9 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.640       1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.834       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3834       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6041       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29631E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.275       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10245E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7971       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.137       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.4844       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.998       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21102E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    65.748       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .59053       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98574       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2531.076     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3315 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2242        8.7036        .20085E-05    .57834E-03
   2  norm          .10000E-03    23.443        .16326E-07** at limit **
   3  Prefactor     .10000E-03    12.324        .76315E-07** at limit **
   4  Prefactor     .10000E-03    63.416       -.10259E-05** at limit **
   5  Prefactor     4.5508        17.373        .37928E-06    .11539E-05
   6  Prefactor     .10000E-03    10.573        .14395E-05** at limit **
   7  Prefactor     20.214        12.198        .92181E-07    .24876E-04
   8  Prefactor     70.857        84.638        .99753E-06    .25707E-04
   9  norm          .10000E-03    10.436       -.52833E-06** at limit **
  10  Prefactor     19.658        17.482        .15534E-06    .13517E-04
  11  Prefactor     69.823        68.738       -.10434E-05   -.24474E-04
  12  norm          2.3829        1.7328        .43870E-07    .31629E-03
  13  Prefactor     3.5940        10.343       -.84149E-06   -.15424E-04
  14  Prefactor     .10023E-03    31.486       -.62616E-05** at limit **
  15  norm          .10000E-03    23.020        .10076E-06** at limit **
  16  Prefactor     30.348        64.588        .26724E-05    .41535E-04
  17  Prefactor     .10000E-03    17.720       -.12525E-06** at limit **
  18  norm          .10000E-03    3.3182        .17306E-07** at limit **
  19  Prefactor     4.7901        5.5278        .41376E-06    .47357E-03
  20  Prefactor     11.153        21.121        .30607E-05    .18253E-03
  21  Prefactor     .10000E-03    10.737       -.89804E-06** at limit **
  22  norm          5.4857        5.5001        .13038E-06    .82076E-04
  23  Prefactor     27.267        69.430       -.22727E-05   -.19213E-04
  24  Prefactor     .10000E-03    46.014       -.50443E-06** at limit **
  25  Prefactor     65.738        83.649        .26506E-06    .67623E-05
  26  Normalizat    .59028        .31363       -.20769E-05    .10202E-03
  27  Prefactor     .98553        .19260        .39197E-07    .12523E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.22416
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.55082
  Prefactor  = 0.0001
  Prefactor  = 20.214
  Prefactor  = 70.8572
  norm       = 0.0001
  Prefactor  = 19.6581
  Prefactor  = 69.8226
  norm       = 2.38287
  Prefactor  = 3.59395
  Prefactor  = 0.000100226
  norm       = 0.0001
  Prefactor  = 30.3478
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.79005
  Prefactor  = 11.1527
  Prefactor  = 0.0001
  norm       = 5.48568
  Prefactor  = 27.2665
  Prefactor  = 0.0001
  Prefactor  = 65.7378
  Normalizat = 0.590284
  Prefactor  = 0.985534
 **********
 **   18 **HESSE 
 **********

 FCN=   2531.076     FROM HESSE     STATUS=OK           484 CALLS     3799 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2242        9.0919        .87977E-03   -1.5251    
   2  norm          .10000E-03    24.193        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.325        .17253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    63.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5508        17.308        .18858E-03   -1.5281    
   6  Prefactor     .10000E-03    10.607        .15985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.214        12.142        .89089E-04   -1.4808    
   8  Prefactor     70.857        84.610        .47681E-04   -1.4022    
   9  norm          .10000E-03    10.445        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.658        17.468        .90377E-04   -1.4821    
  11  Prefactor     69.823        68.772        .48035E-04   -1.4035    
  12  norm          2.3829        1.7306        .53047E-04   -1.5399    
  13  Prefactor     3.5940        10.171        .20361E-03   -1.5329    
  14  Prefactor     .10023E-03    69.353        .35708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    23.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.348        63.971        .72817E-04   -1.4606    
  17  Prefactor     .10000E-03    17.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3200        .89492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7901        5.5671        .58368E-03   -1.5270    
  20  Prefactor     11.153        21.238        .12005E-03   -1.5040    
  21  Prefactor     .10000E-03    10.772        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.4857        5.4939        .11282E-03   -1.5239    
  23  Prefactor     27.267        69.517        .77100E-04   -1.4663    
  24  Prefactor     .10000E-03    45.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     65.738        83.624        .49495E-04   -1.4085    
  26  Normalizat    .59028        .35263        .34091E-03   -1.0840    
  27  Prefactor     .98553        .22212        .17928E-03   -.93213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9579e-09
Minuit parameter uncertainties:
  1  9.09427
  2  5.43095e-05
  3  7.93661e-06
  4  0.000138015
  5  17.3273
  6  8.92247e-05
  7  12.1431
  8  84.754
  9  2.47899e-05
  10  17.4726
  11  68.8501
  12  1.7306
  13  10.1759
  14  0.00792468
  15  9.66396e-06
  16  64.1165
  17  1.18119e-05
  18  1.81909e-07
  19  5.5677
  20  21.2523
  21  5.36919e-05
  22  5.49437
  23  69.725
  24  1.38842e-05
  25  83.7743
  26  0.353984
  27  0.222324
Done.

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

Extracting fit parameters...

4FGL J1129.8-1447
   Spectrum: PowerLaw
291    Prefactor:  1.002e-04  7.925e-03  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.692e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  5.409e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.855e-01  2.223e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  5.903e-01  3.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.465 -14.796
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/885908/likelihoodResults_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.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) = 2531.0760161
delta logL = -6.76978561387e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2531.07601607
delta logL = -6.76767140249e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96321E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6918       1.0000          .0000       10.000    
     3 'Normalizat'    .59026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98555       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2531.076     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      220 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2828        .60652E-01** at limit **
   2  Index         2.6992        7.3152        .50000       -.61904E-06
   3  Normalizat    .59028        .31206E-02    .76995E-01    .56978E-04
   4  Prefactor     .98553        .20933E-02    .46086E-01    .63764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.69917
  Normalizat = 0.590283
  Prefactor  = 0.985534
 **********
 **   18 **HESSE 
 **********

 FCN=   2531.076     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    229.54        .34479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6992        8.2855        .50000       -.47818    
   3  Normalizat    .59028        .13217E-01    .34091E-03   -1.0840    
   4  Prefactor     .98553        .88848E-02    .17928E-03   -.93213    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.61086e-09
Minuit parameter uncertainties:
  1  0.00140741
  2  295.288
  3  0.013217
  4  0.00888479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885908': 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): 102
logL (Free Index) = 2531.07594839
delta logL = 3.00633473671e-09

Extracting fit parameters...

4FGL J1129.8-1447
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.407e-03  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.699e+00  2.953e+02  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  5.409e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.855e-01  8.885e-03  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  5.903e-01  1.322e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.465 -14.796

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/885908/cmap_HighResolution_352857601_353116801_4FGL_J1129.8-1447_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-09-04 02:12:11.452783', job_id='885908', GAL2='0.99', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630746731.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.01e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='438' AND source_name='4FGL J1129.8-1447' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 02:12:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 885908: <4FGL_J1129.8-1447_daily_bin438> in cluster <slac> Done

Job <4FGL_J1129.8-1447_daily_bin438> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 01:56:39 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:01:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 02:01:17 2021
Terminated at Sat Sep  4 02:12:12 2021
Results reported at Sat Sep  4 02:12:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.8-1447_daily_bin438 172.465 -14.796 352857601 353116801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.8-1447 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   514.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            933 sec.

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

