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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin40
RA = 172.296, Dec = 37.0644
tmin = 249696001, tmax = 249955201
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='824936', job_status='RUN', time_executed='2021-09-03 22:44:47.214240', time_epoch_executed='1630734287.21' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824936

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824936/ft1_4FGL_J1129.1+3703_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824936/ft2_4FGL_J1129.1+3703_daily_bin40.fits


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

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

Done.
real 1.33
user 1.08
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824936/ft1_filtered_4FGL_J1129.1+3703_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/824936/ft2_4FGL_J1129.1+3703_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/824936/ltcube_249696001_249955201_4FGL_J1129.1+3703_daily_bin40.fits outfile=/scratch/kocevski/824936/expmap_249696001_249955201_4FGL_J1129.1+3703_daily_bin40.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/824936/ltcube_249696001_249955201_4FGL_J1129.1+3703_daily_bin40.fits
.....................!
real 156.61
user 152.87
sys 3.38

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/824936/ft1_filtered_4FGL_J1129.1+3703_daily_bin40.fits scfile=/scratch/kocevski/824936/ft2_4FGL_J1129.1+3703_daily_bin40.fits outfile=/scratch/kocevski/824936/cmap_249696001_249955201_4FGL_J1129.1+3703_daily_bin40.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.50
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824936/ft1_filtered_4FGL_J1129.1+3703_daily_bin40.fits scfile=/scratch/kocevski/824936/ft2_4FGL_J1129.1+3703_daily_bin40.fits outfile=/scratch/kocevski/824936/cmap_HighResolution_249696001_249955201_4FGL_J1129.1+3703_daily_bin40.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/824936/ft1_filtered_4FGL_J1129.1+3703_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/824936/ft2_4FGL_J1129.1+3703_daily_bin40.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/824936/Model_4FGL_J1129.1+3703_daily_bin40.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/824936/ft1_filtered_4FGL_J1129.1+3703_daily_bin40.fits.....................!
real 34.81
user 33.64
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1639       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1966       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1909       1.0000         .10000E-03   10000.    
     6 'Prefactor '    291.68       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5850       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.445       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2638       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0243       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.158       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1178       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21506E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9273       1.0000         .10000E-03   10000.    
    21 'norm      '    .22089E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12040E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.3837       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4410       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.2141       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.007       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.2393       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92698       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .57435       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=   4358.078     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     3972 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.035       -.17916E-07** at limit **
   2  Prefactor     6.1633        6.6742        .12919E-06   -.27390E-04
   3  Prefactor     8.1973        5.3452       -.54168E-08   -.12015E-04
   4  Prefactor     .10000E-03    30.675       -.12264E-06** at limit **
   5  Prefactor     3.1858        57.047        .16646E-06    .24954E-05
   6  Prefactor     291.91        133.95        .14581E-06    .70635E-04
   7  Prefactor     .10000E-03    5.7108       -.31748E-07** at limit **
   8  norm          1.5852        .44981       -.18550E-07   -.97841E-04
   9  Prefactor     1.7218        2.1587        .13986E-08   -.15587E-04
  10  Prefactor     .10000E-03    14.946        .37005E-08** at limit **
  11  Prefactor     16.448        27.796       -.84093E-06   -.52674E-05
  12  norm          .10000E-03    7.4589       -.35749E-06** at limit **
  13  norm          4.2590        13.144        .31813E-06   -.48233E-05
  14  Prefactor     2.0070        5.3930        .31873E-05    .17543E-03
  15  Prefactor     25.344        74.098       -.94693E-05    .34341E-04
  16  Prefactor     .10000E-03    17.254       -.36148E-06** at limit **
  17  norm          4.1209        2.9919       -.39148E-06   -.34242E-04
  18  Prefactor     .10000E-03    4.9944       -.27980E-07** at limit **
  19  Prefactor     .10000E-03    9.6277       -.19528E-05** at limit **
  20  Prefactor     7.9457        24.813       -.33223E-06   -.82595E-06
  21  norm          .21125E-01    .69027        .93864E-07   -.21637E-03
  22  Prefactor     .10000E-03    36.221       -.10191E-06** at limit **
  23  norm          8.3838        7.8184       -.41262E-07   -.67861E-05
  24  Prefactor     1.3675        139.16       -.20614E-04    .12003E-04
  25  Prefactor     .10000E-03    17.133       -.41200E-07** at limit **
  26  norm          4.2143        1.5090        .14407E-06    .25179E-03
  27  Prefactor     11.040        33.663        .63563E-05   -.44338E-06
  28  Prefactor     3.2394        6.5879        .12510E-06   -.83511E-05
  29  Normalizat    .92705        .18053        .49817E-07    .10443E-03
  30  Prefactor     .57414        .18824        .29169E-06    .37464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.16329
  Prefactor  = 8.19729
  Prefactor  = 0.0001
  Prefactor  = 3.18581
  Prefactor  = 291.91
  Prefactor  = 0.0001
  norm       = 1.58515
  Prefactor  = 1.72182
  Prefactor  = 0.0001
  Prefactor  = 16.4476
  norm       = 0.0001
  norm       = 4.25898
  Prefactor  = 2.00704
  Prefactor  = 25.344
  Prefactor  = 0.0001
  norm       = 4.12091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.94566
  norm       = 0.0211251
  Prefactor  = 0.0001
  norm       = 8.3838
  Prefactor  = 1.36745
  Prefactor  = 0.0001
  norm       = 4.21426
  Prefactor  = 11.0404
  Prefactor  = 3.23944
  Normalizat = 0.927049
  Prefactor  = 0.57414
 **********
 **   18 **HESSE 
 **********

 FCN=   4358.078     FROM HESSE     STATUS=OK           594 CALLS     4566 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1633        6.6743        .16170E-03   -1.5211    
   3  Prefactor     8.1973        5.3441        .11960E-03   -1.5135    
   4  Prefactor     .10000E-03    30.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1858        56.881        .22684E-03   -1.5351    
   6  Prefactor     291.91        133.07        .11885E-03   -1.2274    
   7  Prefactor     .10000E-03    5.7682        .15404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5852        .46035        .20323E-04   -1.5456    
   9  Prefactor     1.7218        2.1434        .10454E-03   -1.5446    
  10  Prefactor     .10000E-03    15.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.448        28.371        .98765E-04   -1.4897    
  12  norm          .10000E-03    7.5022        .17609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2590        13.172        .19512E-03   -1.5295    
  14  Prefactor     2.0070        5.3397        .13664E-03   -1.5425    
  15  Prefactor     25.344        73.266        .79865E-04   -1.4701    
  16  Prefactor     .10000E-03    17.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1209        2.9821        .86798E-04   -1.5302    
  18  Prefactor     .10000E-03    5.0019        .14407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.8958        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9457        24.794        .14241E-03   -1.5144    
  21  norm          .21125E-01    3.5263        .10252E-02   -1.5679    
  22  Prefactor     .10000E-03    36.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.3838        7.8184        .13845E-03   -1.5129    
  24  Prefactor     1.3675        136.00        .35936E-03   -1.5474    
  25  Prefactor     .10000E-03    17.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.2143        1.5075        .46139E-04   -1.5297    
  27  Prefactor     11.040        33.417        .12076E-03   -1.5043    
  28  Prefactor     3.2394        6.5667        .22505E-03   -1.5348    
  29  Normalizat    .92705        .21044        .21015E-03   -.95516    
  30  Prefactor     .57414        .21740        .30043E-03   -1.0869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51356e-08
Minuit parameter uncertainties:
  1  1.85862e-06
  2  6.67513
  3  5.3444
  4  1.49197e-05
  5  26.9525
  6  133.213
  7  7.77561e-07
  8  0.460346
  9  2.14347
  10  1.17559e-05
  11  28.3938
  12  5.1674e-06
  13  13.1811
  14  5.34096
  15  73.5283
  16  1.35454e-05
  17  2.98217
  18  4.64839e-06
  19  2.71017e-05
  20  24.8258
  21  0.54461
  22  3.02494e-05
  23  7.81934
  24  27.3377
  25  7.41279e-06
  26  1.50747
  27  33.4735
  28  6.56813
  29  0.210626
  30  0.217717
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  2.534e+01  7.353e+01  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:  5.741e-01  2.177e-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.270e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 172.296 37.064
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/824936/likelihoodResults_249696001_249955201_4FGL_J1129.1+3703_daily_bin40.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) = 4357.00390111
delta logL = 1.07380585769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4356.89128359
delta logL = 1.18642337302

Fit tolerance = 1e-08

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

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

 FCN=   4356.891     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      269 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0392        23.130        .72020E-02    .41378E-03
   2  Index         3.8043        2.1004        .69694E-01    .17064E-03
   3  Normalizat    .84250        .54820E-01    .44164E-01    .80105E-05
   4  Prefactor     .63016        .61219E-01    .64925E-01    .15933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03923
  Index      = 3.80427
  Normalizat = 0.8425
  Prefactor  = 0.630163
 **********
 **   18 **HESSE 
 **********

 FCN=   4356.891     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      302 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0392        41.443        .58533E-04   -1.5422    
   2  Index         3.8043        3.1054        .27167E-02   -.24149    
   3  Normalizat    .84250        .18153        .21839E-03   -.98511    
   4  Prefactor     .63016        .20249        .28727E-03   -1.0633    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.94164e-10
Minuit parameter uncertainties:
  1  18.4002
  2  3.36946
  3  0.181664
  4  0.202729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824936': 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) = 4356.89127945
delta logL = 1.18642751477

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  2.039e+00  1.840e+01  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  3.804e+00  3.369e+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:  6.302e-01  2.027e-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:  8.425e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 172.296 37.064
Photon Index (Free Index): 3.80 +/- 3.37
Photon Flux (Free Index): 1.02e-07 +/- 7.34e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.19e-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/824936/cmap_HighResolution_249696001_249955201_4FGL_J1129.1+3703_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='1.19e+00', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-03 22:55:26.393104', photon_index_error2='3.37', photon_index2='3.80', ts='0.46', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.19e-05', EG='0.93', time_epoch_completed='1630734926.39', return_code='0', job_id='824936', GAL2='0.63', EG2='0.84', return_code2='102', photon_flux_error2='7.34e-08', ts2='2.99', photon_index='2.17' WHERE bin_id='40' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:55:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 824936: <4FGL_J1129.1+3703_daily_bin40> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin40 172.296 37.0644 249696001 249955201 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 :                                   636.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            816 sec.

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

