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


Performing analysis on: 4FGL_J1129.1+3703_monthly_bin118
RA = 172.296, Dec = 37.0644
tmin = 542851201, tmax = 545443201
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='504130', job_status='RUN', time_executed='2021-10-22 18:41:59.809832', time_epoch_executed='1634953319.81' WHERE source_name='4FGL J1129.1+3703' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504130

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504130/ft1_4FGL_J1129.1+3703_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504130/ft1_4FGL_J1129.1+3703_monthly_bin118.fits outfile=/scratch/kocevski/504130/ft1_filteredMKT_4FGL_J1129.1+3703_monthly_bin118.fits ra=172.296 dec=37.0644 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.36
user 17.90
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.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/504130/ft1_filteredMKT_4FGL_J1129.1+3703_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/504130/ft1_filtered_4FGL_J1129.1+3703_monthly_bin118.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.60
user 0.41
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504130/ft1_filtered_4FGL_J1129.1+3703_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/504130/ltcube_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.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/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.fits
.....................!
real 39.74
user 39.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504130/ft1_filtered_4FGL_J1129.1+3703_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/504130/ltcube_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.fits outfile=/scratch/kocevski/504130/expmap_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.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/504130/ltcube_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.fits
.....................!
real 193.09
user 187.61
sys 5.10

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

Setting source of interest to:
4FGL J1129.1+3703 @ 172.296 37.0644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/504130/ft1_filtered_4FGL_J1129.1+3703_monthly_bin118.fits scfile=/scratch/kocevski/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.fits outfile=/scratch/kocevski/504130/cmap_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.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.296 yref=37.0644 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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504130/ft1_filtered_4FGL_J1129.1+3703_monthly_bin118.fits scfile=/scratch/kocevski/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.fits outfile=/scratch/kocevski/504130/cmap_HighResolution_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.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.296 yref=37.0644 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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504130/ft1_filtered_4FGL_J1129.1+3703_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504130/Model_4FGL_J1129.1+3703_monthly_bin118.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/504130/ft1_filtered_4FGL_J1129.1+3703_monthly_bin118.fits.....................!
real 48.04
user 46.69
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504130/ft1_filtered_4FGL_J1129.1+3703_monthly_bin118.fits', '/scratch/kocevski/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.fits', expMap='/scratch/kocevski/504130/expmap_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.fits', expCube='/scratch/kocevski/504130/ltcube_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504130/Model_4FGL_J1129.1+3703_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.1+3703'

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  7.179e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.171e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/504130/ft1_filtered_4FGL_J1129.1+3703_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/504130/ft2_4FGL_J1129.1+3703_monthly_bin118.fits
Exposure map: /scratch/kocevski/504130/expmap_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.fits
Exposure cube: /scratch/kocevski/504130/ltcube_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504130/Model_4FGL_J1129.1+3703_monthly_bin118.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) = 4605.66354938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .66942       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2134       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.521       1.0000         .10000E-03   10000.    
    12 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.599       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14961E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.590       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1082       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .42088E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3789       1.0000         .10000E-03   10000.    
    22 'Prefactor '    76.587       1.0000         .10000E-03   10000.    
    23 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.156       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11752E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    27.230       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13411E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.610       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.6012       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4605.589     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     3442 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.341        .13091E-06** at limit **
   2  Prefactor     .10000E-03    12.734        .62737E-07** at limit **
   3  Prefactor     .10000E-03    5.7325       -.31231E-08** at limit **
   4  Prefactor     .10000E-03    41.110       -.27296E-07** at limit **
   5  Prefactor     .10000E-03    13.489       -.14610E-06** at limit **
   6  Prefactor     .10000E-03    214.29       -.77488E-06** at limit **
   7  Prefactor     .10000E-03    7.0194       -.89401E-07** at limit **
   8  norm          .66938        .57734       -.20809E-07    .85462E-03
   9  Prefactor     2.2127        3.4051        .56130E-07    .55472E-03
  10  Prefactor     .10000E-03    25.810       -.15393E-08** at limit **
  11  Prefactor     33.511        36.583        .65462E-06    .94701E-04
  12  norm          .10000E-03    23.208       -.38339E-07** at limit **
  13  norm          12.597        14.114       -.21483E-05    .23173E-04
  14  Prefactor     .10000E-03    3.3813        .48292E-07** at limit **
  15  Prefactor     .10000E-03    141.21       -.12341E-07** at limit **
  16  Prefactor     49.514        31.693       -.17052E-05   -.15452E-04
  17  norm          4.1097        5.2540       -.33613E-06    .83914E-04
  18  Prefactor     .10003E-03    269.92       -.81032E-05** at limit **
  19  Prefactor     .10000E-03    20.742        .96485E-06** at limit **
  20  Prefactor     .10000E-03    38.411       -.37854E-07** at limit **
  21  norm          1.3789        1.8304       -.16221E-07    .34274E-03
  22  Prefactor     76.567        34.826        .24350E-06    .28217E-03
  23  norm          .10000E-03    15.126       -.17681E-07** at limit **
  24  Prefactor     20.131        41.710       -.24002E-06    .11675E-03
  25  Prefactor     .10000E-03    52.101       -.31044E-06** at limit **
  26  norm          27.230        2.9308       -.10612E-07    .16866E-02
  27  Prefactor     .10000E-03    70.618        .55223E-07** at limit **
  28  Prefactor     14.610        10.642        .57175E-07    .33846E-03
  29  Normalizat    .10000E-01    .15121       -.11193E-04** at limit **
  30  Prefactor     1.6011        .19125        .27426E-05    .57856E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.669377
  Prefactor  = 2.21267
  Prefactor  = 0.0001
  Prefactor  = 33.5115
  norm       = 0.0001
  norm       = 12.5968
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 49.5141
  norm       = 4.10969
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37886
  Prefactor  = 76.5666
  norm       = 0.0001
  Prefactor  = 20.1308
  Prefactor  = 0.0001
  norm       = 27.2299
  Prefactor  = 0.0001
  Prefactor  = 14.6101
  Normalizat = 0.01
  Prefactor  = 1.60114
 **********
 **   18 **HESSE 
 **********

 FCN=   4605.589     FROM HESSE     STATUS=OK           586 CALLS     4028 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7355        .15870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    214.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0344        .17555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .66938        .57132        .43481E-03   -1.5544    
   9  Prefactor     2.2127        3.4018        .14510E-03   -1.5410    
  10  Prefactor     .10000E-03    25.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.511        37.291        .69211E-04   -1.4550    
  12  norm          .10000E-03    23.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.597        13.994        .56427E-03   -1.4998    
  14  Prefactor     .10000E-03    9.7482        .22348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    141.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.514        40.810        .56946E-04   -1.4299    
  17  norm          4.1097        5.0561        .15974E-03   -1.5302    
  18  Prefactor     .10003E-03    54.764        .79412E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3789        1.8064        .10124E-03   -1.5473    
  22  Prefactor     76.567        35.103        .45884E-04   -1.3956    
  23  norm          .10000E-03    15.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.131        41.875        .89213E-04   -1.4810    
  25  Prefactor     .10000E-03    52.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          27.230        2.9356        .34855E-04   -1.4664    
  27  Prefactor     .10000E-03    71.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.610        10.683        .10479E-03   -1.4943    
  29  Normalizat    .10000E-01    .28981        .12974E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.6011        .20519        .28384E-03   -.74745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04077e-09
Minuit parameter uncertainties:
  1  8.84666e-05
  2  2.65069e-05
  3  7.66403e-07
  4  1.67233e-05
  5  4.87457e-05
  6  0.00126339
  7  4.2731e-06
  8  0.57132
  9  3.40213
  10  2.76017e-05
  11  37.3169
  12  4.29275e-05
  13  13.9978
  14  0.000363657
  15  0.000975376
  16  40.8327
  17  5.05665
  18  0.00246537
  19  0.0001468
  20  2.82951e-05
  21  1.80648
  22  35.1124
  23  4.20164e-05
  24  41.9362
  25  0.000211888
  26  2.93561
  27  2.52215e-05
  28  10.6842
  29  2.57352e-05
  30  0.2053
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  9.754e-04  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.171e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  1.601e+00  2.053e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.000e-02  2.574e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.296 37.064
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504130/likelihoodResults_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.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) = 4605.58878004
delta logL = -4.12494000557e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4605.57430751
delta logL = 0.0144312855191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4487       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9659       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+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=   4605.574     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      311 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4651        79.229        .21778E-03    .42111E-03
   2  Index         2.9635        2.6256        .10362E-01    .29876E-03
   3  Normalizat    .10000E-01    .27463        .12838E-02** at limit **
   4  Prefactor     1.5942        .16204        .28416E-03   -.49040E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.46511
  Index      = 2.96355
  Normalizat = 0.01
  Prefactor  = 1.59422
 **********
 **   18 **HESSE 
 **********

 FCN=   4605.574     FROM HESSE     STATUS=OK            23 CALLS      334 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4651        50.257        .87114E-05   -1.5336    
   2  Index         2.9635        2.1428        .41449E-03   -.41949    
   3  Normalizat    .10000E-01    .27464        .25675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5942        .16186        .56832E-04   -.74934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45445e-08
Minuit parameter uncertainties:
  1  26.4194
  2  2.23038
  3  1.20697e-06
  4  0.161911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504130': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4605.57430676
delta logL = 0.0144320336922

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  3.465e+00  2.642e+01  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.964e+00  2.230e+00  0.000e+00  1.000e+01 (-1.000e+00)
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  1.594e+00  1.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.000e-02  1.207e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.296 37.064

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/504130/cmap_HighResolution_542851201_545443201_4FGL_J1129.1+3703_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-10-22 18:56:41.827539', job_id='504130', GAL2='1.59', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1634954201.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.60', dlogl='1.44e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='118' AND source_name='4FGL J1129.1+3703' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 18:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 504130: <4FGL_J1129.1+3703_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1129.1+3703_monthly_bin118> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct 22 18:40:18 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 22 18:40:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 22 18:40:19 2021
Terminated at Fri Oct 22 18:56:42 2021
Results reported at Fri Oct 22 18:56:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_monthly_bin118 172.296 37.0644 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.1+3703 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   860.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             269.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            984 sec.

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

