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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin1601
RA = 200.976, Dec = 14.0871
tmin = 654307201, tmax = 654566401
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='542496', job_status='RUN', time_executed='2021-09-29 00:18:15.265396', time_epoch_executed='1632899895.27' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542496

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542496/ft1_4FGL_J1323.9+1405_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542496/ft2_4FGL_J1323.9+1405_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542496/ft1_4FGL_J1323.9+1405_daily_bin1601.fits outfile=/scratch/kocevski/542496/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin1601.fits ra=200.976 dec=14.0871 rad=12.0 tmin=654307201.0 tmax=654566401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.22
user 3.97
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542496/ft1_filtered_4FGL_J1323.9+1405_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542496/ft2_4FGL_J1323.9+1405_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/542496/ltcube_654307201_654566401_4FGL_J1323.9+1405_daily_bin1601.fits outfile=/scratch/kocevski/542496/expmap_654307201_654566401_4FGL_J1323.9+1405_daily_bin1601.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/542496/ltcube_654307201_654566401_4FGL_J1323.9+1405_daily_bin1601.fits
.....................!
real 190.69
user 185.69
sys 4.55

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/542496/ft1_filtered_4FGL_J1323.9+1405_daily_bin1601.fits scfile=/scratch/kocevski/542496/ft2_4FGL_J1323.9+1405_daily_bin1601.fits outfile=/scratch/kocevski/542496/cmap_654307201_654566401_4FGL_J1323.9+1405_daily_bin1601.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542496/ft1_filtered_4FGL_J1323.9+1405_daily_bin1601.fits scfile=/scratch/kocevski/542496/ft2_4FGL_J1323.9+1405_daily_bin1601.fits outfile=/scratch/kocevski/542496/cmap_HighResolution_654307201_654566401_4FGL_J1323.9+1405_daily_bin1601.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11208E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.435       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2746       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.905       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3688       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .78395       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=   5650.580     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1591 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.147        40.635       -.17954E-04    .98445E-06
   2  Prefactor     .10000E-03    3.6580       -.51732E-06** at limit **
   3  Prefactor     .10000E-03    4.0891       -.38420E-06** at limit **
   4  Prefactor     .10000E-03    4.7232        .52406E-06** at limit **
   5  norm          .10000E-03    3.4941       -.20462E-06** at limit **
   6  norm          .10000E-03    6.2700        .16781E-06** at limit **
   7  norm          .10000E-03    2.7607       -.44387E-07** at limit **
   8  Prefactor     .10000E-03    13.696        .69409E-07** at limit **
   9  Prefactor     25.424        49.051       -.13869E-04   -.35439E-06
  10  norm          .10000E-03    3.7715        .83722E-06** at limit **
  11  Prefactor     .10000E-03    179.33        .38458E-05** at limit **
  12  Prefactor     .10000E-03    2.7382       -.27456E-07** at limit **
  13  Prefactor     2.2744        2.2164        .19008E-07    .24058E-03
  14  Prefactor     .10000E-03    5.4794       -.41261E-06** at limit **
  15  Prefactor     19.904        15.345        .93830E-06   -.11588E-04
  16  Normalizat    1.3689        .19875        .73942E-06    .83949E-05
  17  Prefactor     .78397        .16153        .12635E-05   -.18565E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4237
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.27438
  Prefactor  = 0.0001
  Prefactor  = 19.9041
  Normalizat = 1.36886
  Prefactor  = 0.783966
 **********
 **   18 **HESSE 
 **********

 FCN=   5650.580     FROM HESSE     STATUS=OK           219 CALLS     1810 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.147        40.642        .91485E-04   -1.4833    
   2  Prefactor     .10000E-03    3.6711        .14041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0928        .14830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7342        .15957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.9128        .27301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.2726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7862        .12196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.424        49.096        .79429E-04   -1.4699    
  10  norm          .10000E-03    3.7801        .14251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    181.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8489        .24279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2744        2.2302        .10778E-03   -1.5406    
  14  Prefactor     .10000E-03    5.4913        .17186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.904        15.351        .89774E-04   -1.4815    
  16  Normalizat    1.3689        .23808        .23721E-03   -.81534    
  17  Prefactor     .78397        .19315        .24579E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33261e-11
Minuit parameter uncertainties:
  1  40.7005
  2  3.99364e-06
  3  3.50396e-05
  4  7.05512e-06
  5  4.32315e-05
  6  2.28448e-06
  7  4.30891e-06
  8  9.87561e-06
  9  49.1736
  10  6.0453e-06
  11  5.37178e-05
  12  1.04047e-05
  13  2.23029
  14  6.4017e-06
  15  15.3543
  16  0.238272
  17  0.193312
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  2.542e+01  4.917e+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:  7.840e-01  1.933e-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.369e+00  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/542496/likelihoodResults_654307201_654566401_4FGL_J1323.9+1405_daily_bin1601.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) = 5649.24913942
delta logL = 1.33117347733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5649.16609428
delta logL = 1.41421861933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6729       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9351       1.0000          .0000       10.000    
     3 'Normalizat'    1.2817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81401       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=   5649.166     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      253 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6747        38.202        .13300E-03    .18084E-02
   2  Index         2.9351        1.4902        .29890E-02    .77192E-03
   3  Normalizat    1.2817        .25212        .24350E-03    .75168E-03
   4  Prefactor     .81405        .20129        .24117E-03    .79157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.67471
  Index      = 2.93514
  Normalizat = 1.28172
  Prefactor  = 0.814048
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.166     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6747        16.050        .53198E-05   -1.5119    
   2  Index         2.9351        .66549        .11956E-03   -.42571    
   3  Normalizat    1.2817        .24467        .48700E-04   -.84114    
   4  Prefactor     .81405        .19454        .48234E-04   -.99213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66514e-09
Minuit parameter uncertainties:
  1  16.058
  2  0.667882
  3  0.244894
  4  0.1947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542496': 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) = 5649.16609419
delta logL = 1.41421870226

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  8.675e+00  1.606e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  2.935e+00  6.679e-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.140e-01  1.947e-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.282e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.19
Ra Dec: 200.976 14.087
Photon Index (Free Index): 2.94 +/- 0.67
Photon Flux (Free Index): 1.09e-07 +/- 7.48e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.50e-05

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/542496/cmap_HighResolution_654307201_654566401_4FGL_J1323.9+1405_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', energy_flux2='2.25e-05', dlogl='1.41e+00', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-29 00:26:41.659772', photon_index_error2='0.67', photon_index2='2.94', ts='0.30', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='9.79e-08', energy_flux_error2='1.50e-05', EG='1.37', time_epoch_completed='1632900401.66', return_code='0', job_id='542496', GAL2='0.81', EG2='1.28', return_code2='0', photon_flux_error2='7.48e-08', ts2='3.19', photon_index='1.88' WHERE bin_id='1601' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:26:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 542496: <4FGL_J1323.9+1405_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:15:28 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:15:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:15:29 2021
Terminated at Wed Sep 29 00:26:42 2021
Results reported at Wed Sep 29 00:26:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin1601 200.976 14.0871 654307201 654566401 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 :                                   508.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            674 sec.

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

