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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1339
RA = 207.387, Dec = -11.5188
tmin = 586396801, tmax = 586656001
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='999076', job_status='RUN', time_executed='2021-09-08 14:31:49.820814', time_epoch_executed='1631136709.82' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999076

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999076/ft1_4FGL_J1349.5-1131_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999076/ft2_4FGL_J1349.5-1131_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999076/ft1_4FGL_J1349.5-1131_daily_bin1339.fits outfile=/scratch/kocevski/999076/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1339.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=586396801.0 tmax=586656001.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.62
user 2.42
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999076/ft1_filtered_4FGL_J1349.5-1131_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/999076/ft2_4FGL_J1349.5-1131_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/999076/ltcube_586396801_586656001_4FGL_J1349.5-1131_daily_bin1339.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/999076/ft2_4FGL_J1349.5-1131_daily_bin1339.fits
.....................!
real 11.37
user 10.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999076/ft1_filtered_4FGL_J1349.5-1131_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/999076/ft2_4FGL_J1349.5-1131_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/999076/ltcube_586396801_586656001_4FGL_J1349.5-1131_daily_bin1339.fits outfile=/scratch/kocevski/999076/expmap_586396801_586656001_4FGL_J1349.5-1131_daily_bin1339.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/999076/ltcube_586396801_586656001_4FGL_J1349.5-1131_daily_bin1339.fits
.....................!
real 193.56
user 187.65
sys 5.11

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/999076/ft1_filtered_4FGL_J1349.5-1131_daily_bin1339.fits scfile=/scratch/kocevski/999076/ft2_4FGL_J1349.5-1131_daily_bin1339.fits outfile=/scratch/kocevski/999076/cmap_586396801_586656001_4FGL_J1349.5-1131_daily_bin1339.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999076/ft1_filtered_4FGL_J1349.5-1131_daily_bin1339.fits scfile=/scratch/kocevski/999076/ft2_4FGL_J1349.5-1131_daily_bin1339.fits outfile=/scratch/kocevski/999076/cmap_HighResolution_586396801_586656001_4FGL_J1349.5-1131_daily_bin1339.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/999076/ft1_filtered_4FGL_J1349.5-1131_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/999076/ft2_4FGL_J1349.5-1131_daily_bin1339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999076/Model_4FGL_J1349.5-1131_daily_bin1339.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/999076/ft1_filtered_4FGL_J1349.5-1131_daily_bin1339.fits.....................!
real 52.92
user 51.54
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0251       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6407       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9464       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8274       1.0000         .10000E-03   10000.    
     8 'norm      '    25.504       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    32.610       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4215       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8034       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.345       1.0000         .10000E-03   10000.    
    18 'norm      '    9.1016       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.769       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88623       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92581       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=   6436.570     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2343 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0254        9.4260       -.19626E-06    .22177E-04
   2  norm          .10000E-03    5.1496       -.15646E-05** at limit **
   3  Prefactor     5.6405        10.253       -.68696E-06   -.41254E-04
   4  Prefactor     4.9477        8.3762       -.60136E-06   -.11100E-03
   5  Prefactor     .10000E-03    18.616       -.10523E-04** at limit **
   6  norm          .10000E-03    .56898       -.13249E-06** at limit **
   7  norm          1.8302        3.4016       -.24935E-06   -.15117E-03
   8  norm          25.504        9.2562        .46760E-07    .41941E-03
   9  Prefactor     .10000E-03    4.1730        .25875E-06** at limit **
  10  norm          32.611        27.765        .21979E-05    .43134E-05
  11  Prefactor     .10000E-03    6.2873        .31566E-05** at limit **
  12  norm          4.4210        4.2986       -.37692E-06   -.43513E-03
  13  Prefactor     .10000E-03    2.8412       -.13434E-06** at limit **
  14  Prefactor     .10000E-03    15.943        .12821E-04** at limit **
  15  norm          3.8051        5.7549       -.43359E-06   -.33053E-03
  16  norm          .10005E-03    .90036       -.34218E-06** at limit **
  17  norm          22.345        14.004       -.95269E-07    .16422E-04
  18  norm          9.1021        6.6221       -.29332E-06   -.17878E-02
  19  Prefactor     24.605        21.369       -.92977E-05    .17828E-04
  20  Prefactor     17.769        16.071       -.25047E-06    .25539E-06
  21  Normalizat    .88618        .20818        .22776E-05    .97761E-04
  22  Prefactor     .92585        .11117        .25143E-06    .18715E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.02539
  norm       = 0.0001
  Prefactor  = 5.64053
  Prefactor  = 4.94773
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.83016
  norm       = 25.504
  Prefactor  = 0.0001
  norm       = 32.6115
  Prefactor  = 0.0001
  norm       = 4.42101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.80505
  norm       = 0.000100045
  norm       = 22.3449
  norm       = 9.10208
  Prefactor  = 24.6052
  Prefactor  = 17.7687
  Normalizat = 0.886179
  Prefactor  = 0.925846
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.570     FROM HESSE     STATUS=OK           346 CALLS     2689 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0254        9.4256        .13341E-03   -1.5107    
   2  norm          .10000E-03    5.1559        .17779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6405        10.218        .16914E-03   -1.5233    
   4  Prefactor     4.9477        8.3769        .18083E-03   -1.5263    
   5  Prefactor     .10000E-03    18.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .89383        .11628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8302        3.3213        .17154E-03   -1.5437    
   8  norm          25.504        9.1401        .79323E-04   -1.4698    
   9  Prefactor     .10000E-03    4.1975        .16002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          32.611        27.754        .70169E-04   -1.4565    
  11  Prefactor     .10000E-03    6.3663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4210        4.3084        .15784E-03   -1.5287    
  13  Prefactor     .10000E-03    2.9091        .26343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8051        5.7490        .20697E-03   -1.5318    
  16  norm          .10005E-03    9.2359        .14677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.345        14.004        .84736E-04   -1.4762    
  18  norm          9.1021        6.6994        .66424E-03   -1.5104    
  19  Prefactor     24.605        21.071        .80742E-04   -1.4715    
  20  Prefactor     17.769        16.075        .95015E-04   -1.4865    
  21  Normalizat    .88618        .23853        .32697E-03   -.96947    
  22  Prefactor     .92585        .12942        .17746E-03   -.95244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79427e-09
Minuit parameter uncertainties:
  1  9.42715
  2  1.96557e-06
  3  10.2208
  4  8.37885
  5  7.15631e-05
  6  8.75693e-06
  7  3.32165
  8  9.14058
  9  9.62829e-06
  10  27.7646
  11  3.21732e-05
  12  4.30867
  13  8.42512e-07
  14  1.23606e-05
  15  5.74981
  16  0.00129512
  17  14.0063
  18  6.69991
  19  21.0773
  20  16.0786
  21  0.238811
  22  0.129459
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  8.425e-07  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.258e-01  1.295e-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:  8.862e-01  2.388e-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: 7.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999076/likelihoodResults_586396801_586656001_4FGL_J1349.5-1131_daily_bin1339.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) = 6436.57137838
delta logL = -0.00163995736057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6436.56973946
delta logL = -1.03590537037e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4633       1.0000          .0000       10.000    
     3 'Normalizat'    .88590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92601       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=   6436.570     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      259 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.597        .27309E-02** at limit **
   2  Index         2.0311        8.0186        .50000        .10595E-05
   3  Normalizat    .88618        .21186E-01    .32697E-03    .10331E-02
   4  Prefactor     .92585        .11812E-01    .17746E-03    .19245E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03112
  Normalizat = 0.886182
  Prefactor  = 0.925847
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.570     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    286.15        .54617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0311        5.8233        .50000       -.63574    
   3  Normalizat    .88618        .48345E-01    .65394E-04   -.96947    
   4  Prefactor     .92585        .26956E-01    .35491E-04   -.95244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33935e-08
Minuit parameter uncertainties:
  1  0.000436258
  2  634.129
  3  0.0483479
  4  0.0269565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999076': 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) = 6436.56973354
delta logL = 4.88491605211e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.363e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.031e+00  6.341e+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:  9.258e-01  2.696e-02  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:  8.862e-01  4.835e-02  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/999076/cmap_HighResolution_586396801_586656001_4FGL_J1349.5-1131_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2021-09-08 14:42:05.095124', job_id='999076', GAL2='0.93', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631137325.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1339' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:42:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 999076: <4FGL_J1349.5-1131_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1339 207.387 -11.5188 586396801 586656001 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.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             338.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            691 sec.

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

