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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1410
RA = 207.387, Dec = -11.5188
tmin = 604800001, tmax = 605059201
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='999182', job_status='RUN', time_executed='2021-09-08 14:31:53.386972', time_epoch_executed='1631136713.39' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999182

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999182/ft1_4FGL_J1349.5-1131_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999182/ft1_4FGL_J1349.5-1131_daily_bin1410.fits outfile=/scratch/kocevski/999182/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1410.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.09
user 4.82
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.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/999182/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/999182/ft1_filtered_4FGL_J1349.5-1131_daily_bin1410.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999182/ft1_filtered_4FGL_J1349.5-1131_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/999182/ltcube_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.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/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.fits
.....................!
real 14.29
user 13.87
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999182/ft1_filtered_4FGL_J1349.5-1131_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/999182/ltcube_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.fits outfile=/scratch/kocevski/999182/expmap_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.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/999182/ltcube_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.fits
.....................!
real 192.22
user 186.44
sys 5.09

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1349.5-1131 @ 207.387 -11.5188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/999182/ft1_filtered_4FGL_J1349.5-1131_daily_bin1410.fits scfile=/scratch/kocevski/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.fits outfile=/scratch/kocevski/999182/cmap_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.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=207.387 yref=-11.5188 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999182/ft1_filtered_4FGL_J1349.5-1131_daily_bin1410.fits scfile=/scratch/kocevski/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.fits outfile=/scratch/kocevski/999182/cmap_HighResolution_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.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=207.387 yref=-11.5188 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999182/ft1_filtered_4FGL_J1349.5-1131_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999182/Model_4FGL_J1349.5-1131_daily_bin1410.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/999182/ft1_filtered_4FGL_J1349.5-1131_daily_bin1410.fits.....................!
real 70.46
user 69.06
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/999182/ft1_filtered_4FGL_J1349.5-1131_daily_bin1410.fits', '/scratch/kocevski/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.fits', expMap='/scratch/kocevski/999182/expmap_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.fits', expCube='/scratch/kocevski/999182/ltcube_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/999182/Model_4FGL_J1349.5-1131_daily_bin1410.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1349.5-1131'

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.801e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/999182/ft1_filtered_4FGL_J1349.5-1131_daily_bin1410.fits
Spacecraft file(s): /scratch/kocevski/999182/ft2_4FGL_J1349.5-1131_daily_bin1410.fits
Exposure map: /scratch/kocevski/999182/expmap_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.fits
Exposure cube: /scratch/kocevski/999182/ltcube_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/999182/Model_4FGL_J1349.5-1131_daily_bin1410.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) = 9480.77818444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9117       1.0000         .10000E-03   10000.    
     2 'norm      '    .51593       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8833       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5079       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10313E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.897       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    55.258       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43456E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.253       1.0000         .10000E-03   10000.    
    15 'norm      '    7.1723       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5505       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1561       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99549       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96365       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9480.765     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2410 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9085        1.5388        .28635E-06   -.84769E-03
   2  norm          .52706        6.5696       -.36927E-05    .10766E-02
   3  Prefactor     6.8832        7.8890        .45087E-06    .13169E-03
   4  Prefactor     9.5076        6.7186        .20460E-06    .29901E-03
   5  Prefactor     .10000E-03    5.5198       -.14230E-05** at limit **
   6  norm          .10000E-03    .37891        .41460E-07** at limit **
   7  norm          .10000E-03    .86187        .44373E-07** at limit **
   8  norm          14.897        5.7369       -.62260E-07    .90642E-04
   9  Prefactor     .10000E-03    5.2670        .91393E-06** at limit **
  10  norm          55.251        32.966       -.74587E-05   -.49183E-03
  11  Prefactor     .10004E-03    4.3566       -.83454E-06** at limit **
  12  norm          .10000E-03    1.5892       -.10495E-07** at limit **
  13  Prefactor     .10000E-03    1.9801       -.81075E-07** at limit **
  14  Prefactor     34.253        28.238        .27303E-06    .37176E-04
  15  norm          7.1729        4.8802       -.42767E-07    .50127E-05
  16  norm          1.5505        1.3693       -.26830E-07   -.19221E-04
  17  norm          3.1562        5.1990       -.35130E-07   -.13839E-04
  18  norm          .10000E-03    1.1981       -.25802E-07** at limit **
  19  Prefactor     .10000E-03    5.0271        .19398E-05** at limit **
  20  Prefactor     .10000E-03    4.7225       -.12702E-05** at limit **
  21  Normalizat    .99554        .17671        .16224E-06    .23140E-03
  22  Prefactor     .96363        .93907E-01    .25224E-06    .33915E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.90847
  norm       = 0.527064
  Prefactor  = 6.88323
  Prefactor  = 9.50764
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.8971
  Prefactor  = 0.0001
  norm       = 55.2506
  Prefactor  = 0.000100043
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2531
  norm       = 7.17287
  norm       = 1.5505
  norm       = 3.15618
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.995539
  Prefactor  = 0.963629
 **********
 **   18 **HESSE 
 **********

 FCN=   9480.765     FROM HESSE     STATUS=OK           348 CALLS     2758 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9085        6.6591        .15033E-02   -1.5432    
   2  norm          .52706        20.850        .42588E-02   -1.5563    
   3  Prefactor     6.8832        7.8797        .15292E-03   -1.5183    
   4  Prefactor     9.5076        6.7214        .12997E-03   -1.5091    
   5  Prefactor     .10000E-03    5.5592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.6475        .11552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .86898        .88101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.897        5.7258        .10377E-03   -1.4936    
   9  Prefactor     .10000E-03    5.2982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          55.251        33.454        .53962E-04   -1.4220    
  11  Prefactor     .10004E-03    33.818        .38698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6312        .23963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0271        .26708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.253        28.241        .68471E-04   -1.4537    
  15  norm          7.1729        4.8732        .14978E-03   -1.5172    
  16  norm          1.5505        1.3797        .10329E-03   -1.5459    
  17  norm          3.1562        5.1846        .22815E-03   -1.5353    
  18  norm          .10000E-03    1.1993        .10408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99554        .20737        .31821E-03   -.93180    
  22  Prefactor     .96363        .11140        .17738E-03   -.93952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53369e-08
Minuit parameter uncertainties:
  1  6.66165
  2  6.63187
  3  7.88094
  4  6.72189
  5  4.67133e-05
  6  3.55785e-05
  7  3.09384e-07
  8  5.72598
  9  3.03916e-05
  10  33.4649
  11  0.00241017
  12  8.80956e-07
  13  2.55062e-06
  14  28.2517
  15  4.87348
  16  1.37975
  17  5.18535
  18  7.42106e-07
  19  5.63261e-05
  20  3.78462e-05
  21  0.207537
  22  0.111423
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.551e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.636e-01  1.114e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.955e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 6.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999182/likelihoodResults_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.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) = 9480.76773011
delta logL = -0.00235355778022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9480.7653762
delta logL = 3.56349119102e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5128       1.0000          .0000       10.000    
     3 'Normalizat'    .99554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96363       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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=   9480.765     FROM MIGRAD    STATUS=CONVERGED    143 CALLS      301 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    .25806E-01    .18543E-01** at limit **
   2  Index         3.9946        6.2351        .50000        .12676E-05
   3  Normalizat    .99548        .12596E-02    .31821E-03   -.16950E-02
   4  Prefactor     .96366        .69645E-03    .17738E-03    .39940E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Index      = 3.99462
  Normalizat = 0.995479
  Prefactor  = 0.963659
 **********
 **   18 **HESSE 
 **********

 FCN=   9480.765     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      340 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    .41181E-01    .14964E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.9946        5.9776        .50000       -.20246    
   3  Normalizat    .99548        .13379E-02    .63642E-04   -.93182    
   4  Prefactor     .96366        .73975E-03    .35477E-04   -.93951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69641e-11
Minuit parameter uncertainties:
  1  6.80556e-05
  2  11.2918
  3  0.00133788
  4  0.000739754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999182': 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) = 9480.76535336
delta logL = 2.31898811762e-05

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.806e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.995e+00  1.129e+01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.637e-01  7.398e-04  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.955e-01  1.338e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.387 -11.519

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/999182/cmap_HighResolution_604800001_605059201_4FGL_J1349.5-1131_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.17e-08', time_completed='2021-09-08 14:45:13.807092', job_id='999182', GAL2='0.96', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631137513.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.32e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1410' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:45:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 999182: <4FGL_J1349.5-1131_daily_bin1410> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1410> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 14:30:42 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:31:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 14:31:41 2021
Terminated at Wed Sep  8 14:45:14 2021
Results reported at Wed Sep  8 14:45:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1410 207.387 -11.5188 604800001 605059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1349.5-1131 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   777.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            872 sec.

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

