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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin1211
RA = 200.976, Dec = 14.0871
tmin = 553219201, tmax = 553478401
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='532301', job_status='RUN', time_executed='2021-09-07 15:14:16.612995', time_epoch_executed='1631052856.61' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532301

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532301/ft1_4FGL_J1323.9+1405_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532301/ft2_4FGL_J1323.9+1405_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532301/ft1_4FGL_J1323.9+1405_daily_bin1211.fits outfile=/scratch/kocevski/532301/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1211.fits ra=200.976 dec=14.0871 rad=12.0 tmin=553219201.0 tmax=553478401.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.77
user 2.54
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532301/ft2_4FGL_J1323.9+1405_daily_bin1211.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/532301/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/532301/ft1_filtered_4FGL_J1323.9+1405_daily_bin1211.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532301/ft1_filtered_4FGL_J1323.9+1405_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/532301/ft2_4FGL_J1323.9+1405_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/532301/ltcube_553219201_553478401_4FGL_J1323.9+1405_daily_bin1211.fits outfile=/scratch/kocevski/532301/expmap_553219201_553478401_4FGL_J1323.9+1405_daily_bin1211.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/532301/ltcube_553219201_553478401_4FGL_J1323.9+1405_daily_bin1211.fits
.....................!
real 193.77
user 187.61
sys 5.28

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/532301/ft1_filtered_4FGL_J1323.9+1405_daily_bin1211.fits scfile=/scratch/kocevski/532301/ft2_4FGL_J1323.9+1405_daily_bin1211.fits outfile=/scratch/kocevski/532301/cmap_553219201_553478401_4FGL_J1323.9+1405_daily_bin1211.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=200.976 yref=14.0871 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532301/ft1_filtered_4FGL_J1323.9+1405_daily_bin1211.fits scfile=/scratch/kocevski/532301/ft2_4FGL_J1323.9+1405_daily_bin1211.fits outfile=/scratch/kocevski/532301/cmap_HighResolution_553219201_553478401_4FGL_J1323.9+1405_daily_bin1211.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=200.976 yref=14.0871 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.643       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.565       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4927       1.0000         .10000E-03   10000.    
     6 'norm      '    .81109E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.579       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5577       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5737       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5031       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2450       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .85760       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.

 FCN=   8875.049     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1369 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    12.419        .90712E-02** at limit **
   2  Prefactor     .10004E-03    3.2563        .60939E-01** at limit **
   3  Prefactor     12.641        9.0518        .28164E-02   -.33652E-03
   4  Prefactor     25.564        12.036        .19807E-02    .43325E-03
   5  norm          2.4929        2.1324        .64721E-02    .10484E-03
   6  norm          .10007E-03    4.3322        .10447    ** at limit **
   7  norm          .10000E-03    1.4666        .90712E-02** at limit **
   8  Prefactor     .10001E-03    11.092        .90712E-02** at limit **
   9  Prefactor     31.579        22.727        .17826E-02   -.26103E-03
  10  norm          2.5577        4.2894        .63820E-02    .70546E-03
  11  Prefactor     .10001E-03    10.232        .90712E-02** at limit **
  12  Prefactor     3.5734        4.1253        .53445E-02    .29784E-02
  13  Prefactor     5.5031        3.2422        .42819E-02   -.13185E-02
  14  Prefactor     3.3495        10.523        .55281E-02    .19881E-03
  15  Prefactor     .10003E-03    9.6130        .90712E-02** at limit **
  16  Normalizat    1.2451        .15379        .54016E-01   -.55976E-06
  17  Prefactor     .85752        .12710        .44462E-01    .99735E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100073
  Prefactor  = 0.000100039
  Prefactor  = 12.6411
  Prefactor  = 25.564
  norm       = 2.49285
  norm       = 0.00010007
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 31.5792
  norm       = 2.5577
  Prefactor  = 0.000100009
  Prefactor  = 3.57338
  Prefactor  = 5.50306
  Prefactor  = 3.34949
  Prefactor  = 0.000100027
  Normalizat = 1.2451
  Prefactor  = 0.857518
 **********
 **   18 **HESSE 
 **********

 FCN=   8875.049     FROM HESSE     STATUS=OK           225 CALLS     1594 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    12.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    10.832        .32885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.641        9.0543        .11266E-03   -1.4997    
   4  Prefactor     25.564        12.057        .79227E-04   -1.4696    
   5  norm          2.4929        2.1261        .12390E-03   -1.5392    
   6  norm          .10007E-03    27.634        .38226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4746        .11130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    11.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.579        22.733        .71302E-04   -1.4583    
  10  norm          2.5577        4.2726        .24320E-03   -1.5388    
  11  Prefactor     .10001E-03    10.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5734        4.1182        .19345E-03   -1.5330    
  13  Prefactor     5.5031        3.2428        .12619E-03   -1.5239    
  14  Prefactor     3.3495        10.505        .22113E-03   -1.5342    
  15  Prefactor     .10003E-03    9.8135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2451        .18168        .23884E-03   -.85220    
  17  Prefactor     .85752        .15006        .23801E-03   -.97642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93208e-08
Minuit parameter uncertainties:
  1  0.0019054
  2  0.00130348
  3  9.05529
  4  12.0583
  5  2.12612
  6  0.00278564
  7  1.49689e-06
  8  0.00067977
  9  22.7393
  10  4.27313
  11  0.000611281
  12  4.11848
  13  3.24289
  14  10.511
  15  0.00103504
  16  0.181769
  17  0.150127
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  3.158e+01  2.274e+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.575e-01  1.501e-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.245e+00  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.39
Ra Dec: 200.976 14.087
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.58e-05

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) = 8875.04596951
delta logL = 0.00253427806638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8875.04460541
delta logL = 0.00389837516013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.282       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9486       1.0000          .0000       10.000    
     3 'Normalizat'    1.2420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85843       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=   8875.045     FROM MIGRAD    STATUS=FAILED        96 CALLS      283 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.299        29.328        .36404E-03    .16395E-03
   2  Index         1.9481        .86573        .11152E-01    .76803E-03
   3  Normalizat    1.2421        .18071        .23909E-03   -.21194E-03
   4  Prefactor     .85838        .14944        .23789E-03    .10485E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8875.045     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      359 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.299        29.328        .17256E-03   -1.4607    
   2  Index         1.9481        .86573        .68007E-03   -.65654    
   3  Normalizat    1.2421        .18071        .20227E-03   -.85312    
   4  Prefactor     .85838        .14944        .23529E-03   -.97611    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8875.045     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      387 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.299        27.007        .14562E-04   -.93687E-05
   2  Index         1.9481        .79672        .22303E-02    .53420E-05
   3  Normalizat    1.2421        .17978        .47818E-04   -.31383E-05
   4  Prefactor     .85838        .14941        .95154E-05   -.19116E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.2986
  Index      = 1.9481
  Normalizat = 1.24207
  Prefactor  = 0.858378
 **********
 **   18 **HESSE 
 **********

 FCN=   8875.045     FROM HESSE     STATUS=OK            25 CALLS      412 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.299        26.615        .29124E-05   -1.4607    
   2  Index         1.9481        .78428        .89212E-04   -.65654    
   3  Normalizat    1.2421        .17976        .95635E-05   -.85312    
   4  Prefactor     .85838        .14955        .19031E-05   -.97611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47048e-12
Minuit parameter uncertainties:
  1  26.6249
  2  0.789496
  3  0.179852
  4  0.149624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532301': 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) = 8875.04460512
delta logL = 0.00389866542355

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  3.030e+01  2.662e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.948e+00  7.895e-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.584e-01  1.496e-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.242e+00  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.39
Ra Dec: 200.976 14.087
Photon Index (Free Index): 1.95 +/- 0.79
Photon Flux (Free Index): 2.60e-08 +/- 3.99e-08
Energy Flux (Free Index): 2.05e-05 +/- 2.03e-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/532301/cmap_HighResolution_553219201_553478401_4FGL_J1323.9+1405_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='2.05e-05', photon_flux_error='1.65e-08', dlogl='3.90e-03', energy_flux='2.19e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-09-07 15:23:59.041447', photon_index_error2='0.79', photon_index2='1.95', ts='10.39', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='1.25', time_epoch_completed='1631053439.04', return_code='0', job_id='532301', GAL2='0.86', EG2='1.24', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='3.99e-08', ts2='10.39', photon_index='1.88' WHERE bin_id='1211' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:23:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 532301: <4FGL_J1323.9+1405_daily_bin1211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin1211 200.976 14.0871 553219201 553478401 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 :                                   579.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            814 sec.

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

