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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1072
RA = 351.182, Dec = -40.6834
tmin = 517190401, tmax = 517449601
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='851813', job_status='RUN', time_executed='2021-09-29 16:47:18.882244', time_epoch_executed='1632959238.88' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851813/ft1_4FGL_J2324.7-4041_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851813/ft2_4FGL_J2324.7-4041_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851813/ft1_4FGL_J2324.7-4041_daily_bin1072.fits outfile=/scratch/kocevski/851813/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1072.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=517190401.0 tmax=517449601.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.68
user 4.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851813/ft2_4FGL_J2324.7-4041_daily_bin1072.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/851813/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1072.fits evtable="EVENTS" outfile="/scratch/kocevski/851813/ft1_filtered_4FGL_J2324.7-4041_daily_bin1072.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851813/ft1_filtered_4FGL_J2324.7-4041_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/851813/ft2_4FGL_J2324.7-4041_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/851813/ltcube_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.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/851813/ft2_4FGL_J2324.7-4041_daily_bin1072.fits
.....................!
real 11.80
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851813/ft1_filtered_4FGL_J2324.7-4041_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/851813/ft2_4FGL_J2324.7-4041_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/851813/ltcube_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.fits outfile=/scratch/kocevski/851813/expmap_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.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/851813/ltcube_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.fits
.....................!
real 190.40
user 184.64
sys 5.05

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/851813/ft1_filtered_4FGL_J2324.7-4041_daily_bin1072.fits scfile=/scratch/kocevski/851813/ft2_4FGL_J2324.7-4041_daily_bin1072.fits outfile=/scratch/kocevski/851813/cmap_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851813/ft1_filtered_4FGL_J2324.7-4041_daily_bin1072.fits scfile=/scratch/kocevski/851813/ft2_4FGL_J2324.7-4041_daily_bin1072.fits outfile=/scratch/kocevski/851813/cmap_HighResolution_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.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.59
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851813/ft1_filtered_4FGL_J2324.7-4041_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/851813/ft2_4FGL_J2324.7-4041_daily_bin1072.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851813/Model_4FGL_J2324.7-4041_daily_bin1072.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/851813/ft1_filtered_4FGL_J2324.7-4041_daily_bin1072.fits.....................!
real 39.41
user 38.00
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851813/ft1_filtered_4FGL_J2324.7-4041_daily_bin1072.fits', '/scratch/kocevski/851813/ft2_4FGL_J2324.7-4041_daily_bin1072.fits', expMap='/scratch/kocevski/851813/expmap_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.fits', expCube='/scratch/kocevski/851813/ltcube_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851813/Model_4FGL_J2324.7-4041_daily_bin1072.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/851813/ft1_filtered_4FGL_J2324.7-4041_daily_bin1072.fits
Spacecraft file(s): /scratch/kocevski/851813/ft2_4FGL_J2324.7-4041_daily_bin1072.fits
Exposure map: /scratch/kocevski/851813/expmap_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.fits
Exposure cube: /scratch/kocevski/851813/ltcube_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851813/Model_4FGL_J2324.7-4041_daily_bin1072.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) = 5113.94532705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    91.350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8523       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.919       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8741       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.4148       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.535       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.489       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.034       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4054       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10903E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .19102       1.0000         .10000E-03   10000.    
    24 'norm      '    .12058E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .50327E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    45.349       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.7899       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.2512       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .90614       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .85223       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=   5113.943     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     5525 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    112.23        .15481E-04** at limit **
   2  Prefactor     .10000E-03    5.2503       -.23673E-05** at limit **
   3  Prefactor     91.351        46.060       -.11343E-06   -.42761E-04
   4  Prefactor     2.8526        2.6903        .24520E-07   -.31282E-04
   5  Prefactor     .10000E-03    9.6020        .47369E-06** at limit **
   6  Prefactor     12.920        8.8410        .50451E-07    .95654E-05
   7  Prefactor     .10000E-03    14.236       -.34006E-06** at limit **
   8  Prefactor     .10000E-03    6.9208       -.71641E-06** at limit **
   9  Prefactor     .10000E-03    10.987       -.28403E-06** at limit **
  10  Prefactor     .10000E-03    5.3050        .19684E-05** at limit **
  11  Prefactor     4.8770        25.578        .28970E-05    .18707E-03
  12  Prefactor     .10000E-03    11.257       -.45855E-06** at limit **
  13  Prefactor     .10000E-03    3.6380       -.43383E-07** at limit **
  14  norm          .10000E-03    4.4131        .14979E-06** at limit **
  15  norm          .10000E-03    2.5916        .40000E-07** at limit **
  16  norm          .10000E-03    1.8682       -.52826E-07** at limit **
  17  norm          7.4158        7.5010        .68011E-06    .45678E-03
  18  Prefactor     14.521        8.4245       -.76474E-06   -.15217E-03
  19  Prefactor     38.498        39.728       -.44646E-05   -.18410E-03
  20  Prefactor     19.041        46.816       -.49193E-05   -.37867E-04
  21  norm          2.4059        4.6665        .19243E-05    .39258E-03
  22  Prefactor     .10008E-03    23.839       -.11700E-04** at limit **
  23  norm          .19018        .86318        .48275E-06    .20644E-03
  24  norm          .10000E-03    2.6155        .42678E-07** at limit **
  25  Prefactor     .10000E-03    1.7146        .92226E-07** at limit **
  26  Prefactor     .10008E-03    47.513        .20726E-04** at limit **
  27  Prefactor     45.350        61.862       -.99784E-06   -.10617E-04
  28  Prefactor     5.7900        5.9443        .17821E-05    .14509E-02
  29  Prefactor     4.2494        4.0651        .67160E-06    .23425E-03
  30  Prefactor     .10000E-03    56.623        .26771E-05** at limit **
  31  Normalizat    .90617        .18443       -.12925E-05   -.34298E-03
  32  Prefactor     .85208        .19207        .10924E-05   -.20976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 91.3506
  Prefactor  = 2.85257
  Prefactor  = 0.0001
  Prefactor  = 12.9197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.87697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.41578
  Prefactor  = 14.5211
  Prefactor  = 38.4977
  Prefactor  = 19.041
  norm       = 2.40591
  Prefactor  = 0.000100079
  norm       = 0.190179
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100079
  Prefactor  = 45.3496
  Prefactor  = 5.79003
  Prefactor  = 4.24939
  Prefactor  = 0.0001
  Normalizat = 0.906168
  Prefactor  = 0.852078
 **********
 **   18 **HESSE 
 **********

 FCN=   5113.943     FROM HESSE     STATUS=OK           655 CALLS     6180 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2680        .16028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     91.351        46.122        .42044E-04   -1.3793    
   4  Prefactor     2.8526        2.6860        .10980E-03   -1.5370    
   5  Prefactor     .10000E-03    9.6034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.920        8.8580        .11144E-03   -1.4989    
   7  Prefactor     .10000E-03    14.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4518        .31968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8770        26.938        .91099E-03   -1.5266    
  12  Prefactor     .10000E-03    11.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.6407        .13320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.4212        .14672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.5942        .11240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8696        .95381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.4158        7.5868        .73644E-03   -1.5163    
  18  Prefactor     14.521        7.5938        .10506E-03   -1.4946    
  19  Prefactor     38.498        39.286        .64605E-04   -1.4466    
  20  Prefactor     19.041        46.791        .91804E-04   -1.4835    
  21  norm          2.4059        4.5897        .17340E-03   -1.5398    
  22  Prefactor     .10008E-03    61.884        .41901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .19018        1.3848        .11735E-02   -1.5621    
  24  norm          .10000E-03    9.4747        .21473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.7300        .91288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10008E-03    77.731        .50889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     45.350        61.892        .59537E-04   -1.4360    
  28  Prefactor     5.7900        6.7686        .83457E-03   -1.5227    
  29  Prefactor     4.2494        4.0671        .13476E-03   -1.5296    
  30  Prefactor     .10000E-03    56.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .90617        .22317        .22443E-03   -.96244    
  32  Prefactor     .85208        .23183        .25326E-03   -.97836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72577e-09
Minuit parameter uncertainties:
  1  0.00087372
  2  5.46245e-05
  3  46.1401
  4  2.68613
  5  7.82789e-06
  6  8.85892
  7  4.00272e-05
  8  2.56636e-05
  9  3.85355e-05
  10  3.60652e-05
  11  22.9397
  12  1.61621e-05
  13  1.17612e-06
  14  2.35089e-06
  15  3.04165e-06
  16  1.06248e-05
  17  7.58774
  18  7.59434
  19  39.3126
  20  46.8817
  21  4.59037
  22  0.00443881
  23  1.02614
  24  5.8242e-05
  25  6.23598e-06
  26  0.00496639
  27  61.9795
  28  6.76953
  29  4.06738
  30  0.000233546
  31  0.223398
  32  0.232099
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.062e-05  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:  8.521e-01  2.321e-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:  9.062e-01  2.234e-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: 2.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851813/likelihoodResults_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.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) = 5113.94520735
delta logL = -0.00240812916036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5113.94279923
delta logL = -5.97992766416e-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.6225       1.0000          .0000       5.0000    
     3 'Normalizat'    .90616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85207       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=   5113.943     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      218 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    4.7155        .95386E-03** at limit **
   2  alpha         1.6038        3.0930        .17972        .11226E-05
   3  Normalizat    .90617        .20624        .22444E-03   -.20768E-05
   4  Prefactor     .85208        .22756        .25326E-03   -.39503E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100016
  alpha      = 1.60378
  Normalizat = 0.90617
  Prefactor  = 0.852077
 **********
 **   18 **HESSE 
 **********

 FCN=   5113.943     FROM HESSE     STATUS=OK            23 CALLS      241 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1.8713        .19077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6038        2.9190        .71888E-02   -.36665    
   3  Normalizat    .90617        .20646        .89774E-05   -.96244    
   4  Prefactor     .85208        .22780        .10130E-04   -.97836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52219e-08
Minuit parameter uncertainties:
  1  0.000342467
  2  175.166
  3  0.206636
  4  0.228052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851813': 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) = 5113.94279921
delta logL = 1.16488081403e-08

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.425e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.604e+00  1.752e+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:  8.521e-01  2.281e-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:  9.062e-01  2.066e-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/851813/cmap_HighResolution_517190401_517449601_4FGL_J2324.7-4041_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-05', job_status='DONE', photon_flux_upper_limit='2.44e-08', time_completed='2021-09-29 17:02:07.659952', job_id='851813', GAL2='0.85', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632960127.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1072' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 851813: <4FGL_J2324.7-4041_daily_bin1072> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1072> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:48 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:50 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:45:50 2021
Terminated at Wed Sep 29 17:02:08 2021
Results reported at Wed Sep 29 17:02:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1072 351.182 -40.6834 517190401 517449601 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 :                                   881.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            980 sec.

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

