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


Performing analysis on: 4FGL_J1449.6-2137_daily_bin1336
RA = 222.422, Dec = -21.6271
tmin = 585619201, tmax = 585878401
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='801170', job_status='RUN', time_executed='2021-09-10 10:27:06.880812', time_epoch_executed='1631294826.88' WHERE source_name='4FGL J1449.6-2137' and cadence='daily' and bin_id='1336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/801170

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/801170/ft1_4FGL_J1449.6-2137_daily_bin1336.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/801170/ft1_4FGL_J1449.6-2137_daily_bin1336.fits outfile=/scratch/kocevski/801170/ft1_filteredMKT_4FGL_J1449.6-2137_daily_bin1336.fits ra=222.422 dec=-21.6271 rad=12.0 tmin=585619201.0 tmax=585878401.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.70
user 2.46
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.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/801170/ft1_filteredMKT_4FGL_J1449.6-2137_daily_bin1336.fits evtable="EVENTS" outfile="/scratch/kocevski/801170/ft1_filtered_4FGL_J1449.6-2137_daily_bin1336.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.53
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/801170/ft1_filtered_4FGL_J1449.6-2137_daily_bin1336.fits" evtable="EVENTS" scfile=/scratch/kocevski/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.fits sctable="SC_DATA" outfile=/scratch/kocevski/801170/ltcube_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.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/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.fits
.....................!
real 11.96
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/801170/ft1_filtered_4FGL_J1449.6-2137_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.fits sctable="SC_DATA" expcube=/scratch/kocevski/801170/ltcube_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.fits outfile=/scratch/kocevski/801170/expmap_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.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/801170/ltcube_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.fits
.....................!
real 190.81
user 186.18
sys 4.24

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1449.6-2137 @ 222.422 -21.6271

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/801170/ft1_filtered_4FGL_J1449.6-2137_daily_bin1336.fits scfile=/scratch/kocevski/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.fits outfile=/scratch/kocevski/801170/cmap_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.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=222.422 yref=-21.6271 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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/801170/ft1_filtered_4FGL_J1449.6-2137_daily_bin1336.fits scfile=/scratch/kocevski/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.fits outfile=/scratch/kocevski/801170/cmap_HighResolution_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.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=222.422 yref=-21.6271 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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/801170/ft1_filtered_4FGL_J1449.6-2137_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/801170/Model_4FGL_J1449.6-2137_daily_bin1336.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/801170/ft1_filtered_4FGL_J1449.6-2137_daily_bin1336.fits.....................!
real 101.97
user 100.36
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/801170/ft1_filtered_4FGL_J1449.6-2137_daily_bin1336.fits', '/scratch/kocevski/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.fits', expMap='/scratch/kocevski/801170/expmap_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.fits', expCube='/scratch/kocevski/801170/ltcube_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/801170/Model_4FGL_J1449.6-2137_daily_bin1336.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1449.6-2137'

4FGL J1449.6-2137
   Spectrum: PowerLaw
295    Prefactor:  1.137e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.362e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/801170/ft1_filtered_4FGL_J1449.6-2137_daily_bin1336.fits
Spacecraft file(s): /scratch/kocevski/801170/ft2_4FGL_J1449.6-2137_daily_bin1336.fits
Exposure map: /scratch/kocevski/801170/expmap_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.fits
Exposure cube: /scratch/kocevski/801170/ltcube_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/801170/Model_4FGL_J1449.6-2137_daily_bin1336.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) = 12794.2814935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.253       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4234       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7990       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    205.53       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2360       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .76043       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0220       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90631       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12794.26     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1924 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.373        33.067       -.18984E-05   -.12415E-03
   2  Prefactor     .10000E-03    5.8046        .32565E-07** at limit **
   3  Prefactor     .10000E-03    5.6182        .18064E-07** at limit **
   4  Prefactor     .10000E-03    13.558        .28022E-07** at limit **
   5  Prefactor     .10000E-03    12.688       -.51387E-07** at limit **
   6  norm          .10000E-03    3.0791       -.41738E-08** at limit **
   7  Prefactor     21.255        18.610        .37104E-06   -.61882E-04
   8  Prefactor     1.4232        3.1677        .10061E-05   -.32631E-03
   9  Prefactor     1.6915        147.72        .36230E-05    .63793E-05
  10  Prefactor     .10000E-03    48.806       -.79197E-06** at limit **
  11  Prefactor     .10000E-03    20.467       -.47567E-07** at limit **
  12  Prefactor     205.50        122.17       -.38151E-05   -.20002E-03
  13  Prefactor     .10000E-03    3.0938        .48954E-07** at limit **
  14  Prefactor     .10000E-03    5.3810       -.32313E-07** at limit **
  15  norm          2.2359        .66364       -.15564E-07   -.30038E-03
  16  Prefactor     .10000E-03    1.9690       -.12626E-06** at limit **
  17  norm          .76013        2.1108        .12167E-05   -.49594E-03
  18  Normalizat    1.0220        .18693        .63972E-07   -.65413E-04
  19  Prefactor     .90632        .67780E-01   -.11823E-06   -.11858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.255
  Prefactor  = 1.42319
  Prefactor  = 1.69154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 205.504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.23594
  Prefactor  = 0.0001
  norm       = 0.760125
  Normalizat = 1.02202
  Prefactor  = 0.906317
 **********
 **   18 **HESSE 
 **********

 FCN=   12794.26     FROM HESSE     STATUS=OK           260 CALLS     2184 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.373        33.792        .95991E-04   -1.4874    
   2  Prefactor     .10000E-03    5.8236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.0964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.255        18.630        .86883E-04   -1.4786    
   8  Prefactor     1.4232        3.2248        .29555E-03   -1.5469    
   9  Prefactor     1.6915        149.15        .31170E-03   -1.5448    
  10  Prefactor     .10000E-03    49.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     205.50        130.27        .14096E-03   -1.2831    
  13  Prefactor     .10000E-03    3.1082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2359        .66198        .48062E-04   -1.5409    
  16  Prefactor     .10000E-03    1.9815        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76013        2.1911        .27378E-03   -1.5534    
  18  Normalizat    1.0220        .21273        .39225E-03   -.92296    
  19  Prefactor     .90632        .77789E-01    .15057E-03   -.95921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68003e-10
Minuit parameter uncertainties:
  1  33.8289
  2  5.10523e-06
  3  3.12357e-07
  4  6.91092e-06
  5  3.78304e-06
  6  2.35854e-06
  7  18.6355
  8  3.22516
  9  31.8482
  10  0.000250015
  11  2.31047e-05
  12  130.449
  13  4.95883e-07
  14  1.28776e-06
  15  0.661987
  16  7.50347e-06
  17  2.19128
  18  0.212905
  19  0.0777985
Done.

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

Extracting fit parameters...

4FGL J1449.6-2137
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  4.959e-07  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.362e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.063e-01  7.780e-02  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.022e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 222.422 -21.627
Photon Flux Upper Limit: 5.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/801170/likelihoodResults_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.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) = 12794.2638668
delta logL = -0.00153347409469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12794.2623338
delta logL = -4.81766619487e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3394       1.0000          .0000       10.000    
     3 'Normalizat'    1.0218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90638       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   12794.26     FROM MIGRAD    STATUS=FAILED        91 CALLS      249 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10186E-03    31.508        .18142E-02** at limit **
   2  Index         2.2688        8.7178        .50000        .49602E-04
   3  Normalizat    1.0220        .14741E-01    .39225E-03   -.59068E-04
   4  Prefactor     .90632        .54019E-02    .15057E-03   -.16566E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12794.26     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      370 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10186E-03    31.508        .28256E-03** at limit **
   2  Index         2.2688        8.7178        .72334E-03    .49602E-04
   3  Normalizat    1.0220        .14741E-01    .23792E-05   -.59068E-04
   4  Prefactor     .90632        .54019E-02    .11679E-05   -.16566E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12794.26     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      417 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.280        .36285E-02** at limit **
   2  Index         1.8599        5.1532        .50000        .30777E-06
   3  Normalizat    1.0220        .14142E-01    .15690E-04    .95471E-03
   4  Prefactor     .90632        .51827E-02    .30114E-04    .24965E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85989
  Normalizat = 1.02203
  Prefactor  = 0.906317
 **********
 **   18 **HESSE 
 **********

 FCN=   12794.26     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    166.36        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8599        5.8680        .50000       -.67901    
   3  Normalizat    1.0220        .32436E-01    .31380E-05   -.92296    
   4  Prefactor     .90632        .11887E-01    .60228E-05   -.95921    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01187e-10
Minuit parameter uncertainties:
  1  0.000376716
  2  609.659
  3  0.0324365
  4  0.0118867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/801170': 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) = 12794.2623298
delta logL = 3.50460322807e-06

Extracting fit parameters...

4FGL J1449.6-2137
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.767e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  1.860e+00  6.097e+02  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  1.426e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.063e-01  1.189e-02  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.022e+00  3.244e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 222.422 -21.627

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/801170/cmap_HighResolution_585619201_585878401_4FGL_J1449.6-2137_daily_bin1336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-09-10 10:42:49.087178', job_id='801170', GAL2='0.91', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631295769.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1336' AND source_name='4FGL J1449.6-2137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 10:42:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 801170: <4FGL_J1449.6-2137_daily_bin1336> in cluster <slac> Done

Job <4FGL_J1449.6-2137_daily_bin1336> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 10:26:29 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 10:26:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 10:26:31 2021
Terminated at Fri Sep 10 10:42:49 2021
Results reported at Fri Sep 10 10:42:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1449.6-2137_daily_bin1336 222.422 -21.6271 585619201 585878401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1449.6-2137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   934.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             350.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

