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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1100
RA = 351.182, Dec = -40.6834
tmin = 524448001, tmax = 524707201
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='851859', job_status='RUN', time_executed='2021-09-29 16:46:21.495071', time_epoch_executed='1632959181.5' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1100'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851859

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851859/ft1_4FGL_J2324.7-4041_daily_bin1100.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851859/ft2_4FGL_J2324.7-4041_daily_bin1100.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851859/ft1_4FGL_J2324.7-4041_daily_bin1100.fits outfile=/scratch/kocevski/851859/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1100.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=524448001.0 tmax=524707201.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.39
user 3.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851859/ft1_filtered_4FGL_J2324.7-4041_daily_bin1100.fits" evtable="EVENTS" scfile=/scratch/kocevski/851859/ft2_4FGL_J2324.7-4041_daily_bin1100.fits sctable="SC_DATA" outfile=/scratch/kocevski/851859/ltcube_524448001_524707201_4FGL_J2324.7-4041_daily_bin1100.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/851859/ft2_4FGL_J2324.7-4041_daily_bin1100.fits
.....................!
real 12.07
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851859/ft1_filtered_4FGL_J2324.7-4041_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/851859/ft2_4FGL_J2324.7-4041_daily_bin1100.fits sctable="SC_DATA" expcube=/scratch/kocevski/851859/ltcube_524448001_524707201_4FGL_J2324.7-4041_daily_bin1100.fits outfile=/scratch/kocevski/851859/expmap_524448001_524707201_4FGL_J2324.7-4041_daily_bin1100.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/851859/ltcube_524448001_524707201_4FGL_J2324.7-4041_daily_bin1100.fits
.....................!
real 190.70
user 184.39
sys 6.00

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/851859/ft1_filtered_4FGL_J2324.7-4041_daily_bin1100.fits scfile=/scratch/kocevski/851859/ft2_4FGL_J2324.7-4041_daily_bin1100.fits outfile=/scratch/kocevski/851859/cmap_524448001_524707201_4FGL_J2324.7-4041_daily_bin1100.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851859/ft1_filtered_4FGL_J2324.7-4041_daily_bin1100.fits scfile=/scratch/kocevski/851859/ft2_4FGL_J2324.7-4041_daily_bin1100.fits outfile=/scratch/kocevski/851859/cmap_HighResolution_524448001_524707201_4FGL_J2324.7-4041_daily_bin1100.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/851859/ft1_filtered_4FGL_J2324.7-4041_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/851859/ft2_4FGL_J2324.7-4041_daily_bin1100.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851859/Model_4FGL_J2324.7-4041_daily_bin1100.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/851859/ft1_filtered_4FGL_J2324.7-4041_daily_bin1100.fits.....................!
real 43.75
user 42.49
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99351E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.380       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14649E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.567       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.864       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.427       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4092       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.484       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6507       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41298       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2660       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.7588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1972       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.489       1.0000         .10000E-03   10000.    
    21 'norm      '    7.5494       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .92530       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3747       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.9761       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.6678       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2885       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .32398       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=   5666.233     FROM MIGRAD    STATUS=CONVERGED   1557 CALLS     5117 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    35.673        .12947    ** at limit **
   2  Prefactor     17.393        22.826        .96071E-04    .11088E-03
   3  Prefactor     .10000E-03    52.802        .50376E-02** at limit **
   4  Prefactor     6.5365        4.1423        .11392E-03   -.32834E-04
   5  Prefactor     22.556        38.100        .84318E-04   -.76611E-04
   6  Prefactor     15.870        8.5634        .10056E-03    .22272E-04
   7  Prefactor     .10000E-03    111.45        .53650E-02** at limit **
   8  Prefactor     .10000E-03    11.301        .18142E-02** at limit **
   9  Prefactor     11.432        9.8356        .11851E-03   -.44703E-04
  10  Prefactor     1.4126        5.1683        .15669E-02    .67913E-03
  11  Prefactor     21.483        40.316        .86415E-04   -.32758E-04
  12  Prefactor     3.6781        114.43        .21142E-03    .43878E-04
  13  Prefactor     .41338        21.300        .35831E-02    .19255E-03
  14  norm          6.2658        6.4286        .80181E-03   -.20223E-03
  15  norm          .10000E-03    1.5107        .90350E-03** at limit **
  16  norm          .10000E-03    2.6615        .11929E-02** at limit **
  17  norm          5.7623        6.3129        .16737E-03   -.92243E-04
  18  Prefactor     2.1976        3.1049        .15329E-03   -.24081E-03
  19  Prefactor     .10001E-03    51.621        .18142E-02** at limit **
  20  Prefactor     16.493        32.416        .98633E-04   -.35155E-04
  21  norm          7.5510        3.8753        .50707E-03   -.14017E-03
  22  Prefactor     .10001E-03    21.938        .36285E-03** at limit **
  23  norm          .92585        .81801        .63123E-03    .24602E-03
  24  norm          .10000E-03    1.0464        .75003E-03** at limit **
  25  Prefactor     2.3750        2.5192        .11873E-03    .60077E-03
  26  Prefactor     .10000E-03    37.260        .18142E-02** at limit **
  27  Prefactor     .10000E-03    20.587        .18142E-02** at limit **
  28  Prefactor     3.9792        4.0276        .14606E-03   -.42964E-03
  29  Prefactor     1.6707        3.6220        .19179E-03    .16183E-03
  30  Prefactor     .10000E-03    28.809        .18142E-02** at limit **
  31  Normalizat    1.2881        .19306        .18220E-03    .11427E-02
  32  Prefactor     .32415        .19372        .36693E-03    .45633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100056
  Prefactor  = 17.3928
  Prefactor  = 0.000100002
  Prefactor  = 6.53651
  Prefactor  = 22.556
  Prefactor  = 15.87
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4317
  Prefactor  = 1.41258
  Prefactor  = 21.4834
  Prefactor  = 3.67809
  Prefactor  = 0.413376
  norm       = 6.26584
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.76227
  Prefactor  = 2.19765
  Prefactor  = 0.000100006
  Prefactor  = 16.4928
  norm       = 7.55097
  Prefactor  = 0.000100005
  norm       = 0.925849
  norm       = 0.0001
  Prefactor  = 2.37503
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 3.97918
  Prefactor  = 1.67066
  Prefactor  = 0.0001
  Normalizat = 1.28811
  Prefactor  = 0.32415
 **********
 **   18 **HESSE 
 **********

 FCN=   5666.233     FROM HESSE     STATUS=OK           639 CALLS     5756 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    34.850        .13173       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.393        22.818        .38428E-05   -1.4874    
   3  Prefactor     .10000E-03    53.848        .10075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5365        4.1419        .45566E-05   -1.5197    
   5  Prefactor     22.556        38.092        .16864E-04   -1.4758    
   6  Prefactor     15.870        8.5634        .40223E-05   -1.4911    
   7  Prefactor     .10000E-03    116.13        .21460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.302        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.432        9.8350        .47404E-05   -1.5032    
  10  Prefactor     1.4126        5.1616        .62674E-04   -1.5470    
  11  Prefactor     21.483        40.328        .34566E-05   -1.4781    
  12  Prefactor     3.6781        114.40        .84569E-05   -1.5324    
  13  Prefactor     .41338        21.404        .14332E-03   -1.5579    
  14  norm          6.2658        6.4286        .32072E-04   -1.5207    
  15  norm          .10000E-03    1.5107        .18070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6619        .23858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.7623        6.3124        .66948E-05   -1.5228    
  18  Prefactor     2.1976        3.1047        .61316E-05   -1.5411    
  19  Prefactor     .10001E-03    51.633        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.493        32.407        .39453E-05   -1.4896    
  21  norm          7.5510        3.8745        .20283E-04   -1.5158    
  22  Prefactor     .10001E-03    21.939        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .92585        .81684        .25249E-04   -1.5516    
  24  norm          .10000E-03    1.0465        .15001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.3750        2.5189        .47490E-05   -1.5400    
  26  Prefactor     .10000E-03    37.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.9792        4.0273        .58426E-05   -1.5309    
  29  Prefactor     1.6707        3.6205        .76714E-05   -1.5449    
  30  Prefactor     .10000E-03    28.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2881        .19299        .36439E-04   -.83922    
  32  Prefactor     .32415        .19367        .14677E-04   -1.2087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85787e-09
Minuit parameter uncertainties:
  1  0.00280518
  2  22.8297
  3  0.000680116
  4  4.14206
  5  38.1332
  6  8.56408
  7  8.38163e-05
  8  4.853e-05
  9  9.83638
  10  5.16318
  11  40.379
  12  41.1104
  13  5.95059
  14  6.42935
  15  4.16225e-06
  16  6.24199e-05
  17  6.31315
  18  3.10493
  19  0.00107452
  20  32.4419
  21  3.8746
  22  0.00068065
  23  0.816848
  24  1.44464e-05
  25  2.51903
  26  0.000324098
  27  0.000263351
  28  4.02757
  29  3.62096
  30  0.00021368
  31  0.193097
  32  0.194053
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.242e-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:  3.241e-01  1.941e-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.288e+00  1.931e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851859/likelihoodResults_524448001_524707201_4FGL_J2324.7-4041_daily_bin1100.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) = 5666.23453392
delta logL = -0.00176567731614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5666.23276926
delta logL = -1.01413570519e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10899E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .32411       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=   5666.233     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 32.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    2.8848        .30171E-05** at limit **
   2  alpha         1.6846        3.3165        .92465E-04   -.53941E-04
   3  Normalizat    1.2881        .16955        .17429E-06   -.35481E-04
   4  Prefactor     .32415        .18071       -.47264E-06    .55754E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100009
  alpha      = 1.68457
  Normalizat = 1.2881
  Prefactor  = 0.324152
 **********
 **   18 **HESSE 
 **********

 FCN=   5666.233     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    2.9848        .12364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6846        3.3126        .50000       -.33225    
   3  Normalizat    1.2881        .17855        .18220E-03   -.83922    
   4  Prefactor     .32415        .18985        .36692E-03   -1.2087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17257e-09
Minuit parameter uncertainties:
  1  0.00033177
  2  2.41121
  3  0.178634
  4  0.190214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851859': 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) = 5666.23276688
delta logL = 1.36937978823e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.318e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.685e+00  2.411e+00  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:  3.242e-01  1.902e-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.288e+00  1.786e-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/851859/cmap_HighResolution_524448001_524707201_4FGL_J2324.7-4041_daily_bin1100.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-05', job_status='DONE', photon_flux_upper_limit='2.56e-08', time_completed='2021-09-29 17:01:46.939220', job_id='851859', GAL2='0.32', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632960106.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.32', dlogl='1.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1100' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 851859: <4FGL_J2324.7-4041_daily_bin1100> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1100> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:52 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:53 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:53 2021
Terminated at Wed Sep 29 17:01:47 2021
Results reported at Wed Sep 29 17:01:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1100 351.182 -40.6834 524448001 524707201 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 :                                   907.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            955 sec.

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

