/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 2 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 = 7491
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1349.5-1131_daily_bin225
RA = 207.387, Dec = -11.5188
tmin = 297648001, tmax = 297907201
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='992562', job_status='RUN', time_executed='2021-09-08 14:05:38.001075', time_epoch_executed='1631135138.0' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992562/ft1_4FGL_J1349.5-1131_daily_bin225.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992562/ft2_4FGL_J1349.5-1131_daily_bin225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992562/ft1_4FGL_J1349.5-1131_daily_bin225.fits outfile=/scratch/kocevski/992562/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin225.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=297648001.0 tmax=297907201.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 3.89
user 3.61
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992562/ft1_filtered_4FGL_J1349.5-1131_daily_bin225.fits" evtable="EVENTS" scfile=/scratch/kocevski/992562/ft2_4FGL_J1349.5-1131_daily_bin225.fits sctable="SC_DATA" outfile=/scratch/kocevski/992562/ltcube_297648001_297907201_4FGL_J1349.5-1131_daily_bin225.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/992562/ft2_4FGL_J1349.5-1131_daily_bin225.fits
.....................!
real 17.47
user 17.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992562/ft1_filtered_4FGL_J1349.5-1131_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/992562/ft2_4FGL_J1349.5-1131_daily_bin225.fits sctable="SC_DATA" expcube=/scratch/kocevski/992562/ltcube_297648001_297907201_4FGL_J1349.5-1131_daily_bin225.fits outfile=/scratch/kocevski/992562/expmap_297648001_297907201_4FGL_J1349.5-1131_daily_bin225.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/992562/ltcube_297648001_297907201_4FGL_J1349.5-1131_daily_bin225.fits
.....................!
real 193.09
user 187.61
sys 4.70

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/992562/ft1_filtered_4FGL_J1349.5-1131_daily_bin225.fits scfile=/scratch/kocevski/992562/ft2_4FGL_J1349.5-1131_daily_bin225.fits outfile=/scratch/kocevski/992562/cmap_297648001_297907201_4FGL_J1349.5-1131_daily_bin225.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/992562/ft1_filtered_4FGL_J1349.5-1131_daily_bin225.fits scfile=/scratch/kocevski/992562/ft2_4FGL_J1349.5-1131_daily_bin225.fits outfile=/scratch/kocevski/992562/cmap_HighResolution_297648001_297907201_4FGL_J1349.5-1131_daily_bin225.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992562/ft1_filtered_4FGL_J1349.5-1131_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/992562/ft2_4FGL_J1349.5-1131_daily_bin225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992562/Model_4FGL_J1349.5-1131_daily_bin225.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/992562/ft1_filtered_4FGL_J1349.5-1131_daily_bin225.fits.....................!
real 75.98
user 74.50
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2425       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4247       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .79872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.567       1.0000         .10000E-03   10000.    
     6 'norm      '    3.1193       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7855       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19353E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.991       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2944       1.0000         .10000E-03   10000.    
    12 'norm      '    8.9644       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    74.398       1.0000         .10000E-03   10000.    
    15 'norm      '    .65174       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1857       1.0000         .10000E-03   10000.    
    17 'norm      '    14.721       1.0000         .10000E-03   10000.    
    18 'norm      '    .16078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6314       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2289       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92169       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=   10335.09     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2375 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2111        8.8092       -.46078E-06    .43708E-05
   2  norm          3.4332        8.7868        .56336E-06    .27040E-04
   3  Prefactor     .76522        7.2809       -.24779E-05    .24464E-03
   4  Prefactor     6.7211        6.3936       -.19288E-06    .10018E-03
   5  Prefactor     20.573        12.141        .39994E-06    .15700E-03
   6  norm          3.1191        1.4199        .52386E-07    .12623E-03
   7  norm          .10000E-03    1.4263       -.29212E-06** at limit **
   8  norm          5.7843        4.0957        .16154E-06    .86416E-04
   9  Prefactor     .10000E-03    5.1873        .13150E-06** at limit **
  10  norm          18.008        21.852       -.26802E-05   -.14326E-04
  11  Prefactor     5.2925        7.3140        .21917E-05    .22298E-03
  12  norm          8.9636        4.5363        .28069E-08    .20231E-04
  13  Prefactor     .10000E-03    1.3365       -.30821E-07** at limit **
  14  Prefactor     74.404        41.816       -.79516E-06   -.50094E-05
  15  norm          .65179        3.1063        .11077E-05   -.18864E-03
  16  norm          3.1952        1.7800        .33568E-07   -.17224E-04
  17  norm          14.711        12.705       -.31387E-06   -.27916E-05
  18  norm          .10000E-03    2.2189       -.92762E-08** at limit **
  19  Prefactor     .10000E-03    8.1217       -.11906E-06** at limit **
  20  Prefactor     4.6785        13.960        .26583E-05    .68614E-04
  21  Normalizat    1.2289        .18478       -.83841E-07    .81886E-04
  22  Prefactor     .92167        .96361E-01   -.26022E-06    .10935E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.21111
  norm       = 3.43317
  Prefactor  = 0.765222
  Prefactor  = 6.72113
  Prefactor  = 20.5734
  norm       = 3.11906
  norm       = 0.0001
  norm       = 5.78429
  Prefactor  = 0.0001
  norm       = 18.0081
  Prefactor  = 5.29248
  norm       = 8.96358
  Prefactor  = 0.0001
  Prefactor  = 74.4035
  norm       = 0.65179
  norm       = 3.19516
  norm       = 14.7108
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.67852
  Normalizat = 1.22895
  Prefactor  = 0.92167
 **********
 **   18 **HESSE 
 **********

 FCN=   10335.09     FROM HESSE     STATUS=OK           356 CALLS     2731 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2111        8.8035        .22493E-03   -1.5350    
   2  norm          3.4332        8.7806        .21858E-03   -1.5337    
   3  Prefactor     .76522        20.798        .44522E-02   -1.5533    
   4  Prefactor     6.7211        6.3807        .15479E-03   -1.5189    
   5  Prefactor     20.573        12.068        .88318E-04   -1.4800    
   6  norm          3.1191        1.4220        .77393E-04   -1.5355    
   7  norm          .10000E-03    1.4542        .23607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7843        4.0902        .16463E-03   -1.5227    
   9  Prefactor     .10000E-03    5.2148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.008        21.833        .94427E-04   -1.4859    
  11  Prefactor     5.2925        7.5784        .87338E-03   -1.5248    
  12  norm          8.9636        4.5351        .13387E-03   -1.5109    
  13  Prefactor     .10000E-03    1.3549        .11446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     74.404        41.814        .46549E-04   -1.3981    
  15  norm          .65179        6.1235        .32665E-02   -1.5547    
  16  norm          3.1952        1.7811        .97451E-04   -1.5350    
  17  norm          14.711        12.707        .10439E-03   -1.4941    
  18  norm          .10000E-03    2.2296        .14786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.1623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.6785        14.134        .93510E-03   -1.5275    
  21  Normalizat    1.2289        .21561        .31663E-03   -.85713    
  22  Prefactor     .92167        .11250        .19542E-03   -.95388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84549e-08
Minuit parameter uncertainties:
  1  8.80707
  2  8.78387
  3  7.98138
  4  6.38134
  5  12.0699
  6  1.42203
  7  1.40468e-05
  8  4.09036
  9  4.81308e-06
  10  21.843
  11  7.57977
  12  4.53527
  13  3.61435e-06
  14  41.8308
  15  3.99584
  16  1.78115
  17  12.7096
  18  2.03512e-06
  19  6.41484e-06
  20  14.144
  21  0.21577
  22  0.11253
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.614e-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:  9.217e-01  1.125e-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.229e+00  2.158e-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: 5.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992562/likelihoodResults_297648001_297907201_4FGL_J1349.5-1131_daily_bin225.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) = 10335.0933537
delta logL = -0.00351673798468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10335.0898366
delta logL = 4.01443685405e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10335.09     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      253 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8967        .11575E-01** at limit **
   2  Index         2.1765        8.2343        .50000        .28463E-06
   3  Normalizat    1.2289        .75510E-02    .31663E-03   -.84647E-03
   4  Prefactor     .92167        .41269E-02    .19542E-03   -.13550E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17647
  Normalizat = 1.22895
  Prefactor  = 0.921669
 **********
 **   18 **HESSE 
 **********

 FCN=   10335.09     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.094        .12108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1765        8.9079        .50000       -.60008    
   3  Normalizat    1.2289        .25583E-01    .63327E-04   -.85713    
   4  Prefactor     .92167        .13982E-01    .39084E-04   -.95388    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.46788e-10
Minuit parameter uncertainties:
  1  2.21381e-06
  2  301.94
  3  0.0255836
  4  0.0139823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992562': 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) = 10335.0898331
delta logL = 3.94293965655e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.214e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.176e+00  3.019e+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:  9.217e-01  1.398e-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.229e+00  2.558e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.387 -11.519

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/992562/cmap_HighResolution_297648001_297907201_4FGL_J1349.5-1131_daily_bin225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2021-09-08 14:19:19.677153', job_id='992562', GAL2='0.92', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631135959.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='225' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:19:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 992562: <4FGL_J1349.5-1131_daily_bin225> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin225> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 14:05:20 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:05:23 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:05:23 2021
Terminated at Wed Sep  8 14:19:20 2021
Results reported at Wed Sep  8 14:19:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin225 207.387 -11.5188 297648001 297907201 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 :                                   816.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            840 sec.

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

