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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin1389
RA = 200.976, Dec = 14.0871
tmin = 599356801, tmax = 599616001
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='532555', job_status='RUN', time_executed='2021-09-07 15:14:45.754492', time_epoch_executed='1631052885.75' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='1389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532555/ft1_4FGL_J1323.9+1405_daily_bin1389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532555/ft2_4FGL_J1323.9+1405_daily_bin1389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532555/ft1_4FGL_J1323.9+1405_daily_bin1389.fits outfile=/scratch/kocevski/532555/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1389.fits ra=200.976 dec=14.0871 rad=12.0 tmin=599356801.0 tmax=599616001.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 2.78
user 2.55
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532555/ft1_filtered_4FGL_J1323.9+1405_daily_bin1389.fits" evtable="EVENTS" scfile=/scratch/kocevski/532555/ft2_4FGL_J1323.9+1405_daily_bin1389.fits sctable="SC_DATA" outfile=/scratch/kocevski/532555/ltcube_599356801_599616001_4FGL_J1323.9+1405_daily_bin1389.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/532555/ft2_4FGL_J1323.9+1405_daily_bin1389.fits
.....................!
real 19.99
user 19.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532555/ft1_filtered_4FGL_J1323.9+1405_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/532555/ft2_4FGL_J1323.9+1405_daily_bin1389.fits sctable="SC_DATA" expcube=/scratch/kocevski/532555/ltcube_599356801_599616001_4FGL_J1323.9+1405_daily_bin1389.fits outfile=/scratch/kocevski/532555/expmap_599356801_599616001_4FGL_J1323.9+1405_daily_bin1389.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/532555/ltcube_599356801_599616001_4FGL_J1323.9+1405_daily_bin1389.fits
.....................!
real 192.57
user 186.38
sys 5.18

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/532555/ft1_filtered_4FGL_J1323.9+1405_daily_bin1389.fits scfile=/scratch/kocevski/532555/ft2_4FGL_J1323.9+1405_daily_bin1389.fits outfile=/scratch/kocevski/532555/cmap_599356801_599616001_4FGL_J1323.9+1405_daily_bin1389.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532555/ft1_filtered_4FGL_J1323.9+1405_daily_bin1389.fits scfile=/scratch/kocevski/532555/ft2_4FGL_J1323.9+1405_daily_bin1389.fits outfile=/scratch/kocevski/532555/cmap_HighResolution_599356801_599616001_4FGL_J1323.9+1405_daily_bin1389.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1040       1.0000         .10000E-03   10000.    
     5 'norm      '    .63527       1.0000         .10000E-03   10000.    
     6 'norm      '    24.033       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9622       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.692       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.844       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .78189       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33190E-02   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3947       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88490       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=   9058.940     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     1437 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.013        .19221E-07** at limit **
   2  Prefactor     .10000E-03    3.4689        .45090E-07** at limit **
   3  Prefactor     .10000E-03    3.7601        .11771E-07** at limit **
   4  Prefactor     3.0980        10.763       -.20686E-06   -.35412E-06
   5  norm          .63608        1.7105       -.12222E-06   -.20989E-03
   6  norm          24.031        15.859       -.89066E-07    .38540E-05
   7  norm          3.9611        4.9614        .10579E-05    .61329E-04
   8  Prefactor     .10000E-03    3.1915       -.43578E-07** at limit **
   9  Prefactor     23.690        23.932        .12016E-06   -.18868E-05
  10  norm          .10000E-03    1.9581        .14052E-06** at limit **
  11  Prefactor     14.799        35.163        .58087E-05    .48064E-05
  12  Prefactor     .10000E-03    .88499       -.32852E-07** at limit **
  13  Prefactor     .77962        1.9646       -.23880E-06   -.25110E-03
  14  Prefactor     14.449        11.424        .47822E-07   -.15086E-04
  15  Prefactor     .10010E-03    5.0647        .68507E-06** at limit **
  16  Normalizat    1.3949        .16328       -.52004E-06   -.42569E-04
  17  Prefactor     .88480        .13443        .22139E-06   -.92196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.09799
  norm       = 0.636076
  norm       = 24.031
  norm       = 3.96106
  Prefactor  = 0.0001
  Prefactor  = 23.6895
  norm       = 0.0001
  Prefactor  = 14.7986
  Prefactor  = 0.0001
  Prefactor  = 0.779623
  Prefactor  = 14.4494
  Prefactor  = 0.0001001
  Normalizat = 1.39487
  Prefactor  = 0.884799
 **********
 **   18 **HESSE 
 **********

 FCN=   9058.940     FROM HESSE     STATUS=OK           233 CALLS     1670 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6136        .34619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7758        .18018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0980        10.768        .23017E-03   -1.5356    
   5  norm          .63608        1.4502        .20021E-02   -1.5548    
   6  norm          24.031        15.865        .81710E-04   -1.4727    
   7  norm          3.9611        4.9630        .10132E-02   -1.5310    
   8  Prefactor     .10000E-03    3.2053        .16604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.690        23.930        .82295E-04   -1.4734    
  10  norm          .10000E-03    1.9631        .13006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.799        34.976        .10396E-03   -1.4938    
  12  Prefactor     .10000E-03    .89454        .87422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .77962        1.8107        .20664E-02   -1.5531    
  14  Prefactor     14.449        11.407        .10537E-03   -1.4948    
  15  Prefactor     .10010E-03    58.564        .39464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3949        .19377        .23868E-03   -.80777    
  17  Prefactor     .88480        .16063        .24616E-03   -.96674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85636e-08
Minuit parameter uncertainties:
  1  2.14871e-06
  2  1.0078e-06
  3  2.79182e-06
  4  10.7745
  5  1.45032
  6  15.8681
  7  4.96353
  8  1.31825e-06
  9  23.9399
  10  5.95269e-08
  11  35.0244
  12  5.50729e-07
  13  1.81081
  14  11.4086
  15  0.00485163
  16  0.193873
  17  0.160716
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  2.369e+01  2.394e+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:  8.848e-01  1.607e-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.395e+00  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 200.976 14.087
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.66e-05

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

Saving results to:
/scratch/kocevski/532555/likelihoodResults_599356801_599616001_4FGL_J1323.9+1405_daily_bin1389.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) = 9058.65989486
delta logL = 0.27996830341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9058.64943546
delta logL = 0.290427706506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.720       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4502       1.0000          .0000       10.000    
     3 'Normalizat'    1.3673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89445       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=   9058.649     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      315 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.730        26.733        .10814E-03    .59210E-03
   2  Index         2.4495        .94832        .57917E-02    .17663E-03
   3  Normalizat    1.3675        .19673        .24062E-03   -.11139E-02
   4  Prefactor     .89426        .16160        .24491E-03   -.49205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7302
  Index      = 2.44949
  Normalizat = 1.36752
  Prefactor  = 0.894264
 **********
 **   18 **HESSE 
 **********

 FCN=   9058.649     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.730        19.991        .43255E-05   -1.4967    
   2  Index         2.4495        .70978        .23167E-03   -.53530    
   3  Normalizat    1.3675        .19368        .48125E-04   -.81573    
   4  Prefactor     .89426        .16060        .48982E-04   -.96342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17296e-09
Minuit parameter uncertainties:
  1  20.0004
  2  0.713038
  3  0.193781
  4  0.160681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532555': 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) = 9058.64943416
delta logL = 0.290428999337

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.373e+01  2.000e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  2.449e+00  7.130e-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:  8.943e-01  1.607e-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.368e+00  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 200.976 14.087
Photon Index (Free Index): 2.45 +/- 0.71
Photon Flux (Free Index): 4.33e-08 +/- 4.67e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/532555/cmap_HighResolution_599356801_599616001_4FGL_J1323.9+1405_daily_bin1389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='1.33e-05', photon_flux_error='1.74e-08', dlogl='2.90e-01', energy_flux='1.64e-05', photon_flux2='4.33e-08', job_status='DONE', time_completed='2021-09-07 15:25:42.545466', photon_index_error2='0.71', photon_index2='2.45', ts='2.24', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='6.34e-08', energy_flux_error2='1.06e-05', EG='1.39', time_epoch_completed='1631053542.55', return_code='0', job_id='532555', GAL2='0.89', EG2='1.37', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='4.67e-08', ts2='2.82', photon_index='1.88' WHERE bin_id='1389' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:25:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 532555: <4FGL_J1323.9+1405_daily_bin1389> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin1389> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:10:42 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:12:11 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:11 2021
Terminated at Tue Sep  7 15:25:43 2021
Results reported at Tue Sep  7 15:25:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin1389 200.976 14.0871 599356801 599616001 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 :                                   645.00 sec.
    Max Memory :                                 1161 MB
    Average Memory :                             298.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            901 sec.

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

