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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin905
RA = 207.387, Dec = -11.5188
tmin = 473904001, tmax = 474163201
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='996767', job_status='RUN', time_executed='2021-09-08 14:24:43.001892', time_epoch_executed='1631136283.0' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996767

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996767/ft1_4FGL_J1349.5-1131_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996767/ft2_4FGL_J1349.5-1131_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996767/ft1_4FGL_J1349.5-1131_daily_bin905.fits outfile=/scratch/kocevski/996767/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin905.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=473904001.0 tmax=474163201.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.15
user 4.85
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/996767/ft2_4FGL_J1349.5-1131_daily_bin905.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/996767/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/996767/ft1_filtered_4FGL_J1349.5-1131_daily_bin905.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996767/ft1_filtered_4FGL_J1349.5-1131_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/996767/ft2_4FGL_J1349.5-1131_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/996767/ltcube_473904001_474163201_4FGL_J1349.5-1131_daily_bin905.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/996767/ft2_4FGL_J1349.5-1131_daily_bin905.fits
.....................!
real 16.12
user 15.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996767/ft1_filtered_4FGL_J1349.5-1131_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/996767/ft2_4FGL_J1349.5-1131_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/996767/ltcube_473904001_474163201_4FGL_J1349.5-1131_daily_bin905.fits outfile=/scratch/kocevski/996767/expmap_473904001_474163201_4FGL_J1349.5-1131_daily_bin905.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/996767/ltcube_473904001_474163201_4FGL_J1349.5-1131_daily_bin905.fits
.....................!
real 192.34
user 187.39
sys 4.35

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/996767/ft1_filtered_4FGL_J1349.5-1131_daily_bin905.fits scfile=/scratch/kocevski/996767/ft2_4FGL_J1349.5-1131_daily_bin905.fits outfile=/scratch/kocevski/996767/cmap_473904001_474163201_4FGL_J1349.5-1131_daily_bin905.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996767/ft1_filtered_4FGL_J1349.5-1131_daily_bin905.fits scfile=/scratch/kocevski/996767/ft2_4FGL_J1349.5-1131_daily_bin905.fits outfile=/scratch/kocevski/996767/cmap_HighResolution_473904001_474163201_4FGL_J1349.5-1131_daily_bin905.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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996767/ft1_filtered_4FGL_J1349.5-1131_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/996767/ft2_4FGL_J1349.5-1131_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996767/Model_4FGL_J1349.5-1131_daily_bin905.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/996767/ft1_filtered_4FGL_J1349.5-1131_daily_bin905.fits.....................!
real 46.68
user 45.23
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11524       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.073       1.0000         .10000E-03   10000.    
     6 'norm      '    .47910E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    10.598       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4113       1.0000         .10000E-03   10000.    
    15 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2411       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6705       1.0000         .10000E-03   10000.    
    18 'norm      '    12.681       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.667       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.088       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3301       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93461       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5095.259     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     2024 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8753        .20956E-05** at limit **
   2  norm          .11435E-03    543.16       -.17627E-04** at limit **
   3  Prefactor     .10000E-03    7.3419       -.22149E-05** at limit **
   4  Prefactor     .10012E-03    7.5122       -.46602E-05** at limit **
   5  Prefactor     38.075        1.5889       -.10848E-06   -.82788E-04
   6  norm          .44106E-01    .33262       -.45016E-06   -.53035E-04
   7  norm          10.595        1.8425       -.95771E-07   -.86642E-03
   8  norm          3.3309        1.2857        .58716E-06   -.50914E-03
   9  Prefactor     .10002E-03    7.8131        .19074E-06** at limit **
  10  norm          .10003E-03    9.6788       -.18747E-05** at limit **
  11  Prefactor     .10002E-03    7.6585       -.37553E-05** at limit **
  12  norm          5.1916        4.6492        .43898E-05    .33033E-02
  13  Prefactor     .10004E-03    10.673        .67011E-06** at limit **
  14  Prefactor     1.2589        73.421       -.13832E-04    .10507E-02
  15  norm          .10000E-03    4.6605        .39605E-05** at limit **
  16  norm          5.2401        3.8453        .83913E-06   -.10312E-03
  17  norm          1.6652        3.5638       -.56873E-06   -.10250E-02
  18  norm          12.680        9.3538       -.26963E-05    .21192E-02
  19  Prefactor     25.629        23.992        .19485E-05    .34716E-02
  20  Prefactor     10.196        11.110        .27692E-05   -.15633E-02
  21  Normalizat    1.3303        .31827        .88839E-05   -.81815E-05
  22  Prefactor     .93461        .16712       -.77705E-05   -.34094E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000114347
  Prefactor  = 0.0001
  Prefactor  = 0.00010012
  Prefactor  = 38.075
  norm       = 0.0441058
  norm       = 10.595
  norm       = 3.33092
  Prefactor  = 0.000100025
  norm       = 0.000100035
  Prefactor  = 0.000100015
  norm       = 5.19162
  Prefactor  = 0.000100042
  Prefactor  = 1.25891
  norm       = 0.0001
  norm       = 5.24012
  norm       = 1.66516
  norm       = 12.6799
  Prefactor  = 25.6286
  Prefactor  = 10.1962
  Normalizat = 1.3303
  Prefactor  = 0.934614
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.259     FROM HESSE     STATUS=OK           400 CALLS     2424 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11435E-03    11.028        .95836E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10012E-03    12.019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.075        43.707        .16239E-02   -1.4473    
   6  norm          .44106E-01    .87030        .43150E-01   -1.5666    
   7  norm          10.595        10.221        .30768E-02   -1.5057    
   8  norm          3.3309        19.088        .55441E-02   -1.5343    
   9  Prefactor     .10002E-03    8.6350        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10003E-03    10.748        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    8.1449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1916        4.9087        .44107E-02   -1.5252    
  13  Prefactor     .10004E-03    12.376        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2589        436.01        .91160E-02   -1.5484    
  15  norm          .10000E-03    4.6237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2401        3.9092        .43895E-02   -1.5250    
  17  norm          1.6652        13.251        .81542E-02   -1.5450    
  18  norm          12.680        10.818        .28121E-02   -1.4996    
  19  Prefactor     25.629        26.621        .19767E-02   -1.4695    
  20  Prefactor     10.196        53.248        .31539E-02   -1.5069    
  21  Normalizat    1.3303        .28396        .74430E-01   -.82666    
  22  Prefactor     .93461        .14534        .45445E-01   -.94942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09219e-07
Minuit parameter uncertainties:
  1  1.04109e-05
  2  0.0251613
  3  6.80013e-05
  4  0.0023983
  5  43.7439
  6  0.391405
  7  10.2226
  8  15.955
  9  0.000923387
  10  0.00121999
  11  0.000700241
  12  4.90903
  13  0.00144736
  14  47.2055
  15  4.86716e-07
  16  3.90939
  17  9.39717
  18  10.8199
  19  26.6329
  20  46.6667
  21  0.284293
  22  0.145403
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.447e-03  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.346e-01  1.454e-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.330e+00  2.843e-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: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996767/likelihoodResults_473904001_474163201_4FGL_J1349.5-1131_daily_bin905.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) = 5095.25908877
delta logL = -0.000372847511244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5095.25871741
delta logL = -1.49062452692e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14604E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5794       1.0000          .0000       10.000    
     3 'Normalizat'    1.3308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93437       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=   5095.215     FROM MIGRAD    STATUS=CONVERGED    202 CALLS      367 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67086        64.834        .24924E-02   -.41486E-03
   2  Index         3.5231        3.2059        .34997        .27297E-04
   3  Normalizat    1.3013        .45597E-01    .32938E-03   -.11304E-03
   4  Prefactor     .94153        .24078E-01    .20205E-03   -.27248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.670858
  Index      = 3.5231
  Normalizat = 1.30125
  Prefactor  = 0.941531
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.215     FROM HESSE     STATUS=OK            29 CALLS      396 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67086        4.5453        .99696E-04   -1.5872    
   2  Index         3.5231        2.3536        .83766E-02   -.29985    
   3  Normalizat    1.3013        .32865        .13175E-04   -.83529    
   4  Prefactor     .94153        .16787        .40409E-04   -.94705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13708e-11
Minuit parameter uncertainties:
  1  3.49253
  2  2.46108
  3  0.329182
  4  0.167963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996767': 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) = 5095.21471618
delta logL = 0.0439997426511

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  6.709e-01  3.493e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.523e+00  2.461e+00  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.415e-01  1.680e-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.301e+00  3.292e-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/996767/cmap_HighResolution_473904001_474163201_4FGL_J1349.5-1131_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-08 14:33:59.817849', job_id='996767', GAL2='0.94', fit_tolerance='1e-08', EG2='1.30', EG='1.33', time_epoch_completed='1631136839.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.40e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='905' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:33:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 996767: <4FGL_J1349.5-1131_daily_bin905> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin905> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:20:39 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:21:27 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:21:27 2021
Terminated at Wed Sep  8 14:34:00 2021
Results reported at Wed Sep  8 14:34:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin905 207.387 -11.5188 473904001 474163201 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 :                                   554.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            801 sec.

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

