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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1
RA = 172.296, Dec = 37.0644
tmin = 239587201, tmax = 239846401
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='824878', job_status='RUN', time_executed='2021-09-03 22:43:37.838102', time_epoch_executed='1630734217.84' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824878

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824878/ft1_4FGL_J1129.1+3703_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824878/ft2_4FGL_J1129.1+3703_daily_bin1.fits


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

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

Done.
real 1.46
user 1.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/824878/ft1_filtered_4FGL_J1129.1+3703_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/824878/ft2_4FGL_J1129.1+3703_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/824878/ltcube_239587201_239846401_4FGL_J1129.1+3703_daily_bin1.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/824878/ft2_4FGL_J1129.1+3703_daily_bin1.fits
.....................!
real 19.94
user 19.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824878/ft1_filtered_4FGL_J1129.1+3703_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/824878/ft2_4FGL_J1129.1+3703_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/824878/ltcube_239587201_239846401_4FGL_J1129.1+3703_daily_bin1.fits outfile=/scratch/kocevski/824878/expmap_239587201_239846401_4FGL_J1129.1+3703_daily_bin1.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/824878/ltcube_239587201_239846401_4FGL_J1129.1+3703_daily_bin1.fits
.....................!
real 199.06
user 192.54
sys 5.11

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/824878/ft1_filtered_4FGL_J1129.1+3703_daily_bin1.fits scfile=/scratch/kocevski/824878/ft2_4FGL_J1129.1+3703_daily_bin1.fits outfile=/scratch/kocevski/824878/cmap_239587201_239846401_4FGL_J1129.1+3703_daily_bin1.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824878/ft1_filtered_4FGL_J1129.1+3703_daily_bin1.fits scfile=/scratch/kocevski/824878/ft2_4FGL_J1129.1+3703_daily_bin1.fits outfile=/scratch/kocevski/824878/cmap_HighResolution_239587201_239846401_4FGL_J1129.1+3703_daily_bin1.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.537       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6232       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81957       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.008       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    29.881       1.0000         .10000E-03   10000.    
    13 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.295       1.0000         .10000E-03   10000.    
    17 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.3726       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93932       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69485       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=   3896.548     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     3983 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.456       -.21190E-06** at limit **
   2  Prefactor     .10000E-03    6.1815       -.15920E-06** at limit **
   3  Prefactor     .10000E-03    1.9797       -.81858E-07** at limit **
   4  Prefactor     12.527        44.325        .17334E-05    .11022E-04
   5  Prefactor     .10000E-03    12.222        .38102E-06** at limit **
   6  Prefactor     .10000E-03    62.192       -.16865E-05** at limit **
   7  Prefactor     1.6234        9.5431        .87369E-05   -.16537E-03
   8  norm          1.6347        .40746        .92637E-08   -.48391E-03
   9  Prefactor     .81914        2.9628       -.50148E-06    .10166E-03
  10  Prefactor     18.006        18.730        .10304E-06   -.92709E-04
  11  Prefactor     .10000E-03    5.2897        .67603E-08** at limit **
  12  norm          29.879        17.607        .38989E-07   -.12817E-03
  13  norm          .10000E-03    10.571        .99846E-07** at limit **
  14  Prefactor     .10000E-03    .80528        .25901E-07** at limit **
  15  Prefactor     .10000E-03    14.537       -.21576E-06** at limit **
  16  Prefactor     10.295        17.904        .82357E-07   -.12810E-03
  17  norm          .10000E-03    1.8502        .18702E-06** at limit **
  18  Prefactor     .10000E-03    16.317        .26295E-06** at limit **
  19  Prefactor     .10000E-03    3.5794        .53629E-06** at limit **
  20  Prefactor     .10000E-03    297.47       -.52707E-06** at limit **
  21  norm          .10000E-03    .42067        .26047E-09** at limit **
  22  Prefactor     .10000E-03    14.303        .10486E-07** at limit **
  23  norm          7.3726        7.3062       -.88802E-07   -.13806E-03
  24  Prefactor     .10000E-03    26.321        .16392E-06** at limit **
  25  Prefactor     .10000E-03    17.390        .31786E-06** at limit **
  26  norm          .10000E-03    .48099        .92142E-07** at limit **
  27  Prefactor     .10000E-03    53.595        .24981E-06** at limit **
  28  Prefactor     .10000E-03    7.6025        .31559E-07** at limit **
  29  Normalizat    .93929        .17316       -.10866E-05   -.76607E-03
  30  Prefactor     .69491        .19871       -.88767E-06   -.58863E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.62341
  norm       = 1.63468
  Prefactor  = 0.819139
  Prefactor  = 18.006
  Prefactor  = 0.0001
  norm       = 29.8787
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2945
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.37256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.939289
  Prefactor  = 0.694909
 **********
 **   18 **HESSE 
 **********

 FCN=   3896.548     FROM HESSE     STATUS=OK           576 CALLS     4559 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.3262        .30269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9850        .85750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.527        44.368        .11313E-03   -1.5000    
   5  Prefactor     .10000E-03    12.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    62.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6234        9.4982        .16606E-02   -1.5453    
   8  norm          1.6347        .40847        .18771E-04   -1.5452    
   9  Prefactor     .81914        2.9303        .18809E-03   -1.5527    
  10  Prefactor     18.006        18.777        .94383E-04   -1.4859    
  11  Prefactor     .10000E-03    5.2907        .14021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          29.879        17.598        .73295E-04   -1.4614    
  13  norm          .10000E-03    10.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .80920        .54660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.295        17.872        .12488E-03   -1.5066    
  17  norm          .10000E-03    3.3337        .16345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7114        .22796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    309.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .43203        .78900E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.3726        7.3091        .14771E-03   -1.5165    
  24  Prefactor     .10000E-03    26.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .66129        .84260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    54.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.7276        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .93929        .20612        .20180E-03   -.95093    
  30  Prefactor     .69491        .23644        .27181E-03   -1.0373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14802e-09
Minuit parameter uncertainties:
  1  3.04924e-05
  2  2.77564e-05
  3  8.5994e-06
  4  44.485
  5  2.22248e-06
  6  0.000176684
  7  7.85516
  8  0.408467
  9  2.93081
  10  18.7834
  11  1.35076e-06
  12  17.6011
  13  5.59766e-05
  14  1.98472e-06
  15  1.09991e-05
  16  17.8815
  17  3.18754e-05
  18  4.9477e-05
  19  9.9601e-05
  20  0.00205259
  21  4.93745e-07
  22  7.82364e-05
  23  7.31001
  24  0.000190593
  25  1.19477e-06
  26  6.33649e-06
  27  0.000862276
  28  8.23801e-06
  29  0.206292
  30  0.236783
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.100e-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:  6.949e-01  2.368e-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:  9.393e-01  2.063e-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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/824878/likelihoodResults_239587201_239846401_4FGL_J1129.1+3703_daily_bin1.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) = 3896.54815457
delta logL = -0.000319463057622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3896.5478351
delta logL = 4.69981387141e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1473       1.0000          .0000       10.000    
     3 'Normalizat'    .93928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69492       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=   3896.548     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      246 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10275E-03    5.0332        .18142E-01** at limit **
   2  Index         2.0607        6.3019        .50000        .11626E-04
   3  Normalizat    .93929        .23942E-02    .20180E-03   -.23943E-05
   4  Prefactor     .69491        .28231E-02    .27181E-03    .73196E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102749
  Index      = 2.06069
  Normalizat = 0.93929
  Prefactor  = 0.694911
 **********
 **   18 **HESSE 
 **********

 FCN=   3896.548     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10275E-03    118.06        .24512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0607        7.0505        .50000       -.62841    
   3  Normalizat    .93929        .11694E-01    .80719E-05   -.95093    
   4  Prefactor     .69491        .13789E-01    .10872E-04   -1.0373    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00197e-08
Minuit parameter uncertainties:
  1  0.0360992
  2  417.742
  3  0.0116943
  4  0.0137896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824878': 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) = 3896.54783484
delta logL = 2.62856246991e-07

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.027e-04  3.610e-02  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.061e+00  4.177e+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:  6.949e-01  1.379e-02  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:  9.393e-01  1.169e-02  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/824878/cmap_HighResolution_239587201_239846401_4FGL_J1129.1+3703_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-03 22:55:46.399514', job_id='824878', GAL2='0.69', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630734946.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='2.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:55:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 824878: <4FGL_J1129.1+3703_daily_bin1> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin1> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 22:41:47 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:42:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 22:42:36 2021
Terminated at Fri Sep  3 22:55:47 2021
Results reported at Fri Sep  3 22:55:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1 172.296 37.0644 239587201 239846401 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 :                                   725.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            840 sec.

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

