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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin61
RA = 172.296, Dec = 37.0644
tmin = 255139201, tmax = 255398401
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='824957', job_status='RUN', time_executed='2021-09-03 22:46:08.711007', time_epoch_executed='1630734368.71' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824957

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824957/ft1_4FGL_J1129.1+3703_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824957/ft2_4FGL_J1129.1+3703_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/824957/ft1_4FGL_J1129.1+3703_daily_bin61.fits outfile=/scratch/kocevski/824957/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin61.fits ra=172.296 dec=37.0644 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.65
user 7.28
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824957/ft1_filtered_4FGL_J1129.1+3703_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/824957/ft2_4FGL_J1129.1+3703_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/824957/ltcube_255139201_255398401_4FGL_J1129.1+3703_daily_bin61.fits outfile=/scratch/kocevski/824957/expmap_255139201_255398401_4FGL_J1129.1+3703_daily_bin61.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/824957/ltcube_255139201_255398401_4FGL_J1129.1+3703_daily_bin61.fits
.....................!
real 192.99
user 186.93
sys 5.00

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/824957/ft1_filtered_4FGL_J1129.1+3703_daily_bin61.fits scfile=/scratch/kocevski/824957/ft2_4FGL_J1129.1+3703_daily_bin61.fits outfile=/scratch/kocevski/824957/cmap_255139201_255398401_4FGL_J1129.1+3703_daily_bin61.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824957/ft1_filtered_4FGL_J1129.1+3703_daily_bin61.fits scfile=/scratch/kocevski/824957/ft2_4FGL_J1129.1+3703_daily_bin61.fits outfile=/scratch/kocevski/824957/cmap_HighResolution_255139201_255398401_4FGL_J1129.1+3703_daily_bin61.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=172.296 yref=37.0644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9570       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.517       1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3781       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3589       1.0000         .10000E-03   10000.    
    12 'norm      '    13.905       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6499       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6794       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .13907       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.365       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.233       1.0000         .10000E-03   10000.    
    26 'norm      '    1.7980       1.0000         .10000E-03   10000.    
    27 'Prefactor '    33.157       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.537       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .47329       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2133       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=   3787.824     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     4002 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.276       -.36590E-06** at limit **
   2  Prefactor     8.9570        6.7946        .39919E-07    .48280E-04
   3  Prefactor     .10000E-03    2.2052       -.14101E-07** at limit **
   4  Prefactor     .10000E-03    45.707       -.14282E-05** at limit **
   5  Prefactor     27.523        38.997       -.41760E-06    .10397E-04
   6  Prefactor     65.684        66.530       -.18749E-05    .10239E-04
   7  Prefactor     .10000E-03    5.7995       -.49955E-08** at limit **
   8  norm          1.3781        .45353       -.11815E-06    .29761E-03
   9  Prefactor     3.6862        3.0172       -.56090E-08    .26095E-04
  10  Prefactor     .10000E-03    30.277       -.18889E-06** at limit **
  11  Prefactor     2.3559        42.113        .95933E-05    .50267E-06
  12  norm          13.904        14.529       -.16949E-06    .40035E-04
  13  norm          .10000E-03    12.942       -.16452E-06** at limit **
  14  Prefactor     .10000E-03    1.4868       -.31175E-06** at limit **
  15  Prefactor     .10000E-03    44.225       -.37440E-06** at limit **
  16  Prefactor     .10000E-03    6.9492       -.56881E-07** at limit **
  17  norm          .10000E-03    1.5862       -.60468E-07** at limit **
  18  Prefactor     8.6490        9.3868        .11274E-07    .37457E-04
  19  Prefactor     1.6802        5.1346        .17041E-06    .52127E-04
  20  Prefactor     .10000E-03    39.630        .18042E-05** at limit **
  21  norm          .13949        .54933        .18936E-06    .20155E-04
  22  Prefactor     .10000E-03    22.850       -.24555E-06** at limit **
  23  norm          .10000E-03    10.978        .49627E-06** at limit **
  24  Prefactor     38.363        35.118        .11228E-05    .19809E-04
  25  Prefactor     15.251        43.462       -.29688E-05   -.18543E-04
  26  norm          1.7976        1.2646        .34310E-07    .19154E-03
  27  Prefactor     33.181        43.969       -.19370E-05    .11657E-04
  28  Prefactor     11.538        9.9168        .60630E-07    .64174E-05
  29  Normalizat    .47310        .19955        .24350E-06    .69465E-04
  30  Prefactor     1.2134        .22718        .20666E-06    .86084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5226
  Prefactor  = 65.6838
  Prefactor  = 0.0001
  norm       = 1.37812
  Prefactor  = 3.6862
  Prefactor  = 0.0001
  Prefactor  = 2.3559
  norm       = 13.9042
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.64904
  Prefactor  = 1.68021
  Prefactor  = 0.0001
  norm       = 0.13949
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.3625
  Prefactor  = 15.2512
  norm       = 1.79759
  Prefactor  = 33.1809
  Prefactor  = 11.5378
  Normalizat = 0.473103
  Prefactor  = 1.21341
 **********
 **   18 **HESSE 
 **********

 FCN=   3787.824     FROM HESSE     STATUS=OK           592 CALLS     4594 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.9570        6.7869        .13392E-03   -1.5109    
   3  Prefactor     .10000E-03    2.2096        .89254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.523        38.946        .76371E-04   -1.4658    
   6  Prefactor     65.684        66.455        .24763E-03   -1.4085    
   7  Prefactor     .10000E-03    5.8083        .14472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3781        .45498        .20799E-04   -1.5473    
   9  Prefactor     3.6862        3.0166        .92892E-04   -1.5324    
  10  Prefactor     .10000E-03    30.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3559        42.439        .13342E-02   -1.5401    
  12  norm          13.904        14.483        .10742E-03   -1.4962    
  13  norm          .10000E-03    13.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.828        .13643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    44.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9610        .15844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6358        .15087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6490        9.3711        .13629E-03   -1.5120    
  19  Prefactor     1.6802        4.9401        .22158E-03   -1.5449    
  20  Prefactor     .10000E-03    39.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .13949        .61509        .83297E-03   -1.5633    
  22  Prefactor     .10000E-03    161.44        .55706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    11.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.363        35.102        .64709E-04   -1.4468    
  25  Prefactor     15.251        43.085        .10262E-03   -1.4927    
  26  norm          1.7976        1.2526        .55376E-04   -1.5440    
  27  Prefactor     33.181        43.915        .69590E-04   -1.4555    
  28  Prefactor     11.538        9.9076        .11794E-03   -1.5028    
  29  Normalizat    .47310        .22407        .28692E-03   -1.1368    
  30  Prefactor     1.2134        .26363        .22864E-03   -.85920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49945e-10
Minuit parameter uncertainties:
  1  2.44184e-06
  2  6.78752
  3  1.25319e-06
  4  2.7148e-05
  5  38.9821
  6  66.5307
  7  2.45062e-06
  8  0.45498
  9  3.01677
  10  2.21244e-05
  11  20.0144
  12  14.4864
  13  2.46646e-05
  14  0.000394059
  15  1.6174e-05
  16  7.19362e-06
  17  3.71666e-06
  18  9.37266
  19  4.94125
  20  0.000112554
  21  0.585631
  22  0.000293189
  23  1.73594e-05
  24  35.121
  25  43.1733
  26  1.25262
  27  43.9577
  28  9.90903
  29  0.224501
  30  0.263919
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.617e-05  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.171e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  1.213e+00  2.639e-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:  4.731e-01  2.245e-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: 7.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/824957/likelihoodResults_255139201_255398401_4FGL_J1129.1+3703_daily_bin61.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) = 3787.82419503
delta logL = -0.000107363023744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3787.24878682
delta logL = 0.575300841514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44352       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1174       1.0000          .0000       10.000    
     3 'Normalizat'    .40858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2568       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=   3787.249     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      299 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44397        8.0093        .90824E-02    .32444E-02
   2  Index         4.1173        2.2118        .98334E-01    .34531E-03
   3  Normalizat    .40862        .40102E-01    .69476E-01    .15082E-03
   4  Prefactor     1.2568        .49559E-01    .50894E-01    .46766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.443972
  Index      = 4.1173
  Normalizat = 0.408623
  Prefactor  = 1.25678
 **********
 **   18 **HESSE 
 **********

 FCN=   3787.249     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      332 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44397        22.724        .41461E-03   -1.5575    
   2  Index         4.1173        6.9098        .34130E-02   -.17747    
   3  Normalizat    .40862        .16684        .30758E-03   -1.1686    
   4  Prefactor     1.2568        .20363        .22499E-03   -.84601    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.19661e-10
Minuit parameter uncertainties:
  1  6.35443
  2  5.15042
  3  0.167043
  4  0.203762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824957': 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) = 3787.24878654
delta logL = 0.575301125932

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  4.440e-01  6.354e+00  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  4.117e+00  5.150e+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:  1.257e+00  2.038e-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:  4.086e-01  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 172.296 37.064
Photon Index (Free Index): 4.12 +/- 5.15
Photon Flux (Free Index): 5.31e-08 +/- 5.31e-08
Energy Flux (Free Index): 7.81e-06 +/- 9.34e-06

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/824957/cmap_HighResolution_255139201_255398401_4FGL_J1129.1+3703_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', comment='SUCCESS', energy_flux2='7.81e-06', dlogl='5.75e-01', photon_flux2='5.31e-08', job_status='DONE', time_completed='2021-09-03 22:58:27.451369', photon_index_error2='5.15', photon_index2='4.12', ts='-0.00', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='7.21e-08', energy_flux_error2='9.34e-06', EG='0.47', time_epoch_completed='1630735107.45', return_code='0', job_id='824957', GAL2='1.26', EG2='0.41', return_code2='102', photon_flux_error2='5.31e-08', ts2='1.23', photon_index='2.17' WHERE bin_id='61' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:58:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 824957: <4FGL_J1129.1+3703_daily_bin61> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin61 172.296 37.0644 255139201 255398401 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 :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            994 sec.

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

