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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1481
RA = 207.387, Dec = -11.5188
tmin = 623203201, tmax = 623462401
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='410', job_status='RUN', time_executed='2021-09-08 14:37:14.022822', time_epoch_executed='1631137034.02' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410/ft1_4FGL_J1349.5-1131_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410/ft2_4FGL_J1349.5-1131_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410/ft1_4FGL_J1349.5-1131_daily_bin1481.fits outfile=/scratch/kocevski/410/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1481.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.99
user 2.75
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410/ft1_filtered_4FGL_J1349.5-1131_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/410/ft2_4FGL_J1349.5-1131_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/410/ltcube_623203201_623462401_4FGL_J1349.5-1131_daily_bin1481.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/410/ft2_4FGL_J1349.5-1131_daily_bin1481.fits
.....................!
real 15.53
user 15.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410/ft1_filtered_4FGL_J1349.5-1131_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/410/ft2_4FGL_J1349.5-1131_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/410/ltcube_623203201_623462401_4FGL_J1349.5-1131_daily_bin1481.fits outfile=/scratch/kocevski/410/expmap_623203201_623462401_4FGL_J1349.5-1131_daily_bin1481.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/410/ltcube_623203201_623462401_4FGL_J1349.5-1131_daily_bin1481.fits
.....................!
real 191.33
user 185.66
sys 5.15

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/410/ft1_filtered_4FGL_J1349.5-1131_daily_bin1481.fits scfile=/scratch/kocevski/410/ft2_4FGL_J1349.5-1131_daily_bin1481.fits outfile=/scratch/kocevski/410/cmap_623203201_623462401_4FGL_J1349.5-1131_daily_bin1481.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410/ft1_filtered_4FGL_J1349.5-1131_daily_bin1481.fits scfile=/scratch/kocevski/410/ft2_4FGL_J1349.5-1131_daily_bin1481.fits outfile=/scratch/kocevski/410/cmap_HighResolution_623203201_623462401_4FGL_J1349.5-1131_daily_bin1481.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410/ft1_filtered_4FGL_J1349.5-1131_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/410/ft2_4FGL_J1349.5-1131_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410/Model_4FGL_J1349.5-1131_daily_bin1481.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/410/ft1_filtered_4FGL_J1349.5-1131_daily_bin1481.fits.....................!
real 32.14
user 30.78
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.7346       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.543       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11112E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1689       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    41.568       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.096       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2860       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .14633       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4052       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=   2916.665     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     2976 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.472        .18142E-02** at limit **
   2  norm          .10000E-03    26.961        .18142E-02** at limit **
   3  Prefactor     .10000E-03    43.417        .18142E-02** at limit **
   4  Prefactor     .10000E-03    14.576        .18142E-02** at limit **
   5  Prefactor     .10000E-03    22.116        .18142E-02** at limit **
   6  norm          7.7357        4.4783        .82176E-04   -.96081E-04
   7  norm          .10000E-03    4.6368        .11350E-02** at limit **
   8  norm          .10000E-03    6.8058        .13756E-02** at limit **
   9  Prefactor     35.548        62.978        .67220E-04   -.54120E-04
  10  norm          .10000E-03    23.927        .18142E-02** at limit **
  11  Prefactor     .10000E-03    31.939        .18142E-02** at limit **
  12  norm          .10000E-03    26.888        .18142E-02** at limit **
  13  Prefactor     5.1700        8.4682        .88411E-03   -.23213E-03
  14  Prefactor     .10000E-03    27.547        .18142E-02** at limit **
  15  norm          .10000E-03    20.927        .18142E-02** at limit **
  16  norm          41.568        8.6526        .62175E-04   -.46535E-04
  17  norm          .10000E-03    7.4717        .14414E-02** at limit **
  18  norm          14.104        15.546        .10668E-03   -.35540E-04
  19  Prefactor     7.2771        65.736        .14860E-03   -.20007E-04
  20  Prefactor     .10000E-03    43.587        .18142E-02** at limit **
  21  Normalizat    .14653        .49425        .97667E-02    .14765E-04
  22  Prefactor     1.4051        .26377        .18374E-03   -.75485E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.73571
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 35.5477
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.17004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 41.5682
  norm       = 0.0001
  norm       = 14.1044
  Prefactor  = 7.27708
  Prefactor  = 0.0001
  Normalizat = 0.146529
  Prefactor  = 1.40512
 **********
 **   18 **HESSE 
 **********

 FCN=   2916.665     FROM HESSE     STATUS=OK           322 CALLS     3298 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    26.962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.7357        4.4683        .32870E-05   -1.5152    
   7  norm          .10000E-03    4.6369        .22701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.8059        .27512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.548        62.970        .13444E-04   -1.4515    
  10  norm          .10000E-03    23.927        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    26.900        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1700        8.4655        .35364E-04   -1.5253    
  14  Prefactor     .10000E-03    27.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          41.568        8.6332        .12435E-04   -1.4418    
  17  norm          .10000E-03    7.4718        .28828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.104        15.545        .42673E-05   -1.4957    
  19  Prefactor     7.2771        65.527        .59438E-05   -1.5168    
  20  Prefactor     .10000E-03    43.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .14653        .46810        .39067E-03   -1.3365    
  22  Prefactor     1.4051        .25062        .73497E-05   -.80233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1138e-10
Minuit parameter uncertainties:
  1  4.59423e-05
  2  7.48232e-05
  3  0.000137596
  4  2.8877e-05
  5  6.7196e-05
  6  4.46844
  7  3.35145e-06
  8  2.41035e-06
  9  63.0884
  10  6.03651e-06
  11  6.74619e-05
  12  9.19963e-05
  13  8.46746
  14  8.55104e-05
  15  9.174e-05
  16  8.63342
  17  5.20293e-06
  18  15.5496
  19  43.7371
  20  0.000129007
  21  0.481841
  22  0.250843
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  5.170e+00  8.467e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.405e+00  2.508e-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:  1.465e-01  4.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 3.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410/likelihoodResults_623203201_623462401_4FGL_J1349.5-1131_daily_bin1481.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) = 2916.58468848
delta logL = 0.0799342668802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2916.58335391
delta logL = 0.0812688332921

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8829       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0285       1.0000          .0000       10.000    
     3 'Normalizat'    .16078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3982       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=   2916.583     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      299 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8865        10.460        .15293E-03    .29736E-04
   2  Index         2.0289        .98842        .10512E-01   -.10256E-04
   3  Normalizat    .16071        .47388        .94360E-02   -.24275E-04
   4  Prefactor     1.3982        .25851        .18409E-03   -.22656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.88654
  Index      = 2.0289
  Normalizat = 0.160708
  Prefactor  = 1.39825
 **********
 **   18 **HESSE 
 **********

 FCN=   2916.583     FROM HESSE     STATUS=OK            27 CALLS      326 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8865        10.419        .61171E-05   -1.5183    
   2  Index         2.0289        .98455        .42049E-03   -.63630    
   3  Normalizat    .16071        .45337        .37744E-03   -1.3245    
   4  Prefactor     1.3982        .24677        .36819E-04   -.80431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59229e-11
Minuit parameter uncertainties:
  1  10.4215
  2  0.99466
  3  0.464556
  4  0.246982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410': 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) = 2916.58335373
delta logL = 0.0812690119524

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  6.887e+00  1.042e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.029e+00  9.947e-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.398e+00  2.470e-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:  1.607e-01  4.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
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/410/cmap_HighResolution_623203201_623462401_4FGL_J1349.5-1131_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-02', job_status='DONE', photon_flux_upper_limit='3.05e-07', time_completed='2021-09-08 14:45:32.580466', job_id='410', GAL2='1.40', fit_tolerance='1e-08', EG2='0.16', EG='0.15', time_epoch_completed='1631137532.58', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='8.13e-02', ts2='0.77', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1481' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:45:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 410: <4FGL_J1349.5-1131_daily_bin1481> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1481> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:35:21 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:35:26 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:35:26 2021
Terminated at Wed Sep  8 14:45:32 2021
Results reported at Wed Sep  8 14:45:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1481 207.387 -11.5188 623203201 623462401 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 :                                   470.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            611 sec.

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

