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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1413
RA = 172.296, Dec = 37.0644
tmin = 605577601, tmax = 605836801
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='835340', job_status='RUN', time_executed='2021-09-03 23:12:11.465444', time_epoch_executed='1630735931.47' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835340/ft1_4FGL_J1129.1+3703_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835340/ft2_4FGL_J1129.1+3703_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835340/ft1_4FGL_J1129.1+3703_daily_bin1413.fits outfile=/scratch/kocevski/835340/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1413.fits ra=172.296 dec=37.0644 rad=12.0 tmin=605577601.0 tmax=605836801.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 5.04
user 4.76
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835340/ft1_filtered_4FGL_J1129.1+3703_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/835340/ft2_4FGL_J1129.1+3703_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/835340/ltcube_605577601_605836801_4FGL_J1129.1+3703_daily_bin1413.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/835340/ft2_4FGL_J1129.1+3703_daily_bin1413.fits
.....................!
real 13.60
user 13.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835340/ft1_filtered_4FGL_J1129.1+3703_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/835340/ft2_4FGL_J1129.1+3703_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/835340/ltcube_605577601_605836801_4FGL_J1129.1+3703_daily_bin1413.fits outfile=/scratch/kocevski/835340/expmap_605577601_605836801_4FGL_J1129.1+3703_daily_bin1413.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/835340/ltcube_605577601_605836801_4FGL_J1129.1+3703_daily_bin1413.fits
.....................!
real 190.52
user 185.67
sys 4.33

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/835340/ft1_filtered_4FGL_J1129.1+3703_daily_bin1413.fits scfile=/scratch/kocevski/835340/ft2_4FGL_J1129.1+3703_daily_bin1413.fits outfile=/scratch/kocevski/835340/cmap_605577601_605836801_4FGL_J1129.1+3703_daily_bin1413.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835340/ft1_filtered_4FGL_J1129.1+3703_daily_bin1413.fits scfile=/scratch/kocevski/835340/ft2_4FGL_J1129.1+3703_daily_bin1413.fits outfile=/scratch/kocevski/835340/cmap_HighResolution_605577601_605836801_4FGL_J1129.1+3703_daily_bin1413.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.934       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16728E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.673       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6295       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3331       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.1153       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11308E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    7.1825       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7861       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .88060E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0650       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0683       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.284       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    70.243       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .74826       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1904       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=   5453.929     FROM MIGRAD    STATUS=CONVERGED    796 CALLS     3984 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.213       -.52531E-06** at limit **
   2  Prefactor     .10000E-03    3.3746       -.16630E-06** at limit **
   3  Prefactor     11.937        8.5829        .11710E-05   -.69068E-04
   4  Prefactor     .10000E-03    13.885       -.87913E-07** at limit **
   5  Prefactor     .10000E-03    121.54        .25141E-05** at limit **
   6  Prefactor     82.602        106.99       -.49041E-06   -.45022E-04
   7  Prefactor     .10000E-03    8.1857        .85871E-07** at limit **
   8  norm          1.6295        .37808       -.82758E-08   -.52465E-03
   9  Prefactor     5.3333        3.5081        .50351E-07   -.75398E-04
  10  Prefactor     .10000E-03    4.9578        .21607E-07** at limit **
  11  Prefactor     .10000E-03    8.5387        .28671E-07** at limit **
  12  norm          .10000E-03    14.471        .23910E-06** at limit **
  13  norm          9.1144        12.626        .11076E-06   -.25428E-04
  14  Prefactor     .10000E-03    2.3107        .39429E-06** at limit **
  15  Prefactor     .10000E-03    76.580        .89178E-07** at limit **
  16  Prefactor     .10000E-03    23.524        .29478E-07** at limit **
  17  norm          7.1826        3.4266       -.21599E-06   -.52920E-03
  18  Prefactor     6.7288        25.793       -.25171E-06   -.11860E-03
  19  Prefactor     .10006E-03    4.4428        .90467E-06** at limit **
  20  Prefactor     3.0138        169.98        .24267E-05   -.21048E-04
  21  norm          3.0688        1.4669       -.89700E-07   -.30405E-03
  22  Prefactor     23.297        32.038       -.21660E-06   -.56659E-04
  23  norm          .10000E-03    3.2572       -.17952E-07** at limit **
  24  Prefactor     70.261        36.578       -.42871E-06   -.16134E-03
  25  Prefactor     .10000E-03    145.93        .49843E-06** at limit **
  26  norm          .10000E-03    .79105        .37585E-06** at limit **
  27  Prefactor     .10000E-03    23.334        .38225E-06** at limit **
  28  Prefactor     .10000E-03    3.0247        .90961E-07** at limit **
  29  Normalizat    .74793        .19369        .86953E-06   -.35439E-03
  30  Prefactor     1.1907        .21754       -.19257E-05   -.23943E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.6023
  Prefactor  = 0.0001
  norm       = 1.62953
  Prefactor  = 5.33334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.11438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 7.1826
  Prefactor  = 6.7288
  Prefactor  = 0.000100063
  Prefactor  = 3.0138
  norm       = 3.06883
  Prefactor  = 23.2969
  norm       = 0.0001
  Prefactor  = 70.2612
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.747929
  Prefactor  = 1.19073
 **********
 **   18 **HESSE 
 **********

 FCN=   5453.929     FROM HESSE     STATUS=OK           586 CALLS     4570 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4051        .13244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.937        8.5747        .57979E-03   -1.5017    
   4  Prefactor     .10000E-03    13.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    125.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     82.602        107.01        .22088E-03   -1.3888    
   7  Prefactor     .10000E-03    8.2198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6295        .37862        .21088E-04   -1.5453    
   9  Prefactor     5.3333        3.5060        .10793E-03   -1.5246    
  10  Prefactor     .10000E-03    4.9617        .16059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.1144        12.614        .13275E-03   -1.5104    
  14  Prefactor     .10000E-03    4.0647        .20859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    76.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    104.45        .58893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.1826        3.3693        .87386E-04   -1.5172    
  18  Prefactor     6.7288        22.171        .15402E-03   -1.5189    
  19  Prefactor     .10006E-03    32.430        .27132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0138        169.03        .23171E-03   -1.5361    
  21  norm          3.0688        1.4519        .53031E-04   -1.5358    
  22  Prefactor     23.297        31.831        .83012E-04   -1.4742    
  23  norm          .10000E-03    3.2589        .13016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     70.261        36.308        .47896E-04   -1.4030    
  25  Prefactor     .10000E-03    146.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.4148        .12400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    23.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.0412        .12545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .74793        .22431        .28021E-03   -1.0203    
  30  Prefactor     1.1907        .24924        .26756E-03   -.86617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27006e-09
Minuit parameter uncertainties:
  1  0.000154764
  2  1.38849e-06
  3  8.57557
  4  1.06532e-05
  5  0.000258828
  6  107.259
  7  2.07943e-06
  8  0.378622
  9  3.50616
  10  2.22869e-07
  11  3.62229e-06
  12  6.96623e-06
  13  12.6174
  14  2.13903e-05
  15  7.11243e-05
  16  0.000913138
  17  3.3694
  18  22.1981
  19  0.00287025
  20  45.2751
  21  1.45191
  22  31.8544
  23  1.21778e-06
  24  36.3198
  25  0.000199197
  26  2.45771e-05
  27  2.18633e-06
  28  1.23332e-06
  29  0.224582
  30  0.249483
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  7.112e-05  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.191e+00  2.495e-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:  7.479e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.296 37.064
Photon Flux Upper Limit: 8.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835340/likelihoodResults_605577601_605836801_4FGL_J1129.1+3703_daily_bin1413.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) = 5453.92922471
delta logL = -6.1917486164e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5453.92916481
delta logL = -2.01314014703e-06

Fit tolerance = 1e-08

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

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

 FCN=   5453.929     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.338        .10646E-01** at limit **
   2  Index         2.2602        8.8699        .50000        .37902E-05
   3  Normalizat    .74793        .23879E-02    .63341E-01    .78269E-04
   4  Prefactor     1.1907        .28262E-02    .60501E-01   -.35454E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26019
  Normalizat = 0.747933
  Prefactor  = 1.19073
 **********
 **   18 **HESSE 
 **********

 FCN=   5453.929     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 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     .10000E-03    150.99        .21293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2602        8.8042        .50000       -.57992    
   3  Normalizat    .74793        .66568E-02    .28021E-03   -1.0203    
   4  Prefactor     1.1907        .78851E-02    .26756E-03   -.86617    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19697e-08
Minuit parameter uncertainties:
  1  9.10442e-05
  2  121.441
  3  0.00665683
  4  0.00788511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835340': 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) = 5453.92916285
delta logL = -5.94818629907e-08

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  9.104e-05  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.260e+00  1.214e+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:  1.191e+00  7.885e-03  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:  7.479e-01  6.657e-03  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/835340/cmap_HighResolution_605577601_605836801_4FGL_J1129.1+3703_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-03 23:26:41.043853', job_id='835340', GAL2='1.19', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630736801.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='-5.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1413' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:26:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 835340: <4FGL_J1129.1+3703_daily_bin1413> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin1413> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 23:11:32 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 23:11:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 23:11:44 2021
Terminated at Fri Sep  3 23:26:42 2021
Results reported at Fri Sep  3 23:26:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1413 172.296 37.0644 605577601 605836801 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 :                                   864.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            910 sec.

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

