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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1438
RA = 207.387, Dec = -11.5188
tmin = 612057601, tmax = 612316801
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='347', job_status='RUN', time_executed='2021-09-08 14:36:32.047039', time_epoch_executed='1631136992.05' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/347

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/347/ft1_4FGL_J1349.5-1131_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/347/ft2_4FGL_J1349.5-1131_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/347/ft1_4FGL_J1349.5-1131_daily_bin1438.fits outfile=/scratch/kocevski/347/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1438.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=612057601.0 tmax=612316801.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 4.56
user 4.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/347/ft1_filtered_4FGL_J1349.5-1131_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/347/ft2_4FGL_J1349.5-1131_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/347/ltcube_612057601_612316801_4FGL_J1349.5-1131_daily_bin1438.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/347/ft2_4FGL_J1349.5-1131_daily_bin1438.fits
.....................!
real 14.33
user 13.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/347/ft1_filtered_4FGL_J1349.5-1131_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/347/ft2_4FGL_J1349.5-1131_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/347/ltcube_612057601_612316801_4FGL_J1349.5-1131_daily_bin1438.fits outfile=/scratch/kocevski/347/expmap_612057601_612316801_4FGL_J1349.5-1131_daily_bin1438.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/347/ltcube_612057601_612316801_4FGL_J1349.5-1131_daily_bin1438.fits
.....................!
real 191.93
user 186.57
sys 4.89

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/347/ft1_filtered_4FGL_J1349.5-1131_daily_bin1438.fits scfile=/scratch/kocevski/347/ft2_4FGL_J1349.5-1131_daily_bin1438.fits outfile=/scratch/kocevski/347/cmap_612057601_612316801_4FGL_J1349.5-1131_daily_bin1438.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/347/ft1_filtered_4FGL_J1349.5-1131_daily_bin1438.fits scfile=/scratch/kocevski/347/ft2_4FGL_J1349.5-1131_daily_bin1438.fits outfile=/scratch/kocevski/347/cmap_HighResolution_612057601_612316801_4FGL_J1349.5-1131_daily_bin1438.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/347/ft1_filtered_4FGL_J1349.5-1131_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/347/ft2_4FGL_J1349.5-1131_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/347/Model_4FGL_J1349.5-1131_daily_bin1438.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/347/ft1_filtered_4FGL_J1349.5-1131_daily_bin1438.fits.....................!
real 47.88
user 46.40
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    57.595       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1246       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10349E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9103       1.0000         .10000E-03   10000.    
     8 'norm      '    16.664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.761       1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10417E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.059       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.386       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.177       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .41017       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3582       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5678.463     FROM MIGRAD    STATUS=CONVERGED     68 CALLS     2013 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          57.591        1.2597       -.59873E-06    .47588E-02
   2  norm          .10000E-03    4.1081        .80690E-06** at limit **
   3  Prefactor     1.1222        1.1881       -.51896E-06   -.50309E-05
   4  Prefactor     .10000E-03    5.6760       -.71208E-05** at limit **
   5  Prefactor     .10000E-03    9.4201        .23719E-04** at limit **
   6  norm          .10000E-03    1.3417       -.56081E-07** at limit **
   7  norm          2.9089        3.7930       -.53182E-05   -.62414E-03
   8  norm          16.668        1.1380       -.45287E-06    .10052E-04
   9  Prefactor     .10023E-03    18.926       -.21964E-04** at limit **
  10  norm          .10029E-03    7.6046        .59834E-05** at limit **
  11  Prefactor     12.761        1.0305        .41623E-06   -.51996E-03
  12  norm          .10000E-03    2.6031       -.76655E-06** at limit **
  13  Prefactor     2.1806        1.0955       -.13824E-05   -.11370E-03
  14  Prefactor     .10049E-03    10.811        .10810E-05** at limit **
  15  norm          .10010E-03    9.0084       -.26198E-04** at limit **
  16  norm          14.057        1.0695        .45891E-07   -.99891E-03
  17  norm          .10002E-03    7.1847        .19161E-04** at limit **
  18  norm          10.058        1.0200        .40645E-06   -.62892E-03
  19  Prefactor     27.372        3.1469       -.34902E-05    .14665E-01
  20  Prefactor     27.177        1.0099       -.16155E-06    .75326E-03
  21  Normalizat    .41114        .30150        .72886E-06   -.93988E-04
  22  Prefactor     1.3577        .16803        .80422E-06    .93367E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 57.5906
  norm       = 0.0001
  Prefactor  = 1.12218
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 2.90895
  norm       = 16.6678
  Prefactor  = 0.000100235
  norm       = 0.000100287
  Prefactor  = 12.7613
  norm       = 0.0001
  Prefactor  = 2.18064
  Prefactor  = 0.000100487
  norm       = 0.000100102
  norm       = 14.0574
  norm       = 0.000100018
  norm       = 10.0578
  Prefactor  = 27.3718
  Prefactor  = 27.1769
  Normalizat = 0.411137
  Prefactor  = 1.35773
 **********
 **   18 **HESSE 
 **********

 FCN=   5678.463     FROM HESSE     STATUS=OK           392 CALLS     2405 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          57.591        22.100        .13215E-02   -1.4189    
   2  norm          .10000E-03    4.1072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1222        11.145        .11048E-01   -1.5496    
   4  Prefactor     .10000E-03    5.6609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.441        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .86045        .27394E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9089        4.1486        .59541E-02   -1.5367    
   8  norm          16.668        11.031        .24528E-02   -1.4891    
   9  Prefactor     .10023E-03    30.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10029E-03    14.469        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.761        18.469        .28033E-02   -1.4993    
  12  norm          .10000E-03    2.5914        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1806        7.8047        .69457E-02   -1.5413    
  14  Prefactor     .10049E-03    26.000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10010E-03    9.6713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.057        4.6271        .26706E-02   -1.4958    
  17  norm          .10002E-03    7.3006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.058        11.204        .31589E-02   -1.5074    
  19  Prefactor     27.372        34.184        .19139E-02   -1.4661    
  20  Prefactor     27.177        39.552        .19212E-02   -1.4665    
  21  Normalizat    .41114        .34838        .12775       -1.1673    
  22  Prefactor     1.3577        .17889        .31666E-01   -.81606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71958e-06
Minuit parameter uncertainties:
  1  22.1027
  2  5.22965e-05
  3  7.0744
  4  0.000163861
  5  0.000452604
  6  1.14695e-05
  7  4.14903
  8  11.0326
  9  0.0053126
  10  0.00407862
  11  18.477
  12  2.75655e-05
  13  7.80832
  14  0.0071185
  15  0.00198754
  16  4.62724
  17  0.000727334
  18  11.2068
  19  34.2085
  20  39.5898
  21  0.350241
  22  0.178974
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.181e+00  7.808e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.358e+00  1.790e-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:  4.111e-01  3.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/347/likelihoodResults_612057601_612316801_4FGL_J1349.5-1131_daily_bin1438.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): 0
logL (Free Index) = 5678.28683294
delta logL = 0.176136712198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5678.27000691
delta logL = 0.192962742261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6965       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4483       1.0000          .0000       10.000    
     3 'Normalizat'    .36389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3714       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=   5678.270     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6954        56.195        .80762E-02    .79770E-03
   2  Index         3.4488        3.7944        .21251        .70532E-04
   3  Normalizat    .36385        .59330E-01    .13556        .54856E-04
   4  Prefactor     1.3714        .32954E-01    .31469E-01   -.14183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.69544
  Index      = 3.44877
  Normalizat = 0.363852
  Prefactor  = 1.37138
 **********
 **   18 **HESSE 
 **********

 FCN=   5678.270     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6954        6.4375        .13688E-03   -1.5448    
   2  Index         3.4488        2.1627        .84300E-02   -.31545    
   3  Normalizat    .36385        .31495        .60025E-03   -1.1921    
   4  Prefactor     1.3714        .17057        .17910E-03   -.81209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82671e-08
Minuit parameter uncertainties:
  1  6.44016
  2  2.24525
  3  0.316497
  4  0.170644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/347': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5678.27000685
delta logL = 0.192962802504

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.695e+00  6.440e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.449e+00  2.245e+00  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.371e+00  1.706e-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:  3.639e-01  3.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/347/cmap_HighResolution_612057601_612316801_4FGL_J1349.5-1131_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.84e-07', time_completed='2021-09-08 14:46:26.256351', job_id='347', GAL2='1.37', fit_tolerance='1e-08', EG2='0.36', EG='0.41', time_epoch_completed='1631137586.26', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='1.93e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1438' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:46:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 347: <4FGL_J1349.5-1131_daily_bin1438> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1438> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:35:16 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:35:19 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:19 2021
Terminated at Wed Sep  8 14:46:27 2021
Results reported at Wed Sep  8 14:46:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1438 207.387 -11.5188 612057601 612316801 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 :                                   552.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            671 sec.

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

