/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 35 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1129.5+3034_daily_bin75
RA = 172.38, Dec = 30.5789
tmin = 258768001, tmax = 259027201
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='873259', job_status='RUN', time_executed='2021-09-04 01:16:52.341001', time_epoch_executed='1630743412.34' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873259

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873259/ft1_4FGL_J1129.5+3034_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873259/ft2_4FGL_J1129.5+3034_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873259/ft1_4FGL_J1129.5+3034_daily_bin75.fits outfile=/scratch/kocevski/873259/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin75.fits ra=172.38 dec=30.5789 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.15
user 0.96
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873259/ft1_filtered_4FGL_J1129.5+3034_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/873259/ft2_4FGL_J1129.5+3034_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/873259/ltcube_258768001_259027201_4FGL_J1129.5+3034_daily_bin75.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/873259/ft2_4FGL_J1129.5+3034_daily_bin75.fits
.....................!
real 11.83
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873259/ft1_filtered_4FGL_J1129.5+3034_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/873259/ft2_4FGL_J1129.5+3034_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/873259/ltcube_258768001_259027201_4FGL_J1129.5+3034_daily_bin75.fits outfile=/scratch/kocevski/873259/expmap_258768001_259027201_4FGL_J1129.5+3034_daily_bin75.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/873259/ltcube_258768001_259027201_4FGL_J1129.5+3034_daily_bin75.fits
.....................!
real 192.16
user 186.73
sys 4.62

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/873259/ft1_filtered_4FGL_J1129.5+3034_daily_bin75.fits scfile=/scratch/kocevski/873259/ft2_4FGL_J1129.5+3034_daily_bin75.fits outfile=/scratch/kocevski/873259/cmap_258768001_259027201_4FGL_J1129.5+3034_daily_bin75.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/873259/ft1_filtered_4FGL_J1129.5+3034_daily_bin75.fits scfile=/scratch/kocevski/873259/ft2_4FGL_J1129.5+3034_daily_bin75.fits outfile=/scratch/kocevski/873259/cmap_HighResolution_258768001_259027201_4FGL_J1129.5+3034_daily_bin75.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .60547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2474       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8757       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2256       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .85455E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .35531       1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.448       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.500       1.0000         .10000E-03   10000.    
    20 'norm      '    .73995       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.777       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .61463       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    183.12       1.0000         .10000E-03   10000.    
    25 'norm      '    6.1319       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.4393       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.9159       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91603       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80614       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=   3199.299     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4428 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.706        .18016E-06** at limit **
   2  Prefactor     .10000E-03    5.8842        .91190E-07** at limit **
   3  Prefactor     .10000E-03    4.2812       -.42879E-08** at limit **
   4  Prefactor     .10000E-03    14.522        .19105E-06** at limit **
   5  norm          .60545        .39496       -.29486E-07   -.37549E-03
   6  Prefactor     5.2473        3.6626        .21626E-07   -.50836E-04
   7  Prefactor     6.8716        21.247       -.41757E-07    .47050E-05
   8  Prefactor     .10000E-03    12.393       -.80952E-07** at limit **
   9  norm          .10000E-03    15.372        .63614E-06** at limit **
  10  Prefactor     4.2250        9.7660       -.62623E-07   -.18827E-04
  11  norm          .10000E-03    5.5070       -.11572E-06** at limit **
  12  Prefactor     .10000E-03    6.5001        .38936E-07** at limit **
  13  Prefactor     .10000E-03    1.5704        .58424E-07** at limit **
  14  Prefactor     .10000E-03    22.742       -.22595E-06** at limit **
  15  Prefactor     .10000E-03    179.38       -.15505E-06** at limit **
  16  norm          .35517        2.2363       -.75142E-06   -.19312E-03
  17  Prefactor     52.448        27.440       -.16102E-06   -.17312E-04
  18  Prefactor     .10002E-03    12.477       -.27134E-05** at limit **
  19  Prefactor     20.494        30.533       -.54449E-06    .85855E-05
  20  norm          .74093        1.2599        .58641E-06    .11694E-02
  21  Prefactor     15.781        27.981        .61642E-06   -.48695E-05
  22  Prefactor     .61383        2.0642       -.57237E-06   -.28221E-03
  23  Prefactor     .10000E-03    32.806       -.11556E-06** at limit **
  24  Prefactor     183.11        102.24       -.10487E-05    .12159E-04
  25  norm          6.1321        2.2666       -.13420E-07   -.25558E-04
  26  Prefactor     .10000E-03    31.684       -.16742E-06** at limit **
  27  norm          7.4397        4.4523       -.80391E-08   -.30265E-04
  28  Prefactor     .10000E-03    2.6873        .75906E-08** at limit **
  29  Prefactor     .10000E-03    1.4511        .49528E-07** at limit **
  30  Prefactor     1.9159        2.2218        .18531E-07    .79376E-05
  31  Normalizat    .91597        .23356       -.11603E-05    .25289E-04
  32  Prefactor     .80624        .24741        .60808E-06    .10037E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.605447
  Prefactor  = 5.24734
  Prefactor  = 6.87159
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.22501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.355172
  Prefactor  = 52.4482
  Prefactor  = 0.000100018
  Prefactor  = 20.4945
  norm       = 0.740925
  Prefactor  = 15.7807
  Prefactor  = 0.613831
  Prefactor  = 0.0001
  Prefactor  = 183.109
  norm       = 6.13208
  Prefactor  = 0.0001
  norm       = 7.43968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9159
  Normalizat = 0.915966
  Prefactor  = 0.806237
 **********
 **   18 **HESSE 
 **********

 FCN=   3199.299     FROM HESSE     STATUS=OK           661 CALLS     5089 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8922        .13404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2832        .11430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .60545        .39233        .26651E-04   -1.5552    
   6  Prefactor     5.2473        3.6619        .86771E-04   -1.5250    
   7  Prefactor     6.8716        21.295        .15301E-03   -1.5184    
   8  Prefactor     .10000E-03    12.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2250        9.7565        .19603E-03   -1.5297    
  11  norm          .10000E-03    5.5237        .12967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5065        .14079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5902        .69196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    177.24        .58734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .35517        2.2172        .16443E-03   -1.5589    
  17  Prefactor     52.448        27.099        .55380E-04   -1.4258    
  18  Prefactor     .10002E-03    17.608        .28758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.494        30.510        .88463E-04   -1.4802    
  20  norm          .74093        1.2465        .80636E-03   -1.5536    
  21  Prefactor     15.781        27.520        .10084E-03   -1.4913    
  22  Prefactor     .61383        2.0097        .13458E-03   -1.5551    
  23  Prefactor     .10000E-03    33.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     183.11        102.09        .14917E-03   -1.2993    
  25  norm          6.1321        2.2682        .48452E-04   -1.5213    
  26  Prefactor     .10000E-03    31.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.4397        4.4383        .87932E-04   -1.5162    
  28  Prefactor     .10000E-03    2.6876        .90560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.4536        .66396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.9159        2.2173        .87515E-04   -1.5431    
  31  Normalizat    .91597        .26972        .23798E-03   -.95901    
  32  Prefactor     .80624        .28563        .28663E-03   -.99499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4693e-09
Minuit parameter uncertainties:
  1  5.02568e-05
  2  1.78731e-05
  3  9.70667e-07
  4  5.22803e-05
  5  0.392327
  6  3.6621
  7  21.3189
  8  6.678e-05
  9  0.000127517
  10  9.76018
  11  1.88591e-05
  12  8.26794e-06
  13  6.47624e-06
  14  0.000104727
  15  0.000487667
  16  1.77465
  17  27.1058
  18  0.0011303
  19  30.5333
  20  1.24657
  21  27.5417
  22  2.00993
  23  1.31931e-05
  24  102.185
  25  2.26825
  26  8.98756e-05
  27  4.43853
  28  3.60289e-07
  29  1.94243e-06
  30  2.21741
  31  0.270116
  32  0.286154
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.877e-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:  8.062e-01  2.862e-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.160e-01  2.701e-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: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/873259/likelihoodResults_258768001_259027201_4FGL_J1129.5+3034_daily_bin75.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) = 3199.29866925
delta logL = -2.64444970526e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3199.2986429
delta logL = -1.03795173345e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4240       1.0000          .0000       10.000    
     3 'Normalizat'    .91597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80625       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=   3199.299     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      306 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15532E-02    39.479        .78435E-01** at limit **
   2  Index         2.5553        3.6123        .50000       -.26601E-03
   3  Normalizat    .91597        .53858E-02    .23798E-03    .23808E-03
   4  Prefactor     .80624        .61480E-02    .28663E-03    .91682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00155322
  Index      = 2.5553
  Normalizat = 0.915965
  Prefactor  = 0.806236
 **********
 **   18 **HESSE 
 **********

 FCN=   3199.299     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      345 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15532E-02    29.797        .88485E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5553        3.5191        .50000       -.51087    
   3  Normalizat    .91597        .51807E-02    .47595E-04   -.95901    
   4  Prefactor     .80624        .59139E-02    .11465E-04   -.99499    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.05822e-10
Minuit parameter uncertainties:
  1  0.416385
  2  4.09466
  3  0.00518065
  4  0.00591392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873259': 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) = 3199.29864148
delta logL = 1.3170879356e-06

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.553e-03  4.164e-01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.555e+00  4.095e+00  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:  8.062e-01  5.914e-03  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.160e-01  5.181e-03  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/873259/cmap_HighResolution_258768001_259027201_4FGL_J1129.5+3034_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-04 01:27:57.159443', job_id='873259', GAL2='0.81', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630744077.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.32e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='75' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:27:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 873259: <4FGL_J1129.5+3034_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin75 172.38 30.5789 258768001 259027201 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 :                                   664.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            716 sec.

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

