/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 3 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 = 7551
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1323.9+1405_daily_bin444
RA = 200.976, Dec = 14.0871
tmin = 354412801, tmax = 354672001
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='527840', job_status='RUN', time_executed='2021-09-07 14:56:32.023463', time_epoch_executed='1631051792.02' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/527840

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/527840/ft1_4FGL_J1323.9+1405_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/527840/ft2_4FGL_J1323.9+1405_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/527840/ft1_4FGL_J1323.9+1405_daily_bin444.fits outfile=/scratch/kocevski/527840/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin444.fits ra=200.976 dec=14.0871 rad=12.0 tmin=354412801.0 tmax=354672001.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.59
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/527840/ft1_filtered_4FGL_J1323.9+1405_daily_bin444.fits" evtable="EVENTS" scfile=/scratch/kocevski/527840/ft2_4FGL_J1323.9+1405_daily_bin444.fits sctable="SC_DATA" outfile=/scratch/kocevski/527840/ltcube_354412801_354672001_4FGL_J1323.9+1405_daily_bin444.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/527840/ft2_4FGL_J1323.9+1405_daily_bin444.fits
.....................!
real 15.20
user 14.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/527840/ft1_filtered_4FGL_J1323.9+1405_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/527840/ft2_4FGL_J1323.9+1405_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/527840/ltcube_354412801_354672001_4FGL_J1323.9+1405_daily_bin444.fits outfile=/scratch/kocevski/527840/expmap_354412801_354672001_4FGL_J1323.9+1405_daily_bin444.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/527840/ltcube_354412801_354672001_4FGL_J1323.9+1405_daily_bin444.fits
.....................!
real 195.17
user 187.98
sys 5.27

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/527840/ft1_filtered_4FGL_J1323.9+1405_daily_bin444.fits scfile=/scratch/kocevski/527840/ft2_4FGL_J1323.9+1405_daily_bin444.fits outfile=/scratch/kocevski/527840/cmap_354412801_354672001_4FGL_J1323.9+1405_daily_bin444.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/527840/ft1_filtered_4FGL_J1323.9+1405_daily_bin444.fits scfile=/scratch/kocevski/527840/ft2_4FGL_J1323.9+1405_daily_bin444.fits outfile=/scratch/kocevski/527840/cmap_HighResolution_354412801_354672001_4FGL_J1323.9+1405_daily_bin444.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.62
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9750       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4524       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5657       1.0000         .10000E-03   10000.    
     6 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.8741       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6207       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.2601       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6610       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3325       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10713       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8240       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1310       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0060       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=   5722.790     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     1918 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9805        176.98       -.15467E-04    .11960E-05
   2  Prefactor     3.4522        4.7660       -.23655E-06   -.22236E-03
   3  Prefactor     9.4133        12.831       -.26895E-05   -.30619E-04
   4  Prefactor     .10000E-03    8.7262        .74306E-06** at limit **
   5  norm          5.5655        3.7096       -.53629E-07    .53027E-04
   6  norm          .10000E-03    48.351       -.36785E-05** at limit **
   7  norm          7.8754        7.1027       -.11112E-05   -.11625E-03
   8  Prefactor     3.6210        8.5003       -.11783E-05   -.18815E-03
   9  Prefactor     .10000E-03    34.080        .53858E-06** at limit **
  10  norm          8.2589        10.238        .20851E-05   -.81834E-04
  11  Prefactor     .10000E-03    58.192        .49224E-05** at limit **
  12  Prefactor     8.6610        4.8502       -.14623E-06   -.76217E-04
  13  Prefactor     3.3345        5.2425       -.76340E-06   -.47631E-03
  14  Prefactor     .46496E-01    11.825       -.42341E-06    .48812E-04
  15  Prefactor     6.8254        12.274        .24300E-05   -.79010E-04
  16  Normalizat    1.1309        .20721       -.79135E-06    .34610E-04
  17  Prefactor     1.0061        .17360        .27889E-06   -.12640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98053
  Prefactor  = 3.45223
  Prefactor  = 9.41325
  Prefactor  = 0.0001
  norm       = 5.56546
  norm       = 0.0001
  norm       = 7.87536
  Prefactor  = 3.62096
  Prefactor  = 0.0001
  norm       = 8.2589
  Prefactor  = 0.0001
  Prefactor  = 8.66097
  Prefactor  = 3.33452
  Prefactor  = 0.0464959
  Prefactor  = 6.82536
  Normalizat = 1.13094
  Prefactor  = 1.00614
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.790     FROM HESSE     STATUS=OK           239 CALLS     2157 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9805        172.40        .18030E-03   -1.5262    
   2  Prefactor     3.4522        4.7735        .18883E-03   -1.5336    
   3  Prefactor     9.4133        12.772        .13058E-03   -1.5094    
   4  Prefactor     .10000E-03    8.7874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5655        3.7105        .11564E-03   -1.5236    
   6  norm          .10000E-03    50.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.8754        7.1074        .14289E-03   -1.5147    
   8  Prefactor     3.6210        8.5724        .21233E-03   -1.5327    
   9  Prefactor     .10000E-03    34.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.2589        10.150        .13949E-03   -1.5133    
  11  Prefactor     .10000E-03    58.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.6610        4.8543        .11962E-03   -1.5119    
  13  Prefactor     3.3345        5.3276        .21050E-03   -1.5343    
  14  Prefactor     .46496E-01    18.349        .72202E-01   -1.5665    
  15  Prefactor     6.8254        12.151        .15359E-03   -1.5185    
  16  Normalizat    1.1309        .25154        .25705E-03   -.88765    
  17  Prefactor     1.0061        .21017        .23324E-03   -.92525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85392e-10
Minuit parameter uncertainties:
  1  58.7885
  2  4.77403
  3  12.7761
  4  4.73493e-05
  5  3.71069
  6  0.000243209
  7  7.10819
  8  8.57527
  9  2.17326e-05
  10  10.1517
  11  5.07265e-05
  12  4.85448
  13  5.32833
  14  1.84592
  15  12.1553
  16  0.251808
  17  0.21034
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  2.173e-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.006e+00  2.103e-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.131e+00  2.518e-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: 6.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/527840/likelihoodResults_354412801_354672001_4FGL_J1323.9+1405_daily_bin444.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) = 5722.79005989
delta logL = -0.000139310160193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5722.47078772
delta logL = 0.319132860055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5980       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1642       1.0000          .0000       10.000    
     3 'Normalizat'    1.0887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0205       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5722.471     FROM MIGRAD    STATUS=FAILED        84 CALLS      307 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5976        134.73        .12098E-03   -.34412E-02
   2  Index         3.1649        6.5596        .43418E-02   -.86777E-03
   3  Normalizat    1.0887        .23892        .26141E-03   -.84516E-03
   4  Prefactor     1.0206        .20528        .23170E-03   -.74019E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5722.471     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      392 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5976        134.73        .20231E-03   -.34412E-02
   2  Index         3.1649        6.5596        .11314E-02   -.86777E-03
   3  Normalizat    1.0887        .23892        .18962E-03   -.84516E-03
   4  Prefactor     1.0206        .20528        .17054E-03   -.74019E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5722.471     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      423 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5973        5.5898        .48391E-05   -.18983E-03
   2  Index         3.1650        1.1629        .17367E-03   -.32861E-04
   3  Normalizat    1.0887        .24554        .52281E-04   -.10525E-04
   4  Prefactor     1.0206        .20854        .46340E-04   -.33856E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59733
  Index      = 3.16498
  Normalizat = 1.08868
  Prefactor  = 1.02055
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.471     FROM HESSE     STATUS=OK            23 CALLS      446 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5973        5.4905        .96782E-06   -1.5455    
   2  Index         3.1650        1.1425        .69469E-05   -.37579    
   3  Normalizat    1.0887        .24560        .10456E-04   -.90116    
   4  Prefactor     1.0206        .20859        .92681E-05   -.92048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01947e-11
Minuit parameter uncertainties:
  1  5.4922
  2  1.15431
  3  0.24586
  4  0.208752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/527840': 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) = 5722.47078642
delta logL = 0.319134157404

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.597e+00  5.492e+00  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  3.165e+00  1.154e+00  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.021e+00  2.088e-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.089e+00  2.459e-01  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/527840/cmap_HighResolution_354412801_354672001_4FGL_J1323.9+1405_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', job_status='DONE', photon_flux_upper_limit='6.15e-08', time_completed='2021-09-07 15:06:00.187086', job_id='527840', GAL2='1.02', fit_tolerance='1e-08', EG2='1.09', EG='1.13', time_epoch_completed='1631052360.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.19e-01', ts2='0.65', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='444' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 527840: <4FGL_J1323.9+1405_daily_bin444> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin444> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 14:55:44 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:56:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:56:16 2021
Terminated at Tue Sep  7 15:06:00 2021
Results reported at Tue Sep  7 15:06:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin444 200.976 14.0871 354412801 354672001 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 :                                   561.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            616 sec.

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

