/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 1 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 = 7566
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1323.9+1405_daily_bin40
RA = 200.976, Dec = 14.0871
tmin = 249696001, tmax = 249955201
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='526072', job_status='RUN', time_executed='2021-09-07 14:53:12.432430', time_epoch_executed='1631051592.43' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526072

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526072/ft1_4FGL_J1323.9+1405_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526072/ft2_4FGL_J1323.9+1405_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526072/ft1_4FGL_J1323.9+1405_daily_bin40.fits outfile=/scratch/kocevski/526072/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin40.fits ra=200.976 dec=14.0871 rad=12.0 tmin=249696001.0 tmax=249955201.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 1.48
user 1.30
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/526072/ft1_filtered_4FGL_J1323.9+1405_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/526072/ft2_4FGL_J1323.9+1405_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/526072/ltcube_249696001_249955201_4FGL_J1323.9+1405_daily_bin40.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/526072/ft2_4FGL_J1323.9+1405_daily_bin40.fits
.....................!
real 15.75
user 15.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526072/ft1_filtered_4FGL_J1323.9+1405_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/526072/ft2_4FGL_J1323.9+1405_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/526072/ltcube_249696001_249955201_4FGL_J1323.9+1405_daily_bin40.fits outfile=/scratch/kocevski/526072/expmap_249696001_249955201_4FGL_J1323.9+1405_daily_bin40.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/526072/ltcube_249696001_249955201_4FGL_J1323.9+1405_daily_bin40.fits
.....................!
real 190.77
user 185.66
sys 4.48

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/526072/ft1_filtered_4FGL_J1323.9+1405_daily_bin40.fits scfile=/scratch/kocevski/526072/ft2_4FGL_J1323.9+1405_daily_bin40.fits outfile=/scratch/kocevski/526072/cmap_249696001_249955201_4FGL_J1323.9+1405_daily_bin40.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526072/ft1_filtered_4FGL_J1323.9+1405_daily_bin40.fits scfile=/scratch/kocevski/526072/ft2_4FGL_J1323.9+1405_daily_bin40.fits outfile=/scratch/kocevski/526072/cmap_HighResolution_249696001_249955201_4FGL_J1323.9+1405_daily_bin40.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.815       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7565       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7657       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1647       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3992       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.459       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28940E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3087       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1468       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .86344       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=   5857.861     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1641 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.845        61.057        .26805E-04    .52597E-04
   2  Prefactor     6.7575        7.0639        .43697E-06   -.38044E-04
   3  Prefactor     2.7586        10.811       -.10032E-04   -.26997E-03
   4  Prefactor     4.1703        12.414        .12744E-04    .70899E-04
   5  norm          .10000E-03    1.1540        .22857E-08** at limit **
   6  norm          .10000E-03    7.2696       -.95693E-07** at limit **
   7  norm          3.4001        5.3361        .31829E-05   -.16518E-05
   8  Prefactor     .10000E-03    6.6597        .13805E-06** at limit **
   9  Prefactor     .10000E-03    50.187        .14470E-05** at limit **
  10  norm          11.459        7.9449        .53253E-06   -.47907E-04
  11  Prefactor     .10000E-03    278.27       -.42878E-05** at limit **
  12  Prefactor     .10000E-03    1.1461        .37732E-07** at limit **
  13  Prefactor     1.3025        1.3199        .36981E-06   -.27175E-02
  14  Prefactor     .10000E-03    4.6359        .43836E-07** at limit **
  15  Prefactor     .10000E-03    9.2222        .18339E-06** at limit **
  16  Normalizat    1.1468        .18045       -.32704E-05    .94509E-04
  17  Prefactor     .86332        .14849       -.28982E-06   -.15167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.8453
  Prefactor  = 6.75748
  Prefactor  = 2.75857
  Prefactor  = 4.17031
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.40012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4592
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 1.30246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14678
  Prefactor  = 0.863323
 **********
 **   18 **HESSE 
 **********

 FCN=   5857.861     FROM HESSE     STATUS=OK           221 CALLS     1862 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.845        61.017        .63524E-04   -1.4445    
   2  Prefactor     6.7575        7.0650        .15437E-03   -1.5188    
   3  Prefactor     2.7586        10.809        .24474E-03   -1.5376    
   4  Prefactor     4.1703        12.418        .19750E-03   -1.5300    
   5  norm          .10000E-03    1.1558        .80293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.2743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4001        5.3080        .20441E-03   -1.5339    
   8  Prefactor     .10000E-03    6.7982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.459        7.9318        .11835E-03   -1.5031    
  11  Prefactor     .10000E-03    286.93        .39734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1542        .80003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3025        4.9154        .15498E-02   -1.5480    
  14  Prefactor     .10000E-03    4.6447        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.3235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1468        .21570        .23497E-03   -.88264    
  17  Prefactor     .86332        .17950        .22472E-03   -.97435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3721e-08
Minuit parameter uncertainties:
  1  61.1133
  2  7.06587
  3  10.817
  4  12.4257
  5  2.86813e-07
  6  1.03558e-05
  7  5.30872
  8  2.54966e-05
  9  0.000116216
  10  7.93257
  11  0.0022035
  12  5.4287e-06
  13  4.91692
  14  1.27966e-05
  15  5.31343e-05
  16  0.215864
  17  0.179627
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.000e-04  1.162e-04  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.633e-01  1.796e-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.147e+00  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/526072/likelihoodResults_249696001_249955201_4FGL_J1323.9+1405_daily_bin40.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) = 5857.86132162
delta logL = -9.3953830401e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5857.62543603
delta logL = 0.235791627651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86431       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2727       1.0000          .0000       10.000    
     3 'Normalizat'    1.1158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87417       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=   5857.625     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      280 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85802        28.900        .12677E-01    .94916E-03
   2  Index         3.2751        2.6476        .98321E-01    .15428E-03
   3  Normalizat    1.1161        .36065E-01    .53776E-01   -.39099E-04
   4  Prefactor     .87399        .30401E-01    .44675E-01   -.44574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.858024
  Index      = 3.27513
  Normalizat = 1.11606
  Prefactor  = 0.873991
 **********
 **   18 **HESSE 
 **********

 FCN=   5857.625     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      313 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85802        100.54        .10689E-03   -1.5523    
   2  Index         3.2751        6.4771        .59549E-02   -.35221    
   3  Normalizat    1.1161        .17867        .23778E-03   -.89238    
   4  Prefactor     .87399        .14801        .22343E-03   -.97056    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2028e-06
Minuit parameter uncertainties:
  1  18.6071
  2  7.40944
  3  0.17877
  4  0.148081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526072': 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): 102
logL (Free Index) = 5857.62543419
delta logL = 0.235793471931

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  8.580e-01  1.861e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  3.275e+00  7.409e+00  0.000e+00  1.000e+01 (-1.000e+00)
329        Scale:  3.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.740e-01  1.481e-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.116e+00  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.976 14.087

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/526072/cmap_HighResolution_249696001_249955201_4FGL_J1323.9+1405_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-09-07 15:01:58.773093', job_id='526072', GAL2='0.87', fit_tolerance='1e-08', EG2='1.12', EG='1.15', time_epoch_completed='1631052118.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.36e-01', ts2='0.48', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='40' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:01:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 526072: <4FGL_J1323.9+1405_daily_bin40> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin40 200.976 14.0871 249696001 249955201 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 :                                   523.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            698 sec.

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

