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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1373
RA = 207.387, Dec = -11.5188
tmin = 595209601, tmax = 595468801
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='999127', job_status='RUN', time_executed='2021-09-08 14:35:16.150532', time_epoch_executed='1631136916.15' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999127

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999127/ft1_4FGL_J1349.5-1131_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999127/ft2_4FGL_J1349.5-1131_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999127/ft1_4FGL_J1349.5-1131_daily_bin1373.fits outfile=/scratch/kocevski/999127/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1373.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=595209601.0 tmax=595468801.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.94
user 2.71
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999127/ft1_filtered_4FGL_J1349.5-1131_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/999127/ft2_4FGL_J1349.5-1131_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/999127/ltcube_595209601_595468801_4FGL_J1349.5-1131_daily_bin1373.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/999127/ft2_4FGL_J1349.5-1131_daily_bin1373.fits
.....................!
real 17.20
user 16.76
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999127/ft1_filtered_4FGL_J1349.5-1131_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/999127/ft2_4FGL_J1349.5-1131_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/999127/ltcube_595209601_595468801_4FGL_J1349.5-1131_daily_bin1373.fits outfile=/scratch/kocevski/999127/expmap_595209601_595468801_4FGL_J1349.5-1131_daily_bin1373.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/999127/ltcube_595209601_595468801_4FGL_J1349.5-1131_daily_bin1373.fits
.....................!
real 192.59
user 186.25
sys 5.83

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

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999127/ft1_filtered_4FGL_J1349.5-1131_daily_bin1373.fits scfile=/scratch/kocevski/999127/ft2_4FGL_J1349.5-1131_daily_bin1373.fits outfile=/scratch/kocevski/999127/cmap_HighResolution_595209601_595468801_4FGL_J1349.5-1131_daily_bin1373.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999127/ft1_filtered_4FGL_J1349.5-1131_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/999127/ft2_4FGL_J1349.5-1131_daily_bin1373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999127/Model_4FGL_J1349.5-1131_daily_bin1373.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/999127/ft1_filtered_4FGL_J1349.5-1131_daily_bin1373.fits....................!
real 28.80
user 27.46
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0949       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.655       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9427       1.0000         .10000E-03   10000.    
     7 'norm      '    12.109       1.0000         .10000E-03   10000.    
     8 'norm      '    25.662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    50.559       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.445       1.0000         .10000E-03   10000.    
    12 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    42.593       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.807       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .66692E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5580       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64482       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=   2106.167     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2660 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4377        .30080E-09** at limit **
   2  norm          5.0956        10.324        .33135E-05   -.15224E-04
   3  Prefactor     .10000E-03    23.554        .52529E-07** at limit **
   4  Prefactor     14.651        18.149       -.32783E-06    .93166E-05
   5  Prefactor     .10000E-03    23.502       -.26850E-07** at limit **
   6  norm          4.9424        3.5178       -.14897E-07    .21381E-04
   7  norm          12.112        9.1049        .62582E-08    .12866E-04
   8  norm          25.659        19.757        .59983E-07    .15139E-04
   9  Prefactor     .10000E-03    32.889        .97668E-06** at limit **
  10  norm          50.501        49.529        .19237E-07   -.87544E-05
  11  Prefactor     22.433        31.742        .52510E-06    .48393E-05
  12  norm          .10000E-03    5.0636        .42054E-07** at limit **
  13  Prefactor     .10000E-03    11.459       -.16105E-05** at limit **
  14  Prefactor     .10000E-03    53.852       -.54653E-07** at limit **
  15  norm          42.647        31.348        .30576E-08   -.23004E-04
  16  norm          .10000E-03    6.9359       -.47799E-07** at limit **
  17  norm          .10000E-03    15.872        .12460E-07** at limit **
  18  norm          .10000E-03    34.469        .24316E-05** at limit **
  19  Prefactor     27.977        119.74        .19097E-06    .15602E-04
  20  Prefactor     .10000E-03    445.69        .81957E-08** at limit **
  21  Normalizat    1.5584        .48333        .25995E-05   -.27769E-04
  22  Prefactor     .64459        .24858       -.24379E-05    .37672E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.09565
  Prefactor  = 0.0001
  Prefactor  = 14.6511
  Prefactor  = 0.0001
  norm       = 4.94236
  norm       = 12.112
  norm       = 25.6587
  Prefactor  = 0.0001
  norm       = 50.5009
  Prefactor  = 22.4333
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 42.6475
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.9772
  Prefactor  = 0.0001
  Normalizat = 1.55837
  Prefactor  = 0.644588
 **********
 **   18 **HESSE 
 **********

 FCN=   2106.167     FROM HESSE     STATUS=OK           342 CALLS     3002 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4385        .94428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0956        10.362        .89063E-03   -1.5256    
   3  Prefactor     .10000E-03    23.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.651        18.239        .10462E-03   -1.4942    
   5  Prefactor     .10000E-03    23.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.9424        3.5288        .66580E-04   -1.5263    
   7  norm          12.112        9.1085        .10855E-03   -1.5012    
   8  norm          25.659        19.767        .79078E-04   -1.4694    
   9  Prefactor     .10000E-03    32.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          50.501        49.528        .28200E-03   -1.4285    
  11  Prefactor     22.433        31.744        .84547E-04   -1.4760    
  12  norm          .10000E-03    5.0671        .10086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.488        .15172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    53.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          42.647        31.350        .61425E-04   -1.4401    
  16  norm          .10000E-03    6.9681        .11801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.873        .17862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    34.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.977        119.00        .37986E-03   -1.4650    
  20  Prefactor     .10000E-03    445.70        .18777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5584        .55411        .32595E-03   -.76151    
  22  Prefactor     .64459        .28108        .25488E-03   -1.0574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24851e-11
Minuit parameter uncertainties:
  1  8.45112e-07
  2  10.366
  3  7.76508e-06
  4  18.2461
  5  8.08884e-06
  6  3.52897
  7  9.10954
  8  19.7718
  9  4.85785e-06
  10  49.5682
  11  31.7676
  12  3.15481e-07
  13  5.59096e-06
  14  4.75814e-06
  15  31.3619
  16  1.33182e-06
  17  2.10247e-07
  18  3.86172e-05
  19  115.792
  20  0.000840411
  21  0.556298
  22  0.281694
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.591e-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:  6.446e-01  2.817e-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.558e+00  5.563e-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: 4.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999127/likelihoodResults_595209601_595468801_4FGL_J1349.5-1131_daily_bin1373.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) = 2106.16747498
delta logL = -0.000412110428442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2106.16706443
delta logL = -1.55752331921e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4941       1.0000          .0000       10.000    
     3 'Normalizat'    1.5593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64415       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=   2106.167     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.912        .90712E-02** at limit **
   2  Index         2.4941        5.7444        .50000        .39643E-07
   3  Normalizat    1.5584        .21166E-01    .73666E-01    .22413E-05
   4  Prefactor     .64459        .11242E-01    .41653E-01    .69412E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49405
  Normalizat = 1.55837
  Prefactor  = 0.644585
 **********
 **   18 **HESSE 
 **********

 FCN=   2106.167     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    224.43        .15174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4941        5.0394        .50000       -.52497    
   3  Normalizat    1.5584        .53126E-01    .32595E-03   -.76151    
   4  Prefactor     .64459        .28235E-01    .25488E-03   -1.0574    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79029e-11
Minuit parameter uncertainties:
  1  1.49774e-05
  2  742.976
  3  0.0531281
  4  0.0282353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999127': 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) = 2106.16706287
delta logL = 3.18323145621e-11

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.498e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.494e+00  7.430e+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.446e-01  2.824e-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.558e+00  5.313e-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/999127/cmap_HighResolution_595209601_595468801_4FGL_J1349.5-1131_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-02', job_status='DONE', photon_flux_upper_limit='4.04e-07', time_completed='2021-09-08 14:43:24.668203', job_id='999127', GAL2='0.64', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1631137404.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='3.18e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1373' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:43:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 999127: <4FGL_J1349.5-1131_daily_bin1373> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1373> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 14:30:37 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:31:26 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:31:26 2021
Terminated at Wed Sep  8 14:43:25 2021
Results reported at Wed Sep  8 14:43:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1373 207.387 -11.5188 595209601 595468801 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 :                                   417.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             221.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            768 sec.

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

