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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin1021
RA = 200.976, Dec = 14.0871
tmin = 503971201, tmax = 504230401
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='530970', job_status='RUN', time_executed='2021-09-07 15:06:20.984676', time_epoch_executed='1631052380.98' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530970/ft1_4FGL_J1323.9+1405_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530970/ft2_4FGL_J1323.9+1405_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530970/ft1_4FGL_J1323.9+1405_daily_bin1021.fits outfile=/scratch/kocevski/530970/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1021.fits ra=200.976 dec=14.0871 rad=12.0 tmin=503971201.0 tmax=504230401.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 4.12
user 3.89
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530970/ft1_filtered_4FGL_J1323.9+1405_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/530970/ft2_4FGL_J1323.9+1405_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/530970/ltcube_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.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/530970/ft2_4FGL_J1323.9+1405_daily_bin1021.fits
.....................!
real 16.59
user 16.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530970/ft1_filtered_4FGL_J1323.9+1405_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/530970/ft2_4FGL_J1323.9+1405_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/530970/ltcube_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.fits outfile=/scratch/kocevski/530970/expmap_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.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/530970/ltcube_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.fits
.....................!
real 193.30
user 188.09
sys 4.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/530970/ft1_filtered_4FGL_J1323.9+1405_daily_bin1021.fits scfile=/scratch/kocevski/530970/ft2_4FGL_J1323.9+1405_daily_bin1021.fits outfile=/scratch/kocevski/530970/cmap_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530970/ft1_filtered_4FGL_J1323.9+1405_daily_bin1021.fits scfile=/scratch/kocevski/530970/ft2_4FGL_J1323.9+1405_daily_bin1021.fits outfile=/scratch/kocevski/530970/cmap_HighResolution_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/530970/ft1_filtered_4FGL_J1323.9+1405_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/530970/ft2_4FGL_J1323.9+1405_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530970/Model_4FGL_J1323.9+1405_daily_bin1021.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/530970/ft1_filtered_4FGL_J1323.9+1405_daily_bin1021.fits.....................!
real 53.60
user 52.17
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530970/ft1_filtered_4FGL_J1323.9+1405_daily_bin1021.fits', '/scratch/kocevski/530970/ft2_4FGL_J1323.9+1405_daily_bin1021.fits', expMap='/scratch/kocevski/530970/expmap_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.fits', expCube='/scratch/kocevski/530970/ltcube_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530970/Model_4FGL_J1323.9+1405_daily_bin1021.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/530970/ft1_filtered_4FGL_J1323.9+1405_daily_bin1021.fits
Spacecraft file(s): /scratch/kocevski/530970/ft2_4FGL_J1323.9+1405_daily_bin1021.fits
Exposure map: /scratch/kocevski/530970/expmap_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.fits
Exposure cube: /scratch/kocevski/530970/ltcube_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530970/Model_4FGL_J1323.9+1405_daily_bin1021.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) = 6501.47369088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6279       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2220       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .35616E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.214       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .22741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8115       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.040       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.7880       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .53250       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=   6501.433     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1599 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.705        .11606E-04** at limit **
   2  Prefactor     6.1432        5.6464        .19619E-06    .15463E-04
   3  Prefactor     5.6260        10.509       -.57009E-07   -.35267E-03
   4  Prefactor     .10000E-03    10.909       -.54343E-05** at limit **
   5  norm          2.2225        1.6181        .19651E-06   -.23555E-02
   6  norm          .10000E-03    7.4613        .11984E-05** at limit **
   7  norm          .10001E-03    3.3381       -.55236E-06** at limit **
   8  Prefactor     14.216        12.004        .56685E-06    .76718E-05
   9  Prefactor     .10000E-03    11.782        .80223E-06** at limit **
  10  norm          .22964        5.0572        .33859E-06   -.14564E-03
  11  Prefactor     .10000E-03    17.866       -.80435E-05** at limit **
  12  Prefactor     3.8116        3.5381       -.15974E-06   -.43710E-04
  13  Prefactor     .10000E-03    1.9819        .11041E-07** at limit **
  14  Prefactor     .10000E-03    5.9811       -.27438E-06** at limit **
  15  Prefactor     14.043        16.989        .27264E-05    .93544E-05
  16  Normalizat    1.7877        .19893       -.49036E-06    .11053E-03
  17  Prefactor     .53274        .15178       -.11881E-06    .24940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.14319
  Prefactor  = 5.62604
  Prefactor  = 0.0001
  norm       = 2.22254
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 14.2157
  Prefactor  = 0.0001
  norm       = 0.229639
  Prefactor  = 0.0001
  Prefactor  = 3.81158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.043
  Normalizat = 1.7877
  Prefactor  = 0.532737
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.433     FROM HESSE     STATUS=OK           225 CALLS     1824 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1432        5.6612        .16198E-03   -1.5212    
   3  Prefactor     5.6260        10.815        .84668E-03   -1.5234    
   4  Prefactor     .10000E-03    10.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2225        4.8398        .12614E-02   -1.5410    
   6  norm          .10000E-03    7.4667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    13.248        .28073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.216        12.035        .10624E-03   -1.4954    
   9  Prefactor     .10000E-03    11.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .22964        26.643        .34344E-02   -1.5612    
  11  Prefactor     .10000E-03    17.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8116        3.5355        .14038E-03   -1.5317    
  13  Prefactor     .10000E-03    1.9937        .11083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.043        17.089        .10689E-03   -1.4958    
  16  Normalizat    1.7877        .23535        .22430E-03   -.69985    
  17  Prefactor     .53274        .17626        .30038E-03   -1.1050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07632e-08
Minuit parameter uncertainties:
  1  4.97204e-05
  2  5.66165
  3  10.819
  4  5.15328e-06
  5  4.84065
  6  5.12704e-06
  7  0.000601556
  8  12.0375
  9  4.42686e-06
  10  4.94819
  11  3.35562e-05
  12  3.53574
  13  1.16576e-06
  14  4.43982e-06
  15  17.0949
  16  0.235503
  17  0.176442
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  4.427e-06  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:  5.327e-01  1.764e-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:  1.788e+00  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/530970/likelihoodResults_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.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) = 6501.43294154
delta logL = -0.000402549179853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6501.43253894
delta logL = 5.01386239193e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8549       1.0000          .0000       10.000    
     3 'Normalizat'    1.7877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53274       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=   6501.433     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10196E-03    139.26        .18142E-02** at limit **
   2  Index         1.7765        5.8532        .50000        .11434E-04
   3  Normalizat    1.7877        .16216E-01    .22430E-03   -.30963E-03
   4  Prefactor     .53274        .12738E-01    .30038E-03   -.47612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101955
  Index      = 1.77651
  Normalizat = 1.78769
  Prefactor  = 0.53274
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.433     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10196E-03    599.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7765        5.7872        .50000       -.70063    
   3  Normalizat    1.7877        .35422E-01    .44861E-04   -.69985    
   4  Prefactor     .53274        .27820E-01    .12015E-04   -1.1050    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.32819e-08
Minuit parameter uncertainties:
  1  0.0692024
  2  962.856
  3  0.0354229
  4  0.027821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530970': 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) = 6501.43253872
delta logL = 2.75320417131e-07

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.020e-04  6.920e-02  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.777e+00  9.629e+02  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:  5.327e-01  2.782e-02  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:  1.788e+00  3.542e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.976 14.087

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/530970/cmap_HighResolution_503971201_504230401_4FGL_J1323.9+1405_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='4.14e-08', time_completed='2021-09-07 15:15:43.046205', job_id='530970', GAL2='0.53', fit_tolerance='1e-08', EG2='1.79', EG='1.79', time_epoch_completed='1631052943.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='2.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1021' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:15:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 530970: <4FGL_J1323.9+1405_daily_bin1021> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin1021> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 15:05:52 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:06:08 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:06:08 2021
Terminated at Tue Sep  7 15:15:43 2021
Results reported at Tue Sep  7 15:15:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin1021 200.976 14.0871 503971201 504230401 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 :                                   558.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   575 sec.
    Turnaround time :                            591 sec.

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

