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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1596
RA = 172.296, Dec = 37.0644
tmin = 653011201, tmax = 653270401
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='302768', job_status='RUN', time_executed='2021-09-14 00:26:51.625086', time_epoch_executed='1631604411.63' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302768/ft1_4FGL_J1129.1+3703_daily_bin1596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302768/ft2_4FGL_J1129.1+3703_daily_bin1596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302768/ft1_4FGL_J1129.1+3703_daily_bin1596.fits outfile=/scratch/kocevski/302768/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1596.fits ra=172.296 dec=37.0644 rad=12.0 tmin=653011201.0 tmax=653270401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.13
user 2.91
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302768/ft2_4FGL_J1129.1+3703_daily_bin1596.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/302768/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1596.fits evtable="EVENTS" outfile="/scratch/kocevski/302768/ft1_filtered_4FGL_J1129.1+3703_daily_bin1596.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302768/ft1_filtered_4FGL_J1129.1+3703_daily_bin1596.fits" evtable="EVENTS" scfile=/scratch/kocevski/302768/ft2_4FGL_J1129.1+3703_daily_bin1596.fits sctable="SC_DATA" outfile=/scratch/kocevski/302768/ltcube_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.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/302768/ft2_4FGL_J1129.1+3703_daily_bin1596.fits
.....................!
real 15.18
user 14.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302768/ft1_filtered_4FGL_J1129.1+3703_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/302768/ft2_4FGL_J1129.1+3703_daily_bin1596.fits sctable="SC_DATA" expcube=/scratch/kocevski/302768/ltcube_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.fits outfile=/scratch/kocevski/302768/expmap_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.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/302768/ltcube_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.fits
.....................!
real 193.29
user 187.49
sys 5.17

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/302768/ft1_filtered_4FGL_J1129.1+3703_daily_bin1596.fits scfile=/scratch/kocevski/302768/ft2_4FGL_J1129.1+3703_daily_bin1596.fits outfile=/scratch/kocevski/302768/cmap_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302768/ft1_filtered_4FGL_J1129.1+3703_daily_bin1596.fits scfile=/scratch/kocevski/302768/ft2_4FGL_J1129.1+3703_daily_bin1596.fits outfile=/scratch/kocevski/302768/cmap_HighResolution_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302768/ft1_filtered_4FGL_J1129.1+3703_daily_bin1596.fits', '/scratch/kocevski/302768/ft2_4FGL_J1129.1+3703_daily_bin1596.fits', expMap='/scratch/kocevski/302768/expmap_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.fits', expCube='/scratch/kocevski/302768/ltcube_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302768/Model_4FGL_J1129.1+3703_daily_bin1596.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/302768/ft1_filtered_4FGL_J1129.1+3703_daily_bin1596.fits
Spacecraft file(s): /scratch/kocevski/302768/ft2_4FGL_J1129.1+3703_daily_bin1596.fits
Exposure map: /scratch/kocevski/302768/expmap_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.fits
Exposure cube: /scratch/kocevski/302768/ltcube_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302768/Model_4FGL_J1129.1+3703_daily_bin1596.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) = 331.870515451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0675       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    239.81       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    460.21       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20462E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .19853E-03   1.0000         .10000E-03   10000.    
    13 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'norm      '    .10504E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6077.8       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12666E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10911E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .40429       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=   330.9038     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     5191 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.679       -.88439E-07** at limit **
   2  Prefactor     3.0664        9.1223        .83264E-06   -.91481E-04
   3  Prefactor     .10000E-03    5.0699       -.78033E-07** at limit **
   4  Prefactor     .10000E-03    94.478       -.12825E-06** at limit **
   5  Prefactor     .10000E-03    71.032       -.18463E-06** at limit **
   6  Prefactor     240.94        648.98        .14238E-05   -.19516E-04
   7  Prefactor     .10000E-03    132.17       -.90362E-07** at limit **
   8  norm          .10000E-03    3.4528       -.13615E-05** at limit **
   9  Prefactor     .10000E-03    157.41       -.12971E-06** at limit **
  10  Prefactor     459.36        1444.2        .16081E-05   -.13273E-05
  11  Prefactor     .10000E-03    705.09       -.16359E-05** at limit **
  12  norm          .10001E-03    7724.3       -.98339E-05** at limit **
  13  norm         10000.0        8421.7        .12749E-05** at limit **
  14  Prefactor    10000.0        350.18        .43648E-06** at limit **
  15  Prefactor    10000.0        8328.2        .14105E-05** at limit **
  16  Prefactor    10000.0        6957.8        .39095E-05** at limit **
  17  norm          .10000E-03    7383.4       -.10794E-04** at limit **
  18  Prefactor    10000.0        6298.9        .12606E-05** at limit **
  19  Prefactor     6074.8        7646.8       -.14833E-04   -.12367E-05
  20  Prefactor     .10000E-03    382.31        .23447E-06** at limit **
  21  norm          .10000E-03    4.0921       -.44404E-07** at limit **
  22  Prefactor     .10000E-03    537.21       -.18573E-06** at limit **
  23  norm          .10000E-03    30.817       -.20550E-07** at limit **
  24  Prefactor     .10000E-03    133.33       -.18605E-06** at limit **
  25  Prefactor     .10000E-03    93.625        .10470E-07** at limit **
  26  norm          .10000E-03    6.1252       -.61961E-06** at limit **
  27  Prefactor     .10000E-03    41.781       -.64599E-07** at limit **
  28  Prefactor     .10000E-03    7.2561       -.11365E-06** at limit **
  29  Normalizat    .10000E-01    .10086        .20030E-04** at limit **
  30  Prefactor     .40376        .27431       -.67849E-05   -.56162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.06638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 240.937
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 459.359
  Prefactor  = 0.0001
  norm       = 0.000100006
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000100004
  Prefactor  = 10000
  Prefactor  = 6074.78
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.403762
 **********
 **   18 **HESSE 
 **********

 FCN=   330.9038     FROM HESSE     STATUS=OK           558 CALLS     5749 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.679        .10773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0664        9.0940        .89920E-04   -1.5358    
   3  Prefactor     .10000E-03    5.0700        .40030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    94.489        .17303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    71.034        .15001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     240.94        651.26        .13073E-03   -1.2591    
   7  Prefactor     .10000E-03    132.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.4201        .32768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    157.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     459.36        1446.6        .95451E-04   -1.1388    
  11  Prefactor     .10000E-03    705.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    7727.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm         10000.0        8421.5        .20668E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        350.15        .21176E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        8328.0        .20341E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        6960.4        .18385E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7386.1        .18151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        6298.6        .21095E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6074.8        7645.9        .40963E-04    .21665    
  20  Prefactor     .10000E-03    382.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.0921        .35965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    537.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    30.817        .98740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    133.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    93.627        .17229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.1385        .43958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    41.781        .11499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.2567        .47893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .10367        .17987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .40376        .28154        .22228E-03   -1.1662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18226e-10
Minuit parameter uncertainties:
  1  2.5533e-06
  2  9.09813
  3  2.08707e-07
  4  2.08636e-05
  5  1.80055e-05
  6  672.621
  7  5.26747e-05
  8  2.10372e-05
  9  1.8006e-05
  10  1597.12
  11  0.00024188
  12  0.0132149
  13  0.00654049
  14  0.000174045
  15  0.00815153
  16  0.0247874
  17  0.0101728
  18  0.00124963
  19  5958.44
  20  0.000596109
  21  8.36392e-07
  22  0.000244309
  23  1.17554e-06
  24  4.35744e-05
  25  4.83833e-05
  26  1.36737e-05
  27  7.83698e-06
  28  2.83785e-06
  29  3.59681e-07
  30  0.282512
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e+04  8.152e-03  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:  4.038e-01  2.825e-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  3.597e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 172.296 37.064
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 7.39e-06 +/- 6.02e-12
Energy Flux (Fixed Index): 3.51e-03 +/- 2.86e-09
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 5.23217408954e-07

TS (Fixed Index): 1.13
Ra Dec: 172.296 37.064
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.60e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302768/likelihoodResults_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.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): 0
logL (Free Index) = 308.41467261
delta logL = 22.489133589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 308.414672579
delta logL = 22.4891336206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    4.1800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   308.4147     FROM MIGRAD    STATUS=CONVERGED     12 CALLS       70 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       4.1800        .97368E-01     .0000        .72293E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 4.17998
 **********
 **   18 **HESSE 
 **********

 FCN=   308.4147     FROM HESSE     STATUS=OK             7 CALLS       77 TOTAL
                     EDM=   .79E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       4.1800        .97421E-01    .33885E-04   -.16475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.933e-16
Minuit parameter uncertainties:
  1  0.0974278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302768': 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) = 308.414672579
delta logL = 22.4891336206

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
337        Index:  4.180e+00  9.743e-02  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:  4.037e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 46.11
Ra Dec: 172.296 37.064
Photon Index (Free Index): 4.18 +/- 0.10
Photon Flux (Free Index): 1.43e-03 +/- 3.88e-04
Energy Flux (Free Index): 2.08e-01 +/- 5.36e-02

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/302768/cmap_HighResolution_653011201_653270401_4FGL_J1129.1+3703_daily_bin1596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.60e+04', comment='SUCCESS', photon_flux='7.39e-06', energy_flux2='2.08e-01', photon_flux_error='6.02e-12', dlogl='2.25e+01', energy_flux='3.51e-03', photon_flux2='1.43e-03', job_status='DONE', time_completed='2021-09-14 00:33:10.116929', photon_index_error2='0.10', photon_index2='4.18', ts='1.13', fit_tolerance='1e-08', GAL='0.40', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='5.36e-02', EG='0.01', time_epoch_completed='1631604790.12', return_code='0', job_id='302768', GAL2='0.40', EG2='0.01', return_code2='0', energy_flux_error='2.86e-09', photon_flux_error2='3.88e-04', ts2='46.11', photon_index='2.17' WHERE bin_id='1596' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:33:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 302768: <4FGL_J1129.1+3703_daily_bin1596> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin1596> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 00:25:22 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:26:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 00:26:41 2021
Terminated at Tue Sep 14 00:33:10 2021
Results reported at Tue Sep 14 00:33:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1596 172.296 37.0644 653011201 653270401 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 :                                   381.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   389 sec.
    Turnaround time :                            468 sec.

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

