/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1129.5+3034_daily_bin217
RA = 172.38, Dec = 30.5789
tmin = 295574401, tmax = 295833601
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='873467', job_status='RUN', time_executed='2021-09-04 01:17:26.012681', time_epoch_executed='1630743446.01' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873467

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873467/ft1_4FGL_J1129.5+3034_daily_bin217.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873467/ft2_4FGL_J1129.5+3034_daily_bin217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873467/ft1_4FGL_J1129.5+3034_daily_bin217.fits outfile=/scratch/kocevski/873467/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin217.fits ra=172.38 dec=30.5789 rad=12.0 tmin=295574401.0 tmax=295833601.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 2.53
user 2.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/873467/ft2_4FGL_J1129.5+3034_daily_bin217.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/873467/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin217.fits evtable="EVENTS" outfile="/scratch/kocevski/873467/ft1_filtered_4FGL_J1129.5+3034_daily_bin217.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.57
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873467/ft1_filtered_4FGL_J1129.5+3034_daily_bin217.fits" evtable="EVENTS" scfile=/scratch/kocevski/873467/ft2_4FGL_J1129.5+3034_daily_bin217.fits sctable="SC_DATA" outfile=/scratch/kocevski/873467/ltcube_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.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/873467/ft2_4FGL_J1129.5+3034_daily_bin217.fits
.....................!
real 17.09
user 16.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873467/ft1_filtered_4FGL_J1129.5+3034_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/873467/ft2_4FGL_J1129.5+3034_daily_bin217.fits sctable="SC_DATA" expcube=/scratch/kocevski/873467/ltcube_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.fits outfile=/scratch/kocevski/873467/expmap_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.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/873467/ltcube_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.fits
.....................!
real 192.50
user 186.62
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
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/873467/ft1_filtered_4FGL_J1129.5+3034_daily_bin217.fits scfile=/scratch/kocevski/873467/ft2_4FGL_J1129.5+3034_daily_bin217.fits outfile=/scratch/kocevski/873467/cmap_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/873467/ft1_filtered_4FGL_J1129.5+3034_daily_bin217.fits scfile=/scratch/kocevski/873467/ft2_4FGL_J1129.5+3034_daily_bin217.fits outfile=/scratch/kocevski/873467/cmap_HighResolution_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/873467/ft1_filtered_4FGL_J1129.5+3034_daily_bin217.fits', '/scratch/kocevski/873467/ft2_4FGL_J1129.5+3034_daily_bin217.fits', expMap='/scratch/kocevski/873467/expmap_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.fits', expCube='/scratch/kocevski/873467/ltcube_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/873467/Model_4FGL_J1129.5+3034_daily_bin217.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/873467/ft1_filtered_4FGL_J1129.5+3034_daily_bin217.fits
Spacecraft file(s): /scratch/kocevski/873467/ft2_4FGL_J1129.5+3034_daily_bin217.fits
Exposure map: /scratch/kocevski/873467/expmap_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.fits
Exposure cube: /scratch/kocevski/873467/ltcube_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/873467/Model_4FGL_J1129.5+3034_daily_bin217.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) = 5482.92660822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.965       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6430       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3018       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0285       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11412E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12454E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4042       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .16103       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.347       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0151       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12450E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.6997       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.1292       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .53391       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.5453       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .98353       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0658       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=   5482.920     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     4399 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.968        33.680        .44337E-06   -.10509E-04
   2  Prefactor     7.6432        8.4594        .61478E-07    .66234E-05
   3  Prefactor     .10000E-03    5.4430        .22841E-06** at limit **
   4  Prefactor     .10000E-03    8.5621       -.17557E-05** at limit **
   5  norm          1.3018        .33424       -.40612E-08   -.56044E-03
   6  Prefactor     1.0284        2.7932        .27380E-07   -.16108E-04
   7  Prefactor     .10000E-03    19.182        .91904E-05** at limit **
   8  Prefactor     .10000E-03    6.3935       -.57620E-06** at limit **
   9  norm          .10000E-03    21.350       -.55943E-05** at limit **
  10  Prefactor     .10000E-03    4.4813        .35762E-07** at limit **
  11  norm          .10000E-03    3.2844        .15211E-07** at limit **
  12  Prefactor     .10000E-03    9.0736        .92920E-06** at limit **
  13  Prefactor     .10000E-03    1.0634       -.28821E-09** at limit **
  14  Prefactor     .10000E-03    16.475       -.47066E-05** at limit **
  15  Prefactor     .10000E-03    4.9825       -.87989E-07** at limit **
  16  norm          .10000E-03    .65699        .78551E-08** at limit **
  17  Prefactor     .10004E-03    6.0530        .27926E-06** at limit **
  18  Prefactor     1.4048        3.9431        .29925E-07   -.38124E-05
  19  Prefactor     .10000E-03    8.0655       -.11187E-05** at limit **
  20  norm          .15934        .59935        .49544E-07    .31344E-04
  21  Prefactor     24.344        21.867       -.33982E-06   -.20581E-04
  22  Prefactor     1.0155        2.3884        .76950E-07    .22140E-04
  23  Prefactor     .10000E-03    7.5775        .20477E-05** at limit **
  24  Prefactor     .10000E-03    145.29       -.59426E-05** at limit **
  25  norm          4.6997        1.6207        .17057E-08   -.78467E-04
  26  Prefactor     .10000E-03    11.482        .94119E-06** at limit **
  27  norm          4.1292        2.5913        .20646E-08   -.91255E-05
  28  Prefactor     .53442        .37614       -.57523E-08   -.14780E-03
  29  Prefactor     .10000E-03    .84276        .21902E-08** at limit **
  30  Prefactor     2.5453        1.9389        .93411E-08   -.55182E-05
  31  Normalizat    .98351        .18585       -.88041E-07   -.60357E-04
  32  Prefactor     1.0658        .21087       -.35827E-07   -.47080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.9683
  Prefactor  = 7.64324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30178
  Prefactor  = 1.0284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 1.40484
  Prefactor  = 0.0001
  norm       = 0.159338
  Prefactor  = 24.3437
  Prefactor  = 1.01545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.69965
  Prefactor  = 0.0001
  norm       = 4.1292
  Prefactor  = 0.534416
  Prefactor  = 0.0001
  Prefactor  = 2.54527
  Normalizat = 0.983514
  Prefactor  = 1.06583
 **********
 **   18 **HESSE 
 **********

 FCN=   5482.920     FROM HESSE     STATUS=OK           665 CALLS     5064 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.968        33.721        .75758E-04   -1.4650    
   2  Prefactor     7.6432        8.4599        .72527E-03   -1.5155    
   3  Prefactor     .10000E-03    5.4540        .16862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3018        .33463        .21023E-04   -1.5480    
   6  Prefactor     1.0284        2.7698        .18994E-03   -1.5505    
   7  Prefactor     .10000E-03    19.459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    21.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5205        .15306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2877        .13105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.1770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0864        .74464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9910        .16140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .66459        .58586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10004E-03    9.0797        .63802E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4048        3.9169        .23490E-03   -1.5471    
  19  Prefactor     .10000E-03    8.0695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .15934        .84458        .10587E-02   -1.5628    
  21  Prefactor     24.344        21.167        .81182E-04   -1.4721    
  22  Prefactor     1.0155        2.2693        .14802E-03   -1.5506    
  23  Prefactor     .10000E-03    7.5940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    146.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.6997        1.6194        .52519E-04   -1.5274    
  26  Prefactor     .10000E-03    11.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.1292        2.5851        .91147E-04   -1.5302    
  28  Prefactor     .53442        11.839        .22817E-02   -1.5562    
  29  Prefactor     .10000E-03    .84709        .66267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.5453        1.9367        .87218E-04   -1.5389    
  31  Normalizat    .98351        .22045        .24041E-03   -.93585    
  32  Prefactor     1.0658        .25216        .27430E-03   -.90566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27874e-10
Minuit parameter uncertainties:
  1  33.7435
  2  8.46124
  3  5.152e-07
  4  1.13048e-06
  5  0.334633
  6  2.77011
  7  0.000142943
  8  1.18402e-06
  9  2.40754e-05
  10  3.09422e-08
  11  2.34248e-07
  12  2.09563e-06
  13  5.59733e-07
  14  2.26816e-06
  15  4.81775e-07
  16  2.12083e-07
  17  0.00127241
  18  3.91759
  19  8.03731e-08
  20  0.733472
  21  21.1738
  22  2.26951
  23  3.44606e-07
  24  3.61569e-05
  25  1.61939
  26  1.64171e-07
  27  2.5852
  28  5.03141
  29  2.60546e-08
  30  1.93674
  31  0.22065
  32  0.252439
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.818e-07  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.066e+00  2.524e-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:  9.835e-01  2.206e-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: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/873467/likelihoodResults_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.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) = 5482.92137279
delta logL = -0.000950793719312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5482.92042207
delta logL = -7.10124368197e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5482.920     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10338E-03    5.3770        .16638E-01** at limit **
   2  Index         2.3363        6.1681        .50000        .38023E-04
   3  Normalizat    .98352        .42959E-02    .24041E-03    .99448E-04
   4  Prefactor     1.0658        .51028E-02    .27430E-03    .31457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103384
  Index      = 2.33627
  Normalizat = 0.983516
  Prefactor  = 1.06583
 **********
 **   18 **HESSE 
 **********

 FCN=   5482.920     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10338E-03    57.494        .17185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3363        5.0530        .50000       -.56184    
   3  Normalizat    .98352        .14152E-01    .96164E-05   -.93585    
   4  Prefactor     1.0658        .16810E-01    .10972E-04   -.90566    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24045e-08
Minuit parameter uncertainties:
  1  0.0279229
  2  274.297
  3  0.0141521
  4  0.0168105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873467': 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) = 5482.92042108
delta logL = 9.1621222964e-07

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.034e-04  2.792e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.336e+00  2.743e+02  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.066e+00  1.681e-02  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:  9.835e-01  1.415e-02  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/873467/cmap_HighResolution_295574401_295833601_4FGL_J1129.5+3034_daily_bin217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-09-04 01:32:54.878459', job_id='873467', GAL2='1.07', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630744374.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='9.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='217' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:32:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 873467: <4FGL_J1129.5+3034_daily_bin217> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin217> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 01:16:16 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:17:12 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:17:12 2021
Terminated at Sat Sep  4 01:32:55 2021
Results reported at Sat Sep  4 01:32:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin217 172.38 30.5789 295574401 295833601 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 :                                   924.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            999 sec.

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

