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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin138
RA = 351.182, Dec = -40.6834
tmin = 275097601, tmax = 275356801
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='845109', job_status='RUN', time_executed='2021-09-29 16:33:05.414011', time_epoch_executed='1632958385.41' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845109/ft1_4FGL_J2324.7-4041_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845109/ft2_4FGL_J2324.7-4041_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845109/ft1_4FGL_J2324.7-4041_daily_bin138.fits outfile=/scratch/kocevski/845109/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin138.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=275097601.0 tmax=275356801.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.95
user 4.66
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845109/ft1_filtered_4FGL_J2324.7-4041_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/845109/ft2_4FGL_J2324.7-4041_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/845109/ltcube_275097601_275356801_4FGL_J2324.7-4041_daily_bin138.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/845109/ft2_4FGL_J2324.7-4041_daily_bin138.fits
.....................!
real 11.49
user 11.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845109/ft1_filtered_4FGL_J2324.7-4041_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/845109/ft2_4FGL_J2324.7-4041_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/845109/ltcube_275097601_275356801_4FGL_J2324.7-4041_daily_bin138.fits outfile=/scratch/kocevski/845109/expmap_275097601_275356801_4FGL_J2324.7-4041_daily_bin138.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/845109/ltcube_275097601_275356801_4FGL_J2324.7-4041_daily_bin138.fits
.....................!
real 189.76
user 185.12
sys 4.31

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/845109/ft1_filtered_4FGL_J2324.7-4041_daily_bin138.fits scfile=/scratch/kocevski/845109/ft2_4FGL_J2324.7-4041_daily_bin138.fits outfile=/scratch/kocevski/845109/cmap_275097601_275356801_4FGL_J2324.7-4041_daily_bin138.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845109/ft1_filtered_4FGL_J2324.7-4041_daily_bin138.fits scfile=/scratch/kocevski/845109/ft2_4FGL_J2324.7-4041_daily_bin138.fits outfile=/scratch/kocevski/845109/cmap_HighResolution_275097601_275356801_4FGL_J2324.7-4041_daily_bin138.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/845109/ft1_filtered_4FGL_J2324.7-4041_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/845109/ft2_4FGL_J2324.7-4041_daily_bin138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845109/Model_4FGL_J2324.7-4041_daily_bin138.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/845109/ft1_filtered_4FGL_J2324.7-4041_daily_bin138.fits.....................!
real 31.99
user 30.75
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.371       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3289       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4384       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1297       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9364       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.349       1.0000         .10000E-03   10000.    
    14 'norm      '    15.744       1.0000         .10000E-03   10000.    
    15 'norm      '    .35733       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.3227       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    137.95       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.921       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0372       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.9435       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.0629       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .49527E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .88682       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92638       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=   3438.748     FROM MIGRAD    STATUS=CONVERGED    850 CALLS     5041 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    350.64        .14258E-05** at limit **
   2  Prefactor     .10000E-03    14.610        .10940E-06** at limit **
   3  Prefactor     42.379        51.411        .12500E-05    .45038E-04
   4  Prefactor     5.3287        5.8446       -.29827E-07   -.58887E-05
   5  Prefactor     .10000E-03    22.645       -.21234E-06** at limit **
   6  Prefactor     9.4399        12.730        .99888E-07   -.11451E-04
   7  Prefactor     .10000E-03    12.462        .99172E-07** at limit **
   8  Prefactor     .10000E-03    18.339       -.80029E-08** at limit **
   9  Prefactor     4.1312        24.196        .72440E-06   -.18549E-04
  10  Prefactor     4.9362        11.362        .41999E-05   -.65947E-03
  11  Prefactor     .10001E-03    50.758       -.54293E-05** at limit **
  12  Prefactor     .10000E-03    63.351       -.38931E-06** at limit **
  13  Prefactor     17.344        19.666        .30787E-06    .59453E-04
  14  norm          15.743        14.112        .22474E-07    .14934E-05
  15  norm          .35913        11.149       -.31184E-06    .34872E-04
  16  norm          .10000E-03    3.5944       -.10466E-07** at limit **
  17  norm          5.3227        9.5720        .26641E-06   -.32475E-04
  18  Prefactor     .10000E-03    12.990       -.11376E-06** at limit **
  19  Prefactor     137.93        60.875       -.11450E-05   -.17351E-03
  20  Prefactor     .10000E-03    64.689        .28325E-05** at limit **
  21  norm          .10000E-03    5.8906       -.75647E-07** at limit **
  22  Prefactor     11.922        15.629        .57982E-07    .25659E-04
  23  norm          3.0372        1.8667       -.85460E-07    .73812E-04
  24  norm          .10000E-03    2.2816       -.14213E-07** at limit **
  25  Prefactor     7.9433        6.4689        .26957E-06    .35460E-03
  26  Prefactor     4.0662        24.860        .53046E-05   -.25218E-03
  27  Prefactor     .10101E-03    1272.7       -.73463E-04** at limit **
  28  Prefactor     .10000E-03    3.0246        .31453E-07** at limit **
  29  Prefactor     .10000E-03    3.1035        .30863E-07** at limit **
  30  Prefactor     .10000E-03    45.919        .35415E-05** at limit **
  31  Normalizat    .88677        .24423       -.73728E-06    .90822E-04
  32  Prefactor     .92637        .25009       -.87891E-06    .10098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.3791
  Prefactor  = 5.32867
  Prefactor  = 0.0001
  Prefactor  = 9.43993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.13119
  Prefactor  = 4.93624
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 17.3442
  norm       = 15.7433
  norm       = 0.359132
  norm       = 0.0001
  norm       = 5.32269
  Prefactor  = 0.0001
  Prefactor  = 137.933
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 11.9217
  norm       = 3.03721
  norm       = 0.0001
  Prefactor  = 7.94334
  Prefactor  = 4.06623
  Prefactor  = 0.000101014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.88677
  Prefactor  = 0.926367
 **********
 **   18 **HESSE 
 **********

 FCN=   3438.748     FROM HESSE     STATUS=OK           655 CALLS     5696 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    353.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.379        51.482        .61585E-04   -1.4405    
   4  Prefactor     5.3287        5.8370        .14019E-03   -1.5246    
   5  Prefactor     .10000E-03    22.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4399        12.731        .13045E-03   -1.5093    
   7  Prefactor     .10000E-03    12.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1312        24.403        .19836E-03   -1.5301    
  10  Prefactor     4.9362        12.317        .90510E-03   -1.5264    
  11  Prefactor     .10001E-03    51.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    63.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.344        19.615        .96157E-04   -1.4875    
  14  norm          15.743        14.114        .10094E-03   -1.4914    
  15  norm          .35913        48.851        .36293E-02   -1.5588    
  16  norm          .10000E-03    3.6013        .10855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.3227        9.5683        .17420E-03   -1.5247    
  18  Prefactor     .10000E-03    13.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     137.93        61.419        .34294E-04   -1.3354    
  20  Prefactor     .10000E-03    65.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.9343        .13837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.922        15.452        .11602E-03   -1.5017    
  23  norm          3.0372        1.8491        .56343E-04   -1.5359    
  24  norm          .10000E-03    2.2863        .86442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.9433        6.5214        .12183E-03   -1.5144    
  26  Prefactor     4.0662        27.337        .10002E-02   -1.5305    
  27  Prefactor     .10101E-03    1420.5        .42324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.0377        .99589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.1377        .10084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    46.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .88677        .28801        .24961E-03   -.96927    
  32  Prefactor     .92637        .29349        .26347E-03   -.95226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56078e-09
Minuit parameter uncertainties:
  1  0.00077422
  2  8.39129e-06
  3  51.5365
  4  5.83762
  5  3.69833e-05
  6  12.7345
  7  1.23398e-05
  8  2.39795e-06
  9  20.0932
  10  12.3238
  11  0.0013392
  12  0.000101165
  13  19.622
  14  14.117
  15  8.38288
  16  6.98661e-06
  17  9.57101
  18  6.32481e-06
  19  61.4475
  20  0.000798792
  21  4.28361e-05
  22  15.4572
  23  1.84909
  24  6.95677e-06
  25  6.52196
  26  21.1001
  27  0.0778116
  28  3.55235e-06
  29  2.33516e-07
  30  0.000857844
  31  0.288513
  32  0.293997
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.987e-06  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:  9.264e-01  2.940e-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:  8.868e-01  2.885e-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: 4.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/845109/likelihoodResults_275097601_275356801_4FGL_J2324.7-4041_daily_bin138.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) = 3438.7492555
delta logL = -0.00129313405023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3438.74693307
delta logL = 0.00102929771128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36273E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0919       1.0000          .0000       5.0000    
     3 'Normalizat'    .88528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92653       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.

 FCN=   3438.747     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      290 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36045E-01    2.0687        .26674E-01    .16876E-02
   2  alpha         3.0912        4.0451        .42713       -.30298E-04
   3  Normalizat    .88527        .11171E-01    .44713E-01   -.40011E-04
   4  Prefactor     .92655        .12095E-01    .45342E-01   -.30240E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0360452
  alpha      = 3.0912
  Normalizat = 0.885275
  Prefactor  = 0.926546
 **********
 **   18 **HESSE 
 **********

 FCN=   3438.747     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      325 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36045E-01    789.44        .81518E-03   -1.5670    
   2  alpha         3.0912        3.3467        .50470E-01    .23874    
   3  Normalizat    .88527        .15856        .24976E-03   -.96980    
   4  Prefactor     .92655        .16378        .26342E-03   -.95220    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.35516e-06
Minuit parameter uncertainties:
  1  10.7993
  2  58.8298
  3  0.158645
  4  0.163869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845109': 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) = 3438.74693299
delta logL = 0.00102937376687

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.605e-02  1.080e+01  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  3.091e+00  5.883e+01  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:  9.265e-01  1.639e-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:  8.853e-01  1.586e-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/845109/cmap_HighResolution_275097601_275356801_4FGL_J2324.7-4041_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-05', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2021-09-29 16:44:23.657504', job_id='845109', GAL2='0.93', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632959063.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.03e-03', ts2='0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='138' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:44:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 845109: <4FGL_J2324.7-4041_daily_bin138> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin138> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:30:26 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:30:27 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:30:27 2021
Terminated at Wed Sep 29 16:44:24 2021
Results reported at Wed Sep 29 16:44:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin138 351.182 -40.6834 275097601 275356801 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 :                                   677.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

