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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1131
RA = 207.387, Dec = -11.5188
tmin = 532483201, tmax = 532742401
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='998022', job_status='RUN', time_executed='2021-09-08 14:26:13.975889', time_epoch_executed='1631136373.98' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998022/ft1_4FGL_J1349.5-1131_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998022/ft2_4FGL_J1349.5-1131_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998022/ft1_4FGL_J1349.5-1131_daily_bin1131.fits outfile=/scratch/kocevski/998022/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1131.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=532483201.0 tmax=532742401.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.55
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998022/ft1_filtered_4FGL_J1349.5-1131_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/998022/ft2_4FGL_J1349.5-1131_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/998022/ltcube_532483201_532742401_4FGL_J1349.5-1131_daily_bin1131.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/998022/ft2_4FGL_J1349.5-1131_daily_bin1131.fits
.....................!
real 14.49
user 14.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998022/ft1_filtered_4FGL_J1349.5-1131_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/998022/ft2_4FGL_J1349.5-1131_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/998022/ltcube_532483201_532742401_4FGL_J1349.5-1131_daily_bin1131.fits outfile=/scratch/kocevski/998022/expmap_532483201_532742401_4FGL_J1349.5-1131_daily_bin1131.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/998022/ltcube_532483201_532742401_4FGL_J1349.5-1131_daily_bin1131.fits
.....................!
real 190.81
user 185.86
sys 4.43

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/998022/ft1_filtered_4FGL_J1349.5-1131_daily_bin1131.fits scfile=/scratch/kocevski/998022/ft2_4FGL_J1349.5-1131_daily_bin1131.fits outfile=/scratch/kocevski/998022/cmap_532483201_532742401_4FGL_J1349.5-1131_daily_bin1131.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=207.387 yref=-11.5188 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998022/ft1_filtered_4FGL_J1349.5-1131_daily_bin1131.fits scfile=/scratch/kocevski/998022/ft2_4FGL_J1349.5-1131_daily_bin1131.fits outfile=/scratch/kocevski/998022/cmap_HighResolution_532483201_532742401_4FGL_J1349.5-1131_daily_bin1131.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998022/ft1_filtered_4FGL_J1349.5-1131_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/998022/ft2_4FGL_J1349.5-1131_daily_bin1131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998022/Model_4FGL_J1349.5-1131_daily_bin1131.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/998022/ft1_filtered_4FGL_J1349.5-1131_daily_bin1131.fits.....................!
real 69.98
user 68.57
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67917       1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .42294E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.1304       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5831       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4824       1.0000         .10000E-03   10000.    
    10 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11549       1.0000         .10000E-03   10000.    
    12 'norm      '    .90874       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2186       1.0000         .10000E-03   10000.    
    17 'norm      '    11.103       1.0000         .10000E-03   10000.    
    18 'norm      '    18.464       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8480       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7897       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3557       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1086       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=   8904.152     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     1697 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69112        14.482       -.42917E-04   -.20799E-03
   2  norm          .10000E-03    3.4659        .36490E-05** at limit **
   3  Prefactor     .10000E-03    3.2450       -.20565E-05** at limit **
   4  Prefactor     .54007E-02    .84662        .68318E-05   -.70743E-03
   5  Prefactor     .10000E-03    27.005        .68919E-05** at limit **
   6  norm          .10000E-03    2.0350       -.69355E-06** at limit **
   7  norm          8.1275        3.2848        .30845E-06   -.58254E-03
   8  norm          2.5852        1.7575       -.65242E-06    .62293E-03
   9  Prefactor     9.5095        11.658       -.12064E-04   -.17669E-04
  10  norm          .10000E-03    9.4867       -.54120E-05** at limit **
  11  Prefactor     .10025E-03    416.73       -.72609E-04** at limit **
  12  norm          .90825        3.8241        .37401E-06    .41146E-03
  13  Prefactor     .10000E-03    2.5027       -.14252E-05** at limit **
  14  Prefactor     .10000E-03    12.334        .24280E-05** at limit **
  15  norm          .10000E-03    4.2954        .15899E-05** at limit **
  16  norm          3.2177        2.7269       -.40759E-06   -.21080E-03
  17  norm          11.101        1.0067       -.60019E-07    .32176E-03
  18  norm          18.467        1.4683       -.56285E-06    .34949E-02
  19  Prefactor     7.8498        1.3276       -.17240E-05    .19585E-02
  20  Prefactor     5.7804        2.5585        .38711E-05   -.59379E-03
  21  Normalizat    1.3558        .25170        .17253E-05    .66629E-03
  22  Prefactor     1.1086        .13596        .26766E-05    .12862E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.691116
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.00540071
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.12754
  norm       = 2.58523
  Prefactor  = 9.50948
  norm       = 0.0001
  Prefactor  = 0.000100249
  norm       = 0.908252
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 3.21766
  norm       = 11.1008
  norm       = 18.4669
  Prefactor  = 7.84976
  Prefactor  = 5.78042
  Normalizat = 1.35579
  Prefactor  = 1.10861
 **********
 **   18 **HESSE 
 **********

 FCN=   8904.152     FROM HESSE     STATUS=OK           402 CALLS     2099 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69112        14.152        .11982E-01   -1.5542    
   2  norm          .10000E-03    3.4676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .54007E-02    3.7140        .97121E-01   -1.5693    
   5  Prefactor     .10000E-03    27.030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .86771        .26834E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.1275        4.6835        .35152E-02   -1.5138    
   8  norm          2.5852        8.1478        .63479E-02   -1.5386    
   9  Prefactor     9.5095        12.532        .32535E-02   -1.5091    
  10  norm          .10000E-03    9.5064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10025E-03    7.5434        .95848E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .90825        3.8103        .12839E-01   -1.5517    
  13  Prefactor     .10000E-03    2.4340        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.407        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2177        2.7659        .56453E-02   -1.5349    
  17  norm          11.101        9.8477        .30058E-02   -1.5041    
  18  norm          18.467        8.4418        .23302E-02   -1.4848    
  19  Prefactor     7.8498        23.879        .35783E-02   -1.5148    
  20  Prefactor     5.7804        13.617        .41729E-02   -1.5227    
  21  Normalizat    1.3558        .22502        .77161E-01   -.81916    
  22  Prefactor     1.1086        .11874        .37270E-01   -.89192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80914e-06
Minuit parameter uncertainties:
  1  6.2561
  2  9.15893e-05
  3  1.00664e-05
  4  0.280639
  5  2.29957e-05
  6  8.01729e-06
  7  4.68373
  8  8.15133
  9  12.5355
  10  0.00012818
  11  0.00274388
  12  3.72078
  13  3.19723e-05
  14  0.000279979
  15  3.51388e-05
  16  2.76599
  17  9.84909
  18  8.44233
  19  23.9078
  20  13.6238
  21  0.225181
  22  0.118765
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.197e-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.109e+00  1.188e-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.356e+00  2.252e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998022/likelihoodResults_532483201_532742401_4FGL_J1349.5-1131_daily_bin1131.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) = 8904.1535533
delta logL = -0.00190393691264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8904.15164928
delta logL = 8.4457496996e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4796       1.0000          .0000       10.000    
     3 'Normalizat'    1.3558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1086       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=   8904.152     FROM MIGRAD    STATUS=FAILED        87 CALLS      242 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    166.00        .28982E-03** at limit **
   2  Index         2.4290        6.1504        .50000        .37326E-04
   3  Normalizat    1.3558        .48879E-01    .34151E-03   -.78498E-04
   4  Prefactor     1.1086        .26609E-01    .20169E-03   -.88069E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8904.152     FROM SIMPLEX   STATUS=PROGRESS     144 CALLS      386 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10076E-03    166.00        .19256E-03** at limit **
   2  Index         2.4288        6.1504        .77245E-04    .37326E-04
   3  Normalizat    1.3558        .48879E-01    .16078E-05   -.78498E-04
   4  Prefactor     1.1086        .26609E-01    .90304E-06   -.88069E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8904.152     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      430 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.289        .57965E-04** at limit **
   2  Index         2.2487        7.8971        .50000        .55661E-07
   3  Normalizat    1.3558        .24693        .13660E-04   -.13649E-04
   4  Prefactor     1.1086        .13450        .40338E-04   -.16572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24874
  Normalizat = 1.35579
  Prefactor  = 1.1086
 **********
 **   18 **HESSE 
 **********

 FCN=   8904.152     FROM HESSE     STATUS=OK            29 CALLS      459 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7837        .11593E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2487        8.8755        .50000       -.58267    
   3  Normalizat    1.3558        .24700        .27320E-05   -.81916    
   4  Prefactor     1.1086        .13453        .80675E-05   -.89192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69348e-12
Minuit parameter uncertainties:
  1  1.39839e-05
  2  69.6605
  3  0.247215
  4  0.134573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998022': 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) = 8904.15164794
delta logL = 1.42572753248e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.398e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.249e+00  6.966e+01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.109e+00  1.346e-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.356e+00  2.472e-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/998022/cmap_HighResolution_532483201_532742401_4FGL_J1349.5-1131_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-08 14:37:46.426135', job_id='998022', GAL2='1.11', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631137066.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1131' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:37:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 998022: <4FGL_J1349.5-1131_daily_bin1131> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1131> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:25:28 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:25:57 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:25:57 2021
Terminated at Wed Sep  8 14:37:47 2021
Results reported at Wed Sep  8 14:37:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1131 207.387 -11.5188 532483201 532742401 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 :                                   687.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            739 sec.

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

