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


Performing analysis on: 4FGL_J1449.6-2137_daily_bin1440
RA = 222.422, Dec = -21.6271
tmin = 612576001, tmax = 612835201
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='801280', job_status='RUN', time_executed='2021-09-10 10:26:58.984929', time_epoch_executed='1631294818.98' WHERE source_name='4FGL J1449.6-2137' and cadence='daily' and bin_id='1440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/801280

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/801280/ft1_4FGL_J1449.6-2137_daily_bin1440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/801280/ft2_4FGL_J1449.6-2137_daily_bin1440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/801280/ft1_4FGL_J1449.6-2137_daily_bin1440.fits outfile=/scratch/kocevski/801280/ft1_filteredMKT_4FGL_J1449.6-2137_daily_bin1440.fits ra=222.422 dec=-21.6271 rad=12.0 tmin=612576001.0 tmax=612835201.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.38
user 2.07
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/801280/ft2_4FGL_J1449.6-2137_daily_bin1440.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/801280/ft1_filteredMKT_4FGL_J1449.6-2137_daily_bin1440.fits evtable="EVENTS" outfile="/scratch/kocevski/801280/ft1_filtered_4FGL_J1449.6-2137_daily_bin1440.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.43
user 0.26
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/801280/ft1_filtered_4FGL_J1449.6-2137_daily_bin1440.fits" evtable="EVENTS" scfile=/scratch/kocevski/801280/ft2_4FGL_J1449.6-2137_daily_bin1440.fits sctable="SC_DATA" outfile=/scratch/kocevski/801280/ltcube_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.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/801280/ft2_4FGL_J1449.6-2137_daily_bin1440.fits
.....................!
real 10.06
user 9.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/801280/ft1_filtered_4FGL_J1449.6-2137_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/801280/ft2_4FGL_J1449.6-2137_daily_bin1440.fits sctable="SC_DATA" expcube=/scratch/kocevski/801280/ltcube_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.fits outfile=/scratch/kocevski/801280/expmap_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.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/801280/ltcube_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.fits
.....................!
real 151.71
user 147.64
sys 3.69

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/801280/ft1_filtered_4FGL_J1449.6-2137_daily_bin1440.fits scfile=/scratch/kocevski/801280/ft2_4FGL_J1449.6-2137_daily_bin1440.fits outfile=/scratch/kocevski/801280/cmap_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/801280/ft1_filtered_4FGL_J1449.6-2137_daily_bin1440.fits scfile=/scratch/kocevski/801280/ft2_4FGL_J1449.6-2137_daily_bin1440.fits outfile=/scratch/kocevski/801280/cmap_HighResolution_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.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.51
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/801280/ft1_filtered_4FGL_J1449.6-2137_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/801280/ft2_4FGL_J1449.6-2137_daily_bin1440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/801280/Model_4FGL_J1449.6-2137_daily_bin1440.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/801280/ft1_filtered_4FGL_J1449.6-2137_daily_bin1440.fits......................!
real 20.87
user 19.62
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/801280/ft1_filtered_4FGL_J1449.6-2137_daily_bin1440.fits', '/scratch/kocevski/801280/ft2_4FGL_J1449.6-2137_daily_bin1440.fits', expMap='/scratch/kocevski/801280/expmap_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.fits', expCube='/scratch/kocevski/801280/ltcube_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/801280/Model_4FGL_J1449.6-2137_daily_bin1440.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/801280/ft1_filtered_4FGL_J1449.6-2137_daily_bin1440.fits
Spacecraft file(s): /scratch/kocevski/801280/ft2_4FGL_J1449.6-2137_daily_bin1440.fits
Exposure map: /scratch/kocevski/801280/expmap_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.fits
Exposure cube: /scratch/kocevski/801280/ltcube_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/801280/Model_4FGL_J1449.6-2137_daily_bin1440.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1598.58080063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.611       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.885       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    285.12       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.955       1.0000         .10000E-03   10000.    
    14 'Prefactor '    68.738       1.0000         .10000E-03   10000.    
    15 'norm      '    .12687E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.351       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .72399E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1001       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.

 FCN=   1598.555     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     2446 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.602        108.68        .21342E-03   -.16114E-05
   2  Prefactor     .10000E-03    50.352        .18142E-02** at limit **
   3  Prefactor     15.896        79.222        .10049E-03   -.92201E-05
   4  Prefactor     .10000E-03    114.77        .18142E-02** at limit **
   5  Prefactor     .10000E-03    62.911        .18142E-02** at limit **
   6  norm          .10000E-03    28.304        .18142E-02** at limit **
   7  Prefactor     .10000E-03    129.34        .18142E-02** at limit **
   8  Prefactor     .10000E-03    5.7059        .93223E-03** at limit **
   9  Prefactor     285.14        253.15        .12017E-03   -.89874E-06
  10  Prefactor     .10000E-03    60.845        .18142E-02** at limit **
  11  Prefactor     .10000E-03    46.661        .18142E-02** at limit **
  12  Prefactor     .10000E-03    354.61        .18142E-02** at limit **
  13  Prefactor     32.948        77.950        .69802E-04   -.92836E-05
  14  Prefactor     68.736        86.961        .48414E-04    .67042E-05
  15  norm          .10000E-03    23.912        .18838E-02** at limit **
  16  Prefactor     33.349        76.357        .69388E-04    .10281E-04
  17  norm          .10000E-03    14.571        .14908E-02** at limit **
  18  Normalizat    .72329E-01    1.4335        .12066E-01    .12245E-03
  19  Prefactor     1.1001        .25054        .14564E-03   -.55599E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.6021
  Prefactor  = 0.0001
  Prefactor  = 15.8963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 285.136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9485
  Prefactor  = 68.7359
  norm       = 0.0001
  Prefactor  = 33.3486
  norm       = 0.0001
  Normalizat = 0.0723292
  Prefactor  = 1.10012
 **********
 **   18 **HESSE 
 **********

 FCN=   1598.555     FROM HESSE     STATUS=OK           250 CALLS     2696 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.602        108.59        .85366E-05   -1.3823    
   2  Prefactor     .10000E-03    50.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.896        79.205        .40197E-05   -1.4910    
   4  Prefactor     .10000E-03    114.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    62.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    28.306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    129.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7060        .18645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     285.14        252.98        .48069E-05   -1.2315    
  10  Prefactor     .10000E-03    60.845        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    46.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    354.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.948        77.915        .27921E-05   -1.4559    
  14  Prefactor     68.736        86.961        .96828E-05   -1.4048    
  15  norm          .10000E-03    24.027        .37676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.349        76.279        .27755E-05   -1.4552    
  17  norm          .10000E-03    14.571        .29816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .72329E-01    1.2301        .24132E-02   -1.4127    
  19  Prefactor     1.1001        .23309        .58255E-05   -.89463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22362e-11
Minuit parameter uncertainties:
  1  108.838
  2  4.0666e-05
  3  71.1174
  4  1.49652e-05
  5  4.05571e-06
  6  3.9199e-06
  7  2.2508e-05
  8  2.48876e-06
  9  253.965
  10  1.03373e-05
  11  5.53368e-06
  12  1.73359e-05
  13  78.1571
  14  87.1221
  15  9.01386e-05
  16  76.503
  17  4.08234e-06
  18  0.567774
  19  0.233305
Done.

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

Extracting fit parameters...

4FGL J1449.6-2137
   Spectrum: PowerLaw
295    Prefactor:  3.295e+01  7.816e+01  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:  1.100e+00  2.333e-01  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:  7.233e-02  5.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 222.422 -21.627
Photon Flux Upper Limit: 7.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/801280/likelihoodResults_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.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) = 1598.34395333
delta logL = 0.211097024816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1598.32656499
delta logL = 0.228485363607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.982       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3071       1.0000          .0000       10.000    
     3 'Normalizat'    .11521E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1095       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=   1598.326     FROM MIGRAD    STATUS=FAILED        98 CALLS      342 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.972        864.74        .12090E-03   -.17228E-02
   2  Index         3.3074        6.3098        .39554E-02   -.73350E-03
   3  Normalizat    .10000E-01    2.1758        .22608    ** at limit **
   4  Prefactor     1.1101        .24775        .14475E-03   -.15537E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1598.326     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      466 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.972        864.74        .49301E-04   -.17228E-02
   2  Index         3.3074        6.3098        .63284E-04   -.73350E-03
   3  Normalizat    .10000E-01    2.1758        .15617E-01** at limit **
   4  Prefactor     1.1101        .24775        .31908E-07   -.15537E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1598.326     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      513 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.970        47.827        .24180E-04   -.17749E-04
   2  Index         3.3075        1.8617        .15822E-03   -.56406E-05
   3  Normalizat    .10000E-01    1.7891        .22607    ** at limit **
   4  Prefactor     1.1101        .19800        .28949E-04   -.65426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9696
  Index      = 3.3075
  Normalizat = 0.01
  Prefactor  = 1.11007
 **********
 **   18 **HESSE 
 **********

 FCN=   1598.326     FROM HESSE     STATUS=OK            33 CALLS      546 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.970        45.877        .96719E-06   -1.5045    
   2  Index         3.3075        1.8251        .63287E-05   -.34532    
   3  Normalizat    .10000E-01    1.7883        .22607       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1101        .19788        .57898E-05   -.89145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50694e-12
Minuit parameter uncertainties:
  1  44.9255
  2  1.87429
  3  0.000110849
  4  0.198011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/801280': 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) = 1598.32649302
delta logL = 0.22855733799

Extracting fit parameters...

4FGL J1449.6-2137
   Spectrum: PowerLaw
295    Prefactor:  1.097e+01  4.493e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.307e+00  1.874e+00  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:  1.110e+00  1.980e-01  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.000e-02  1.108e-04  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/801280/cmap_HighResolution_612576001_612835201_4FGL_J1449.6-2137_daily_bin1440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-02', job_status='DONE', photon_flux_upper_limit='7.64e-07', time_completed='2021-09-10 10:32:22.698384', job_id='801280', GAL2='1.11', fit_tolerance='1e-08', EG2='0.01', EG='0.07', time_epoch_completed='1631295142.7', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.29e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1440' AND source_name='4FGL J1449.6-2137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 10:32:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 801280: <4FGL_J1449.6-2137_daily_bin1440> in cluster <slac> Done

Job <4FGL_J1449.6-2137_daily_bin1440> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 10:26:40 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 10:26:41 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:41 2021
Terminated at Fri Sep 10 10:32:23 2021
Results reported at Fri Sep 10 10:32:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1449.6-2137_daily_bin1440 222.422 -21.6271 612576001 612835201 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 :                                   320.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             241.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   341 sec.
    Turnaround time :                            343 sec.

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

