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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin111
RA = 172.38, Dec = 30.5789
tmin = 268099201, tmax = 268358401
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='873307', job_status='RUN', time_executed='2021-09-04 01:16:40.142576', time_epoch_executed='1630743400.14' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873307/ft1_4FGL_J1129.5+3034_daily_bin111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873307/ft2_4FGL_J1129.5+3034_daily_bin111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873307/ft1_4FGL_J1129.5+3034_daily_bin111.fits outfile=/scratch/kocevski/873307/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin111.fits ra=172.38 dec=30.5789 rad=12.0 tmin=268099201.0 tmax=268358401.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.47
user 1.29
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/873307/ft2_4FGL_J1129.5+3034_daily_bin111.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/873307/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin111.fits evtable="EVENTS" outfile="/scratch/kocevski/873307/ft1_filtered_4FGL_J1129.5+3034_daily_bin111.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873307/ft1_filtered_4FGL_J1129.5+3034_daily_bin111.fits" evtable="EVENTS" scfile=/scratch/kocevski/873307/ft2_4FGL_J1129.5+3034_daily_bin111.fits sctable="SC_DATA" outfile=/scratch/kocevski/873307/ltcube_268099201_268358401_4FGL_J1129.5+3034_daily_bin111.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/873307/ft2_4FGL_J1129.5+3034_daily_bin111.fits
.....................!
real 15.81
user 15.39
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873307/ft1_filtered_4FGL_J1129.5+3034_daily_bin111.fits evtable="EVENTS" scfile=/scratch/kocevski/873307/ft2_4FGL_J1129.5+3034_daily_bin111.fits sctable="SC_DATA" expcube=/scratch/kocevski/873307/ltcube_268099201_268358401_4FGL_J1129.5+3034_daily_bin111.fits outfile=/scratch/kocevski/873307/expmap_268099201_268358401_4FGL_J1129.5+3034_daily_bin111.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/873307/ltcube_268099201_268358401_4FGL_J1129.5+3034_daily_bin111.fits
.....................!
real 191.21
user 185.97
sys 4.74

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/873307/ft1_filtered_4FGL_J1129.5+3034_daily_bin111.fits scfile=/scratch/kocevski/873307/ft2_4FGL_J1129.5+3034_daily_bin111.fits outfile=/scratch/kocevski/873307/cmap_268099201_268358401_4FGL_J1129.5+3034_daily_bin111.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    16.269       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28091E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6974       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75025       1.0000         .10000E-03   10000.    
     9 'norm      '    10.215       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.507       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7550       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0131       1.0000         .10000E-03   10000.    
    16 'norm      '    .48950       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .42318       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0339       1.0000         .10000E-03   10000.    
    23 'Prefactor '    96.472       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.072       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.2976       1.0000         .10000E-03   10000.    
    27 'norm      '    6.9386       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2585       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.1576       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.2636       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .95423       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0014       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=   5259.806     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4449 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.068        .36693E-06** at limit **
   2  Prefactor     16.267        11.383       -.71515E-07   -.61422E-04
   3  Prefactor     .10000E-03    22.023        .20870E-06** at limit **
   4  Prefactor     .10000E-03    8.1040       -.10277E-06** at limit **
   5  norm          2.2272        .51451        .16376E-06    .73566E-03
   6  Prefactor     1.6973        3.3137       -.21906E-05    .63383E-03
   7  Prefactor     .10000E-03    6.9368        .83353E-06** at limit **
   8  Prefactor     .69726        178.21       -.36217E-04    .58132E-04
   9  norm          10.217        12.574        .28004E-06    .14905E-04
  10  Prefactor     11.507        7.1675       -.18621E-07    .28785E-04
  11  norm          1.7556        14.616        .39497E-07    .48774E-04
  12  Prefactor     .10000E-03    7.6561       -.37496E-06** at limit **
  13  Prefactor     .53400        2.5166        .99839E-06    .93743E-03
  14  Prefactor     .10000E-03    18.635        .35592E-06** at limit **
  15  Prefactor     3.0076        24.096       -.24163E-06    .47500E-05
  16  norm          .49130        2.4246       -.66039E-06    .27602E-03
  17  Prefactor     .10000E-03    4.1895        .68418E-09** at limit **
  18  Prefactor     .10000E-03    2.3439       -.60402E-08** at limit **
  19  Prefactor     .10000E-03    49.653       -.54938E-06** at limit **
  20  norm          .42272        1.2803        .50673E-06   -.46666E-04
  21  Prefactor     .10000E-03    6.5776       -.30276E-06** at limit **
  22  Prefactor     2.0337        2.1403       -.62090E-07    .89649E-04
  23  Prefactor     96.468        41.252       -.16631E-05   -.40894E-03
  24  Prefactor     14.107        74.580       -.15658E-05   -.65737E-04
  25  norm          .10000E-03    .35002        .23632E-07** at limit **
  26  Prefactor     2.3174        258.68        .15100E-04    .52072E-04
  27  norm          6.9387        3.1063        .27370E-08   -.22010E-03
  28  Prefactor     4.2545        14.935       -.30812E-05   -.32029E-03
  29  Prefactor     1.1575        1.4550       -.47679E-07   -.18606E-03
  30  Prefactor     4.2636        2.3629       -.58907E-07   -.20821E-03
  31  Normalizat    .95403        .21008        .16058E-05   -.10272E-03
  32  Prefactor     1.0017        .21790       -.71521E-06   -.78579E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.2667
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.22724
  Prefactor  = 1.69732
  Prefactor  = 0.0001
  Prefactor  = 0.697258
  norm       = 10.2165
  Prefactor  = 11.5072
  norm       = 1.75558
  Prefactor  = 0.0001
  Prefactor  = 0.533999
  Prefactor  = 0.0001
  Prefactor  = 3.00762
  norm       = 0.491298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.422722
  Prefactor  = 0.0001
  Prefactor  = 2.03367
  Prefactor  = 96.4679
  Prefactor  = 14.1071
  norm       = 0.0001
  Prefactor  = 2.3174
  norm       = 6.93872
  Prefactor  = 4.25453
  Prefactor  = 1.15754
  Prefactor  = 4.26364
  Normalizat = 0.954028
  Prefactor  = 1.0017
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.806     FROM HESSE     STATUS=OK           667 CALLS     5116 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.267        11.305        .99299E-04   -1.4901    
   3  Prefactor     .10000E-03    22.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.943        .39895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2272        .51554        .21299E-04   -1.5409    
   6  Prefactor     1.6973        3.3277        .86263E-03   -1.5447    
   7  Prefactor     .10000E-03    6.9425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .69726        188.47        .54790E-02   -1.5541    
   9  norm          10.217        12.519        .12537E-03   -1.5069    
  10  Prefactor     11.507        7.1668        .11810E-03   -1.5029    
  11  norm          1.7556        14.540        .31640E-03   -1.5443    
  12  Prefactor     .10000E-03    7.6807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .53400        2.3485        .20674E-03   -1.5562    
  14  Prefactor     .10000E-03    18.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0076        23.990        .23381E-03   -1.5361    
  16  norm          .49130        3.5686        .19198E-02   -1.5568    
  17  Prefactor     .10000E-03    4.1915        .14491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3532        .10835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .42272        1.2876        .11902E-03   -1.5578    
  21  Prefactor     .10000E-03    6.5848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.0337        2.1262        .10218E-03   -1.5423    
  23  Prefactor     96.468        41.242        .40923E-04   -1.3740    
  24  Prefactor     14.107        73.960        .10677E-03   -1.4957    
  25  norm          .10000E-03    .35894        .83733E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.3174        252.41        .27076E-03   -1.5403    
  27  norm          6.9387        3.1043        .81534E-04   -1.5181    
  28  Prefactor     4.2545        14.858        .19525E-03   -1.5295    
  29  Prefactor     1.1575        1.4348        .94381E-04   -1.5493    
  30  Prefactor     4.2636        2.3618        .80206E-04   -1.5295    
  31  Normalizat    .95403        .24336        .25184E-03   -.94587    
  32  Prefactor     1.0017        .25823        .28635E-03   -.92673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.617e-09
Minuit parameter uncertainties:
  1  4.23482e-05
  2  11.3068
  3  0.000455392
  4  9.27716e-05
  5  0.515541
  6  3.32807
  7  4.48137e-05
  8  22.9988
  9  12.5222
  10  7.16736
  11  10.1077
  12  1.7305e-05
  13  2.23967
  14  4.12561e-05
  15  16.9975
  16  2.64817
  17  7.29607e-06
  18  4.69612e-06
  19  0.000677742
  20  1.28771
  21  4.66075e-06
  22  2.12623
  23  41.2538
  24  64.7277
  25  4.68008e-07
  26  48.5817
  27  3.10441
  28  14.8713
  29  1.43488
  30  2.36187
  31  0.243642
  32  0.258546
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.540e-01  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/873307/likelihoodResults_268099201_268358401_4FGL_J1129.5+3034_daily_bin111.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) = 5259.80501791
delta logL = 0.00111347819529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5259.80471204
delta logL = 0.0014193529305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4878       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3625       1.0000          .0000       10.000    
     3 'Normalizat'    .95473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0014       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=   5259.805     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      289 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5160        31.448        .10825E-02   -.30319E-04
   2  Index         2.3544        1.8484        .72868E-02   -.31263E-04
   3  Normalizat    .95450        .21747        .25178E-03   -.25923E-03
   4  Prefactor     1.0010        .25373        .28644E-03   -.16154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.51602
  Index      = 2.35436
  Normalizat = 0.954503
  Prefactor  = 1.00101
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.805     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5160        28.959        .43301E-04   -1.5333    
   2  Index         2.3544        1.7795        .29147E-03   -.55757    
   3  Normalizat    .95450        .21768        .50357E-04   -.94571    
   4  Prefactor     1.0010        .25386        .11458E-04   -.92696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48181e-10
Minuit parameter uncertainties:
  1  20.1943
  2  1.83633
  3  0.217883
  4  0.254164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873307': 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) = 5259.80468854
delta logL = 0.00144285621718

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.545e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/873307/cmap_HighResolution_268099201_268358401_4FGL_J1129.5+3034_daily_bin111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-09-04 01:31:26.806979', job_id='873307', GAL2='1.00', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630744286.81', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.44e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='111' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:31:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 873307: <4FGL_J1129.5+3034_daily_bin111> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin111> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 01:16:06 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:16:21 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:16:21 2021
Terminated at Sat Sep  4 01:31:27 2021
Results reported at Sat Sep  4 01:31:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin111 172.38 30.5789 268099201 268358401 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 :                                   883.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            921 sec.

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

