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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin794
RA = 172.296, Dec = 37.0644
tmin = 445132801, tmax = 445392001
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='832097', job_status='RUN', time_executed='2021-09-03 23:01:59.654446', time_epoch_executed='1630735319.65' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='794'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832097

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832097/ft1_4FGL_J1129.1+3703_daily_bin794.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832097/ft2_4FGL_J1129.1+3703_daily_bin794.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832097/ft1_4FGL_J1129.1+3703_daily_bin794.fits outfile=/scratch/kocevski/832097/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin794.fits ra=172.296 dec=37.0644 rad=12.0 tmin=445132801.0 tmax=445392001.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.60
user 3.40
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832097/ft1_filtered_4FGL_J1129.1+3703_daily_bin794.fits evtable="EVENTS" scfile=/scratch/kocevski/832097/ft2_4FGL_J1129.1+3703_daily_bin794.fits sctable="SC_DATA" expcube=/scratch/kocevski/832097/ltcube_445132801_445392001_4FGL_J1129.1+3703_daily_bin794.fits outfile=/scratch/kocevski/832097/expmap_445132801_445392001_4FGL_J1129.1+3703_daily_bin794.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/832097/ltcube_445132801_445392001_4FGL_J1129.1+3703_daily_bin794.fits
.....................!
real 191.16
user 186.22
sys 4.53

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/832097/ft1_filtered_4FGL_J1129.1+3703_daily_bin794.fits scfile=/scratch/kocevski/832097/ft2_4FGL_J1129.1+3703_daily_bin794.fits outfile=/scratch/kocevski/832097/cmap_445132801_445392001_4FGL_J1129.1+3703_daily_bin794.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832097/ft1_filtered_4FGL_J1129.1+3703_daily_bin794.fits scfile=/scratch/kocevski/832097/ft2_4FGL_J1129.1+3703_daily_bin794.fits outfile=/scratch/kocevski/832097/cmap_HighResolution_445132801_445392001_4FGL_J1129.1+3703_daily_bin794.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.157       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .72264       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6655       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.937       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10259E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6987       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4877       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.471       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.422       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.3135       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.921       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.221       1.0000         .10000E-03   10000.    
    20 'Prefactor '    108.31       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6177       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.741       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.4142       1.0000         .10000E-03   10000.    
    26 'norm      '    2.9398       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .76355       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0071       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=   6091.844     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3993 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.161        32.172       -.37607E-08   -.21806E-05
   2  Prefactor     .72209        2.2196        .79689E-06    .27407E-03
   3  Prefactor     1.6649        3.0484        .21967E-06    .52675E-05
   4  Prefactor     .10000E-03    11.691       -.40970E-08** at limit **
   5  Prefactor     54.937        34.949        .40938E-06   -.98403E-05
   6  Prefactor     .10000E-03    712.36       -.21559E-04** at limit **
   7  Prefactor     .10000E-03    7.9819        .19159E-07** at limit **
   8  norm          1.6987        .40321       -.99029E-08   -.39090E-04
   9  Prefactor     2.4878        3.1102        .39224E-06    .20057E-04
  10  Prefactor     .10000E-03    5.5639       -.17197E-07** at limit **
  11  Prefactor     12.470        19.275        .21885E-06    .23631E-05
  12  norm          .10000E-03    4.1384        .21814E-08** at limit **
  13  norm          .10000E-03    17.852        .65157E-07** at limit **
  14  Prefactor     .10000E-03    1.5645       -.18305E-06** at limit **
  15  Prefactor     29.417        29.599        .34661E-06    .23550E-04
  16  Prefactor     .10000E-03    6.9913       -.31071E-07** at limit **
  17  norm          5.3133        2.8318        .74629E-07    .96873E-04
  18  Prefactor     21.920        16.604        .29029E-06   -.63014E-05
  19  Prefactor     15.220        7.2047        .24963E-06    .55662E-04
  20  Prefactor     108.33        68.219        .58985E-06    .12692E-04
  21  norm          3.6173        1.8407        .24436E-07    .20864E-04
  22  Prefactor     23.743        29.610        .56127E-06   -.64178E-05
  23  norm          .10000E-03    4.7612        .98637E-07** at limit **
  24  Prefactor     .10000E-03    17.426        .33320E-07** at limit **
  25  Prefactor     8.4270        92.971        .15349E-05    .40551E-05
  26  norm          2.9398        1.5874        .10103E-06   -.14402E-04
  27  Prefactor     .10000E-03    10.608        .81224E-08** at limit **
  28  Prefactor     .10000E-03    2.8245        .20109E-07** at limit **
  29  Normalizat    .76352        .18813       -.28316E-05    .50379E-04
  30  Prefactor     1.0072        .19842        .63560E-06   -.75324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.1608
  Prefactor  = 0.722094
  Prefactor  = 1.6649
  Prefactor  = 0.0001
  Prefactor  = 54.9366
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.69869
  Prefactor  = 2.48775
  Prefactor  = 0.0001
  Prefactor  = 12.4698
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.4168
  Prefactor  = 0.0001
  norm       = 5.31329
  Prefactor  = 21.9195
  Prefactor  = 15.2204
  Prefactor  = 108.329
  norm       = 3.61733
  Prefactor  = 23.7428
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.42699
  norm       = 2.9398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.76352
  Prefactor  = 1.00716
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.844     FROM HESSE     STATUS=OK           590 CALLS     4583 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.161        32.268        .55012E-04   -1.4248    
   2  Prefactor     .72209        2.1180        .20683E-02   -1.5538    
   3  Prefactor     1.6649        3.0236        .17364E-03   -1.5450    
   4  Prefactor     .10000E-03    11.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.937        34.941        .54118E-04   -1.4224    
   6  Prefactor     .10000E-03    716.13        .41491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6987        .40879        .21824E-04   -1.5447    
   9  Prefactor     2.4878        3.0956        .14627E-03   -1.5393    
  10  Prefactor     .10000E-03    5.5734        .17975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.470        19.498        .11343E-03   -1.5002    
  12  norm          .10000E-03    4.1474        .15507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    18.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0061        .18223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.417        29.160        .73862E-04   -1.4623    
  16  Prefactor     .10000E-03    6.9980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.3133        2.8174        .89690E-04   -1.5247    
  18  Prefactor     21.920        16.603        .85549E-04   -1.4771    
  19  Prefactor     15.220        7.1540        .10266E-03   -1.4928    
  20  Prefactor     108.33        68.628        .38645E-04   -1.3623    
  21  norm          3.6173        1.8475        .58884E-04   -1.5328    
  22  Prefactor     23.743        29.626        .82210E-04   -1.4733    
  23  norm          .10000E-03    4.7734        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.4270        92.749        .13820E-03   -1.5127    
  26  norm          2.9398        1.5818        .67387E-04   -1.5365    
  27  Prefactor     .10000E-03    10.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.8354        .12811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .76352        .21106        .28003E-03   -1.0144    
  30  Prefactor     1.0072        .23187        .28510E-03   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70732e-10
Minuit parameter uncertainties:
  1  32.2782
  2  2.1182
  3  3.02393
  4  4.0364e-06
  5  34.9542
  6  0.00155323
  7  4.89723e-06
  8  0.408788
  9  3.09576
  10  5.22372e-06
  11  19.5084
  12  3.5907e-06
  13  3.21843e-05
  14  4.27683e-05
  15  29.1745
  16  2.29939e-06
  17  2.81745
  18  16.6065
  19  7.15441
  20  68.6788
  21  1.84754
  22  29.6439
  23  2.29139e-07
  24  1.86596e-05
  25  56.0241
  26  1.58179
  27  4.22813e-06
  28  3.71846e-06
  29  0.21129
  30  0.232098
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  2.942e+01  2.917e+01  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.007e+00  2.321e-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.635e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.09
Ra Dec: 172.296 37.064
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 2.17e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.02e-05

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) = 6091.74628801
delta logL = 0.0979399250009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6091.74412382
delta logL = 0.100104114696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.383       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8148       1.0000          .0000       10.000    
     3 'Normalizat'    .76915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0047       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=   6091.744     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      308 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.393        41.229        .64694E-04    .27062E-04
   2  Index         1.8146        .77810        .11302E-01    .13946E-03
   3  Normalizat    .76914        .19702        .27922E-03   -.15472E-04
   4  Prefactor     1.0047        .22860        .28548E-03   -.10115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.393
  Index      = 1.81462
  Normalizat = 0.769142
  Prefactor  = 1.00474
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.744     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.393        40.750        .12939E-04   -1.4468    
   2  Index         1.8146        .76944        .22604E-02   -.69070    
   3  Normalizat    .76914        .19716        .11169E-04   -1.0122    
   4  Prefactor     1.0047        .22880        .11419E-04   -.92572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21955e-12
Minuit parameter uncertainties:
  1  40.7794
  2  0.774647
  3  0.197343
  4  0.229022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832097': 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) = 6091.74412376
delta logL = 0.100104173494

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  3.839e+01  4.078e+01  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  1.815e+00  7.746e-01  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.005e+00  2.290e-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.691e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.30
Ra Dec: 172.296 37.064
Photon Index (Free Index): 1.81 +/- 0.77
Photon Flux (Free Index): 1.34e-08 +/- 2.06e-08
Energy Flux (Free Index): 1.53e-05 +/- 2.34e-05

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/832097/cmap_HighResolution_445132801_445392001_4FGL_J1129.1+3703_daily_bin794.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.17e-08', energy_flux2='1.53e-05', photon_flux_error='2.16e-08', dlogl='1.00e-01', energy_flux='1.03e-05', photon_flux2='1.34e-08', job_status='DONE', time_completed='2021-09-03 23:15:39.760084', photon_index_error2='0.77', photon_index2='1.81', ts='4.09', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.34e-05', EG='0.76', time_epoch_completed='1630736139.76', return_code='0', job_id='832097', GAL2='1.00', EG2='0.77', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='2.06e-08', ts2='4.30', photon_index='2.17' WHERE bin_id='794' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:15:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 832097: <4FGL_J1129.1+3703_daily_bin794> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin794> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 23:01:25 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 23:01:50 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:01:50 2021
Terminated at Fri Sep  3 23:15:40 2021
Results reported at Fri Sep  3 23:15:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin794 172.296 37.0644 445132801 445392001 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 :                                   818.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            855 sec.

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

