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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1509
RA = 207.387, Dec = -11.5188
tmin = 630460801, tmax = 630720001
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='448', job_status='RUN', time_executed='2021-09-08 14:36:46.442894', time_epoch_executed='1631137006.44' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448/ft1_4FGL_J1349.5-1131_daily_bin1509.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448/ft2_4FGL_J1349.5-1131_daily_bin1509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448/ft1_4FGL_J1349.5-1131_daily_bin1509.fits outfile=/scratch/kocevski/448/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1509.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=630460801.0 tmax=630720001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.85
user 2.65
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448/ft1_filtered_4FGL_J1349.5-1131_daily_bin1509.fits" evtable="EVENTS" scfile=/scratch/kocevski/448/ft2_4FGL_J1349.5-1131_daily_bin1509.fits sctable="SC_DATA" outfile=/scratch/kocevski/448/ltcube_630460801_630720001_4FGL_J1349.5-1131_daily_bin1509.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/448/ft2_4FGL_J1349.5-1131_daily_bin1509.fits
.....................!
real 16.96
user 16.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448/ft1_filtered_4FGL_J1349.5-1131_daily_bin1509.fits evtable="EVENTS" scfile=/scratch/kocevski/448/ft2_4FGL_J1349.5-1131_daily_bin1509.fits sctable="SC_DATA" expcube=/scratch/kocevski/448/ltcube_630460801_630720001_4FGL_J1349.5-1131_daily_bin1509.fits outfile=/scratch/kocevski/448/expmap_630460801_630720001_4FGL_J1349.5-1131_daily_bin1509.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/448/ltcube_630460801_630720001_4FGL_J1349.5-1131_daily_bin1509.fits
.....................!
real 191.10
user 186.31
sys 4.08

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/448/ft1_filtered_4FGL_J1349.5-1131_daily_bin1509.fits scfile=/scratch/kocevski/448/ft2_4FGL_J1349.5-1131_daily_bin1509.fits outfile=/scratch/kocevski/448/cmap_630460801_630720001_4FGL_J1349.5-1131_daily_bin1509.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448/ft1_filtered_4FGL_J1349.5-1131_daily_bin1509.fits scfile=/scratch/kocevski/448/ft2_4FGL_J1349.5-1131_daily_bin1509.fits outfile=/scratch/kocevski/448/cmap_HighResolution_630460801_630720001_4FGL_J1349.5-1131_daily_bin1509.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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/448/ft1_filtered_4FGL_J1349.5-1131_daily_bin1509.fits evtable="EVENTS" scfile=/scratch/kocevski/448/ft2_4FGL_J1349.5-1131_daily_bin1509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448/Model_4FGL_J1349.5-1131_daily_bin1509.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/448/ft1_filtered_4FGL_J1349.5-1131_daily_bin1509.fits.....................!
real 70.60
user 69.11
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7165       1.0000         .10000E-03   10000.    
     2 'norm      '    .23214E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.303       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .44012       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.106       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4307       1.0000         .10000E-03   10000.    
    10 'norm      '    30.187       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23366E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7028       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.950       1.0000         .10000E-03   10000.    
    15 'norm      '    8.4626       1.0000         .10000E-03   10000.    
    16 'norm      '    14.374       1.0000         .10000E-03   10000.    
    17 'norm      '    8.2782       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0908       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.8254       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65794       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=   9230.318     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2445 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7162        5.2528        .28278E-05   -.22380E-03
   2  norm          .10015E-03    3.5038        .90617E-06** at limit **
   3  Prefactor     10.300        7.5378       -.28857E-06    .38867E-03
   4  Prefactor     .10000E-03    3.9617        .13313E-06** at limit **
   5  Prefactor     .10000E-03    22.947        .76797E-06** at limit **
   6  norm          .44005        1.1496        .20429E-06   -.24441E-03
   7  norm          .10000E-03    1.1682        .10445E-06** at limit **
   8  norm          11.108        6.1412        .46359E-07   -.64960E-04
   9  Prefactor     4.4461        14.425       -.26155E-05   -.48760E-03
  10  norm          30.190        24.314        .75823E-07   -.28840E-05
  11  Prefactor     .10001E-03    7.9097        .11967E-05** at limit **
  12  norm          1.7014        3.7716        .68077E-06    .25849E-04
  13  Prefactor     .10000E-03    3.2851        .59900E-06** at limit **
  14  Prefactor     22.974        41.943       -.13349E-05    .74926E-04
  15  norm          8.4616        5.5108       -.11242E-06    .25238E-03
  16  norm          14.375        3.5070       -.30247E-07   -.41202E-04
  17  norm          8.2785        7.5211        .99320E-07   -.83895E-04
  18  norm          3.0909        4.5930        .21878E-05   -.26487E-03
  19  Prefactor     .10000E-03    5.3810       -.40226E-07** at limit **
  20  Prefactor     .10000E-03    4.8862       -.98894E-08** at limit **
  21  Normalizat    1.8254        .20473       -.64906E-06   -.35075E-03
  22  Prefactor     .65795        .10420        .23833E-07   -.38767E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.71623
  norm       = 0.000100154
  Prefactor  = 10.3001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.440047
  norm       = 0.0001
  norm       = 11.1081
  Prefactor  = 4.44608
  norm       = 30.1897
  Prefactor  = 0.000100006
  norm       = 1.70139
  Prefactor  = 0.0001
  Prefactor  = 22.974
  norm       = 8.46162
  norm       = 14.375
  norm       = 8.27849
  norm       = 3.0909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.82542
  Prefactor  = 0.657948
 **********
 **   18 **HESSE 
 **********

 FCN=   9230.318     FROM HESSE     STATUS=OK           364 CALLS     2809 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7162        5.1955        .12355E-02   -1.5378    
   2  norm          .10015E-03    4.4795        .70415E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.300        7.5262        .12483E-03   -1.5066    
   4  Prefactor     .10000E-03    3.9997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .44005        1.1567        .15507E-03   -1.5575    
   7  norm          .10000E-03    1.1785        .10125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.108        6.1299        .12022E-03   -1.5041    
   9  Prefactor     4.4461        15.272        .19131E-03   -1.5286    
  10  norm          30.190        24.314        .72924E-04   -1.4609    
  11  Prefactor     .10001E-03    11.966        .70142E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7014        3.7328        .26349E-03   -1.5447    
  13  Prefactor     .10000E-03    3.3848        .34040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.974        41.856        .83612E-04   -1.4749    
  15  norm          8.4616        5.4999        .13780E-03   -1.5126    
  16  norm          14.375        3.5151        .83726E-04   -1.4949    
  17  norm          8.2785        7.5229        .13934E-03   -1.5132    
  18  norm          3.0909        4.5575        .11534E-02   -1.5356    
  19  Prefactor     .10000E-03    5.3850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.8254        .23593        .28321E-03   -.69002    
  22  Prefactor     .65795        .12025        .23236E-03   -1.0520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8627e-09
Minuit parameter uncertainties:
  1  5.19639
  2  0.00166356
  3  7.52684
  4  1.51812e-05
  5  0.000163844
  6  1.15676
  7  6.86767e-06
  8  6.13028
  9  15.2853
  10  24.3218
  11  0.000554073
  12  3.73335
  13  6.48062e-05
  14  41.9091
  15  5.50025
  16  3.51518
  17  7.52374
  18  4.558
  19  6.77864e-06
  20  3.62673e-06
  21  0.236082
  22  0.120298
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.481e-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:  6.579e-01  1.203e-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.825e+00  2.361e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448/likelihoodResults_630460801_630720001_4FGL_J1349.5-1131_daily_bin1509.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) = 9230.31944858
delta logL = -0.00140914133226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9230.31804058
delta logL = -1.14653994387e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4734       1.0000          .0000       10.000    
     3 'Normalizat'    1.8252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65809       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=   9230.318     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      257 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.593        .34596E-02** at limit **
   2  Index         2.1564        6.1415        .50000       -.52523E-07
   3  Normalizat    1.8254        .24774E-01    .28321E-03   -.45064E-03
   4  Prefactor     .65795        .13081E-01    .23236E-03   -.53412E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15642
  Normalizat = 1.82542
  Prefactor  = 0.657948
 **********
 **   18 **HESSE 
 **********

 FCN=   9230.318     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    387.54        .69192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1564        7.2613        .50000       -.60494    
   3  Normalizat    1.8254        .59051E-01    .56642E-04   -.69002    
   4  Prefactor     .65795        .31178E-01    .46471E-04   -1.0520    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.11165e-10
Minuit parameter uncertainties:
  1  8.0343e-05
  2  848.845
  3  0.0590528
  4  0.031179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448': 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) = 9230.31803729
delta logL = 2.14888314076e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  8.034e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.156e+00  8.488e+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:  6.579e-01  3.118e-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.825e+00  5.905e-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/448/cmap_HighResolution_630460801_630720001_4FGL_J1349.5-1131_daily_bin1509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-03', job_status='DONE', photon_flux_upper_limit='8.54e-08', time_completed='2021-09-08 14:50:01.056087', job_id='448', GAL2='0.66', fit_tolerance='1e-08', EG2='1.83', EG='1.83', time_epoch_completed='1631137801.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1509' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:50:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 448: <4FGL_J1349.5-1131_daily_bin1509> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1509 207.387 -11.5188 630460801 630720001 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 :                                   761.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            877 sec.

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

