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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin806
RA = 172.38, Dec = 30.5789
tmin = 448243201, tmax = 448502401
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='878226', job_status='RUN', time_executed='2021-09-04 01:33:46.154738', time_epoch_executed='1630744426.15' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/878226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/878226/ft1_4FGL_J1129.5+3034_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/878226/ft2_4FGL_J1129.5+3034_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/878226/ft1_4FGL_J1129.5+3034_daily_bin806.fits outfile=/scratch/kocevski/878226/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin806.fits ra=172.38 dec=30.5789 rad=12.0 tmin=448243201.0 tmax=448502401.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.44
user 4.06
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/878226/ft2_4FGL_J1129.5+3034_daily_bin806.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/878226/ft2_4FGL_J1129.5+3034_daily_bin806.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/878226/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin806.fits evtable="EVENTS" outfile="/scratch/kocevski/878226/ft1_filtered_4FGL_J1129.5+3034_daily_bin806.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.47
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/878226/ft1_filtered_4FGL_J1129.5+3034_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/878226/ft2_4FGL_J1129.5+3034_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/878226/ltcube_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.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/878226/ft2_4FGL_J1129.5+3034_daily_bin806.fits
.....................!
real 14.30
user 13.97
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/878226/ft1_filtered_4FGL_J1129.5+3034_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/878226/ft2_4FGL_J1129.5+3034_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/878226/ltcube_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.fits outfile=/scratch/kocevski/878226/expmap_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.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/878226/ltcube_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.fits
.....................!
real 159.55
user 154.59
sys 4.41

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

Setting source of interest to:
4FGL J1129.5+3034 @ 172.38 30.5789

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/878226/ft1_filtered_4FGL_J1129.5+3034_daily_bin806.fits scfile=/scratch/kocevski/878226/ft2_4FGL_J1129.5+3034_daily_bin806.fits outfile=/scratch/kocevski/878226/cmap_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.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.38 yref=30.5789 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.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/878226/ft1_filtered_4FGL_J1129.5+3034_daily_bin806.fits scfile=/scratch/kocevski/878226/ft2_4FGL_J1129.5+3034_daily_bin806.fits outfile=/scratch/kocevski/878226/cmap_HighResolution_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.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.38 yref=30.5789 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.51
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/878226/ft1_filtered_4FGL_J1129.5+3034_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/878226/ft2_4FGL_J1129.5+3034_daily_bin806.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/878226/Model_4FGL_J1129.5+3034_daily_bin806.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/878226/ft1_filtered_4FGL_J1129.5+3034_daily_bin806.fits....................!
real 34.56
user 32.67
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/878226/ft1_filtered_4FGL_J1129.5+3034_daily_bin806.fits', '/scratch/kocevski/878226/ft2_4FGL_J1129.5+3034_daily_bin806.fits', expMap='/scratch/kocevski/878226/expmap_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.fits', expCube='/scratch/kocevski/878226/ltcube_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/878226/Model_4FGL_J1129.5+3034_daily_bin806.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.5+3034'

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  2.468e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/878226/ft1_filtered_4FGL_J1129.5+3034_daily_bin806.fits
Spacecraft file(s): /scratch/kocevski/878226/ft2_4FGL_J1129.5+3034_daily_bin806.fits
Exposure map: /scratch/kocevski/878226/expmap_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.fits
Exposure cube: /scratch/kocevski/878226/ltcube_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/878226/Model_4FGL_J1129.5+3034_daily_bin806.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) = 4142.286525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22922       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7727       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.192       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7398       1.0000         .10000E-03   10000.    
    11 'norm      '    .47461       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8766       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .91952       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.8532       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5754       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19039E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2254       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .62621E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38369       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21414       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.6603       1.0000         .10000E-03   10000.    
    26 'Prefactor '    74.581       1.0000         .10000E-03   10000.    
    27 'norm      '    8.2851       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.3359       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .20236E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3516       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .31159       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4142.257     FROM MIGRAD    STATUS=CONVERGED    984 CALLS     4608 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.428        .97503E-07** at limit **
   2  Prefactor     .10000E-03    5.8394        .57037E-07** at limit **
   3  Prefactor     .10000E-03    5.2926        .48999E-07** at limit **
   4  Prefactor     .10000E-03    13.079        .11743E-06** at limit **
   5  norm          1.2240        .36791        .90757E-09   -.69210E-05
   6  Prefactor     .22938        2.1365       -.24645E-06   -.18673E-03
   7  Prefactor     2.7662        41.019        .55778E-06    .34349E-04
   8  Prefactor     .10000E-03    20.092        .58089E-08** at limit **
   9  norm          16.200        19.479        .76784E-07    .66000E-04
  10  Prefactor     2.7402        4.5490        .11751E-06    .46802E-04
  11  norm          .53631        15.978       -.17105E-05   -.16202E-03
  12  Prefactor     5.8774        12.196       -.20567E-05    .27153E-03
  13  Prefactor     .92173        2.1878        .73562E-06    .11505E-02
  14  Prefactor     .10000E-03    23.553        .15411E-06** at limit **
  15  Prefactor     .10000E-03    19.428        .32979E-06** at limit **
  16  norm          5.8537        3.5210       -.15444E-06    .89393E-04
  17  Prefactor     .10000E-03    24.036        .27040E-06** at limit **
  18  Prefactor     4.5810        6.9801       -.10867E-05   -.10833E-04
  19  Prefactor     .10000E-03    341.73       -.26850E-05** at limit **
  20  norm          2.2267        1.3681       -.63725E-07    .41242E-03
  21  Prefactor     .10000E-03    127.93        .20117E-04** at limit **
  22  Prefactor     .38424        1.0798        .72471E-06    .98016E-03
  23  Prefactor     .96027E-02    63.720       -.95101E-05    .18295E-03
  24  Prefactor     .10000E-03    142.77        .23364E-06** at limit **
  25  norm          8.6612        2.2723       -.31340E-07   -.31340E-04
  26  Prefactor     74.638        41.267        .58942E-06    .73227E-03
  27  norm          8.2887        4.6261       -.11035E-07    .27320E-04
  28  Prefactor     7.3318        7.1229        .12143E-06   -.56286E-04
  29  Prefactor     .10008E-03    2.0298       -.67897E-06** at limit **
  30  Prefactor     1.3510        3.6161       -.82048E-07    .10375E-03
  31  Normalizat    .31155        .24589       -.27804E-05   -.13922E-03
  32  Prefactor     1.4766        .26775        .53738E-06   -.27594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22402
  Prefactor  = 0.229382
  Prefactor  = 2.76622
  Prefactor  = 0.0001
  norm       = 16.1998
  Prefactor  = 2.74024
  norm       = 0.536309
  Prefactor  = 5.87739
  Prefactor  = 0.921733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.85366
  Prefactor  = 0.0001
  Prefactor  = 4.58096
  Prefactor  = 0.000100002
  norm       = 2.22672
  Prefactor  = 0.000100001
  Prefactor  = 0.384239
  Prefactor  = 0.00960268
  Prefactor  = 0.0001
  norm       = 8.66116
  Prefactor  = 74.6384
  norm       = 8.28869
  Prefactor  = 7.33176
  Prefactor  = 0.000100079
  Prefactor  = 1.35101
  Normalizat = 0.311552
  Prefactor  = 1.47658
 **********
 **   18 **HESSE 
 **********

 FCN=   4142.257     FROM HESSE     STATUS=OK           689 CALLS     5297 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8517        .15190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3047        .14456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2240        .36707        .19733E-04   -1.5487    
   6  Prefactor     .22938        9.7164        .16679E-02   -1.5612    
   7  Prefactor     2.7662        38.686        .24440E-03   -1.5375    
   8  Prefactor     .10000E-03    20.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.200        19.034        .99535E-04   -1.4903    
  10  Prefactor     2.7402        4.5300        .17171E-03   -1.5377    
  11  norm          .53631        74.966        .43021E-02   -1.5562    
  12  Prefactor     5.8774        12.394        .82830E-03   -1.5223    
  13  Prefactor     .92173        1.8968        .13737E-02   -1.5516    
  14  Prefactor     .10000E-03    23.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.8537        3.4495        .85185E-04   -1.5224    
  17  Prefactor     .10000E-03    24.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5810        6.9197        .18819E-03   -1.5280    
  19  Prefactor     .10000E-03    351.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2267        1.3531        .55701E-04   -1.5410    
  21  Prefactor     .10000E-03    132.01        .47738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .38424        .97221        .11521E-02   -1.5584    
  23  Prefactor     .96027E-02    33.705        .91658E-01   -1.5688    
  24  Prefactor     .10000E-03    143.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.6612        2.2525        .46690E-04   -1.5119    
  26  Prefactor     74.638        43.294        .23246E-03   -1.3978    
  27  norm          8.2887        4.6327        .92685E-04   -1.5132    
  28  Prefactor     7.3318        7.1243        .74042E-03   -1.5166    
  29  Prefactor     .10008E-03    3.3270        .30862E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.3510        3.5657        .18217E-03   -1.5476    
  31  Normalizat    .31155        .25576        .38294E-03   -1.2215    
  32  Prefactor     1.4766        .28552        .23058E-03   -.78198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49956e-09
Minuit parameter uncertainties:
  1  8.85288e-06
  2  5.76247e-06
  3  1.20096e-06
  4  2.24978e-05
  5  0.367069
  6  2.98568
  7  20.7055
  8  2.21798e-05
  9  19.0408
  10  4.53055
  11  12.6966
  12  12.3998
  13  1.89695
  14  0.000107284
  15  0.000122109
  16  3.44967
  17  0.000121414
  18  6.92087
  19  0.00161651
  20  1.35313
  21  0.000516382
  22  0.972248
  23  1.13252
  24  0.000360423
  25  2.2525
  26  43.3127
  27  4.63285
  28  7.12514
  29  0.00102334
  30  3.56628
  31  0.256724
  32  0.285834
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.221e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.477e+00  2.858e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  3.116e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/878226/likelihoodResults_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.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) = 4142.25704976
delta logL = -0.000242941366196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4142.25680682
delta logL = -8.94397089723e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5533       1.0000          .0000       10.000    
     3 'Normalizat'    .31155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4142.257     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      238 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1390.5        .90712E-02** at limit **
   2  Index         2.5525        5.7536        .50000        .27549E-06
   3  Normalizat    .31155        .44803E-01    .86455E-01   -.10572E-03
   4  Prefactor     1.4766        .55886E-01    .52160E-01   -.12103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.55251
  Normalizat = 0.311548
  Prefactor  = 1.47659
 **********
 **   18 **HESSE 
 **********

 FCN=   4142.257     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6895.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5525        5.8609        .50000       -.51151    
   3  Normalizat    .31155        .13770        .38293E-03   -1.2215    
   4  Prefactor     1.4766        .17252        .23058E-03   -.78198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.84466e-08
Minuit parameter uncertainties:
  1  0.00785363
  2  65.6219
  3  0.137851
  4  0.172586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/878226': 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) = 4142.25680682
delta logL = -6.2600520323e-09

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.854e-03  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.553e+00  6.562e+01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.477e+00  1.726e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  3.115e-01  1.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.380 30.579

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/878226/cmap_HighResolution_448243201_448502401_4FGL_J1129.5+3034_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-04 01:44:29.763473', job_id='878226', GAL2='1.48', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1630745069.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.48', dlogl='-6.26e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='806' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:44:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 878226: <4FGL_J1129.5+3034_daily_bin806> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin806> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 01:31:26 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:31:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 01:31:49 2021
Terminated at Sat Sep  4 01:44:30 2021
Results reported at Sat Sep  4 01:44:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin806 172.38 30.5789 448243201 448502401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.5+3034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            784 sec.

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

