/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 69 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1349.5-1131_daily_bin323
RA = 207.387, Dec = -11.5188
tmin = 323049601, tmax = 323308801
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='992719', job_status='RUN', time_executed='2021-09-08 14:07:05.409986', time_epoch_executed='1631135225.41' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992719

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992719/ft1_4FGL_J1349.5-1131_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992719/ft2_4FGL_J1349.5-1131_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992719/ft1_4FGL_J1349.5-1131_daily_bin323.fits outfile=/scratch/kocevski/992719/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin323.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=323049601.0 tmax=323308801.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.37
user 3.12
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992719/ft1_filtered_4FGL_J1349.5-1131_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/992719/ft2_4FGL_J1349.5-1131_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/992719/ltcube_323049601_323308801_4FGL_J1349.5-1131_daily_bin323.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/992719/ft2_4FGL_J1349.5-1131_daily_bin323.fits
.....................!
real 17.05
user 16.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992719/ft1_filtered_4FGL_J1349.5-1131_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/992719/ft2_4FGL_J1349.5-1131_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/992719/ltcube_323049601_323308801_4FGL_J1349.5-1131_daily_bin323.fits outfile=/scratch/kocevski/992719/expmap_323049601_323308801_4FGL_J1349.5-1131_daily_bin323.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/992719/ltcube_323049601_323308801_4FGL_J1349.5-1131_daily_bin323.fits
.....................!
real 192.81
user 186.98
sys 4.78

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/992719/ft1_filtered_4FGL_J1349.5-1131_daily_bin323.fits scfile=/scratch/kocevski/992719/ft2_4FGL_J1349.5-1131_daily_bin323.fits outfile=/scratch/kocevski/992719/cmap_323049601_323308801_4FGL_J1349.5-1131_daily_bin323.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992719/ft1_filtered_4FGL_J1349.5-1131_daily_bin323.fits scfile=/scratch/kocevski/992719/ft2_4FGL_J1349.5-1131_daily_bin323.fits outfile=/scratch/kocevski/992719/cmap_HighResolution_323049601_323308801_4FGL_J1349.5-1131_daily_bin323.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992719/ft1_filtered_4FGL_J1349.5-1131_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/992719/ft2_4FGL_J1349.5-1131_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992719/Model_4FGL_J1349.5-1131_daily_bin323.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/992719/ft1_filtered_4FGL_J1349.5-1131_daily_bin323.fits.....................!
real 50.57
user 49.06
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.434       1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9850       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.952       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9443       1.0000         .10000E-03   10000.    
     7 'norm      '    .13682E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .14870E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    20.763       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15918E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6249       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7951       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.088       1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4001       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0569       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0518       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=   5882.153     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     2765 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.439        14.075        .93286E-04   -.80434E-05
   2  norm          .10000E-03    3.3615        .13732E-02** at limit **
   3  Prefactor     4.9807        13.936        .90059E-03   -.13646E-03
   4  Prefactor     20.500        13.283        .88462E-04   -.15550E-03
   5  Prefactor     24.944        25.447        .80193E-04   -.46976E-03
   6  norm          2.9448        2.1227        .88500E-04   -.93261E-04
   7  norm          .10001E-03    6.5269        .26218E-02** at limit **
   8  norm          .10001E-03    72.464        .38557E-02** at limit **
   9  Prefactor     .10000E-03    14.379        .18142E-02** at limit **
  10  norm          20.764        25.099        .87900E-04   -.85362E-06
  11  Prefactor     .10003E-03    52.479        .41872E-02** at limit **
  12  norm          1.6233        2.6480        .15702E-03   -.68057E-04
  13  Prefactor     .10000E-03    2.5149        .11834E-02** at limit **
  14  Prefactor     .10000E-03    20.409        .18142E-02** at limit **
  15  norm          4.7964        6.3452        .18373E-03   -.78709E-04
  16  norm          .10000E-03    2.3613        .16764E-02** at limit **
  17  norm          15.082        13.603        .10311E-03    .12128E-05
  18  norm          .10000E-03    2.2159        .11143E-02** at limit **
  19  Prefactor     3.4037        26.284        .21941E-03   -.92749E-05
  20  Prefactor     .10000E-03    31.501        .18142E-02** at limit **
  21  Normalizat    1.0569        .30397        .35292E-03   -.35639E-03
  22  Prefactor     1.0517        .15344        .18811E-03   -.62671E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.4387
  norm       = 0.0001
  Prefactor  = 4.98068
  Prefactor  = 20.5
  Prefactor  = 24.9443
  norm       = 2.94479
  norm       = 0.000100014
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 20.7637
  Prefactor  = 0.000100034
  norm       = 1.62325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.79637
  norm       = 0.0001
  norm       = 15.0823
  norm       = 0.0001
  Prefactor  = 3.40373
  Prefactor  = 0.000100001
  Normalizat = 1.05691
  Prefactor  = 1.05166
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.153     FROM HESSE     STATUS=OK           320 CALLS     3085 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.439        14.075        .37314E-05   -1.4849    
   2  norm          .10000E-03    3.3615        .27465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9807        13.918        .36024E-04   -1.5262    
   4  Prefactor     20.500        13.280        .35385E-05   -1.4802    
   5  Prefactor     24.944        25.309        .16039E-04   -1.4709    
   6  norm          2.9448        2.1226        .35400E-05   -1.5365    
   7  norm          .10001E-03    6.5424        .52437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    75.192        .15423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          20.764        25.099        .17580E-04   -1.4796    
  11  Prefactor     .10003E-03    53.144        .83743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6233        2.6480        .62809E-05   -1.5453    
  13  Prefactor     .10000E-03    2.5151        .23668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7964        6.3449        .73490E-05   -1.5270    
  16  norm          .10000E-03    2.3690        .33528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.082        13.603        .41245E-05   -1.4931    
  18  norm          .10000E-03    2.2159        .22286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4037        26.276        .87763E-05   -1.5339    
  20  Prefactor     .10000E-03    31.508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0569        .30412        .70583E-04   -.91148    
  22  Prefactor     1.0517        .15348        .37623E-04   -.91027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54864e-09
Minuit parameter uncertainties:
  1  14.0771
  2  4.66366e-07
  3  13.9269
  4  13.2817
  5  25.3204
  6  2.12265
  7  0.000610861
  8  0.00125237
  9  3.59256e-05
  10  25.1113
  11  0.0026886
  12  2.64816
  13  1.20841e-05
  14  5.33964e-05
  15  6.34583
  16  8.75878e-06
  17  13.6054
  18  2.34363e-06
  19  18.9255
  20  0.00027782
  21  0.304621
  22  0.15354
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.208e-05  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.052e+00  1.535e-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.057e+00  3.046e-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: 9.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992719/likelihoodResults_323049601_323308801_4FGL_J1349.5-1131_daily_bin323.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) = 5882.15512178
delta logL = -0.00188940991393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5882.15323243
delta logL = -5.89407136431e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4951       1.0000          .0000       10.000    
     3 'Normalizat'    1.0569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0517       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=   5882.153     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    284.60        .11834E-02** at limit **
   2  Index         2.5098        5.4921        .50000       -.25169E-05
   3  Normalizat    1.0569        .80904E-01    .35292E-03    .12628E-04
   4  Prefactor     1.0517        .43276E-01    .18811E-03    .24404E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010002
  Index      = 2.50977
  Normalizat = 1.05691
  Prefactor  = 1.05166
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.153     FROM HESSE     STATUS=OK            29 CALLS      263 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    3.7678        .23668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5098        6.4332        .50000       -.52134    
   3  Normalizat    1.0569        .28181        .14117E-04   -.91148    
   4  Prefactor     1.0517        .15101        .37623E-04   -.91027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00287e-08
Minuit parameter uncertainties:
  1  0.000545443
  2  188.109
  3  0.282208
  4  0.151075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992719': 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) = 5882.15323236
delta logL = 7.13862391422e-09

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.454e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.510e+00  1.881e+02  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.052e+00  1.511e-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.057e+00  2.822e-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/992719/cmap_HighResolution_323049601_323308801_4FGL_J1349.5-1131_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', job_status='DONE', photon_flux_upper_limit='9.97e-08', time_completed='2021-09-08 14:17:16.845338', job_id='992719', GAL2='1.05', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631135836.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.14e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='323' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:17:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 992719: <4FGL_J1349.5-1131_daily_bin323> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin323> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 14:05:34 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:05:47 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:05:47 2021
Terminated at Wed Sep  8 14:17:17 2021
Results reported at Wed Sep  8 14:17:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin323 207.387 -11.5188 323049601 323308801 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 :                                   609.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            703 sec.

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

