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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin157
RA = 200.976, Dec = 14.0871
tmin = 280022401, tmax = 280281601
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='526291', job_status='RUN', time_executed='2021-09-07 14:53:58.902727', time_epoch_executed='1631051638.9' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526291

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526291/ft1_4FGL_J1323.9+1405_daily_bin157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526291/ft2_4FGL_J1323.9+1405_daily_bin157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526291/ft1_4FGL_J1323.9+1405_daily_bin157.fits outfile=/scratch/kocevski/526291/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin157.fits ra=200.976 dec=14.0871 rad=12.0 tmin=280022401.0 tmax=280281601.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.55
user 3.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526291/ft1_filtered_4FGL_J1323.9+1405_daily_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/526291/ft2_4FGL_J1323.9+1405_daily_bin157.fits sctable="SC_DATA" expcube=/scratch/kocevski/526291/ltcube_280022401_280281601_4FGL_J1323.9+1405_daily_bin157.fits outfile=/scratch/kocevski/526291/expmap_280022401_280281601_4FGL_J1323.9+1405_daily_bin157.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/526291/ltcube_280022401_280281601_4FGL_J1323.9+1405_daily_bin157.fits
.....................!
real 190.80
user 185.33
sys 4.63

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/526291/ft1_filtered_4FGL_J1323.9+1405_daily_bin157.fits scfile=/scratch/kocevski/526291/ft2_4FGL_J1323.9+1405_daily_bin157.fits outfile=/scratch/kocevski/526291/cmap_280022401_280281601_4FGL_J1323.9+1405_daily_bin157.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526291/ft1_filtered_4FGL_J1323.9+1405_daily_bin157.fits scfile=/scratch/kocevski/526291/ft2_4FGL_J1323.9+1405_daily_bin157.fits outfile=/scratch/kocevski/526291/cmap_HighResolution_280022401_280281601_4FGL_J1323.9+1405_daily_bin157.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.250       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.466       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.010       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.206       1.0000         .10000E-03   10000.    
     6 'norm      '    16.018       1.0000         .10000E-03   10000.    
     7 'norm      '    .11114E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.052       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.914       1.0000         .10000E-03   10000.    
    10 'norm      '    16.110       1.0000         .10000E-03   10000.    
    11 'Prefactor '    62.575       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23521E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .45106E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9703       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1732       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0916       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0017       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=   6228.180     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1664 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.220        56.477       -.29905E-04    .17102E-05
   2  Prefactor     11.467        8.4521       -.11486E-06   -.19804E-04
   3  Prefactor     30.014        19.979        .64308E-05   -.16913E-04
   4  Prefactor     .10000E-03    10.802       -.22661E-06** at limit **
   5  norm          11.208        5.6557       -.63900E-07   -.37376E-05
   6  norm          15.976        21.050        .13780E-05   -.10454E-04
   7  norm          .10000E-03    3.2791       -.22854E-07** at limit **
   8  Prefactor     11.052        11.419       -.21930E-06   -.33262E-04
   9  Prefactor     42.915        35.368        .70671E-06   -.24496E-05
  10  norm          16.112        9.4696       -.54391E-07   -.29297E-04
  11  Prefactor     62.568        53.726       -.64607E-05   -.14287E-04
  12  Prefactor     .10000E-03    2.4927        .24146E-07** at limit **
  13  Prefactor     .10000E-03    3.1748        .28720E-06** at limit **
  14  Prefactor     4.9702        6.7255        .23477E-06   -.37816E-04
  15  Prefactor     8.1708        12.036        .62060E-06   -.74866E-04
  16  Normalizat    1.0913        .20964       -.75241E-06    .43204E-05
  17  Prefactor     1.0018        .16775        .12171E-05   -.11546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.2198
  Prefactor  = 11.467
  Prefactor  = 30.0142
  Prefactor  = 0.0001
  norm       = 11.2078
  norm       = 15.9761
  norm       = 0.0001
  Prefactor  = 11.0522
  Prefactor  = 42.9153
  norm       = 16.1122
  Prefactor  = 62.5683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.97023
  Prefactor  = 8.17075
  Normalizat = 1.09135
  Prefactor  = 1.00182
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.180     FROM HESSE     STATUS=OK           229 CALLS     1893 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.220        56.471        .50457E-04   -1.4116    
   2  Prefactor     11.467        8.4507        .11831E-03   -1.5031    
   3  Prefactor     30.014        20.021        .73138E-04   -1.4612    
   4  Prefactor     .10000E-03    10.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.208        5.6595        .11968E-03   -1.5038    
   6  norm          15.976        21.034        .10007E-03   -1.4908    
   7  norm          .10000E-03    3.2919        .13941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.052        11.422        .12051E-03   -1.5043    
   9  Prefactor     42.915        35.361        .61196E-04   -1.4397    
  10  norm          16.112        9.4641        .99788E-04   -1.4905    
  11  Prefactor     62.568        53.619        .50727E-04   -1.4124    
  12  Prefactor     .10000E-03    24.962        .23545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.216        .26733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9702        6.7172        .18039E-03   -1.5262    
  15  Prefactor     8.1708        12.017        .14024E-03   -1.5136    
  16  Normalizat    1.0913        .24961        .27993E-03   -.90030    
  17  Prefactor     1.0018        .19992        .23997E-03   -.92669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13939e-10
Minuit parameter uncertainties:
  1  56.5192
  2  8.45154
  3  20.0258
  4  7.42057e-05
  5  5.65976
  6  21.0434
  7  4.4948e-06
  8  11.4243
  9  35.3778
  10  9.46499
  11  53.6606
  12  0.000197784
  13  0.000132777
  14  6.71818
  15  12.0206
  16  0.249875
  17  0.200065
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  4.292e+01  3.538e+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:  1.002e+00  2.001e-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.091e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 200.976 14.087
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.12e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 2.98e-05 +/- 2.45e-05

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

Saving results to:
/scratch/kocevski/526291/likelihoodResults_280022401_280281601_4FGL_J1323.9+1405_daily_bin157.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) = 6228.09017641
delta logL = 0.0895994063876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6228.09002737
delta logL = 0.0897484454954

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.583       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5567       1.0000          .0000       10.000    
     3 'Normalizat'    1.0981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0023       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=   6228.090     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      299 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.523        45.150        .27655E-03   -.12333E-05
   2  Index         1.5559        .72761        .11747E-01    .55095E-05
   3  Normalizat    1.0981        .23912        .27912E-03    .33928E-04
   4  Prefactor     1.0023        .19857        .23997E-03   -.42827E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.5232
  Index      = 1.55588
  Normalizat = 1.09814
  Prefactor  = 1.0023
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.090     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.523        44.880        .11062E-04   -1.4257    
   2  Index         1.5559        .72353        .46990E-03   -.75987    
   3  Normalizat    1.0981        .23933        .11165E-04   -.89811    
   4  Prefactor     1.0023        .19881        .95989E-05   -.92653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79923e-11
Minuit parameter uncertainties:
  1  44.9086
  2  0.728426
  3  0.239568
  4  0.198953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526291': 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) = 6228.09002582
delta logL = 0.0897500021183

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  5.252e+01  4.491e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.556e+00  7.284e-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:  1.002e+00  1.990e-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.098e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 200.976 14.087
Photon Index (Free Index): 1.56 +/- 0.73
Photon Flux (Free Index): 1.95e-08 +/- 2.98e-08
Energy Flux (Free Index): 5.12e-05 +/- 7.43e-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/526291/cmap_HighResolution_280022401_280281601_4FGL_J1323.9+1405_daily_bin157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', comment='SUCCESS', photon_flux='3.12e-08', energy_flux2='5.12e-05', photon_flux_error='2.57e-08', dlogl='8.98e-02', energy_flux='2.98e-05', photon_flux2='1.95e-08', job_status='DONE', time_completed='2021-09-07 15:02:57.117464', photon_index_error2='0.73', photon_index2='1.56', ts='2.56', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='9.24e-08', energy_flux_error2='7.43e-05', EG='1.09', time_epoch_completed='1631052177.12', return_code='0', job_id='526291', GAL2='1.00', EG2='1.10', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='2.98e-08', ts2='2.73', photon_index='1.88' WHERE bin_id='157' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:02:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 526291: <4FGL_J1323.9+1405_daily_bin157> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin157> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:50:34 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:53:42 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:53:42 2021
Terminated at Tue Sep  7 15:02:57 2021
Results reported at Tue Sep  7 15:02:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin157 200.976 14.0871 280022401 280281601 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 :                                   537.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             369.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            743 sec.

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

