/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7492
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1323.9+1405_daily_bin1506
RA = 200.976, Dec = 14.0871
tmin = 629683201, tmax = 629942401
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='532725', job_status='RUN', time_executed='2021-09-07 15:12:56.118383', time_epoch_executed='1631052776.12' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532725/ft1_4FGL_J1323.9+1405_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532725/ft1_4FGL_J1323.9+1405_daily_bin1506.fits outfile=/scratch/kocevski/532725/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1506.fits ra=200.976 dec=14.0871 rad=12.0 tmin=629683201.0 tmax=629942401.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.65
user 3.35
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.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/532725/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1506.fits evtable="EVENTS" outfile="/scratch/kocevski/532725/ft1_filtered_4FGL_J1323.9+1405_daily_bin1506.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.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532725/ft1_filtered_4FGL_J1323.9+1405_daily_bin1506.fits" evtable="EVENTS" scfile=/scratch/kocevski/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.fits sctable="SC_DATA" outfile=/scratch/kocevski/532725/ltcube_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.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/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.fits
.....................!
real 16.30
user 15.73
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532725/ft1_filtered_4FGL_J1323.9+1405_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/532725/ltcube_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.fits outfile=/scratch/kocevski/532725/expmap_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.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/532725/ltcube_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.fits
.....................!
real 191.24
user 185.03
sys 5.61

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

Setting source of interest to:
4FGL J1323.9+1405 @ 200.976 14.0871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/532725/ft1_filtered_4FGL_J1323.9+1405_daily_bin1506.fits scfile=/scratch/kocevski/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.fits outfile=/scratch/kocevski/532725/cmap_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.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=200.976 yref=14.0871 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532725/ft1_filtered_4FGL_J1323.9+1405_daily_bin1506.fits scfile=/scratch/kocevski/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.fits outfile=/scratch/kocevski/532725/cmap_HighResolution_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.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=200.976 yref=14.0871 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/532725/ft1_filtered_4FGL_J1323.9+1405_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/532725/Model_4FGL_J1323.9+1405_daily_bin1506.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/532725/ft1_filtered_4FGL_J1323.9+1405_daily_bin1506.fits.....................!
real 46.66
user 44.91
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/532725/ft1_filtered_4FGL_J1323.9+1405_daily_bin1506.fits', '/scratch/kocevski/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.fits', expMap='/scratch/kocevski/532725/expmap_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.fits', expCube='/scratch/kocevski/532725/ltcube_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/532725/Model_4FGL_J1323.9+1405_daily_bin1506.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1323.9+1405'

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  5.083e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.878e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
329        Scale:  3.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/532725/ft1_filtered_4FGL_J1323.9+1405_daily_bin1506.fits
Spacecraft file(s): /scratch/kocevski/532725/ft2_4FGL_J1323.9+1405_daily_bin1506.fits
Exposure map: /scratch/kocevski/532725/expmap_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.fits
Exposure cube: /scratch/kocevski/532725/ltcube_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/532725/Model_4FGL_J1323.9+1405_daily_bin1506.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) = 5600.26295137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3559       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4663       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8789       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.711       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.285       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0671       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .82452       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2190       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5600.262     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1576 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.751       -.36688E-05** at limit **
   2  Prefactor     6.3559        5.5786        .26633E-07   -.26981E-03
   3  Prefactor     4.4650        4.6115        .21847E-06   -.57479E-03
   4  Prefactor     5.8788        12.822       -.23795E-06   -.10812E-04
   5  norm          .10000E-03    1.7212        .16754E-06** at limit **
   6  norm          12.711        14.065       -.17205E-06   -.37040E-05
   7  norm          .10000E-03    2.2824       -.21172E-06** at limit **
   8  Prefactor     .10000E-03    3.0063        .57094E-07** at limit **
   9  Prefactor     28.284        38.344       -.20211E-05   -.84559E-05
  10  norm          .10000E-03    2.7634       -.54282E-07** at limit **
  11  Prefactor     .10000E-03    21.793       -.17018E-05** at limit **
  12  Prefactor     .10000E-03    3.7595        .33273E-07** at limit **
  13  Prefactor     1.0667        3.1765        .63786E-07   -.12217E-03
  14  Prefactor     .10000E-03    4.4609        .31492E-06** at limit **
  15  Prefactor     .10000E-03    16.753        .42864E-05** at limit **
  16  Normalizat    .82450        .19245       -.46423E-06   -.30388E-04
  17  Prefactor     1.2190        .16985        .61813E-06   -.72918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.35591
  Prefactor  = 4.46503
  Prefactor  = 5.8788
  norm       = 0.0001
  norm       = 12.7109
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2839
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.06674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.824495
  Prefactor  = 1.21902
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.262     FROM HESSE     STATUS=OK           219 CALLS     1795 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3559        5.6899        .79605E-03   -1.5204    
   3  Prefactor     4.4650        10.678        .95265E-03   -1.5285    
   4  Prefactor     5.8788        13.215        .16563E-03   -1.5223    
   5  norm          .10000E-03    1.7496        .95862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.711        14.063        .11235E-03   -1.4995    
   7  norm          .10000E-03    2.3062        .11040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0120        .12672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.284        38.378        .75329E-04   -1.4644    
  10  norm          .10000E-03    2.7735        .12147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9192        .28310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0667        3.1273        .22459E-03   -1.5501    
  14  Prefactor     .10000E-03    4.4667        .15435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .82450        .22386        .27195E-03   -.99166    
  17  Prefactor     1.2190        .19660        .20306E-03   -.85748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73445e-10
Minuit parameter uncertainties:
  1  3.33756e-05
  2  5.69038
  3  10.6825
  4  13.2217
  5  1.38926e-07
  6  14.0662
  7  6.93171e-07
  8  2.38457e-07
  9  38.4116
  10  3.49651e-07
  11  1.81945e-05
  12  3.40031e-06
  13  3.12778
  14  1.31251e-07
  15  2.27629e-05
  16  0.224111
  17  0.196714
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  2.828e+01  3.841e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.878e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
329        Scale:  3.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.219e+00  1.967e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.245e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 200.976 14.087
Photon Flux Upper Limit: 8.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532725/likelihoodResults_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.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) = 5599.56449652
delta logL = 0.697743435628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5599.56153882
delta logL = 0.700701130051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7730       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7080       1.0000          .0000       10.000    
     3 'Normalizat'    .78736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   5599.562     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      322 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7756        32.585        .13533E-03    .41836E-03
   2  Index         2.7080        1.3344        .40078E-02    .26770E-03
   3  Normalizat    .78701        .22365        .27781E-03    .90929E-04
   4  Prefactor     1.2329        .19750        .20190E-03    .27818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.77557
  Index      = 2.70798
  Normalizat = 0.787005
  Prefactor  = 1.23293
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.562     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7756        17.932        .54131E-05   -1.5115    
   2  Index         2.7080        .74049        .16031E-03   -.47620    
   3  Normalizat    .78701        .22157        .11112E-04   -1.0055    
   4  Prefactor     1.2329        .19580        .40380E-04   -.85324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02771e-10
Minuit parameter uncertainties:
  1  17.9426
  2  0.74396
  3  0.221826
  4  0.195915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532725': 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) = 5599.56153736
delta logL = 0.700702590733

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  8.776e+00  1.794e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  2.708e+00  7.440e-01  0.000e+00  1.000e+01 (-1.000e+00)
329        Scale:  3.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.233e+00  1.959e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  7.870e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 200.976 14.087
Photon Index (Free Index): 2.71 +/- 0.74
Photon Flux (Free Index): 5.72e-08 +/- 4.95e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.22e-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/532725/cmap_HighResolution_629683201_629942401_4FGL_J1323.9+1405_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='7.01e-01', photon_flux2='5.72e-08', job_status='DONE', time_completed='2021-09-07 15:22:01.594647', photon_index_error2='0.74', photon_index2='2.71', ts='0.73', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='8.74e-08', energy_flux_error2='1.22e-05', EG='0.82', time_epoch_completed='1631053321.59', return_code='0', job_id='532725', GAL2='1.23', EG2='0.79', return_code2='0', photon_flux_error2='4.95e-08', ts2='2.15', photon_index='1.88' WHERE bin_id='1506' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:22:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 532725: <4FGL_J1323.9+1405_daily_bin1506> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin1506> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:10:53 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:12:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 15:12:42 2021
Terminated at Tue Sep  7 15:22:02 2021
Results reported at Tue Sep  7 15:22:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin1506 200.976 14.0871 629683201 629942401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1323.9+1405 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   522.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            669 sec.

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

