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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1573
RA = 207.387, Dec = -11.5188
tmin = 647049601, tmax = 647308801
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='541', job_status='RUN', time_executed='2021-09-08 14:38:48.359324', time_epoch_executed='1631137128.36' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541/ft1_4FGL_J1349.5-1131_daily_bin1573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541/ft2_4FGL_J1349.5-1131_daily_bin1573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541/ft1_4FGL_J1349.5-1131_daily_bin1573.fits outfile=/scratch/kocevski/541/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1573.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=647049601.0 tmax=647308801.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.59
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541/ft1_filtered_4FGL_J1349.5-1131_daily_bin1573.fits" evtable="EVENTS" scfile=/scratch/kocevski/541/ft2_4FGL_J1349.5-1131_daily_bin1573.fits sctable="SC_DATA" outfile=/scratch/kocevski/541/ltcube_647049601_647308801_4FGL_J1349.5-1131_daily_bin1573.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/541/ft2_4FGL_J1349.5-1131_daily_bin1573.fits
.....................!
real 15.42
user 15.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541/ft1_filtered_4FGL_J1349.5-1131_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/541/ft2_4FGL_J1349.5-1131_daily_bin1573.fits sctable="SC_DATA" expcube=/scratch/kocevski/541/ltcube_647049601_647308801_4FGL_J1349.5-1131_daily_bin1573.fits outfile=/scratch/kocevski/541/expmap_647049601_647308801_4FGL_J1349.5-1131_daily_bin1573.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/541/ltcube_647049601_647308801_4FGL_J1349.5-1131_daily_bin1573.fits
.....................!
real 193.22
user 187.10
sys 5.14

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/541/ft1_filtered_4FGL_J1349.5-1131_daily_bin1573.fits scfile=/scratch/kocevski/541/ft2_4FGL_J1349.5-1131_daily_bin1573.fits outfile=/scratch/kocevski/541/cmap_647049601_647308801_4FGL_J1349.5-1131_daily_bin1573.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/541/ft1_filtered_4FGL_J1349.5-1131_daily_bin1573.fits scfile=/scratch/kocevski/541/ft2_4FGL_J1349.5-1131_daily_bin1573.fits outfile=/scratch/kocevski/541/cmap_HighResolution_647049601_647308801_4FGL_J1349.5-1131_daily_bin1573.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/541/ft1_filtered_4FGL_J1349.5-1131_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/541/ft2_4FGL_J1349.5-1131_daily_bin1573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/541/Model_4FGL_J1349.5-1131_daily_bin1573.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/541/ft1_filtered_4FGL_J1349.5-1131_daily_bin1573.fits.....................!
real 60.63
user 59.16
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    53.468       1.0000         .10000E-03   10000.    
     2 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.6395       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    23.507       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5742       1.0000         .10000E-03   10000.    
    12 'norm      '    7.1664       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.876       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0886       1.0000         .10000E-03   10000.    
    16 'norm      '    7.4951       1.0000         .10000E-03   10000.    
    17 'norm      '    6.4393       1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4195       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97576       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=   7490.564     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     1970 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          53.466        20.978       -.20233E-05    .22786E-04
   2  norm          .10000E-03    13.698       -.24591E-05** at limit **
   3  Prefactor     .10000E-03    4.0304        .39199E-06** at limit **
   4  Prefactor     .10000E-03    6.7474       -.35179E-06** at limit **
   5  Prefactor     .10000E-03    4.3477        .73741E-06** at limit **
   6  norm          8.6389        2.5178       -.18240E-06    .38666E-05
   7  norm          .10000E-03    .92341       -.73887E-07** at limit **
   8  norm          23.506        8.6900        .91317E-06    .11339E-03
   9  Prefactor     .10000E-03    11.663        .62032E-06** at limit **
  10  norm          .10000E-03    22.402       -.33244E-05** at limit **
  11  Prefactor     2.5751        8.8126       -.16833E-05   -.25774E-03
  12  norm          7.1664        4.7455        .13073E-05    .23145E-03
  13  Prefactor     .10000E-03    1.8368        .47049E-06** at limit **
  14  Prefactor     12.827        75.626       -.12431E-03    .95200E-05
  15  norm          4.0885        4.7169        .54156E-06    .10545E-03
  16  norm          7.4948        3.6454        .13530E-05   -.13016E-03
  17  norm          6.4392        8.7457       -.79771E-06   -.45444E-03
  18  norm          .10000E-03    4.3413       -.11077E-05** at limit **
  19  Prefactor     .10000E-03    17.451        .53549E-05** at limit **
  20  Prefactor     .10000E-03    12.835       -.25972E-05** at limit **
  21  Normalizat    1.4196        .24968        .92961E-06    .16204E-03
  22  Prefactor     .97569        .12581        .39509E-05   -.11689E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 53.4655
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.63887
  norm       = 0.0001
  norm       = 23.5057
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.57513
  norm       = 7.16635
  Prefactor  = 0.0001
  Prefactor  = 12.827
  norm       = 4.08852
  norm       = 7.49485
  norm       = 6.43919
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.41964
  Prefactor  = 0.975694
 **********
 **   18 **HESSE 
 **********

 FCN=   7490.564     FROM HESSE     STATUS=OK           340 CALLS     2310 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          53.466        21.002        .54852E-04   -1.4244    
   2  norm          .10000E-03    13.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0501        .16967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3502        .17623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.6389        2.5317        .69755E-04   -1.5120    
   7  norm          .10000E-03    .92525        .81179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          23.506        8.6896        .82617E-04   -1.4738    
   9  Prefactor     .10000E-03    11.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    22.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5751        8.7956        .25439E-03   -1.5387    
  12  norm          7.1664        4.7474        .14762E-03   -1.5173    
  13  Prefactor     .10000E-03    1.8428        .11454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.827        75.846        .11163E-03   -1.4992    
  15  norm          4.0885        4.7149        .19608E-03   -1.5304    
  16  norm          7.4948        3.6502        .10936E-03   -1.5160    
  17  norm          6.4392        8.7503        .79081E-03   -1.5200    
  18  norm          .10000E-03    4.3710        .17611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4196        .29129        .35215E-03   -.80062    
  22  Prefactor     .97569        .14635        .21398E-03   -.93544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29452e-10
Minuit parameter uncertainties:
  1  21.0046
  2  3.04817e-05
  3  1.3377e-05
  4  2.08921e-05
  5  4.48884e-06
  6  2.5317
  7  8.57965e-07
  8  8.69002
  9  2.22359e-05
  10  3.20485e-05
  11  8.79997
  12  4.74769
  13  2.66715e-05
  14  62.501
  15  4.71537
  16  3.65029
  17  8.75205
  18  3.63785e-05
  19  8.92059e-05
  20  2.33811e-05
  21  0.291632
  22  0.146413
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.667e-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:  9.757e-01  1.464e-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.420e+00  2.916e-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: 8.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541/likelihoodResults_647049601_647308801_4FGL_J1349.5-1131_daily_bin1573.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) = 7490.5665043
delta logL = -0.00256902140973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7490.56393525
delta logL = 2.25954863708e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4866       1.0000          .0000       10.000    
     3 'Normalizat'    1.4196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97571       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7490.564     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    95.805        .11481E-02** at limit **
   2  Index         2.4130        5.3154        .50000        .25494E-04
   3  Normalizat    1.4196        .48950E-01    .35215E-03   -.88134E-05
   4  Prefactor     .97570        .25407E-01    .21398E-03   -.57912E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7490.564     FROM SIMPLEX   STATUS=UNCHANGED    137 CALLS      375 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    95.805        .25188E-03** at limit **
   2  Index         2.4130        5.3154        .46977E-04    .25494E-04
   3  Normalizat    1.4196        .48950E-01    .17563E-05   -.88134E-05
   4  Prefactor     .97570        .25407E-01    .94185E-06   -.57912E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7490.564     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      415 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    424.27        .22962E-03** at limit **
   2  Index         2.2323        5.7947        .50000       -.22919E-07
   3  Normalizat    1.4196        .17958        .14086E-04    .49878E-04
   4  Prefactor     .97570        .93156E-01    .85592E-05    .91118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23228
  Normalizat = 1.41964
  Prefactor  = 0.975697
 **********
 **   18 **HESSE 
 **********

 FCN=   7490.564     FROM HESSE     STATUS=OK            29 CALLS      444 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0477        .45924E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2323        7.8079        .50000       -.58661    
   3  Normalizat    1.4196        .27715        .28172E-05   -.80062    
   4  Prefactor     .97570        .14395        .17118E-05   -.93544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03259e-12
Minuit parameter uncertainties:
  1  3.90742e-06
  2  99.6887
  3  0.277439
  4  0.144007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541': 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) = 7490.56393415
delta logL = 1.12263660412e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.907e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.232e+00  9.969e+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:  9.757e-01  1.440e-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.420e+00  2.774e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/541/cmap_HighResolution_647049601_647308801_4FGL_J1349.5-1131_daily_bin1573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='8.82e-08', time_completed='2021-09-08 14:49:35.498018', job_id='541', GAL2='0.98', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1631137775.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1573' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:49:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 541: <4FGL_J1349.5-1131_daily_bin1573> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1573> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:35:31 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:35:42 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:42 2021
Terminated at Wed Sep  8 14:49:36 2021
Results reported at Wed Sep  8 14:49:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1573 207.387 -11.5188 647049601 647308801 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 :                                   637.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             291.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            845 sec.

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

