/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 9 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1129.5+3034_daily_bin271
RA = 172.38, Dec = 30.5789
tmin = 309571201, tmax = 309830401
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='874679', job_status='RUN', time_executed='2021-09-04 01:21:21.980332', time_epoch_executed='1630743681.98' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/874679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/874679/ft1_4FGL_J1129.5+3034_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/874679/ft2_4FGL_J1129.5+3034_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/874679/ft1_4FGL_J1129.5+3034_daily_bin271.fits outfile=/scratch/kocevski/874679/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin271.fits ra=172.38 dec=30.5789 rad=12.0 tmin=309571201.0 tmax=309830401.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.30
user 5.01
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/874679/ft2_4FGL_J1129.5+3034_daily_bin271.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/874679/ft2_4FGL_J1129.5+3034_daily_bin271.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/874679/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin271.fits evtable="EVENTS" outfile="/scratch/kocevski/874679/ft1_filtered_4FGL_J1129.5+3034_daily_bin271.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.50
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/874679/ft1_filtered_4FGL_J1129.5+3034_daily_bin271.fits" evtable="EVENTS" scfile=/scratch/kocevski/874679/ft2_4FGL_J1129.5+3034_daily_bin271.fits sctable="SC_DATA" outfile=/scratch/kocevski/874679/ltcube_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.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/874679/ft2_4FGL_J1129.5+3034_daily_bin271.fits
.....................!
real 13.17
user 12.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/874679/ft1_filtered_4FGL_J1129.5+3034_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/874679/ft2_4FGL_J1129.5+3034_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/874679/ltcube_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.fits outfile=/scratch/kocevski/874679/expmap_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.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/874679/ltcube_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.fits
.....................!
real 158.78
user 152.81
sys 4.79

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1129.5+3034 @ 172.38 30.5789

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/874679/ft1_filtered_4FGL_J1129.5+3034_daily_bin271.fits scfile=/scratch/kocevski/874679/ft2_4FGL_J1129.5+3034_daily_bin271.fits outfile=/scratch/kocevski/874679/cmap_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.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.38 yref=30.5789 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.51
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/874679/ft1_filtered_4FGL_J1129.5+3034_daily_bin271.fits scfile=/scratch/kocevski/874679/ft2_4FGL_J1129.5+3034_daily_bin271.fits outfile=/scratch/kocevski/874679/cmap_HighResolution_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.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.38 yref=30.5789 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.67
user 0.35
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/874679/ft1_filtered_4FGL_J1129.5+3034_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/874679/ft2_4FGL_J1129.5+3034_daily_bin271.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/874679/Model_4FGL_J1129.5+3034_daily_bin271.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/874679/ft1_filtered_4FGL_J1129.5+3034_daily_bin271.fits.....................!
real 45.91
user 42.40
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/874679/ft1_filtered_4FGL_J1129.5+3034_daily_bin271.fits', '/scratch/kocevski/874679/ft2_4FGL_J1129.5+3034_daily_bin271.fits', expMap='/scratch/kocevski/874679/expmap_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.fits', expCube='/scratch/kocevski/874679/ltcube_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/874679/Model_4FGL_J1129.5+3034_daily_bin271.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.5+3034'

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  2.468e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/874679/ft1_filtered_4FGL_J1129.5+3034_daily_bin271.fits
Spacecraft file(s): /scratch/kocevski/874679/ft2_4FGL_J1129.5+3034_daily_bin271.fits
Exposure map: /scratch/kocevski/874679/expmap_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.fits
Exposure cube: /scratch/kocevski/874679/ltcube_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/874679/Model_4FGL_J1129.5+3034_daily_bin271.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) = 5853.35818154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2912       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5943       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5873       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12653E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9903       1.0000         .10000E-03   10000.    
     9 'norm      '    7.7243       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.135       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1669       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9063       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5266       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.757       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4002       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7611       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.8860       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.9939       1.0000         .10000E-03   10000.    
    27 'norm      '    4.6728       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .18595E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.2707       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .90976       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5853.327     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4423 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.742        .17432E-06** at limit **
   2  Prefactor     .10000E-03    7.1378       -.46776E-06** at limit **
   3  Prefactor     7.2907        7.4490        .10598E-07   -.10728E-04
   4  Prefactor     .10000E-03    4.1233        .26270E-07** at limit **
   5  norm          2.5945        .48749        .17081E-07   -.16640E-02
   6  Prefactor     2.5872        2.2544        .55089E-08   -.25649E-04
   7  Prefactor     .10012E-03    17.209        .69016E-05** at limit **
   8  Prefactor     4.9960        15.214        .52498E-06   -.60906E-04
   9  norm          7.7291        10.062        .16833E-06   -.12324E-03
  10  Prefactor     13.134        8.6246       -.14020E-06   -.55562E-06
  11  norm          3.1649        10.042        .18823E-06    .56743E-06
  12  Prefactor     7.9022        13.081        .14418E-05    .94631E-04
  13  Prefactor     .10000E-03    1.1925       -.43717E-07** at limit **
  14  Prefactor     .10000E-03    22.386        .10186E-05** at limit **
  15  Prefactor     2.4949        19.029        .11620E-04    .19048E-03
  16  norm          .10000E-03    .93748        .80666E-08** at limit **
  17  Prefactor     11.783        15.444       -.28789E-05   -.58311E-04
  18  Prefactor     2.4007        3.5295       -.44495E-07   -.12802E-03
  19  Prefactor     .10000E-03    13.009       -.24039E-06** at limit **
  20  norm          4.7611        1.4343        .99818E-08   -.13175E-03
  21  Prefactor     .10000E-03    6.1302        .29187E-06** at limit **
  22  Prefactor     .10000E-03    1.0004        .55905E-07** at limit **
  23  Prefactor     .10000E-03    7.9292        .38138E-06** at limit **
  24  Prefactor     .10000E-03    19.699       -.54350E-06** at limit **
  25  norm          8.8860        1.8907       -.15045E-07   -.36224E-03
  26  Prefactor     8.9514        24.368        .22544E-05   -.82711E-04
  27  norm          4.6726        3.3971       -.27253E-07   -.79360E-04
  28  Prefactor     .10000E-03    5.0951       -.34114E-06** at limit **
  29  Prefactor     .10002E-03    1.3652        .31622E-06** at limit **
  30  Prefactor     5.2701        3.4803        .62311E-07   -.74311E-04
  31  Normalizat    .90987        .18819       -.12175E-06   -.11828E-03
  32  Prefactor     1.0123        .20835       -.52507E-06   -.13722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.2907
  Prefactor  = 0.0001
  norm       = 2.59455
  Prefactor  = 2.58719
  Prefactor  = 0.000100121
  Prefactor  = 4.99604
  norm       = 7.72915
  Prefactor  = 13.1337
  norm       = 3.16489
  Prefactor  = 7.90217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.4949
  norm       = 0.0001
  Prefactor  = 11.7829
  Prefactor  = 2.4007
  Prefactor  = 0.0001
  norm       = 4.76106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.88601
  Prefactor  = 8.95141
  norm       = 4.67261
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 5.27011
  Normalizat = 0.909869
  Prefactor  = 1.01233
 **********
 **   18 **HESSE 
 **********

 FCN=   5853.327     FROM HESSE     STATUS=OK           673 CALLS     5096 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2907        7.4488        .14854E-03   -1.5168    
   4  Prefactor     .10000E-03    4.1241        .15173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5945        .48444        .21235E-04   -1.5386    
   6  Prefactor     2.5872        2.2541        .10301E-03   -1.5386    
   7  Prefactor     .10012E-03    54.279        .46170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9960        15.163        .18002E-03   -1.5261    
   9  norm          7.7291        9.9453        .14428E-03   -1.5152    
  10  Prefactor     13.134        8.6175        .11052E-03   -1.4983    
  11  norm          3.1649        10.036        .22774E-03   -1.5352    
  12  Prefactor     7.9022        13.103        .71300E-03   -1.5146    
  13  Prefactor     .10000E-03    1.9893        .16061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4949        21.034        .12849E-02   -1.5392    
  16  norm          .10000E-03    .94696        .72271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.783        15.663        .11683E-03   -1.5021    
  18  Prefactor     2.4007        3.5006        .16718E-03   -1.5398    
  19  Prefactor     .10000E-03    13.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7611        1.4352        .48223E-04   -1.5272    
  21  Prefactor     .10000E-03    6.1436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.0488        .14930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.9298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.8860        1.8919        .46416E-04   -1.5112    
  26  Prefactor     8.9514        24.439        .13365E-03   -1.5109    
  27  norm          4.6726        3.3896        .11045E-03   -1.5276    
  28  Prefactor     .10000E-03    5.1387        .16877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10002E-03    1.9394        .32689E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.2701        3.4682        .10684E-03   -1.5249    
  31  Normalizat    .90987        .21702        .26431E-03   -.96114    
  32  Prefactor     1.0123        .24161        .29561E-03   -.92319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80238e-09
Minuit parameter uncertainties:
  1  5.87474e-07
  2  9.88658e-05
  3  7.44977
  4  1.88338e-06
  5  0.48444
  6  2.25413
  7  0.00512067
  8  15.1743
  9  9.94738
  10  8.61834
  11  10.0416
  12  13.1083
  13  1.9126e-05
  14  0.000107873
  15  14.495
  16  3.62145e-07
  17  15.6686
  18  3.50085
  19  2.00742e-05
  20  1.43517
  21  1.45662e-05
  22  3.18274e-06
  23  8.12847e-05
  24  4.95167e-05
  25  1.89187
  26  24.4662
  27  3.38972
  28  3.58752e-05
  29  0.000358502
  30  3.46833
  31  0.217232
  32  0.241871
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  2.495e+00  1.450e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.012e+00  2.419e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.099e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/874679/likelihoodResults_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5853.3221396
delta logL = 0.00493323954197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5853.32155067
delta logL = 0.00552217271797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1661       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7184       1.0000          .0000       10.000    
     3 'Normalizat'    .90767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0137       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5853.322     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      340 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1864        17.361        .13992E-02   -.39075E-04
   2  Index         2.7182        2.6266        .59681E-02   -.12492E-04
   3  Normalizat    .90771        .20664        .26459E-03   -.11343E-03
   4  Prefactor     1.0136        .24136        .29544E-03   -.47177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18643
  Index      = 2.71822
  Normalizat = 0.907714
  Prefactor  = 1.01365
 **********
 **   18 **HESSE 
 **********

 FCN=   5853.322     FROM HESSE     STATUS=OK            25 CALLS      365 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1864        14.495        .55966E-04   -1.5412    
   2  Index         2.7182        2.4277        .23872E-03   -.47390    
   3  Normalizat    .90771        .20685        .10584E-04   -.96190    
   4  Prefactor     1.0136        .24152        .11818E-04   -.92276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79965e-11
Minuit parameter uncertainties:
  1  11.2629
  2  2.56789
  3  0.207027
  4  0.241782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/874679': 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) = 5853.32154819
delta logL = 0.00552464938573

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  2.186e+00  1.126e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.718e+00  2.568e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.014e+00  2.418e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.077e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 172.380 30.579

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/874679/cmap_HighResolution_309571201_309830401_4FGL_J1129.5+3034_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-09-04 01:35:08.066860', job_id='874679', GAL2='1.01', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630744508.07', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='5.52e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='271' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:35:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 874679: <4FGL_J1129.5+3034_daily_bin271> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin271> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 01:21:02 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:21:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 01:21:05 2021
Terminated at Sat Sep  4 01:35:08 2021
Results reported at Sat Sep  4 01:35:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin271 172.38 30.5789 309571201 309830401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.5+3034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   813.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             353.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            846 sec.

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

