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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1011
RA = 207.387, Dec = -11.5188
tmin = 501379201, tmax = 501638401
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='997887', job_status='RUN', time_executed='2021-09-08 14:28:28.595568', time_epoch_executed='1631136508.6' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997887

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997887/ft1_4FGL_J1349.5-1131_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997887/ft2_4FGL_J1349.5-1131_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997887/ft1_4FGL_J1349.5-1131_daily_bin1011.fits outfile=/scratch/kocevski/997887/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1011.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=501379201.0 tmax=501638401.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.65
user 3.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997887/ft1_filtered_4FGL_J1349.5-1131_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/997887/ft2_4FGL_J1349.5-1131_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/997887/ltcube_501379201_501638401_4FGL_J1349.5-1131_daily_bin1011.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/997887/ft2_4FGL_J1349.5-1131_daily_bin1011.fits
.....................!
real 17.02
user 16.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997887/ft1_filtered_4FGL_J1349.5-1131_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/997887/ft2_4FGL_J1349.5-1131_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/997887/ltcube_501379201_501638401_4FGL_J1349.5-1131_daily_bin1011.fits outfile=/scratch/kocevski/997887/expmap_501379201_501638401_4FGL_J1349.5-1131_daily_bin1011.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/997887/ltcube_501379201_501638401_4FGL_J1349.5-1131_daily_bin1011.fits
.....................!
real 192.72
user 187.45
sys 4.57

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/997887/ft1_filtered_4FGL_J1349.5-1131_daily_bin1011.fits scfile=/scratch/kocevski/997887/ft2_4FGL_J1349.5-1131_daily_bin1011.fits outfile=/scratch/kocevski/997887/cmap_501379201_501638401_4FGL_J1349.5-1131_daily_bin1011.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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997887/ft1_filtered_4FGL_J1349.5-1131_daily_bin1011.fits scfile=/scratch/kocevski/997887/ft2_4FGL_J1349.5-1131_daily_bin1011.fits outfile=/scratch/kocevski/997887/cmap_HighResolution_501379201_501638401_4FGL_J1349.5-1131_daily_bin1011.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=207.387 yref=-11.5188 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.685       1.0000         .10000E-03   10000.    
     2 'norm      '    15.634       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.788       1.0000         .10000E-03   10000.    
     6 'norm      '    .94282       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.387       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7375       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12812E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    66.612       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1225       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99364       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0288       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=   6318.819     FROM MIGRAD    STATUS=FAILED       820 CALLS     2426 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.687        14.407        .74804E-04    .91188E-05
   2  norm          15.632        13.620        .10130E-03    .19641E-04
   3  Prefactor     .10000E-03    6.0219        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.0407        .18142E-02** at limit **
   5  Prefactor     28.779        25.368        .74671E-04    .36172E-03
   6  norm          .94278        1.3558        .11319E-02    .37214E-02
   7  norm          .10044E-03    26.738        .22994E-02** at limit **
   8  norm          13.390        10.294        .10947E-03    .29960E-03
   9  Prefactor     1.7386        31.382        .15917E-02    .47720E-03
  10  norm          .10000E-03    8.1553        .18142E-02** at limit **
  11  Prefactor     .10000E-03    7.7451        .18142E-02** at limit **
  12  norm          .10000E-03    2.2788        .11687E-02** at limit **
  13  Prefactor     .10000E-03    18.559        .31518E-02** at limit **
  14  Prefactor     66.630        48.891        .24588E-03   -.97376E-04
  15  norm          .10000E-03    1.7772        .10342E-02** at limit **
  16  norm          2.1225        1.9368        .10256E-03    .52988E-04
  17  norm          .10000E-03    3.9164        .15362E-02** at limit **
  18  norm          .10000E-03    3.6390        .14750E-02** at limit **
  19  Prefactor     .10000E-03    22.374        .18142E-02** at limit **
  20  Prefactor     .10000E-03    13.303        .18142E-02** at limit **
  21  Normalizat    .99380        .27638        .35075E-03    .90300E-04
  22  Prefactor     1.0287        .14356        .18520E-03    .10474E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6318.819     FROM SIMPLEX   STATUS=UNCHANGED   1141 CALLS     3567 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.687        14.407        .37235E-06   -1.4636    
   2  norm          15.632        13.620        .38661E-06   -1.4917    
   3  Prefactor     .10000E-03    6.0219        .44896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0407        .49410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.779        25.368        .36904E-06   -1.4635    
   6  norm          .94278        1.3558        .39016E-06   -1.5514    
   7  norm          .10044E-03    26.738        .75476E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.390        10.294        .37388E-06   -1.4976    
   9  Prefactor     1.7386        31.382        .38509E-06   -1.5444    
  10  norm          .10000E-03    8.1553        .56173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.7451        .29953E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2788        .16193E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.559        .48381E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     66.630        48.891        .35125E-06   -1.4074    
  15  norm          .10000E-03    1.7772        .66207E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1225        1.9368        .38474E-06   -1.5417    
  17  norm          .10000E-03    3.9164        .11635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6390        .59610E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.374        .27347E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.303        .63742E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99380        .27638        .23261E-06   -.93238    
  22  Prefactor     1.0287        .14356        .22915E-06   -.91778    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6318.819     FROM MIGRAD    STATUS=CONVERGED    327 CALLS     3894 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.687        14.407        .29921E-05    .60792E-05
   2  norm          15.632        13.619        .40519E-05    .61727E-05
   3  Prefactor     .10000E-03    6.0236        .36285E-03** at limit **
   4  Prefactor     .10000E-03    6.0425        .36285E-03** at limit **
   5  Prefactor     28.779        25.274        .14934E-04    .37286E-03
   6  norm          .94278        1.3542        .22639E-03    .38819E-04
   7  norm          .10000E-03    26.794        .45988E-03** at limit **
   8  norm          13.390        10.289        .43790E-05    .41383E-03
   9  Prefactor     1.7378        31.311        .63669E-04    .53568E-05
  10  norm          .10000E-03    8.1553        .36285E-03** at limit **
  11  Prefactor     .10000E-03    7.7467        .36285E-03** at limit **
  12  norm          .10000E-03    2.2790        .23373E-03** at limit **
  13  Prefactor     .10000E-03    18.849        .63036E-03** at limit **
  14  Prefactor     66.631        48.888        .98351E-05    .18726E-04
  15  norm          .10000E-03    1.7772        .20684E-03** at limit **
  16  norm          2.1225        1.9368        .41022E-05    .77598E-05
  17  norm          .10000E-03    3.9164        .30725E-03** at limit **
  18  norm          .10000E-03    3.6397        .29501E-03** at limit **
  19  Prefactor     .10000E-03    22.378        .36285E-03** at limit **
  20  Prefactor     .10000E-03    13.303        .36285E-03** at limit **
  21  Normalizat    .99380        .27634        .14030E-04    .98371E-04
  22  Prefactor     1.0287        .14362        .37040E-04    .15396E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.6869
  norm       = 15.6321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7792
  norm       = 0.942783
  norm       = 0.0001
  norm       = 13.3902
  Prefactor  = 1.73779
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.6308
  norm       = 0.0001
  norm       = 2.1225
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.993799
  Prefactor  = 1.02872
 **********
 **   18 **HESSE 
 **********

 FCN=   6318.819     FROM HESSE     STATUS=OK           320 CALLS     4214 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.687        14.398        .59843E-06   -1.4636    
   2  norm          15.632        13.595        .81037E-06   -1.4917    
   3  Prefactor     .10000E-03    6.0237        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0425        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.779        25.266        .29868E-05   -1.4635    
   6  norm          .94278        1.3539        .90554E-05   -1.5514    
   7  norm          .10000E-03    26.797        .91976E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.390        10.283        .87580E-06   -1.4976    
   9  Prefactor     1.7378        31.225        .25468E-05   -1.5444    
  10  norm          .10000E-03    8.1553        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.7467        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2790        .46747E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.861        .12607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     66.631        48.842        .19670E-05   -1.4074    
  15  norm          .10000E-03    1.7772        .41368E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1225        1.9366        .82045E-06   -1.5417    
  17  norm          .10000E-03    3.9164        .61449E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6397        .59002E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.378        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.303        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99380        .27631        .28060E-05   -.93238    
  22  Prefactor     1.0287        .14364        .74080E-05   -.91778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25209e-10
Minuit parameter uncertainties:
  1  14.4
  2  13.5976
  3  2.88737e-07
  4  2.44279e-07
  5  25.2752
  6  1.3539
  7  9.77983e-05
  8  10.284
  9  14.7412
  10  4.32357e-08
  11  8.23244e-06
  12  4.68077e-07
  13  4.35515e-07
  14  48.8715
  15  1.9939e-08
  16  1.93668
  17  3.46437e-08
  18  2.08557e-07
  19  1.79778e-06
  20  4.41629e-07
  21  0.276706
  22  0.143691
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.355e-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:  1.029e+00  1.437e-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:  9.938e-01  2.767e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997887/likelihoodResults_501379201_501638401_4FGL_J1349.5-1131_daily_bin1011.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) = 6318.81928114
delta logL = -0.000254291009696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6318.81902686
delta logL = -1.6831108951e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5041       1.0000          .0000       10.000    
     3 'Normalizat'    .99384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0287       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.

 FCN=   6318.819     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      230 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .49857        .49974E-01** at limit **
   2  Index         2.5134        6.1634        .50000       -.40891E-05
   3  Normalizat    .99380        .20969E-02    .79249E-01    .16179E-03
   4  Prefactor     1.0287        .11300E-02    .41362E-01    .22931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.51341
  Normalizat = 0.993799
  Prefactor  = 1.02872
 **********
 **   18 **HESSE 
 **********

 FCN=   6318.819     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.681        .31426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5134        5.0538        .50000       -.52051    
   3  Normalizat    .99380        .12137E-01    .35075E-03   -.93238    
   4  Prefactor     1.0287        .65525E-02    .18520E-03   -.91778    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.31747e-08
Minuit parameter uncertainties:
  1  0.00106598
  2  190.681
  3  0.0121371
  4  0.00655249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997887': 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) = 6318.81902683
delta logL = 2.02371666091e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.029e+00  6.552e-03  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:  9.938e-01  1.214e-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/997887/cmap_HighResolution_501379201_501638401_4FGL_J1349.5-1131_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-08 14:40:19.129805', job_id='997887', GAL2='1.03', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631137219.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1011' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:40:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 997887: <4FGL_J1349.5-1131_daily_bin1011> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1011> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:25:15 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:25:17 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:17 2021
Terminated at Wed Sep  8 14:40:19 2021
Results reported at Wed Sep  8 14:40:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1011 207.387 -11.5188 501379201 501638401 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 :                                   706.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

