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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1290
RA = 172.296, Dec = 37.0644
tmin = 573696001, tmax = 573955201
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='835149', job_status='RUN', time_executed='2021-09-03 23:11:32.197426', time_epoch_executed='1630735892.2' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835149

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835149/ft1_4FGL_J1129.1+3703_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835149/ft2_4FGL_J1129.1+3703_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835149/ft1_4FGL_J1129.1+3703_daily_bin1290.fits outfile=/scratch/kocevski/835149/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1290.fits ra=172.296 dec=37.0644 rad=12.0 tmin=573696001.0 tmax=573955201.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 4.54
user 4.22
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835149/ft1_filtered_4FGL_J1129.1+3703_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/835149/ft2_4FGL_J1129.1+3703_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/835149/ltcube_573696001_573955201_4FGL_J1129.1+3703_daily_bin1290.fits outfile=/scratch/kocevski/835149/expmap_573696001_573955201_4FGL_J1129.1+3703_daily_bin1290.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/835149/ltcube_573696001_573955201_4FGL_J1129.1+3703_daily_bin1290.fits
.....................!
real 193.93
user 188.35
sys 4.68

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/835149/ft1_filtered_4FGL_J1129.1+3703_daily_bin1290.fits scfile=/scratch/kocevski/835149/ft2_4FGL_J1129.1+3703_daily_bin1290.fits outfile=/scratch/kocevski/835149/cmap_573696001_573955201_4FGL_J1129.1+3703_daily_bin1290.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=172.296 yref=37.0644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835149/ft1_filtered_4FGL_J1129.1+3703_daily_bin1290.fits scfile=/scratch/kocevski/835149/ft2_4FGL_J1129.1+3703_daily_bin1290.fits outfile=/scratch/kocevski/835149/cmap_HighResolution_573696001_573955201_4FGL_J1129.1+3703_daily_bin1290.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/835149/ft1_filtered_4FGL_J1129.1+3703_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/835149/ft2_4FGL_J1129.1+3703_daily_bin1290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835149/Model_4FGL_J1129.1+3703_daily_bin1290.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/835149/ft1_filtered_4FGL_J1129.1+3703_daily_bin1290.fits.....................!
real 53.18
user 51.73
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5528       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .76884E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.345       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0332       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.506       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0729       1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13238E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.018       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .32783E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.536       1.0000         .10000E-03   10000.    
    21 'norm      '    .87670       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.384       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.3591       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13099E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97483       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2521       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=   5977.870     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4000 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.354       -.21924E-05** at limit **
   2  Prefactor     1.5524        4.3890        .11644E-04    .11897E-02
   3  Prefactor     4.9115        5.9829        .15454E-07    .72065E-03
   4  Prefactor     .10147E-03    78.537       -.46699E-04** at limit **
   5  Prefactor     .10000E-03    7.6935       -.25733E-07** at limit **
   6  Prefactor     65.408        68.460       -.44825E-05   -.55230E-04
   7  Prefactor     .10009E-03    31.389       -.35025E-04** at limit **
   8  norm          1.0333        .32934       -.55804E-08    .28175E-03
   9  Prefactor     .10000E-03    2.8732       -.40466E-06** at limit **
  10  Prefactor     14.507        13.384       -.75711E-07   -.26209E-04
  11  Prefactor     .10000E-03    5.1849        .34882E-07** at limit **
  12  norm          6.0752        10.930        .85116E-06    .41135E-04
  13  norm          .10000E-03    6.8258       -.90954E-07** at limit **
  14  Prefactor     .10000E-03    .99522       -.62443E-07** at limit **
  15  Prefactor     .10000E-03    23.173        .20861E-05** at limit **
  16  Prefactor     .10000E-03    12.642        .52050E-06** at limit **
  17  norm          .10000E-03    1.2568        .14270E-06** at limit **
  18  Prefactor     13.015        14.282       -.48254E-06   -.33880E-03
  19  Prefactor     .10000E-03    3.0947       -.16382E-06** at limit **
  20  Prefactor     32.534        33.055        .86795E-06    .17228E-03
  21  norm          .87697        .78674        .28139E-06    .30212E-02
  22  Prefactor     .10000E-03    9.8173        .10126E-06** at limit **
  23  norm          .10000E-03    11.718        .41287E-06** at limit **
  24  Prefactor     44.351        36.005        .15251E-05    .32489E-03
  25  Prefactor     .10000E-03    123.24       -.28023E-05** at limit **
  26  norm          6.3594        1.8878        .86065E-07    .84248E-03
  27  Prefactor     .10000E-03    53.099       -.16390E-05** at limit **
  28  Prefactor     .10000E-03    8.5933        .82884E-07** at limit **
  29  Normalizat    .97505        .19267       -.42633E-05    .50042E-03
  30  Prefactor     1.2516        .22024        .24567E-05    .67651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.5524
  Prefactor  = 4.91145
  Prefactor  = 0.000101468
  Prefactor  = 0.0001
  Prefactor  = 65.4077
  Prefactor  = 0.000100093
  norm       = 1.03326
  Prefactor  = 0.0001
  Prefactor  = 14.5068
  Prefactor  = 0.0001
  norm       = 6.07519
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.0148
  Prefactor  = 0.0001
  Prefactor  = 32.5339
  norm       = 0.87697
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 44.3508
  Prefactor  = 0.000100003
  norm       = 6.35941
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.975046
  Prefactor  = 1.25158
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.870     FROM HESSE     STATUS=OK           584 CALLS     4584 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5524        5.7981        .16753E-02   -1.5459    
   3  Prefactor     4.9115        5.9700        .18150E-03   -1.5265    
   4  Prefactor     .10147E-03    41.899        .14186       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     65.408        68.633        .24823E-03   -1.4089    
   7  Prefactor     .10009E-03    64.254        .47413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0333        .32983        .23905E-04   -1.5505    
   9  Prefactor     .10000E-03    2.9485        .25488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.507        13.389        .10516E-03   -1.4946    
  11  Prefactor     .10000E-03    5.1876        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0752        10.936        .81462E-03   -1.5215    
  13  norm          .10000E-03    6.8456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0115        .75245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8963        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.015        14.274        .11102E-03   -1.4986    
  19  Prefactor     .10000E-03    12.108        .25802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.534        32.921        .70248E-04   -1.4567    
  21  norm          .87697        .78292        .61666E-04   -1.5521    
  22  Prefactor     .10000E-03    9.8241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.090        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     44.351        35.739        .60179E-04   -1.4375    
  25  Prefactor     .10000E-03    124.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.3594        1.8870        .55504E-04   -1.5204    
  27  Prefactor     .10000E-03    53.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.7061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97505        .22596        .26535E-03   -.93871    
  30  Prefactor     1.2516        .26078        .28320E-03   -.84758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43308e-09
Minuit parameter uncertainties:
  1  0.000110668
  2  5.8002
  3  5.97072
  4  0.0156965
  5  3.67711e-06
  6  68.7162
  7  0.00488116
  8  0.32983
  9  1.28565e-07
  10  13.3914
  11  8.32658e-06
  12  10.9398
  13  1.11253e-05
  14  4.28178e-06
  15  4.86699e-05
  16  2.79811e-05
  17  1.99909e-05
  18  14.2777
  19  3.88459e-05
  20  32.9397
  21  0.782927
  22  1.40239e-06
  23  0.000244627
  24  35.7566
  25  0.00114557
  26  1.88702
  27  0.000717497
  28  3.71936e-05
  29  0.226184
  30  0.261049
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  4.867e-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.252e+00  2.610e-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.750e-01  2.262e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835149/likelihoodResults_573696001_573955201_4FGL_J1129.1+3703_daily_bin1290.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) = 5977.87036489
delta logL = -0.000205250759791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5977.87016048
delta logL = -8.36178514874e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3158       1.0000          .0000       10.000    
     3 'Normalizat'    .97505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2516       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=   5977.870     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      278 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10207E-03    4.1175        .18142E-01** at limit **
   2  Index         2.2408        5.9657        .50000        .21461E-04
   3  Normalizat    .97504        .20977E-02    .26535E-03    .13239E-03
   4  Prefactor     1.2516        .25094E-02    .28320E-03    .36918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102069
  Index      = 2.24076
  Normalizat = 0.975045
  Prefactor  = 1.25158
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.870     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10207E-03    37.620        .33834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2408        5.0062        .50000       -.58458    
   3  Normalizat    .97504        .63272E-02    .10614E-04   -.93871    
   4  Prefactor     1.2516        .75689E-02    .56639E-04   -.84758    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17267e-10
Minuit parameter uncertainties:
  1  0.0176538
  2  86.8342
  3  0.0063272
  4  0.0075689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835149': 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) = 5977.87016001
delta logL = -3.66298081644e-07

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.021e-04  1.765e-02  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.241e+00  8.683e+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.252e+00  7.569e-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:  9.750e-01  6.327e-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/835149/cmap_HighResolution_573696001_573955201_4FGL_J1129.1+3703_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-03 23:27:17.191491', job_id='835149', GAL2='1.25', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630736837.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='-3.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1290' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:27:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 835149: <4FGL_J1129.1+3703_daily_bin1290> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin1290> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 23:11:18 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 23:11:21 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:21 2021
Terminated at Fri Sep  3 23:27:17 2021
Results reported at Fri Sep  3 23:27:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1290 172.296 37.0644 573696001 573955201 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 :                                   933.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

