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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin1028
RA = 200.976, Dec = 14.0871
tmin = 505785601, tmax = 506044801
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='530980', job_status='RUN', time_executed='2021-09-07 15:09:31.316198', time_epoch_executed='1631052571.32' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530980

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530980/ft1_4FGL_J1323.9+1405_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530980/ft2_4FGL_J1323.9+1405_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530980/ft1_4FGL_J1323.9+1405_daily_bin1028.fits outfile=/scratch/kocevski/530980/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1028.fits ra=200.976 dec=14.0871 rad=12.0 tmin=505785601.0 tmax=506044801.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.37
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530980/ft1_filtered_4FGL_J1323.9+1405_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/530980/ft2_4FGL_J1323.9+1405_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/530980/ltcube_505785601_506044801_4FGL_J1323.9+1405_daily_bin1028.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/530980/ft2_4FGL_J1323.9+1405_daily_bin1028.fits
.....................!
real 16.70
user 16.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530980/ft1_filtered_4FGL_J1323.9+1405_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/530980/ft2_4FGL_J1323.9+1405_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/530980/ltcube_505785601_506044801_4FGL_J1323.9+1405_daily_bin1028.fits outfile=/scratch/kocevski/530980/expmap_505785601_506044801_4FGL_J1323.9+1405_daily_bin1028.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/530980/ltcube_505785601_506044801_4FGL_J1323.9+1405_daily_bin1028.fits
.....................!
real 193.55
user 186.94
sys 5.67

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/530980/ft1_filtered_4FGL_J1323.9+1405_daily_bin1028.fits scfile=/scratch/kocevski/530980/ft2_4FGL_J1323.9+1405_daily_bin1028.fits outfile=/scratch/kocevski/530980/cmap_505785601_506044801_4FGL_J1323.9+1405_daily_bin1028.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.61
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530980/ft1_filtered_4FGL_J1323.9+1405_daily_bin1028.fits scfile=/scratch/kocevski/530980/ft2_4FGL_J1323.9+1405_daily_bin1028.fits outfile=/scratch/kocevski/530980/cmap_HighResolution_505785601_506044801_4FGL_J1323.9+1405_daily_bin1028.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.61
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.159       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27212E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7797       1.0000         .10000E-03   10000.    
     5 'norm      '    8.5828       1.0000         .10000E-03   10000.    
     6 'norm      '    14.581       1.0000         .10000E-03   10000.    
     7 'norm      '    10.803       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .42413E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70057E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3593       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .99876       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0191       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=   5648.729     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1664 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.065        41.884       -.11194E-06   -.14673E-03
   2  Prefactor     .10000E-03    2.2052        .14007E-07** at limit **
   3  Prefactor     .10315E-03    12.546        .47705E-05** at limit **
   4  Prefactor     3.7441        14.321       -.59234E-05   -.40112E-03
   5  norm          8.5816        4.4062        .11123E-07   -.22752E-04
   6  norm          14.599        22.536        .26631E-05    .10862E-03
   7  norm          10.815        7.5999        .13571E-06    .26382E-04
   8  Prefactor     .10000E-03    3.6558        .52455E-08** at limit **
   9  Prefactor     .10000E-03    12.016        .26183E-07** at limit **
  10  norm          .10004E-03    3.9373       -.17694E-06** at limit **
  11  Prefactor     .10000E-03    18.282       -.57967E-08** at limit **
  12  Prefactor     .10000E-03    2.0613       -.15396E-07** at limit **
  13  Prefactor     .10000E-03    1.3819       -.65821E-08** at limit **
  14  Prefactor     .21731E-02    7.5829       -.12906E-05** at limit **
  15  Prefactor     8.3551        9.5490       -.33850E-06   -.84612E-04
  16  Normalizat    .99973        .19442       -.22236E-05   -.44920E-03
  17  Prefactor     1.0183        .15886        .26624E-06   -.46419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0646
  Prefactor  = 0.0001
  Prefactor  = 0.000103152
  Prefactor  = 3.74413
  norm       = 8.58159
  norm       = 14.5991
  norm       = 10.8153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00217311
  Prefactor  = 8.3551
  Normalizat = 0.99973
  Prefactor  = 1.01833
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.729     FROM HESSE     STATUS=OK           233 CALLS     1897 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.065        42.062        .76872E-04   -1.4667    
   2  Prefactor     .10000E-03    2.2097        .10900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10315E-03    169.03        .42996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7441        14.519        .20765E-03   -1.5321    
   5  norm          8.5816        4.4084        .10956E-03   -1.5122    
   6  norm          14.599        22.492        .10489E-03   -1.4944    
   7  norm          10.815        7.2319        .12189E-03   -1.5050    
   8  Prefactor     .10000E-03    3.6683        .14034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10004E-03    50.685        .27297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0873        .10534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3898        .86276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .21731E-02    13.226        .62910E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.3551        9.5695        .13866E-03   -1.5130    
  16  Normalizat    .99973        .22665        .25356E-03   -.93039    
  17  Prefactor     1.0183        .18693        .21750E-03   -.92121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05038e-08
Minuit parameter uncertainties:
  1  42.1084
  2  2.97464e-06
  3  0.0462926
  4  14.533
  5  4.40854
  6  22.5051
  7  7.23251
  8  5.39872e-06
  9  1.18763e-05
  10  0.00293236
  11  1.36567e-05
  12  7.24248e-06
  13  2.52469e-06
  14  0.331245
  15  9.57123
  16  0.226871
  17  0.187051
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  1.188e-05  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.018e+00  1.871e-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:  9.997e-01  2.269e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530980/likelihoodResults_505785601_506044801_4FGL_J1323.9+1405_daily_bin1028.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) = 5648.72949412
delta logL = -0.000395031606786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5648.72910329
delta logL = -4.2017773012e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13197E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8496       1.0000          .0000       10.000    
     3 'Normalizat'    .99923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0188       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=   5648.729     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      239 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10102E-03    81.342        .18142E-02** at limit **
   2  Index         1.8021        8.6574        .50000        .13804E-04
   3  Normalizat    .99973        .11614E-01    .25356E-03    .55148E-05
   4  Prefactor     1.0183        .10097E-01    .21750E-03   -.56191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101017
  Index      = 1.80211
  Normalizat = 0.999733
  Prefactor  = 1.01833
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.729     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10102E-03    365.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8021        5.6971        .50000       -.69395    
   3  Normalizat    .99973        .25357E-01    .10143E-04   -.93039    
   4  Prefactor     1.0183        .22044E-01    .86998E-05   -.92121    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20928e-08
Minuit parameter uncertainties:
  1  0.0388083
  2  439.638
  3  0.0253576
  4  0.0220445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530980': 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) = 5648.72909882
delta logL = 2.6597717806e-07

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.010e-04  3.881e-02  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.802e+00  4.396e+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:  1.018e+00  2.204e-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:  9.997e-01  2.536e-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/530980/cmap_HighResolution_505785601_506044801_4FGL_J1323.9+1405_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-03', job_status='DONE', photon_flux_upper_limit='4.23e-08', time_completed='2021-09-07 15:18:26.812950', job_id='530980', GAL2='1.02', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631053106.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1028' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:18:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 530980: <4FGL_J1323.9+1405_daily_bin1028> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin1028 200.976 14.0871 505785601 506044801 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 :                                   533.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             302.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            754 sec.

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

