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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1539
RA = 207.387, Dec = -11.5188
tmin = 638236801, tmax = 638496001
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='492', job_status='RUN', time_executed='2021-09-08 14:38:38.577317', time_epoch_executed='1631137118.58' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492/ft1_4FGL_J1349.5-1131_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492/ft2_4FGL_J1349.5-1131_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492/ft1_4FGL_J1349.5-1131_daily_bin1539.fits outfile=/scratch/kocevski/492/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1539.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=638236801.0 tmax=638496001.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.60
user 3.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/492/ft1_filtered_4FGL_J1349.5-1131_daily_bin1539.fits" evtable="EVENTS" scfile=/scratch/kocevski/492/ft2_4FGL_J1349.5-1131_daily_bin1539.fits sctable="SC_DATA" outfile=/scratch/kocevski/492/ltcube_638236801_638496001_4FGL_J1349.5-1131_daily_bin1539.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/492/ft2_4FGL_J1349.5-1131_daily_bin1539.fits
.....................!
real 14.42
user 14.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492/ft1_filtered_4FGL_J1349.5-1131_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/492/ft2_4FGL_J1349.5-1131_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/492/ltcube_638236801_638496001_4FGL_J1349.5-1131_daily_bin1539.fits outfile=/scratch/kocevski/492/expmap_638236801_638496001_4FGL_J1349.5-1131_daily_bin1539.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/492/ltcube_638236801_638496001_4FGL_J1349.5-1131_daily_bin1539.fits
.....................!
real 192.81
user 186.51
sys 5.68

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/492/ft1_filtered_4FGL_J1349.5-1131_daily_bin1539.fits scfile=/scratch/kocevski/492/ft2_4FGL_J1349.5-1131_daily_bin1539.fits outfile=/scratch/kocevski/492/cmap_638236801_638496001_4FGL_J1349.5-1131_daily_bin1539.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.92
user 0.36
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/492/ft1_filtered_4FGL_J1349.5-1131_daily_bin1539.fits scfile=/scratch/kocevski/492/ft2_4FGL_J1349.5-1131_daily_bin1539.fits outfile=/scratch/kocevski/492/cmap_HighResolution_638236801_638496001_4FGL_J1349.5-1131_daily_bin1539.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/492/ft1_filtered_4FGL_J1349.5-1131_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/492/ft2_4FGL_J1349.5-1131_daily_bin1539.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/492/Model_4FGL_J1349.5-1131_daily_bin1539.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/492/ft1_filtered_4FGL_J1349.5-1131_daily_bin1539.fits.....................!
real 59.14
user 57.68
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.345       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28007E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4513       1.0000         .10000E-03   10000.    
     7 'norm      '    9.5170       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0138       1.0000         .10000E-03   10000.    
    12 'norm      '    26.456       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11860E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .65880       1.0000         .10000E-03   10000.    
    16 'norm      '    12.517       1.0000         .10000E-03   10000.    
    17 'norm      '    8.6390       1.0000         .10000E-03   10000.    
    18 'norm      '    9.7079       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5447       1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.161       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3871       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98321       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=   7322.589     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     2730 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.999        .18142E-02** at limit **
   2  norm          .10000E-03    5.1449        .18142E-02** at limit **
   3  Prefactor     .10000E-03    7.3051        .18142E-02** at limit **
   4  Prefactor     13.342        12.629        .10965E-03   -.29965E-04
   5  Prefactor     .10000E-03    50.631        .97559E-01** at limit **
   6  norm          1.4529        2.0728        .13456E-03    .63282E-04
   7  norm          9.4978        7.7901        .12990E-03   -.74827E-04
   8  norm          3.0179        13.339        .23423E-03    .73677E-04
   9  Prefactor     .10000E-03    13.733        .18142E-02** at limit **
  10  norm          .10000E-03    13.442        .18142E-02** at limit **
  11  Prefactor     6.0175        12.598        .16373E-03   -.93736E-05
  12  norm          26.457        9.0746        .77884E-04    .17919E-04
  13  Prefactor     .10000E-03    2.4247        .12971E-02** at limit **
  14  Prefactor     .10000E-03    28.237        .18142E-02** at limit **
  15  norm          .64965        11.307        .23806E-02   -.21733E-03
  16  norm          12.517        3.8455        .88373E-04    .68181E-04
  17  norm          8.6384        9.3213        .13638E-03   -.50850E-05
  18  norm          9.7093        7.8220        .12861E-03    .18032E-04
  19  Prefactor     2.5541        37.306        .25599E-03   -.24914E-04
  20  Prefactor     37.159        28.902        .65746E-04    .19021E-04
  21  Normalizat    1.3866        .31462        .35847E-03    .25594E-04
  22  Prefactor     .98339        .15657        .21749E-03   -.13360E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3419
  Prefactor  = 0.0001
  norm       = 1.45292
  norm       = 9.49779
  norm       = 3.01789
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.01746
  norm       = 26.4574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.649653
  norm       = 12.5174
  norm       = 8.63842
  norm       = 9.70929
  Prefactor  = 2.5541
  Prefactor  = 37.1587
  Normalizat = 1.3866
  Prefactor  = 0.983389
 **********
 **   18 **HESSE 
 **********

 FCN=   7322.589     FROM HESSE     STATUS=OK           332 CALLS     3062 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.1451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.342        12.629        .43858E-05   -1.4977    
   5  Prefactor     .10000E-03    44.214        .10486       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4529        2.0723        .53823E-05   -1.5467    
   7  norm          9.4978        7.7368        .51961E-05   -1.5091    
   8  norm          3.0179        13.291        .93694E-05   -1.5361    
   9  Prefactor     .10000E-03    13.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0175        12.596        .65493E-05   -1.5217    
  12  norm          26.457        9.0744        .77884E-04   -1.4679    
  13  Prefactor     .10000E-03    2.4249        .25942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .64965        11.293        .95223E-04   -1.5547    
  16  norm          12.517        3.8452        .35349E-05   -1.5000    
  17  norm          8.6384        9.3213        .54552E-05   -1.5120    
  18  norm          9.7093        7.8215        .51446E-05   -1.5085    
  19  Prefactor     2.5541        37.295        .10240E-04   -1.5388    
  20  Prefactor     37.159        28.901        .26298E-05   -1.4488    
  21  Normalizat    1.3866        .31482        .14339E-04   -.81017    
  22  Prefactor     .98339        .15668        .43499E-04   -.93285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78303e-10
Minuit parameter uncertainties:
  1  1.06973e-05
  2  4.49765e-06
  3  1.1931e-05
  4  12.6315
  5  0.000180335
  6  2.07238
  7  7.73761
  8  12.6712
  9  2.59925e-05
  10  6.77877e-05
  11  12.6017
  12  9.07483
  13  3.90694e-06
  14  8.11696e-05
  15  5.41794
  16  3.84523
  17  9.32287
  18  7.82232
  19  19.534
  20  28.9122
  21  0.315261
  22  0.156757
Done.

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

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.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.834e-01  1.568e-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.387e+00  3.153e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/492/likelihoodResults_638236801_638496001_4FGL_J1349.5-1131_daily_bin1539.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) = 7322.5913157
delta logL = -0.00196058128313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7322.58935515
delta logL = -3.86489773518e-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.4894       1.0000          .0000       10.000    
     3 'Normalizat'    1.3866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98343       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=   7322.589     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    70.150        .12983E-02** at limit **
   2  Index         2.4590        5.2027        .50000        .13552E-04
   3  Normalizat    1.3866        .36482E-01    .35847E-03    .90387E-05
   4  Prefactor     .98339        .19165E-01    .21749E-03    .18295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100199
  Index      = 2.45903
  Normalizat = 1.38659
  Prefactor  = 0.983391
 **********
 **   18 **HESSE 
 **********

 FCN=   7322.589     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    273.43        .25966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4590        8.7042        .50000       -.53309    
   3  Normalizat    1.3866        .82260E-01    .14339E-04   -.81017    
   4  Prefactor     .98339        .43207E-01    .86998E-05   -.93285    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.38068e-08
Minuit parameter uncertainties:
  1  0.0148254
  2  963.989
  3  0.0822683
  4  0.0432088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492': 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) = 7322.58935503
delta logL = 8.42583176563e-08

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.002e-04  1.483e-02  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.459e+00  9.640e+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.834e-01  4.321e-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:  1.387e+00  8.227e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/492/cmap_HighResolution_638236801_638496001_4FGL_J1349.5-1131_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.78e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-08 14:49:54.942159', job_id='492', GAL2='0.98', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631137794.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1539' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:49:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 492: <4FGL_J1349.5-1131_daily_bin1539> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1539 207.387 -11.5188 638236801 638496001 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 :                                   670.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            867 sec.

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

