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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin602
RA = 172.296, Dec = 37.0644
tmin = 395366401, tmax = 395625601
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='830507', job_status='RUN', time_executed='2021-09-03 22:58:40.048578', time_epoch_executed='1630735120.05' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830507

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830507/ft1_4FGL_J1129.1+3703_daily_bin602.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830507/ft2_4FGL_J1129.1+3703_daily_bin602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830507/ft1_4FGL_J1129.1+3703_daily_bin602.fits outfile=/scratch/kocevski/830507/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin602.fits ra=172.296 dec=37.0644 rad=12.0 tmin=395366401.0 tmax=395625601.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.47
user 4.01
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830507/ft1_filtered_4FGL_J1129.1+3703_daily_bin602.fits" evtable="EVENTS" scfile=/scratch/kocevski/830507/ft2_4FGL_J1129.1+3703_daily_bin602.fits sctable="SC_DATA" outfile=/scratch/kocevski/830507/ltcube_395366401_395625601_4FGL_J1129.1+3703_daily_bin602.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/830507/ft2_4FGL_J1129.1+3703_daily_bin602.fits
.....................!
real 12.78
user 12.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830507/ft1_filtered_4FGL_J1129.1+3703_daily_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/830507/ft2_4FGL_J1129.1+3703_daily_bin602.fits sctable="SC_DATA" expcube=/scratch/kocevski/830507/ltcube_395366401_395625601_4FGL_J1129.1+3703_daily_bin602.fits outfile=/scratch/kocevski/830507/expmap_395366401_395625601_4FGL_J1129.1+3703_daily_bin602.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/830507/ltcube_395366401_395625601_4FGL_J1129.1+3703_daily_bin602.fits
.....................!
real 155.90
user 151.29
sys 4.13

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/830507/ft1_filtered_4FGL_J1129.1+3703_daily_bin602.fits scfile=/scratch/kocevski/830507/ft2_4FGL_J1129.1+3703_daily_bin602.fits outfile=/scratch/kocevski/830507/cmap_395366401_395625601_4FGL_J1129.1+3703_daily_bin602.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830507/ft1_filtered_4FGL_J1129.1+3703_daily_bin602.fits scfile=/scratch/kocevski/830507/ft2_4FGL_J1129.1+3703_daily_bin602.fits outfile=/scratch/kocevski/830507/cmap_HighResolution_395366401_395625601_4FGL_J1129.1+3703_daily_bin602.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.49
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.670       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8141       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4772       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10232E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65908E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4753       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6080       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.370       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.061       1.0000         .10000E-03   10000.    
    12 'norm      '    13.301       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12658E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9982       1.0000         .10000E-03   10000.    
    17 'norm      '    .26887E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7966       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.239       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1266       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.9693       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.4112       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12590E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2574       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88765       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=   6428.186     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4021 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.661        42.864       -.49326E-05    .47031E-05
   2  Prefactor     2.8136        3.3401       -.21612E-08    .61915E-05
   3  Prefactor     1.4736        5.3415        .57471E-05    .82294E-04
   4  Prefactor     .10000E-03    14.886       -.10163E-05** at limit **
   5  Prefactor     .10012E-03    42.597       -.11152E-04** at limit **
   6  Prefactor     .10000E-03    100.11       -.13877E-05** at limit **
   7  Prefactor     1.4766        30.751        .58798E-06    .79633E-05
   8  norm          1.6080        .38188        .27395E-08   -.19272E-03
   9  Prefactor     9.1229        4.5152        .41783E-07   -.43890E-04
  10  Prefactor     19.367        19.295       -.48221E-08   -.13518E-04
  11  Prefactor     16.060        15.488        .24981E-08   -.14759E-04
  12  norm          13.300        18.442       -.26885E-06   -.55500E-04
  13  norm          .10000E-03    4.0059        .42592E-07** at limit **
  14  Prefactor     1.3280        2.4117        .20168E-05    .17562E-03
  15  Prefactor     .10000E-03    42.959        .12299E-05** at limit **
  16  Prefactor     1.9989        19.382        .19240E-05    .20260E-04
  17  norm          .10000E-03    6.5948       -.79190E-05** at limit **
  18  Prefactor     4.7955        9.0397       -.18216E-06    .23799E-06
  19  Prefactor     .10000E-03    3.6889       -.43128E-06** at limit **
  20  Prefactor     38.275        48.788        .15488E-05    .10172E-03
  21  norm          1.1261        .95816       -.25361E-08    .33776E-03
  22  Prefactor     .10000E-03    10.077        .67265E-07** at limit **
  23  norm          4.9685        9.9483        .26164E-06   -.74709E-06
  24  Prefactor     .10000E-03    7.8070       -.17029E-06** at limit **
  25  Prefactor     .10000E-03    30.603        .44260E-06** at limit **
  26  norm          2.4111        1.3763       -.10305E-07    .36331E-03
  27  Prefactor     .10000E-03    38.785       -.46574E-05** at limit **
  28  Prefactor     .10000E-03    7.3700        .26855E-06** at limit **
  29  Normalizat    1.2575        .18312       -.10204E-05    .35605E-03
  30  Prefactor     .88765        .20856       -.55237E-06    .22837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.6611
  Prefactor  = 2.81361
  Prefactor  = 1.47355
  Prefactor  = 0.000100001
  Prefactor  = 0.000100119
  Prefactor  = 0.0001
  Prefactor  = 1.47662
  norm       = 1.60804
  Prefactor  = 9.1229
  Prefactor  = 19.3675
  Prefactor  = 16.0598
  norm       = 13.2999
  norm       = 0.0001
  Prefactor  = 1.32805
  Prefactor  = 0.000100002
  Prefactor  = 1.99895
  norm       = 0.0001
  Prefactor  = 4.79555
  Prefactor  = 0.0001
  Prefactor  = 38.2749
  norm       = 1.12611
  Prefactor  = 0.0001
  norm       = 4.96848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.41106
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.25745
  Prefactor  = 0.887647
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.186     FROM HESSE     STATUS=OK           602 CALLS     4623 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.661        48.323        .69059E-04   -1.4547    
   2  Prefactor     2.8136        3.3300        .77522E-03   -1.5372    
   3  Prefactor     1.4736        9.5773        .17664E-02   -1.5465    
   4  Prefactor     .10000E-03    124.73        .59472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10012E-03    30.524        .12081       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    100.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4766        30.207        .35360E-03   -1.5465    
   8  norm          1.6080        .38393        .22549E-04   -1.5454    
   9  Prefactor     9.1229        4.4569        .54219E-03   -1.5104    
  10  Prefactor     19.367        19.284        .91004E-04   -1.4828    
  11  Prefactor     16.060        15.525        .99940E-04   -1.4906    
  12  norm          13.300        18.390        .10983E-03   -1.4978    
  13  norm          .10000E-03    4.0116        .15672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3280        2.4229        .16026E-03   -1.5477    
  15  Prefactor     .10000E-03    43.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9989        19.630        .14650E-02   -1.5425    
  17  norm          .10000E-03    11.375        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7955        8.9713        .18370E-03   -1.5270    
  19  Prefactor     .10000E-03    3.7655        .15046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.275        48.597        .64815E-04   -1.4470    
  21  norm          1.1261        .92869        .64567E-04   -1.5496    
  22  Prefactor     .10000E-03    10.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.9685        9.9330        .18041E-03   -1.5262    
  24  Prefactor     .10000E-03    7.8141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    30.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.4111        1.3710        .68123E-04   -1.5397    
  27  Prefactor     .10000E-03    38.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.5353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2575        .21839        .23827E-03   -.84846    
  30  Prefactor     .88765        .24611        .32456E-03   -.96574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34646e-10
Minuit parameter uncertainties:
  1  48.3788
  2  3.33023
  3  7.51486
  4  0.000654444
  5  0.00380953
  6  7.53418e-05
  7  13.3646
  8  0.383929
  9  4.45711
  10  19.29
  11  15.5291
  12  18.3975
  13  2.43048e-06
  14  2.42306
  15  0.000560244
  16  12.5333
  17  1.12788e-05
  18  8.9738
  19  4.39743e-05
  20  48.6473
  21  0.928697
  22  1.01594e-05
  23  9.9363
  24  2.32759e-06
  25  3.65471e-05
  26  1.37099
  27  0.000289837
  28  2.46248e-05
  29  0.218549
  30  0.246417
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  5.602e-04  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:  8.876e-01  2.464e-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:  1.257e+00  2.185e-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: 6.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830507/likelihoodResults_395366401_395625601_4FGL_J1129.1+3703_daily_bin602.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) = 6428.18628236
delta logL = -0.000110663336272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6428.15279259
delta logL = 0.0333791049497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87284       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3503       1.0000          .0000       10.000    
     3 'Normalizat'    1.2459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89355       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=   6428.153     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      317 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87020        659.45        .27346E-03    .22866E-05
   2  Index         3.3499        8.1766        .75141E-02    .65588E-05
   3  Normalizat    1.2461        .19298        .23911E-03    .28527E-06
   4  Prefactor     .89354        .22726        .32351E-03    .63256E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.870202
  Index      = 3.34995
  Normalizat = 1.24606
  Prefactor  = 0.893536
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.153     FROM HESSE     STATUS=OK            25 CALLS      342 TOTAL
                     EDM=   .19E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87020        12.960        .10938E-04   -1.5521    
   2  Index         3.3499        2.5012        .30056E-03   -.33632    
   3  Normalizat    1.2461        .21142        .95646E-05   -.85191    
   4  Prefactor     .89354        .24325        .12940E-04   -.96367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8614e-14
Minuit parameter uncertainties:
  1  6.71788
  2  2.63611
  3  0.211563
  4  0.243544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830507': 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) = 6428.15279126
delta logL = 0.0333804345264

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  8.702e-01  6.718e+00  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  3.350e+00  2.636e+00  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:  8.935e-01  2.435e-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:  1.246e+00  2.116e-01  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/830507/cmap_HighResolution_395366401_395625601_4FGL_J1129.1+3703_daily_bin602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-09-03 23:12:26.068914', job_id='830507', GAL2='0.89', fit_tolerance='1e-08', EG2='1.25', EG='1.26', time_epoch_completed='1630735946.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.34e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='602' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:12:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 830507: <4FGL_J1129.1+3703_daily_bin602> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin602> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 22:56:22 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:58:22 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:58:22 2021
Terminated at Fri Sep  3 23:12:26 2021
Results reported at Fri Sep  3 23:12:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin602 172.296 37.0644 395366401 395625601 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 :                                   819.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            964 sec.

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

