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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1240
RA = 207.387, Dec = -11.5188
tmin = 560736001, tmax = 560995201
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='998930', job_status='RUN', time_executed='2021-09-08 14:34:25.055575', time_epoch_executed='1631136865.06' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998930/ft1_4FGL_J1349.5-1131_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998930/ft2_4FGL_J1349.5-1131_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998930/ft1_4FGL_J1349.5-1131_daily_bin1240.fits outfile=/scratch/kocevski/998930/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1240.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=560736001.0 tmax=560995201.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 3.78
user 3.56
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998930/ft2_4FGL_J1349.5-1131_daily_bin1240.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/998930/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1240.fits evtable="EVENTS" outfile="/scratch/kocevski/998930/ft1_filtered_4FGL_J1349.5-1131_daily_bin1240.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998930/ft1_filtered_4FGL_J1349.5-1131_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/998930/ft2_4FGL_J1349.5-1131_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/998930/ltcube_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.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/998930/ft2_4FGL_J1349.5-1131_daily_bin1240.fits
.....................!
real 15.44
user 15.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998930/ft1_filtered_4FGL_J1349.5-1131_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/998930/ft2_4FGL_J1349.5-1131_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/998930/ltcube_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.fits outfile=/scratch/kocevski/998930/expmap_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.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/998930/ltcube_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.fits
.....................!
real 192.47
user 186.67
sys 5.29

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/998930/ft1_filtered_4FGL_J1349.5-1131_daily_bin1240.fits scfile=/scratch/kocevski/998930/ft2_4FGL_J1349.5-1131_daily_bin1240.fits outfile=/scratch/kocevski/998930/cmap_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998930/ft1_filtered_4FGL_J1349.5-1131_daily_bin1240.fits scfile=/scratch/kocevski/998930/ft2_4FGL_J1349.5-1131_daily_bin1240.fits outfile=/scratch/kocevski/998930/cmap_HighResolution_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998930/ft1_filtered_4FGL_J1349.5-1131_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/998930/ft2_4FGL_J1349.5-1131_daily_bin1240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998930/Model_4FGL_J1349.5-1131_daily_bin1240.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/998930/ft1_filtered_4FGL_J1349.5-1131_daily_bin1240.fits.....................!
real 40.48
user 39.03
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/998930/ft1_filtered_4FGL_J1349.5-1131_daily_bin1240.fits', '/scratch/kocevski/998930/ft2_4FGL_J1349.5-1131_daily_bin1240.fits', expMap='/scratch/kocevski/998930/expmap_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.fits', expCube='/scratch/kocevski/998930/ltcube_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/998930/Model_4FGL_J1349.5-1131_daily_bin1240.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/998930/ft1_filtered_4FGL_J1349.5-1131_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/998930/ft2_4FGL_J1349.5-1131_daily_bin1240.fits
Exposure map: /scratch/kocevski/998930/expmap_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.fits
Exposure cube: /scratch/kocevski/998930/ltcube_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/998930/Model_4FGL_J1349.5-1131_daily_bin1240.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) = 3851.6715973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    75.618       1.0000         .10000E-03   10000.    
     2 'norm      '    22.231       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.604       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0571       1.0000         .10000E-03   10000.    
     7 'norm      '    6.0715       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58939E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.252       1.0000         .10000E-03   10000.    
    16 'norm      '    12.047       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.186       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34702E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99646       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0754       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=   3851.642     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2428 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          75.626        47.774        .44363E-05   -.12167E-04
   2  norm          22.230        27.324       -.15403E-05   -.12363E-04
   3  Prefactor     .10000E-03    4.4814       -.82134E-07** at limit **
   4  Prefactor     .10000E-03    5.8616        .79053E-06** at limit **
   5  Prefactor     59.605        48.169        .68709E-06   -.18844E-03
   6  norm          3.0576        3.1652       -.22560E-06   -.21746E-03
   7  norm          6.0691        8.7320       -.13898E-05   -.46331E-03
   8  norm          .10000E-03    5.0431        .52538E-06** at limit **
   9  Prefactor     .10000E-03    20.517       -.59237E-05** at limit **
  10  norm          .10000E-03    39.151       -.15430E-05** at limit **
  11  Prefactor     .10000E-03    5.1442       -.46341E-06** at limit **
  12  norm          .10000E-03    5.8113       -.43937E-06** at limit **
  13  Prefactor     .10232E-03    12.705        .38162E-05** at limit **
  14  Prefactor     .10000E-03    21.883        .82545E-05** at limit **
  15  norm          11.241        16.025       -.26427E-05   -.75556E-03
  16  norm          12.048        8.4014       -.10233E-06   -.26792E-03
  17  norm          .10000E-03    26.648       -.17172E-05** at limit **
  18  norm          .10000E-03    9.5151        .56631E-08** at limit **
  19  Prefactor     45.185        51.131       -.67410E-06   -.35574E-05
  20  Prefactor     .10000E-03    225.43       -.73848E-04** at limit **
  21  Normalizat    .99595        .37596       -.40299E-06   -.50358E-04
  22  Prefactor     1.0756        .17232        .72015E-06    .28929E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 75.6263
  norm       = 22.2302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.6048
  norm       = 3.05761
  norm       = 6.06909
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000102319
  Prefactor  = 0.0001
  norm       = 11.2405
  norm       = 12.0479
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 45.1853
  Prefactor  = 0.000100004
  Normalizat = 0.995949
  Prefactor  = 1.07561
 **********
 **   18 **HESSE 
 **********

 FCN=   3851.642     FROM HESSE     STATUS=OK           342 CALLS     2770 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          75.626        47.720        .46175E-04   -1.3966    
   2  norm          22.230        27.327        .84952E-04   -1.4765    
   3  Prefactor     .10000E-03    4.4844        .12831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8676        .14673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     59.605        48.428        .51968E-04   -1.4162    
   6  norm          3.0576        3.1629        .10844E-03   -1.5358    
   7  norm          6.0691        8.7708        .14645E-03   -1.5215    
   8  norm          .10000E-03    5.0687        .13603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    39.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1581        .13744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.9648        .29201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10232E-03    16.344        .52914E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.241        16.403        .11943E-03   -1.5037    
  16  norm          12.048        8.4078        .11542E-03   -1.5014    
  17  norm          .10000E-03    26.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.5275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.185        51.138        .59644E-04   -1.4363    
  20  Prefactor     .10000E-03    222.76        .19665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99595        .43239        .41383E-03   -.93166    
  22  Prefactor     1.0756        .19916        .19177E-03   -.90250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48812e-09
Minuit parameter uncertainties:
  1  47.7447
  2  27.3426
  3  2.80243e-07
  4  2.87549e-06
  5  48.4598
  6  3.16311
  7  8.7727
  8  8.17271e-06
  9  2.00098e-05
  10  8.77505e-07
  11  1.01985e-06
  12  2.79131e-06
  13  0.0123155
  14  7.11808e-06
  15  16.4091
  16  8.40864
  17  1.19387e-07
  18  3.78908e-06
  19  51.1873
  20  0.00177546
  21  0.433922
  22  0.199295
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.023e-04  1.232e-02  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:  1.076e+00  1.993e-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.959e-01  4.339e-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: 2.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.71e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998930/likelihoodResults_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.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) = 3851.64175403
delta logL = -2.81392412944e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3851.64175401
delta logL = -2.81097304651e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96351E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4941       1.0000          .0000       10.000    
     3 'Normalizat'    .99591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0756       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.

 FCN=   3851.479     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      289 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20455        7.6569        .90713E-02   -.22346E-02
   2  Index         4.8431        7.0892        .15103       -.49206E-04
   3  Normalizat    .90840        .66978E-01    .97299E-01   -.37209E-03
   4  Prefactor     1.1017        .32275E-01    .38596E-01   -.50617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.204552
  Index      = 4.84309
  Normalizat = 0.908401
  Prefactor  = 1.10169
 **********
 **   18 **HESSE 
 **********

 FCN=   3851.479     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      318 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20455        31.524        .48244E-04   -1.5618    
   2  Index         4.8431        5.7324        .88732E-02   -.31387E-01
   3  Normalizat    .90840        .33860        .43108E-03   -.96166    
   4  Prefactor     1.1017        .15899        .18971E-03   -.89413    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06787e-08
Minuit parameter uncertainties:
  1  5.08017
  2  13.8927
  3  0.339401
  4  0.15906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998930': 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) = 3851.4794
delta logL = 0.162325893474

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.046e-01  5.080e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.843e+00  1.389e+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:  1.102e+00  1.591e-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.084e-01  3.394e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/998930/cmap_HighResolution_560736001_560995201_4FGL_J1349.5-1131_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-02', job_status='DONE', photon_flux_upper_limit='2.20e-07', time_completed='2021-09-08 14:42:47.565253', job_id='998930', GAL2='1.10', fit_tolerance='1e-08', EG2='0.91', EG='1.00', time_epoch_completed='1631137367.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.62e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1240' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:42:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 998930: <4FGL_J1349.5-1131_daily_bin1240> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1240> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 14:30:23 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:30:33 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:30:33 2021
Terminated at Wed Sep  8 14:42:48 2021
Results reported at Wed Sep  8 14:42:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1240 207.387 -11.5188 560736001 560995201 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 :                                   500.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            745 sec.

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

