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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1449
RA = 351.182, Dec = -40.6834
tmin = 614908801, tmax = 615168001
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='854581', job_status='RUN', time_executed='2021-09-29 16:56:49.934415', time_epoch_executed='1632959809.93' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854581/ft1_4FGL_J2324.7-4041_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854581/ft2_4FGL_J2324.7-4041_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854581/ft1_4FGL_J2324.7-4041_daily_bin1449.fits outfile=/scratch/kocevski/854581/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1449.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=614908801.0 tmax=615168001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.56
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854581/ft2_4FGL_J2324.7-4041_daily_bin1449.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/854581/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1449.fits evtable="EVENTS" outfile="/scratch/kocevski/854581/ft1_filtered_4FGL_J2324.7-4041_daily_bin1449.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.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854581/ft1_filtered_4FGL_J2324.7-4041_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/854581/ft2_4FGL_J2324.7-4041_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/854581/ltcube_614908801_615168001_4FGL_J2324.7-4041_daily_bin1449.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/854581/ft2_4FGL_J2324.7-4041_daily_bin1449.fits
.....................!
real 13.31
user 12.20
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854581/ft1_filtered_4FGL_J2324.7-4041_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/854581/ft2_4FGL_J2324.7-4041_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/854581/ltcube_614908801_615168001_4FGL_J2324.7-4041_daily_bin1449.fits outfile=/scratch/kocevski/854581/expmap_614908801_615168001_4FGL_J2324.7-4041_daily_bin1449.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/854581/ltcube_614908801_615168001_4FGL_J2324.7-4041_daily_bin1449.fits
.....................!
real 191.93
user 186.12
sys 5.43

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/854581/ft1_filtered_4FGL_J2324.7-4041_daily_bin1449.fits scfile=/scratch/kocevski/854581/ft2_4FGL_J2324.7-4041_daily_bin1449.fits outfile=/scratch/kocevski/854581/cmap_614908801_615168001_4FGL_J2324.7-4041_daily_bin1449.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854581/ft1_filtered_4FGL_J2324.7-4041_daily_bin1449.fits scfile=/scratch/kocevski/854581/ft2_4FGL_J2324.7-4041_daily_bin1449.fits outfile=/scratch/kocevski/854581/cmap_HighResolution_614908801_615168001_4FGL_J2324.7-4041_daily_bin1449.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854581/ft1_filtered_4FGL_J2324.7-4041_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/854581/ft2_4FGL_J2324.7-4041_daily_bin1449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854581/Model_4FGL_J2324.7-4041_daily_bin1449.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/854581/ft1_filtered_4FGL_J2324.7-4041_daily_bin1449.fits.....................!
real 38.70
user 37.33
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.478       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.234       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8495       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11720E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.199       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2088       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.722       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.623       1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1355       1.0000         .10000E-03   10000.    
    17 'norm      '    .22927E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4077       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5061       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.133       1.0000         .10000E-03   10000.    
    21 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.491       1.0000         .10000E-03   10000.    
    23 'norm      '    .13053E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.4016       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11741E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3500       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .47683       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=   4788.897     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     5024 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.817        .28081E-06** at limit **
   2  Prefactor     11.479        24.397        .25985E-06   -.31024E-04
   3  Prefactor     50.226        31.924        .31885E-06    .49996E-04
   4  Prefactor     1.8502        4.6522        .12369E-05    .49282E-03
   5  Prefactor     .10000E-03    21.851       -.68789E-07** at limit **
   6  Prefactor     .10000E-03    3.0500       -.54365E-07** at limit **
   7  Prefactor     .10000E-03    15.179       -.47299E-07** at limit **
   8  Prefactor     .11999E-03    50.360       -.87527E-05** at limit **
   9  Prefactor     33.201        15.081        .12452E-06    .11039E-03
  10  Prefactor     1.2079        7.2181        .38296E-05    .59799E-03
  11  Prefactor     .10000E-03    10.510        .16893E-07** at limit **
  12  Prefactor     56.715        72.398        .33847E-06    .25037E-04
  13  Prefactor     .10000E-03    11.272       -.10176E-06** at limit **
  14  norm          20.624        13.525       -.83255E-08   -.20410E-05
  15  norm          .10000E-03    2.3146       -.80584E-07** at limit **
  16  norm          3.1355        3.4008       -.24822E-07   -.35787E-04
  17  norm          .10001E-03    6.3352       -.86588E-06** at limit **
  18  Prefactor     9.4099        9.2047       -.32409E-06   -.48805E-04
  19  Prefactor     4.4475        75.505        .29694E-05    .65683E-04
  20  Prefactor     16.148        32.494       -.18549E-06   -.89221E-04
  21  norm          .10000E-03    1.9007        .13127E-05** at limit **
  22  Prefactor     16.482        22.424        .95157E-06    .13064E-03
  23  norm          .10000E-03    .78819        .28177E-07** at limit **
  24  norm          .10000E-03    1.4369        .78158E-06** at limit **
  25  Prefactor     5.4020        4.4479        .88553E-07   -.56942E-05
  26  Prefactor     .10000E-03    15.763       -.28529E-06** at limit **
  27  Prefactor     .10000E-03    52.487       -.24002E-06** at limit **
  28  Prefactor     .10000E-03    2.7572       -.91108E-07** at limit **
  29  Prefactor     .10000E-03    2.9124       -.31728E-07** at limit **
  30  Prefactor     .10000E-03    26.429       -.53573E-08** at limit **
  31  Normalizat    1.3497        .21309       -.28358E-05    .43412E-03
  32  Prefactor     .47716        .21328        .37893E-05    .29722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.4789
  Prefactor  = 50.2256
  Prefactor  = 1.85022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000119988
  Prefactor  = 33.2006
  Prefactor  = 1.2079
  Prefactor  = 0.0001
  Prefactor  = 56.7147
  Prefactor  = 0.0001
  norm       = 20.6238
  norm       = 0.0001
  norm       = 3.13548
  norm       = 0.000100006
  Prefactor  = 9.40994
  Prefactor  = 4.44748
  Prefactor  = 16.1478
  norm       = 0.000100001
  Prefactor  = 16.4823
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.34968
  Prefactor  = 0.477161
 **********
 **   18 **HESSE 
 **********

 FCN=   4788.897     FROM HESSE     STATUS=OK           661 CALLS     5685 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.479        24.363        .11825E-03   -1.5030    
   3  Prefactor     50.226        31.933        .56582E-04   -1.4289    
   4  Prefactor     1.8502        4.6289        .22199E-03   -1.5436    
   5  Prefactor     .10000E-03    21.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0572        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11999E-03    30.412        .95702E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.201        15.078        .69546E-04   -1.4555    
  10  Prefactor     1.2079        7.4762        .36108E-03   -1.5488    
  11  Prefactor     .10000E-03    10.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     56.715        72.422        .53265E-04   -1.4200    
  13  Prefactor     .10000E-03    11.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.624        13.523        .88198E-04   -1.4799    
  15  norm          .10000E-03    2.3165        .10280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1355        3.4011        .12898E-03   -1.5354    
  17  norm          .10001E-03    26.698        .32857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.4099        9.2821        .13066E-03   -1.5094    
  19  Prefactor     4.4475        74.833        .18966E-03   -1.5286    
  20  Prefactor     16.148        32.520        .99715E-04   -1.4904    
  21  norm          .10000E-03    1.9265        .93270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.482        22.634        .98628E-04   -1.4896    
  23  norm          .10000E-03    1.8631        .11737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4459        .81100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.4020        4.4234        .12583E-03   -1.5243    
  26  Prefactor     .10000E-03    15.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    52.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.7716        .11217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.9423        .11508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    26.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3497        .23353        .19801E-03   -.82095    
  32  Prefactor     .47716        .23024        .33537E-03   -1.1304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5496e-09
Minuit parameter uncertainties:
  1  0.000103932
  2  24.3841
  3  31.944
  4  4.62977
  5  8.20146e-06
  6  4.26915e-06
  7  2.39845e-05
  8  0.0493358
  9  15.08
  10  6.01101
  11  7.65455e-06
  12  72.5344
  13  1.90991e-05
  14  13.5249
  15  4.38584e-06
  16  3.40135
  17  0.000827095
  18  9.28349
  19  36.5401
  20  32.5561
  21  6.45775e-05
  22  22.6457
  23  4.69433e-06
  24  3.3508e-05
  25  4.42367
  26  0.000116186
  27  8.29896e-05
  28  2.64866e-06
  29  1.91362e-07
  30  3.51679e-05
  31  0.233718
  32  0.23069
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.135e+00  3.401e+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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  4.772e-01  2.307e-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.350e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 7.69e-09 +/- 8.34e-09
Energy Flux (Fixed Index): 1.66e-05 +/- 1.80e-05

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

Saving results to:
/scratch/kocevski/854581/likelihoodResults_614908801_615168001_4FGL_J2324.7-4041_daily_bin1449.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) = 4788.87870947
delta logL = 0.0180645036626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4788.87635063
delta logL = 0.0204233469995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8987       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8140       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47726       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=   4788.876     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8987        89.968        .59667E-02    .11528E-02
   2  alpha         1.8140        2.8008        .43304        .45459E-04
   3  Normalizat    1.3481        .78830E-01    .31996E-01   -.38104E-06
   4  Prefactor     .47724        .67543E-01    .75717E-01    .27557E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89874
  alpha      = 1.81403
  Normalizat = 1.34807
  Prefactor  = 0.47724
 **********
 **   18 **HESSE 
 **********

 FCN=   4788.876     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8987        3.5300        .12177E-03   -1.5367    
   2  alpha         1.8140        .94723        .14828E-01   -.27795    
   3  Normalizat    1.3481        .21422        .19811E-03   -.82143    
   4  Prefactor     .47724        .22608        .33531E-03   -1.1303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04159e-10
Minuit parameter uncertainties:
  1  3.53021
  2  0.973633
  3  0.214364
  4  0.226504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854581': 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) = 4788.87635061
delta logL = 0.0204233676031

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.899e+00  3.530e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.814e+00  9.736e-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:  4.772e-01  2.265e-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.348e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.81 +/- 0.97
Photon Flux (Free Index): 9.85e-09 +/- 1.59e-08
Energy Flux (Free Index): 1.30e-05 +/- 2.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/854581/cmap_HighResolution_614908801_615168001_4FGL_J2324.7-4041_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-05', comment='SUCCESS', photon_flux='7.69e-09', energy_flux2='1.30e-05', photon_flux_error='8.34e-09', dlogl='2.04e-02', energy_flux='1.66e-05', photon_flux2='9.85e-09', job_status='DONE', time_completed='2021-09-29 17:11:22.191150', photon_index_error2='0.97', photon_index2='1.81', ts='2.95', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='3.66e-08', energy_flux_error2='2.07e-05', EG='1.35', time_epoch_completed='1632960682.19', return_code='0', job_id='854581', GAL2='0.48', EG2='1.35', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='1.59e-08', ts2='2.99', photon_index='1.62' WHERE bin_id='1449' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:11:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 854581: <4FGL_J2324.7-4041_daily_bin1449> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1449> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:55:13 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:55:14 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:14 2021
Terminated at Wed Sep 29 17:11:22 2021
Results reported at Wed Sep 29 17:11:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1449 351.182 -40.6834 614908801 615168001 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 :                                   815.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            969 sec.

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

