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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin1110
RA = 172.38, Dec = 30.5789
tmin = 527040001, tmax = 527299201
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='881187', job_status='RUN', time_executed='2021-09-04 01:41:36.773361', time_epoch_executed='1630744896.77' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/881187

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/881187/ft1_4FGL_J1129.5+3034_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/881187/ft2_4FGL_J1129.5+3034_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/881187/ft1_4FGL_J1129.5+3034_daily_bin1110.fits outfile=/scratch/kocevski/881187/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin1110.fits ra=172.38 dec=30.5789 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.00
user 5.74
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/881187/ft2_4FGL_J1129.5+3034_daily_bin1110.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/881187/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/881187/ft1_filtered_4FGL_J1129.5+3034_daily_bin1110.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/881187/ft1_filtered_4FGL_J1129.5+3034_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/881187/ft2_4FGL_J1129.5+3034_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/881187/ltcube_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.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/881187/ft2_4FGL_J1129.5+3034_daily_bin1110.fits
.....................!
real 12.81
user 12.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/881187/ft1_filtered_4FGL_J1129.5+3034_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/881187/ft2_4FGL_J1129.5+3034_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/881187/ltcube_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.fits outfile=/scratch/kocevski/881187/expmap_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.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/881187/ltcube_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.fits
.....................!
real 190.43
user 185.17
sys 4.88

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/881187/ft1_filtered_4FGL_J1129.5+3034_daily_bin1110.fits scfile=/scratch/kocevski/881187/ft2_4FGL_J1129.5+3034_daily_bin1110.fits outfile=/scratch/kocevski/881187/cmap_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/881187/ft1_filtered_4FGL_J1129.5+3034_daily_bin1110.fits scfile=/scratch/kocevski/881187/ft2_4FGL_J1129.5+3034_daily_bin1110.fits outfile=/scratch/kocevski/881187/cmap_HighResolution_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.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.55
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/881187/ft1_filtered_4FGL_J1129.5+3034_daily_bin1110.fits', '/scratch/kocevski/881187/ft2_4FGL_J1129.5+3034_daily_bin1110.fits', expMap='/scratch/kocevski/881187/expmap_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.fits', expCube='/scratch/kocevski/881187/ltcube_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/881187/Model_4FGL_J1129.5+3034_daily_bin1110.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/881187/ft1_filtered_4FGL_J1129.5+3034_daily_bin1110.fits
Spacecraft file(s): /scratch/kocevski/881187/ft2_4FGL_J1129.5+3034_daily_bin1110.fits
Exposure map: /scratch/kocevski/881187/expmap_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.fits
Exposure cube: /scratch/kocevski/881187/ltcube_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/881187/Model_4FGL_J1129.5+3034_daily_bin1110.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) = 5631.64015009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13830       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.979       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.595       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.151       1.0000         .10000E-03   10000.    
     5 'norm      '    .64560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7066       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.044       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.725       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.840       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.368       1.0000         .10000E-03   10000.    
    16 'norm      '    .12669E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.158       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.8442       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.373       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23250E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    60.315       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.1698       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    21.487       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.4392       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.6800       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1715       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97711       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=   5631.637     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     4537 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44322        21.326       -.74803E-06   -.15779E-04
   2  Prefactor     17.979        15.846       -.53872E-06   -.16815E-04
   3  Prefactor     11.595        13.280       -.27921E-06   -.14688E-04
   4  Prefactor     19.169        27.803        .14268E-05   -.13481E-04
   5  norm          .64564        .31964       -.21508E-07   -.95555E-04
   6  Prefactor     1.7069        3.6216       -.18457E-06   -.70200E-03
   7  Prefactor     3.7730        12.097        .29112E-05   -.10568E-03
   8  Prefactor     18.044        17.579        .40770E-06   -.21963E-04
   9  norm          .10000E-03    4.6366       -.28649E-07** at limit **
  10  Prefactor     .10000E-03    4.9270        .31105E-07** at limit **
  11  norm          10.733        14.971        .73542E-06   -.40019E-04
  12  Prefactor     12.843        11.311        .72542E-06   -.18791E-04
  13  Prefactor     .10000E-03    2.5699        .13839E-07** at limit **
  14  Prefactor     .10000E-03    72.348        .31391E-07** at limit **
  15  Prefactor     17.371        17.589        .66512E-07   -.12698E-04
  16  norm          .10000E-03    2.0247        .76063E-07** at limit **
  17  Prefactor     .10000E-03    5.0716       -.28973E-07** at limit **
  18  Prefactor     12.161        7.3332       -.44502E-06   -.87228E-04
  19  Prefactor     .10000E-03    31.522       -.98330E-07** at limit **
  20  norm          7.8453        2.1464       -.15769E-07   -.11041E-03
  21  Prefactor     24.411        32.157        .25616E-05    .16529E-04
  22  Prefactor     .10000E-03    1.6385       -.14532E-06** at limit **
  23  Prefactor     60.325        42.829        .91019E-05   -.61948E-05
  24  Prefactor     .10000E-03    166.67       -.27069E-05** at limit **
  25  norm          5.1704        2.0184       -.18879E-06   -.10367E-03
  26  Prefactor     .10000E-03    59.745       -.41525E-06** at limit **
  27  norm          21.488        5.8776        .59418E-08    .28568E-04
  28  Prefactor     5.4407        9.6501       -.34965E-06   -.10943E-03
  29  Prefactor     .10000E-03    1.8190       -.31882E-08** at limit **
  30  Prefactor     2.6808        3.5803       -.16069E-06   -.43306E-03
  31  Normalizat    1.1710        .24212       -.24675E-05    .10193E-03
  32  Prefactor     .97732        .24241        .37393E-06   -.50192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.44322
  Prefactor  = 17.9792
  Prefactor  = 11.5954
  Prefactor  = 19.169
  norm       = 0.645638
  Prefactor  = 1.70693
  Prefactor  = 3.77297
  Prefactor  = 18.0436
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7325
  Prefactor  = 12.8433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3707
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1614
  Prefactor  = 0.0001
  norm       = 7.84529
  Prefactor  = 24.4114
  Prefactor  = 0.0001
  Prefactor  = 60.3255
  Prefactor  = 0.0001
  norm       = 5.17036
  Prefactor  = 0.000100001
  norm       = 21.4877
  Prefactor  = 5.44067
  Prefactor  = 0.0001
  Prefactor  = 2.68077
  Normalizat = 1.17103
  Prefactor  = 0.977324
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.637     FROM HESSE     STATUS=OK           681 CALLS     5218 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44322        24.437        .11233       -1.5575    
   2  Prefactor     17.979        15.839        .94459E-04   -1.4860    
   3  Prefactor     11.595        13.187        .11765E-03   -1.5027    
   4  Prefactor     19.169        27.757        .91523E-04   -1.4832    
   5  norm          .64564        .32182        .27740E-04   -1.5547    
   6  Prefactor     1.7069        3.6033        .18963E-03   -1.5447    
   7  Prefactor     3.7730        11.925        .20780E-03   -1.5319    
   8  Prefactor     18.044        17.631        .94287E-04   -1.4858    
   9  norm          .10000E-03    4.6389        .15781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9570        .16264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.733        14.993        .12234E-03   -1.5053    
  12  Prefactor     12.843        11.295        .11179E-03   -1.4991    
  13  Prefactor     .10000E-03    5.1110        .22303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.371        17.594        .96103E-04   -1.4874    
  16  norm          .10000E-03    8.0218        .19565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.0746        .16504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.161        7.2785        .11488E-03   -1.5010    
  19  Prefactor     .10000E-03    31.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.8453        2.1267        .54395E-04   -1.5148    
  21  Prefactor     24.411        31.049        .81139E-04   -1.4719    
  22  Prefactor     .10000E-03    10.300        .17241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     60.325        42.237        .51663E-04   -1.4153    
  24  Prefactor     .10000E-03    167.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.1704        2.0175        .62752E-04   -1.5253    
  26  Prefactor     .10000E-03    60.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          21.488        5.8635        .86409E-04   -1.4781    
  28  Prefactor     5.4407        9.6563        .17229E-03   -1.5241    
  29  Prefactor     .10000E-03    1.8475        .98608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.6808        3.5788        .15545E-03   -1.5380    
  31  Normalizat    1.1710        .28862        .28114E-03   -.87503    
  32  Prefactor     .97732        .29048        .33621E-03   -.93489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06597e-09
Minuit parameter uncertainties:
  1  6.58419
  2  15.8423
  3  13.1904
  4  27.7759
  5  0.321823
  6  3.60371
  7  11.9326
  8  17.636
  9  1.0919e-06
  10  1.40548e-06
  11  14.9984
  12  11.2972
  13  3.49482e-06
  14  1.75259e-05
  15  17.5993
  16  2.6446e-06
  17  5.62657e-06
  18  7.27902
  19  4.44265e-06
  20  2.12672
  21  31.0695
  22  3.71351e-05
  23  42.2584
  24  6.0565e-05
  25  2.01751
  26  0.000441644
  27  5.86367
  28  9.65911
  29  5.4106e-07
  30  3.57905
  31  0.289015
  32  0.290941
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.737e+01  1.760e+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:  9.773e-01  2.909e-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:  1.171e+00  2.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 172.380 30.579
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.08e-05

TS (Fixed Index): 2.33
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/881187/likelihoodResults_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.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) = 5631.63162164
delta logL = 0.00524816965299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5631.63023962
delta logL = 0.00663018461546

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5631.630     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      268 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.337        20.473        .93534E-04   -.82432E-04
   2  Index         2.3648        .81263        .86860E-02   -.50521E-04
   3  Normalizat    1.1743        .26034        .28080E-03    .74132E-04
   4  Prefactor     .97541        .28599        .33650E-03    .68718E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3365
  Index      = 2.36482
  Normalizat = 1.17428
  Prefactor  = 0.975408
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.630     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.337        20.116        .18707E-04   -1.4851    
   2  Index         2.3648        .79821        .34744E-03   -.55511    
   3  Normalizat    1.1743        .26052        .11232E-04   -.87401    
   4  Prefactor     .97541        .28624        .13460E-04   -.93554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20727e-10
Minuit parameter uncertainties:
  1  20.1235
  2  0.802984
  3  0.260804
  4  0.286688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/881187': 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) = 5631.63023902
delta logL = 0.00663078678554

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.834e+01  2.012e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.365e+00  8.030e-01  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:  9.754e-01  2.867e-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:  1.174e+00  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 172.380 30.579
Photon Index (Free Index): 2.36 +/- 0.80
Photon Flux (Free Index): 3.18e-08 +/- 4.27e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.15e-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/881187/cmap_HighResolution_527040001_527299201_4FGL_J1129.5+3034_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.92e-03', comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='1.09e-05', photon_flux_error='3.54e-08', dlogl='6.63e-03', energy_flux='1.07e-05', photon_flux2='3.18e-08', job_status='DONE', time_completed='2021-09-04 01:57:08.405284', photon_index_error2='0.80', photon_index2='2.36', ts='2.33', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.15e-05', EG='1.17', time_epoch_completed='1630745828.41', return_code='0', job_id='881187', GAL2='0.98', EG2='1.17', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.27e-08', ts2='2.33', photon_index='2.46' WHERE bin_id='1110' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:57:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 881187: <4FGL_J1129.5+3034_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin1110> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 01:41:21 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:41:25 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:41:25 2021
Terminated at Sat Sep  4 01:57:09 2021
Results reported at Sat Sep  4 01:57:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin1110 172.38 30.5789 527040001 527299201 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 :                                   928.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            948 sec.

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

