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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1320
RA = 207.387, Dec = -11.5188
tmin = 581472001, tmax = 581731201
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='999050', job_status='RUN', time_executed='2021-09-08 14:35:02.729865', time_epoch_executed='1631136902.73' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999050

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999050/ft1_4FGL_J1349.5-1131_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999050/ft2_4FGL_J1349.5-1131_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999050/ft1_4FGL_J1349.5-1131_daily_bin1320.fits outfile=/scratch/kocevski/999050/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1320.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=581472001.0 tmax=581731201.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.86
user 2.61
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999050/ft1_filtered_4FGL_J1349.5-1131_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/999050/ft2_4FGL_J1349.5-1131_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/999050/ltcube_581472001_581731201_4FGL_J1349.5-1131_daily_bin1320.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/999050/ft2_4FGL_J1349.5-1131_daily_bin1320.fits
.....................!
real 17.96
user 17.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999050/ft1_filtered_4FGL_J1349.5-1131_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/999050/ft2_4FGL_J1349.5-1131_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/999050/ltcube_581472001_581731201_4FGL_J1349.5-1131_daily_bin1320.fits outfile=/scratch/kocevski/999050/expmap_581472001_581731201_4FGL_J1349.5-1131_daily_bin1320.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/999050/ltcube_581472001_581731201_4FGL_J1349.5-1131_daily_bin1320.fits
.....................!
real 194.63
user 187.07
sys 5.32

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/999050/ft1_filtered_4FGL_J1349.5-1131_daily_bin1320.fits scfile=/scratch/kocevski/999050/ft2_4FGL_J1349.5-1131_daily_bin1320.fits outfile=/scratch/kocevski/999050/cmap_581472001_581731201_4FGL_J1349.5-1131_daily_bin1320.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.39
sys 0.15

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.088       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.519       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10732E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6846       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5146       1.0000         .10000E-03   10000.    
     8 'norm      '    12.481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.175       1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.027       1.0000         .10000E-03   10000.    
    12 'norm      '    9.5395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1887       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.462       1.0000         .10000E-03   10000.    
    15 'norm      '    7.9796       1.0000         .10000E-03   10000.    
    16 'norm      '    14.458       1.0000         .10000E-03   10000.    
    17 'norm      '    15.835       1.0000         .10000E-03   10000.    
    18 'norm      '    24.814       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79870E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91805       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96338       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=   4856.378     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2342 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.087        15.000       -.13580E-06    .14772E-04
   2  norm          .10000E-03    4.6715       -.17400E-06** at limit **
   3  Prefactor     12.518        9.1886       -.19203E-06    .93973E-05
   4  Prefactor     .10000E-03    12.574       -.91900E-06** at limit **
   5  Prefactor     .10000E-03    7.6394       -.15095E-06** at limit **
   6  norm          3.6844        2.0518       -.25356E-06   -.93959E-04
   7  norm          3.5153        3.2484       -.18802E-06   -.26490E-04
   8  norm          12.481        9.2748       -.36406E-07    .24980E-04
   9  Prefactor     23.168        23.590        .24163E-04    .12826E-03
  10  norm          .10000E-03    15.346        .75800E-06** at limit **
  11  Prefactor     11.033        19.516       -.27441E-04   -.94922E-04
  12  norm          9.5394        6.9884       -.20971E-06    .52683E-04
  13  Prefactor     4.1889        7.1873        .11308E-05   -.70588E-04
  14  Prefactor     58.436        78.629       -.18510E-04    .36720E-04
  15  norm          7.9789        10.257       -.18640E-05    .66441E-04
  16  norm          14.459        6.3706        .42903E-05    .97452E-03
  17  norm          15.831        15.648        .89619E-05    .22685E-04
  18  norm          24.825        17.208       -.23546E-04    .78344E-03
  19  Prefactor     .10191E-03    635.90       -.16700E-03** at limit **
  20  Prefactor     .10000E-03    36.072       -.15079E-05** at limit **
  21  Normalizat    .91823        .29430        .53341E-05    .40035E-03
  22  Prefactor     .96340        .15334        .99794E-06    .73649E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 33.0874
  norm       = 0.0001
  Prefactor  = 12.5181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.68435
  norm       = 3.51528
  norm       = 12.4811
  Prefactor  = 23.1676
  norm       = 0.0001
  Prefactor  = 11.0332
  norm       = 9.53937
  Prefactor  = 4.18889
  Prefactor  = 58.4356
  norm       = 7.9789
  norm       = 14.4595
  norm       = 15.8307
  norm       = 24.8246
  Prefactor  = 0.000101912
  Prefactor  = 0.0001
  Normalizat = 0.91823
  Prefactor  = 0.963401
 **********
 **   18 **HESSE 
 **********

 FCN=   4856.378     FROM HESSE     STATUS=OK           344 CALLS     2686 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.087        15.003        .69662E-04   -1.4557    
   2  norm          .10000E-03    4.6798        .14710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.518        9.1886        .11321E-03   -1.5000    
   4  Prefactor     .10000E-03    12.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6844        2.0565        .69749E-04   -1.5324    
   7  norm          3.5153        3.2389        .11369E-03   -1.5333    
   8  norm          12.481        9.2531        .11338E-03   -1.5001    
   9  Prefactor     23.168        23.607        .83206E-04   -1.4745    
  10  norm          .10000E-03    15.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.033        19.568        .12065E-03   -1.5044    
  12  norm          9.5394        6.9843        .12975E-03   -1.5090    
  13  Prefactor     4.1889        7.1393        .19691E-03   -1.5299    
  14  Prefactor     58.436        78.706        .52470E-04   -1.4178    
  15  norm          7.9789        10.213        .14194E-03   -1.5143    
  16  norm          14.459        6.3879        .10534E-03   -1.4947    
  17  norm          15.831        15.660        .10065E-03   -1.4912    
  18  norm          24.825        17.065        .80416E-04   -1.4711    
  19  Prefactor     .10191E-03    638.80        .36960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91823        .33434        .38142E-03   -.95822    
  22  Prefactor     .96340        .17583        .20338E-03   -.93960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11873e-09
Minuit parameter uncertainties:
  1  15.0046
  2  6.77956e-06
  3  9.18967
  4  0.000119028
  5  1.35578e-05
  6  2.05658
  7  3.23901
  8  9.25418
  9  23.6161
  10  9.04911e-06
  11  19.5794
  12  6.98494
  13  7.14071
  14  78.8464
  15  10.2152
  16  6.38819
  17  15.664
  18  17.0684
  19  0.0706617
  20  2.31144e-07
  21  0.335101
  22  0.175931
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  4.189e+00  7.141e+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:  9.634e-01  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.182e-01  3.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999050/likelihoodResults_581472001_581731201_4FGL_J1349.5-1131_daily_bin1320.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) = 4856.36152576
delta logL = 0.0161684941522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4855.5030597
delta logL = 0.874634551595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.3118       1.0000          .0000       10.000    
     3 'Normalizat'    .78794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4855.503     FROM MIGRAD    STATUS=FAILED       178 CALLS      506 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27104E-01    .13287E-03** at limit **
   2  Index         9.3116        9.4028        .11178E-01    .18878E-03
   3  Normalizat    .78804        .18330        .40810E-03   -.25116E-03
   4  Prefactor     1.0186        .99822E-01    .19850E-03   -.45228E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4855.503     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      667 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27104E-01    .14055E-04** at limit **
   2  Index         9.3116        9.4028        .10428E-03    .18878E-03
   3  Normalizat    .78804        .18330        .38509E-05   -.25116E-03
   4  Prefactor     1.0186        .99822E-01    .20604E-05   -.45228E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4855.503     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      711 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .14355E-01    .18604E-03** at limit **
   2  Index         9.3116        9.3247        .22355E-02   -.36615E-06
   3  Normalizat    .78805        .15709        .16324E-04   -.14207E-04
   4  Prefactor     1.0186        .85691E-01    .39701E-04    .20675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.31162
  Normalizat = 0.788045
  Prefactor  = 1.01856
 **********
 **   18 **HESSE 
 **********

 FCN=   4855.503     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      744 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .19407E-01    .15941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.3116        9.3798        .89421E-04    1.0398    
   3  Normalizat    .78805        .17353        .32648E-05   -1.0051    
   4  Prefactor     1.0186        .94607E-01    .79401E-05   -.92113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25376e-11
Minuit parameter uncertainties:
  1  6.08704e-08
  2  5.40875
  3  0.173652
  4  0.0946223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999050': 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) = 4855.50305863
delta logL = 0.874635625813

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.087e-08  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  9.312e+00  5.409e+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.019e+00  9.462e-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:  7.880e-01  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 9.31 +/- 5.41
Photon Flux (Free Index): 1.46e-07 +/- 1.44e-06
Energy Flux (Free Index): 1.65e-05 +/- 1.62e-04

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/999050/cmap_HighResolution_581472001_581731201_4FGL_J1349.5-1131_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', energy_flux2='1.65e-05', dlogl='8.75e-01', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-08 14:46:27.955682', photon_index_error2='5.41', photon_index2='9.31', ts='0.55', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='1.62e-04', EG='0.92', time_epoch_completed='1631137587.96', return_code='0', job_id='999050', GAL2='1.02', EG2='0.79', return_code2='102', photon_flux_error2='1.44e-06', ts2='2.50', photon_index='2.49' WHERE bin_id='1320' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 999050: <4FGL_J1349.5-1131_daily_bin1320> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1320 207.387 -11.5188 581472001 581731201 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 :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            957 sec.

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

