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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1345
RA = 207.387, Dec = -11.5188
tmin = 587952001, tmax = 588211201
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='999087', job_status='RUN', time_executed='2021-09-08 14:32:54.296336', time_epoch_executed='1631136774.3' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999087/ft1_4FGL_J1349.5-1131_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999087/ft2_4FGL_J1349.5-1131_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999087/ft1_4FGL_J1349.5-1131_daily_bin1345.fits outfile=/scratch/kocevski/999087/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1345.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=587952001.0 tmax=588211201.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.47
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/999087/ft2_4FGL_J1349.5-1131_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/999087/ltcube_587952001_588211201_4FGL_J1349.5-1131_daily_bin1345.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/999087/ft2_4FGL_J1349.5-1131_daily_bin1345.fits
.....................!
real 14.73
user 14.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/999087/ft2_4FGL_J1349.5-1131_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/999087/ltcube_587952001_588211201_4FGL_J1349.5-1131_daily_bin1345.fits outfile=/scratch/kocevski/999087/expmap_587952001_588211201_4FGL_J1349.5-1131_daily_bin1345.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/999087/ltcube_587952001_588211201_4FGL_J1349.5-1131_daily_bin1345.fits
.....................!
real 192.18
user 187.34
sys 4.29

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/999087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1345.fits scfile=/scratch/kocevski/999087/ft2_4FGL_J1349.5-1131_daily_bin1345.fits outfile=/scratch/kocevski/999087/cmap_587952001_588211201_4FGL_J1349.5-1131_daily_bin1345.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1345.fits scfile=/scratch/kocevski/999087/ft2_4FGL_J1349.5-1131_daily_bin1345.fits outfile=/scratch/kocevski/999087/cmap_HighResolution_587952001_588211201_4FGL_J1349.5-1131_daily_bin1345.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/999087/ft2_4FGL_J1349.5-1131_daily_bin1345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999087/Model_4FGL_J1349.5-1131_daily_bin1345.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/999087/ft1_filtered_4FGL_J1349.5-1131_daily_bin1345.fits.....................!
real 52.25
user 50.97
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.979       1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.809       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .90616E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .43599       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4322       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27794       1.0000         .10000E-03   10000.    
    10 'norm      '    21.820       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6899       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4670       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0878       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    22.343       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3179       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85243       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=   6260.414     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1727 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.965        9.4086       -.28685E-05   -.75733E-02
   2  norm          .10000E-03    3.3248       -.30701E-06** at limit **
   3  Prefactor     .10000E-03    8.2388        .67703E-06** at limit **
   4  Prefactor     20.804        10.730       -.84135E-06    .23538E-02
   5  Prefactor     .10001E-03    167.44       -.53331E-06** at limit **
   6  norm          .43746        1.8712       -.70818E-06   -.49770E-04
   7  norm          4.4298        3.7150       -.66056E-06   -.29753E-03
   8  norm          3.5424        5.4903       -.56885E-06   -.34887E-03
   9  Prefactor     .16083E-03    2190.2       -.12666E-03** at limit **
  10  norm          21.803        6.3709       -.82680E-07    .58652E-02
  11  Prefactor     2.8669        17.114        .26715E-06    .13689E-02
  12  norm          5.4702        5.0411       -.19221E-06    .87475E-04
  13  Prefactor     3.4443        4.8615       -.35242E-07    .62215E-04
  14  Prefactor     .10004E-03    14.789       -.15934E-05** at limit **
  15  norm          .10000E-03    3.9416       -.43596E-06** at limit **
  16  norm          4.0880        2.5957       -.12044E-06   -.16272E-03
  17  norm          .10003E-03    14.650        .26865E-05** at limit **
  18  norm          22.344        4.5715        .58792E-07    .92106E-02
  19  Prefactor     .10000E-03    7.6439        .13129E-08** at limit **
  20  Prefactor     .10000E-03    18.040        .10672E-05** at limit **
  21  Normalizat    1.3174        .29660        .10646E-05    .37301E-04
  22  Prefactor     .85270        .14463       -.32390E-06    .72777E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.9654
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8041
  Prefactor  = 0.000100007
  norm       = 0.437455
  norm       = 4.42984
  norm       = 3.54235
  Prefactor  = 0.000160831
  norm       = 21.8033
  Prefactor  = 2.86687
  norm       = 5.47025
  Prefactor  = 3.44435
  Prefactor  = 0.000100037
  norm       = 0.0001
  norm       = 4.088
  norm       = 0.000100026
  norm       = 22.3439
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.31741
  Prefactor  = 0.852701
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.414     FROM HESSE     STATUS=OK           404 CALLS     2131 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.965        14.952        .26782E-02   -1.4960    
   2  norm          .10000E-03    3.3251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.1669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.804        12.583        .21951E-02   -1.4795    
   5  Prefactor     .10001E-03    22.127        .10548       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .43746        1.4610        .30362E-01   -1.5576    
   7  norm          4.4298        4.4165        .47820E-02   -1.5287    
   8  norm          3.5424        5.5546        .53686E-02   -1.5332    
   9  Prefactor     .16083E-03    24.438        .10328       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          21.803        26.101        .21437E-02   -1.4774    
  11  Prefactor     2.8669        33.063        .62105E-02   -1.5369    
  12  norm          5.4702        5.0828        .42962E-02   -1.5240    
  13  Prefactor     3.4443        4.8814        .54488E-02   -1.5337    
  14  Prefactor     .10004E-03    15.114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9126        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0880        2.6170        .49851E-02   -1.5304    
  17  norm          .10003E-03    14.837        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          22.344        10.253        .21185E-02   -1.4762    
  19  Prefactor     .10000E-03    7.6560        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3174        .25790        .72659E-01   -.83048    
  22  Prefactor     .85270        .12334        .44396E-01   -.97814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29931e-07
Minuit parameter uncertainties:
  1  14.9562
  2  5.28922e-07
  3  1.11778e-05
  4  12.5844
  5  0.00079043
  6  1.46114
  7  4.41686
  8  5.55536
  9  0.0771437
  10  26.1143
  11  19.4851
  12  5.0832
  13  4.88192
  14  0.00149315
  15  4.04026e-06
  16  2.6171
  17  0.00123461
  18  10.2534
  19  1.38194e-06
  20  0.00035724
  21  0.258151
  22  0.123381
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.444e+00  4.882e+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:  8.527e-01  1.234e-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.317e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999087/likelihoodResults_587952001_588211201_4FGL_J1349.5-1131_daily_bin1345.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) = 6260.37140524
delta logL = 0.0424705659498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6260.36989713
delta logL = 0.0439786751467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3949       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2084       1.0000          .0000       10.000    
     3 'Normalizat'    1.3243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84927       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6260.370     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      306 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3949        6.3003        .96056E-03   -.32527E-03
   2  Index         2.2083        .90384        .11565E-01    .36677E-05
   3  Normalizat    1.3243        .27435        .32079E-03   -.70879E-07
   4  Prefactor     .84923        .14296        .20275E-03    .11215E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39486
  Index      = 2.20834
  Normalizat = 1.32433
  Prefactor  = 0.849226
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.370     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3949        6.1358        .38422E-04   -1.5289    
   2  Index         2.2083        .88096        .46260E-03   -.59237    
   3  Normalizat    1.3243        .27454        .12832E-04   -.82843    
   4  Prefactor     .84923        .14302        .81099E-05   -.97939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81534e-11
Minuit parameter uncertainties:
  1  6.13671
  2  0.887716
  3  0.274845
  4  0.143082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999087': 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) = 6260.36989709
delta logL = 0.0439787201149

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  4.395e+00  6.137e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.208e+00  8.877e-01  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:  8.492e-01  1.431e-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.324e+00  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
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/999087/cmap_HighResolution_587952001_588211201_4FGL_J1349.5-1131_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-08 14:42:47.530133', job_id='999087', GAL2='0.85', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631137367.53', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.40e-02', ts2='0.74', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1345' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:42:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 999087: <4FGL_J1349.5-1131_daily_bin1345> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1345 207.387 -11.5188 587952001 588211201 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 :                                   568.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            733 sec.

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

