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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1481
RA = 351.182, Dec = -40.6834
tmin = 623203201, tmax = 623462401
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='854636', job_status='RUN', time_executed='2021-09-29 16:55:40.209705', time_epoch_executed='1632959740.21' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854636/ft1_4FGL_J2324.7-4041_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854636/ft1_4FGL_J2324.7-4041_daily_bin1481.fits outfile=/scratch/kocevski/854636/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1481.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=623203201.0 tmax=623462401.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.21
user 1.96
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.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/854636/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1481.fits evtable="EVENTS" outfile="/scratch/kocevski/854636/ft1_filtered_4FGL_J2324.7-4041_daily_bin1481.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.42
user 0.24
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854636/ft1_filtered_4FGL_J2324.7-4041_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/854636/ltcube_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.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/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.fits
.....................!
real 9.18
user 8.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854636/ft1_filtered_4FGL_J2324.7-4041_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/854636/ltcube_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.fits outfile=/scratch/kocevski/854636/expmap_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.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/854636/ltcube_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.fits
.....................!
real 140.68
user 134.58
sys 5.83

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7-4041 @ 351.182 -40.6834

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/854636/ft1_filtered_4FGL_J2324.7-4041_daily_bin1481.fits scfile=/scratch/kocevski/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.fits outfile=/scratch/kocevski/854636/cmap_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.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=351.182 yref=-40.6834 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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854636/ft1_filtered_4FGL_J2324.7-4041_daily_bin1481.fits scfile=/scratch/kocevski/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.fits outfile=/scratch/kocevski/854636/cmap_HighResolution_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.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=351.182 yref=-40.6834 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.45
user 0.29
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854636/ft1_filtered_4FGL_J2324.7-4041_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854636/Model_4FGL_J2324.7-4041_daily_bin1481.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/854636/ft1_filtered_4FGL_J2324.7-4041_daily_bin1481.fits.....................!
real 33.81
user 32.72
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/854636/ft1_filtered_4FGL_J2324.7-4041_daily_bin1481.fits', '/scratch/kocevski/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.fits', expMap='/scratch/kocevski/854636/expmap_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.fits', expCube='/scratch/kocevski/854636/ltcube_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/854636/Model_4FGL_J2324.7-4041_daily_bin1481.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7-4041'

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.376e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/854636/ft1_filtered_4FGL_J2324.7-4041_daily_bin1481.fits
Spacecraft file(s): /scratch/kocevski/854636/ft2_4FGL_J2324.7-4041_daily_bin1481.fits
Exposure map: /scratch/kocevski/854636/expmap_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.fits
Exposure cube: /scratch/kocevski/854636/ltcube_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/854636/Model_4FGL_J2324.7-4041_daily_bin1481.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) = 5838.62270018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.824       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1194       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.011       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.972       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11372E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1396       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1835       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.838       1.0000         .10000E-03   10000.    
    21 'norm      '    .25511E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.866       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6650       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .63114E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .71713       1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.791       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1347       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .67698       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5838.615     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4393 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.827        43.686       -.61760E-06   -.29339E-04
   2  Prefactor     .10000E-03    7.0609       -.37833E-07** at limit **
   3  Prefactor     .10000E-03    45.860        .23092E-07** at limit **
   4  Prefactor     1.1204        4.2752        .17229E-05   -.67016E-04
   5  Prefactor     31.020        45.880       -.17745E-05   -.73506E-04
   6  Prefactor     .10000E-03    2.5725        .81319E-08** at limit **
   7  Prefactor     42.981        23.673        .43506E-06    .55944E-04
   8  Prefactor     .10000E-03    25.749        .84790E-07** at limit **
   9  Prefactor     .10000E-03    13.953        .23471E-07** at limit **
  10  Prefactor     .10000E-03    1.8921       -.17659E-07** at limit **
  11  Prefactor     .10000E-03    12.423        .25465E-06** at limit **
  12  Prefactor     9.5365        70.900       -.45283E-06   -.12816E-04
  13  Prefactor     .10000E-03    7.5694        .13870E-06** at limit **
  14  norm          .10000E-03    9.8611        .81195E-07** at limit **
  15  norm          .10000E-03    1.4058        .14735E-07** at limit **
  16  norm          .10000E-03    1.4775        .64643E-08** at limit **
  17  norm          4.1403        5.2976       -.20536E-06   -.14315E-03
  18  Prefactor     8.1830        7.1945       -.29945E-07   -.36388E-04
  19  Prefactor     .10000E-03    10.320        .17063E-06** at limit **
  20  Prefactor     30.803        48.935        .12617E-05    .24497E-04
  21  norm          .10000E-03    1.5865        .21129E-08** at limit **
  22  Prefactor     37.871        19.234        .36544E-06    .66416E-04
  23  norm          .10000E-03    .27582        .85935E-07** at limit **
  24  norm          .10000E-03    .95614        .66855E-08** at limit **
  25  Prefactor     4.6653        3.2660       -.69040E-08   -.91810E-04
  26  Prefactor     .10000E-03    11.262       -.19779E-06** at limit **
  27  Prefactor     .10000E-03    202.32        .19193E-05** at limit **
  28  Prefactor     .10000E-03    3.6705       -.13210E-06** at limit **
  29  Prefactor     .71591        3.0804        .16056E-05   -.14167E-03
  30  Prefactor     13.524        63.740        .38110E-06   -.15812E-04
  31  Normalizat    1.1345        .17733       -.11745E-05   -.10733E-03
  32  Prefactor     .67722        .18235        .41500E-06   -.14683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.12037
  Prefactor  = 31.0196
  Prefactor  = 0.0001
  Prefactor  = 42.9813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.53647
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.14034
  Prefactor  = 8.18295
  Prefactor  = 0.0001
  Prefactor  = 30.8027
  norm       = 0.0001
  Prefactor  = 37.8705
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.66528
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.715911
  Prefactor  = 13.5244
  Normalizat = 1.1345
  Prefactor  = 0.677221
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.615     FROM HESSE     STATUS=OK           649 CALLS     5042 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.827        43.855        .94868E-04   -1.4863    
   2  Prefactor     .10000E-03    7.0697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1204        4.2958        .27207E-03   -1.5496    
   5  Prefactor     31.020        45.677        .71950E-04   -1.4593    
   6  Prefactor     .10000E-03    2.5976        .11966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.981        23.751        .61155E-04   -1.4396    
   8  Prefactor     .10000E-03    26.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8973        .10263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5365        71.231        .12973E-03   -1.5090    
  13  Prefactor     .10000E-03    7.5983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4060        .88478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4816        .90691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1403        5.3321        .19407E-03   -1.5301    
  18  Prefactor     8.1830        7.1897        .14015E-03   -1.5136    
  19  Prefactor     .10000E-03    10.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.803        49.163        .72151E-04   -1.4597    
  21  norm          .10000E-03    8.0373        .18603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.871        19.365        .65132E-04   -1.4476    
  23  norm          .10000E-03    .27966        .39092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .95847        .72948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.6653        3.2619        .11074E-03   -1.5276    
  26  Prefactor     .10000E-03    11.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    204.84        .21037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.6939        .14272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .71591        3.1167        .25375E-03   -1.5539    
  30  Prefactor     13.524        64.121        .10786E-03   -1.4972    
  31  Normalizat    1.1345        .20776        .21035E-03   -.88652    
  32  Prefactor     .67722        .21477        .28430E-03   -1.0443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11237e-10
Minuit parameter uncertainties:
  1  43.9339
  2  6.51174e-06
  3  4.5369e-05
  4  4.29698
  5  45.7281
  6  1.50967e-06
  7  23.7565
  8  1.6554e-05
  9  8.05623e-06
  10  7.98306e-07
  11  2.32383e-05
  12  52.2133
  13  5.86582e-07
  14  2.90352e-06
  15  1.59055e-07
  16  5.68327e-07
  17  5.33268
  18  7.19041
  19  1.62223e-05
  20  49.2277
  21  0.000118334
  22  19.3679
  23  5.10727e-07
  24  4.75212e-07
  25  3.26203
  26  3.11932e-05
  27  0.00110727
  28  6.76686e-06
  29  2.98756
  30  58.9994
  31  0.207907
  32  0.21503
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  5.683e-07  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.772e-01  2.150e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.134e+00  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 1.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854636/likelihoodResults_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.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) = 5838.61825723
delta logL = -0.00299181803985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5838.61526541
delta logL = -2.19552021008e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6228       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67722       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   5838.615     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      227 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    3.4509        .90694E-03** at limit **
   2  alpha         1.6122        4.1423        .17971        .12343E-05
   3  Normalizat    1.1345        .19747        .21035E-03    .14052E-05
   4  Prefactor     .67722        .21196        .28430E-03    .47987E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  alpha      = 1.61218
  Normalizat = 1.13449
  Prefactor  = 0.677223
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.615     FROM HESSE     STATUS=OK            27 CALLS      254 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    1.4886        .18139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6122        3.2774        .71882E-01   -.36305    
   3  Normalizat    1.1345        .19769        .84140E-05   -.88652    
   4  Prefactor     .67722        .21219        .11372E-04   -1.0443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14389e-08
Minuit parameter uncertainties:
  1  0.000201908
  2  164.849
  3  0.197817
  4  0.21244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854636': 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) = 5838.6152654
delta logL = 6.01266947342e-09

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  2.019e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.612e+00  1.648e+02  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.772e-01  2.124e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.134e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.182 -40.683

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/854636/cmap_HighResolution_623203201_623462401_4FGL_J2324.7-4041_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-05', job_status='DONE', photon_flux_upper_limit='1.92e-08', time_completed='2021-09-29 17:06:24.837254', job_id='854636', GAL2='0.68', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632960384.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='6.01e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1481' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:06:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 854636: <4FGL_J2324.7-4041_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1481> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:55:17 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:55:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:55:19 2021
Terminated at Wed Sep 29 17:06:25 2021
Results reported at Wed Sep 29 17:06:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1481 351.182 -40.6834 623203201 623462401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7-4041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   640.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            668 sec.

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

