/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 171 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1449.6-2137_daily_bin1726
RA = 222.422, Dec = -21.6271
tmin = 686707201, tmax = 686966401
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='79899', job_status='RUN', time_executed='2022-10-09 00:14:05.083648', time_epoch_executed='1665299645.08' WHERE source_name='4FGL J1449.6-2137' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79899/ft1_4FGL_J1449.6-2137_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79899/ft2_4FGL_J1449.6-2137_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79899/ft1_4FGL_J1449.6-2137_daily_bin1726.fits outfile=/scratch/kocevski/79899/ft1_filteredMKT_4FGL_J1449.6-2137_daily_bin1726.fits ra=222.422 dec=-21.6271 rad=12.0 tmin=686707201.0 tmax=686966401.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.08
user 2.88
sys 0.19

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

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

Number of photons that the gtmktime cut: 450

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/79899/ft1_filtered_4FGL_J1449.6-2137_daily_bin1726.fits" evtable="EVENTS" scfile=/scratch/kocevski/79899/ft2_4FGL_J1449.6-2137_daily_bin1726.fits sctable="SC_DATA" outfile=/scratch/kocevski/79899/ltcube_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.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/79899/ft2_4FGL_J1449.6-2137_daily_bin1726.fits
.....................!
real 21.96
user 21.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79899/ft1_filtered_4FGL_J1449.6-2137_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/79899/ft2_4FGL_J1449.6-2137_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/79899/ltcube_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.fits outfile=/scratch/kocevski/79899/expmap_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.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/79899/ltcube_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.fits
.....................!
real 190.55
user 184.96
sys 5.19

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/79899/ft1_filtered_4FGL_J1449.6-2137_daily_bin1726.fits scfile=/scratch/kocevski/79899/ft2_4FGL_J1449.6-2137_daily_bin1726.fits outfile=/scratch/kocevski/79899/cmap_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79899/ft1_filtered_4FGL_J1449.6-2137_daily_bin1726.fits scfile=/scratch/kocevski/79899/ft2_4FGL_J1449.6-2137_daily_bin1726.fits outfile=/scratch/kocevski/79899/cmap_HighResolution_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/79899/ft1_filtered_4FGL_J1449.6-2137_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/79899/ft2_4FGL_J1449.6-2137_daily_bin1726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/79899/Model_4FGL_J1449.6-2137_daily_bin1726.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/79899/ft1_filtered_4FGL_J1449.6-2137_daily_bin1726.fits.....................!
real 54.66
user 53.25
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/79899/ft1_filtered_4FGL_J1449.6-2137_daily_bin1726.fits', '/scratch/kocevski/79899/ft2_4FGL_J1449.6-2137_daily_bin1726.fits', expMap='/scratch/kocevski/79899/expmap_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.fits', expCube='/scratch/kocevski/79899/ltcube_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/79899/Model_4FGL_J1449.6-2137_daily_bin1726.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  0.000e+00  1.000e+06 ( 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/79899/ft1_filtered_4FGL_J1449.6-2137_daily_bin1726.fits
Spacecraft file(s): /scratch/kocevski/79899/ft2_4FGL_J1449.6-2137_daily_bin1726.fits
Exposure map: /scratch/kocevski/79899/expmap_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.fits
Exposure cube: /scratch/kocevski/79899/ltcube_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/79899/Model_4FGL_J1449.6-2137_daily_bin1726.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) = 4934.48392803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.720       1.0000          .0000       .10000E+07
     2 'Prefactor '    .72393E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .47277E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .23065E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .39385       1.0000          .0000       .10000E+07
     6 'norm      '    10.921       1.0000          .0000       .10000E+07
     7 'Prefactor '    .42964       1.0000          .0000       .10000E+07
     8 'Prefactor '    .55747E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    18.265       1.0000          .0000       .10000E+07
    10 'Prefactor '    64.135       1.0000          .0000       .10000E+07
    11 'Prefactor '    .35994       1.0000          .0000       .10000E+07
    12 'Prefactor '    27.327       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11558E-03   1.0000          .0000       .10000E+07
    14 'norm      '    2.5594       1.0000          .0000       .10000E+07
    15 'Prefactor '    .41538E-04   1.0000          .0000       .10000E+07
    16 'norm      '    6.6932       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.3932       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .85974       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4934.478     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1943 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.124        557.58        .16370E-05    .97444E-03
   2  Prefactor     .29937E-06    912.69        .61468E-06** at limit **
   3  Prefactor     .20539E-08    33.652        .18547E-06** at limit **
   4  Prefactor     .20539E-08    30.189        .14813E-06** at limit **
   5  Prefactor     .10714E-07    84.799        .74311E-07** at limit **
   6  norm          10.988        23.282        .29709E-06    .11803E-02
   7  Prefactor     .97193E-02    5597.2        .22625E-04** at limit **
   8  Prefactor      .0000        17.158       -.87819E-07** at limit **
   9  Prefactor     19.622        51.178       -.13527E-05   -.77772E-02
  10  Prefactor     64.613        75.116       -.14115E-05   -.62993E-01
  11  Prefactor     .66613E-09    76.648        .19110E-06** at limit **
  12  Prefactor     27.321        21.365        .85032E-07    .26696E-02
  13  Prefactor      .0000        5.7830       -.40553E-07** at limit **
  14  norm          2.5613        1.0904       -.21430E-08   -.27549E-02
  15  Prefactor     .55511E-10    18.853       -.73503E-08** at limit **
  16  norm          6.6961        4.2120        .16500E-07   -.19297E-02
  17  Normalizat    1.3898        .46560        .65686E-05    .10521E-03
  18  Prefactor     .86032        .13931       -.25548E-05    .11677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.1238
  Prefactor  = 2.99372e-07
  Prefactor  = 2.05391e-09
  Prefactor  = 2.05391e-09
  Prefactor  = 1.07137e-08
  norm       = 10.9876
  Prefactor  = 0.00971931
  Prefactor  = 0
  Prefactor  = 19.6216
  Prefactor  = 64.6125
  Prefactor  = 6.66134e-10
  Prefactor  = 27.321
  Prefactor  = 0
  norm       = 2.56129
  Prefactor  = 5.55112e-11
  norm       = 6.69607
  Normalizat = 1.38977
  Prefactor  = 0.860318
 **********
 **   18 **HESSE 
 **********

 FCN=   4934.478     FROM HESSE     STATUS=OK           294 CALLS     2237 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.124        632.93        .20117E-03   -1.5589    
   2  Prefactor     .29937E-06    78.073        .19907E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .20539E-08    33.638        .15651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .20539E-08    30.234        .16843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10714E-07    84.806        .90203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.988        23.094        .30292E-03   -1.5642    
   7  Prefactor     .97193E-02    23.352        .12293E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        16.872        .15318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.622        534.49        .23408E-03   -1.5619    
  10  Prefactor     64.613        135.53        .12488E-03   -1.5547    
  11  Prefactor     .66613E-09    76.525        .94283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.321        21.172        .19133E-03   -1.5603    
  13  Prefactor      .0000        5.7574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5613        1.0901        .63788E-03   -1.5676    
  15  Prefactor     .55511E-10    18.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6961        4.2090        .38762E-03   -1.5656    
  17  Normalizat    1.3898        .39129        .98485E-01   -.80925    
  18  Prefactor     .86032        .11583        .44490E-01   -.97542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20134e-07
Minuit parameter uncertainties:
  1  298.238
  2  0.00966883
  3  0.000526534
  4  0.00049941
  5  0.00190827
  6  23.0937
  7  0.95282
  8  1.33471e-05
  9  204.838
  10  135.539
  11  0.000459149
  12  21.1722
  13  1.91462e-05
  14  1.09015
  15  7.32053e-05
  16  4.20895
  17  0.392132
  18  0.115865
Done.

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

Extracting fit parameters...

4FGL J1449.6-2137
   Spectrum: PowerLaw
295    Prefactor:  2.732e+01  2.117e+01  0.000e+00  1.000e+06 ( 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:  8.603e-01  1.159e-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.390e+00  3.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.38
Ra Dec: 222.422 -21.627
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 8.28e-08
Energy Flux (Fixed Index): 3.69e-05 +/- 2.86e-05

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

Saving results to:
/scratch/kocevski/79899/likelihoodResults_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.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) = 4934.43499548
delta logL = 0.0425767756815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4934.43333779
delta logL = 0.0442344592984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.878       1.0000          .0000       .10000E+07
     2 'Index     '    2.5540       1.0000          .0000       10.000    
     3 'Normalizat'    1.3696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86417       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=   4934.433     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      283 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.874        27.430        .85542E-05    .76020E-03
   2  Index         2.5541        .71299        .50826E-02    .19207E-04
   3  Normalizat    1.3695        .44840        .43902E-03   -.29061E-03
   4  Prefactor     .86429        .13720        .16570E-03   -.84351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8736
  Index      = 2.55409
  Normalizat = 1.36946
  Prefactor  = 0.864286
 **********
 **   18 **HESSE 
 **********

 FCN=   4934.433     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.874        25.305        .34217E-06   -1.5614    
   2  Index         2.5541        .65755        .20330E-03   -.51115    
   3  Normalizat    1.3695        .44807        .87804E-04   -.81516    
   4  Prefactor     .86429        .13716        .33139E-04   -.97400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60487e-10
Minuit parameter uncertainties:
  1  25.3054
  2  0.660072
  3  0.449353
  4  0.137215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79899': 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) = 4934.43333693
delta logL = 0.0442353235612

Extracting fit parameters...

4FGL J1449.6-2137
   Spectrum: PowerLaw
295    Prefactor:  2.187e+01  2.531e+01  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  2.554e+00  6.601e-01  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:  8.643e-01  1.372e-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.369e+00  4.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 222.422 -21.627
Photon Index (Free Index): 2.55 +/- 0.66
Photon Flux (Free Index): 1.25e-07 +/- 1.09e-07
Energy Flux (Free Index): 3.42e-05 +/- 2.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/79899/cmap_HighResolution_686707201_686966401_4FGL_J1449.6-2137_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-02', comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='3.42e-05', photon_flux_error='8.28e-08', dlogl='4.42e-02', energy_flux='3.69e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2022-10-09 00:23:26.821253', photon_index_error2='0.66', photon_index2='2.55', ts='3.38', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='2.97e-07', energy_flux_error2='2.67e-05', EG='1.39', time_epoch_completed='1665300206.82', return_code='0', job_id='79899', GAL2='0.86', EG2='1.37', return_code2='0', energy_flux_error='2.86e-05', photon_flux_error2='1.09e-07', ts2='3.47', photon_index='2.36' WHERE bin_id='1726' AND source_name='4FGL J1449.6-2137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:23:26 PDT 2022

9', time_epoch_completed='1665300008.58', return_code='0', job_id='79938', GAL2='0.86', EG2='1.37', return_code2='0', energy_flux_error='2.86e-05', photon_flux_error2='1.09e-07', ts2='3.47', photon_index='2.36' WHERE bin_id='1726' AND source_name='4FGL J1449.6-2137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:20:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 79938: <4FGL_J1449.6-2137_daily_bin1726> in cluster <slac> Done

Job <4FGL_J1449.6-2137_daily_bin1726> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct  9 00:07:46 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:09:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:09:07 2022
Terminated at Sun Oct  9 00:20:09 2022
Results reported at Sun Oct  9 00:20:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1449.6-2137_daily_bin1726 222.422 -21.6271 686707201 686966401 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 :                                   548.47 sec.
    Max Memory :                                 618 MB
    Average Memory :                             275.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            743 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 79899: <4FGL_J1449.6-2137_daily_bin1726> in cluster <slac> Done

Job <4FGL_J1449.6-2137_daily_bin1726> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Oct  9 00:07:44 2022
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:08:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:08:54 2022
Terminated at Sun Oct  9 00:23:27 2022
Results reported at Sun Oct  9 00:23:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1449.6-2137_daily_bin1726 222.422 -21.6271 686707201 686966401 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 :                                   563.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             232.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            943 sec.

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

