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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1445
RA = 207.387, Dec = -11.5188
tmin = 613872001, tmax = 614131201
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='358', job_status='RUN', time_executed='2021-09-08 14:39:22.552409', time_epoch_executed='1631137162.55' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358/ft1_4FGL_J1349.5-1131_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358/ft2_4FGL_J1349.5-1131_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358/ft1_4FGL_J1349.5-1131_daily_bin1445.fits outfile=/scratch/kocevski/358/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1445.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=613872001.0 tmax=614131201.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.29
user 2.11
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358/ft1_filtered_4FGL_J1349.5-1131_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/358/ft2_4FGL_J1349.5-1131_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/358/ltcube_613872001_614131201_4FGL_J1349.5-1131_daily_bin1445.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/358/ft2_4FGL_J1349.5-1131_daily_bin1445.fits
.....................!
real 17.63
user 17.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358/ft1_filtered_4FGL_J1349.5-1131_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/358/ft2_4FGL_J1349.5-1131_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/358/ltcube_613872001_614131201_4FGL_J1349.5-1131_daily_bin1445.fits outfile=/scratch/kocevski/358/expmap_613872001_614131201_4FGL_J1349.5-1131_daily_bin1445.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/358/ltcube_613872001_614131201_4FGL_J1349.5-1131_daily_bin1445.fits
.....................!
real 195.04
user 188.87
sys 5.45

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/358/ft1_filtered_4FGL_J1349.5-1131_daily_bin1445.fits scfile=/scratch/kocevski/358/ft2_4FGL_J1349.5-1131_daily_bin1445.fits outfile=/scratch/kocevski/358/cmap_613872001_614131201_4FGL_J1349.5-1131_daily_bin1445.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358/ft1_filtered_4FGL_J1349.5-1131_daily_bin1445.fits scfile=/scratch/kocevski/358/ft2_4FGL_J1349.5-1131_daily_bin1445.fits outfile=/scratch/kocevski/358/cmap_HighResolution_613872001_614131201_4FGL_J1349.5-1131_daily_bin1445.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.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.653       1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .93195E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7548       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.505       1.0000         .10000E-03   10000.    
     6 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .20355E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.825       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0891       1.0000         .10000E-03   10000.    
    10 'norm      '    .12702E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.133       1.0000         .10000E-03   10000.    
    15 'norm      '    .94324       1.0000         .10000E-03   10000.    
    16 'norm      '    10.773       1.0000         .10000E-03   10000.    
    17 'norm      '    24.546       1.0000         .10000E-03   10000.    
    18 'norm      '    11.424       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0377       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94641       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=   6204.280     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2410 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.653        8.1079        .21927E-07   -.10631E-04
   2  norm          .10000E-03    2.6406        .15152E-08** at limit **
   3  Prefactor     .10020E-03    5.1240        .46629E-06** at limit **
   4  Prefactor     5.7589        6.8350       -.11199E-06   -.10727E-03
   5  Prefactor     11.525        16.045        .15070E-05    .15757E-03
   6  norm          .10000E-03    .58800        .38687E-07** at limit **
   7  norm          .10000E-03    2.4297        .15678E-06** at limit **
   8  norm          11.829        7.8946       -.54958E-06   -.11353E-03
   9  Prefactor     5.0849        13.113       -.11540E-05   -.87836E-04
  10  norm          .10000E-03    104.79       -.33140E-05** at limit **
  11  Prefactor     .10000E-03    9.9741       -.71113E-08** at limit **
  12  norm          .10000E-03    7.8577        .27559E-07** at limit **
  13  Prefactor     3.1223        6.2121       -.87624E-06   -.35361E-03
  14  Prefactor     18.138        52.509        .25666E-05    .20128E-04
  15  norm          .93944        8.1528        .26890E-05   -.23804E-03
  16  norm          10.772        3.8016        .55168E-07   -.21611E-03
  17  norm          24.555        17.772        .32965E-06    .35379E-04
  18  norm          11.422        9.1203       -.18054E-06   -.55090E-04
  19  Prefactor     .10000E-03    14.173        .11602E-06** at limit **
  20  Prefactor     .10000E-03    12.556       -.14289E-06** at limit **
  21  Normalizat    1.0375        .23676       -.50906E-06   -.72080E-04
  22  Prefactor     .94657        .12384       -.91642E-07   -.12087E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.6533
  norm       = 0.0001
  Prefactor  = 0.000100197
  Prefactor  = 5.75888
  Prefactor  = 11.525
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 11.8291
  Prefactor  = 5.08487
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.12228
  Prefactor  = 18.1378
  norm       = 0.939436
  norm       = 10.7722
  norm       = 24.5548
  norm       = 11.4218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03753
  Prefactor  = 0.946572
 **********
 **   18 **HESSE 
 **********

 FCN=   6204.280     FROM HESSE     STATUS=OK           352 CALLS     2762 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.653        8.1089        .12276E-03   -1.5055    
   2  norm          .10000E-03    2.6413        .12500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10020E-03    79.671        .33439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7589        6.8385        .16743E-03   -1.5228    
   5  Prefactor     11.525        16.180        .11811E-03   -1.5029    
   6  norm          .10000E-03    2.8727        .11546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.2220        .21736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.829        7.7930        .11649E-03   -1.5020    
   9  Prefactor     5.0849        13.172        .17823E-03   -1.5257    
  10  norm          .10000E-03    107.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.1547        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1223        6.0708        .22559E-03   -1.5355    
  14  Prefactor     18.138        52.544        .94055E-04   -1.4856    
  15  norm          .93944        9.9455        .42349E-03   -1.5514    
  16  norm          10.772        3.8038        .43320E-03   -1.5051    
  17  norm          24.555        17.767        .80853E-04   -1.4717    
  18  norm          11.422        9.1152        .11853E-03   -1.5032    
  19  Prefactor     .10000E-03    14.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0375        .27348        .33033E-03   -.91784    
  22  Prefactor     .94657        .14575        .18944E-03   -.94532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47482e-09
Minuit parameter uncertainties:
  1  8.10971
  2  4.36837e-07
  3  0.00792606
  4  6.83942
  5  16.1865
  6  6.96074e-06
  7  0.000291478
  8  7.79364
  9  13.1791
  10  0.000355552
  11  3.97393e-05
  12  4.89172e-06
  13  6.072
  14  52.679
  15  6.11429
  16  3.80391
  17  17.7704
  18  9.11627
  19  1.15724e-05
  20  6.9039e-06
  21  0.273856
  22  0.145813
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.122e+00  6.072e+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.466e-01  1.458e-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.038e+00  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/358/likelihoodResults_613872001_614131201_4FGL_J1349.5-1131_daily_bin1445.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) = 6203.4527809
delta logL = 0.827535459935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6203.42184263
delta logL = 0.858473729603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89334       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0727       1.0000          .0000       10.000    
     3 'Normalizat'    .95638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97374       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=   6203.422     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      251 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89410        9.4007        .12224E-01    .13604E-02
   2  Index         4.0725        2.7688        .15702        .15251E-03
   3  Normalizat    .95633        .54099E-01    .77325E-01    .20384E-05
   4  Prefactor     .97377        .29906E-01    .45938E-01   -.18226E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.894101
  Index      = 4.07248
  Normalizat = 0.956325
  Prefactor  = 0.973768
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.422     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      286 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89410        25.335        .55693E-03   -1.5519    
   2  Index         4.0725        7.0274        .54354E-02   -.18658    
   3  Normalizat    .95633        .22427        .34222E-03   -.94508    
   4  Prefactor     .97377        .12383        .18698E-03   -.93609    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2649e-10
Minuit parameter uncertainties:
  1  9.52283
  2  6.38668
  3  0.224485
  4  0.123867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358': 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) = 6203.42184242
delta logL = 0.858473937345

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  8.941e-01  9.523e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.072e+00  6.387e+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:  9.738e-01  1.239e-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.563e-01  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 4.07 +/- 6.39
Photon Flux (Free Index): 9.90e-08 +/- 7.42e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.78e-05

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/358/cmap_HighResolution_613872001_614131201_4FGL_J1349.5-1131_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='8.58e-01', photon_flux2='9.90e-08', job_status='DONE', time_completed='2021-09-08 14:49:47.936149', photon_index_error2='6.39', photon_index2='4.07', ts='0.40', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.78e-05', EG='1.04', time_epoch_completed='1631137787.94', return_code='0', job_id='358', GAL2='0.97', EG2='0.96', return_code2='102', photon_flux_error2='7.42e-08', ts2='2.25', photon_index='2.49' WHERE bin_id='1445' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:49:47 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1445 207.387 -11.5188 613872001 614131201 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 :                                   609.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

