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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1360
RA = 351.182, Dec = -40.6834
tmin = 591840001, tmax = 592099201
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='853335', job_status='RUN', time_executed='2021-09-29 16:52:22.033239', time_epoch_executed='1632959542.03' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853335

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853335/ft1_4FGL_J2324.7-4041_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853335/ft2_4FGL_J2324.7-4041_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853335/ft1_4FGL_J2324.7-4041_daily_bin1360.fits outfile=/scratch/kocevski/853335/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1360.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=591840001.0 tmax=592099201.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 5.23
user 4.96
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853335/ft2_4FGL_J2324.7-4041_daily_bin1360.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/853335/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1360.fits evtable="EVENTS" outfile="/scratch/kocevski/853335/ft1_filtered_4FGL_J2324.7-4041_daily_bin1360.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.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853335/ft1_filtered_4FGL_J2324.7-4041_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/853335/ft2_4FGL_J2324.7-4041_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/853335/ltcube_591840001_592099201_4FGL_J2324.7-4041_daily_bin1360.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/853335/ft2_4FGL_J2324.7-4041_daily_bin1360.fits
.....................!
real 11.77
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853335/ft1_filtered_4FGL_J2324.7-4041_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/853335/ft2_4FGL_J2324.7-4041_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/853335/ltcube_591840001_592099201_4FGL_J2324.7-4041_daily_bin1360.fits outfile=/scratch/kocevski/853335/expmap_591840001_592099201_4FGL_J2324.7-4041_daily_bin1360.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/853335/ltcube_591840001_592099201_4FGL_J2324.7-4041_daily_bin1360.fits
.....................!
real 191.50
user 187.22
sys 3.96

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/853335/ft1_filtered_4FGL_J2324.7-4041_daily_bin1360.fits scfile=/scratch/kocevski/853335/ft2_4FGL_J2324.7-4041_daily_bin1360.fits outfile=/scratch/kocevski/853335/cmap_591840001_592099201_4FGL_J2324.7-4041_daily_bin1360.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853335/ft1_filtered_4FGL_J2324.7-4041_daily_bin1360.fits scfile=/scratch/kocevski/853335/ft2_4FGL_J2324.7-4041_daily_bin1360.fits outfile=/scratch/kocevski/853335/cmap_HighResolution_591840001_592099201_4FGL_J2324.7-4041_daily_bin1360.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853335/ft1_filtered_4FGL_J2324.7-4041_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/853335/ft2_4FGL_J2324.7-4041_daily_bin1360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853335/Model_4FGL_J2324.7-4041_daily_bin1360.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/853335/ft1_filtered_4FGL_J2324.7-4041_daily_bin1360.fits.....................!
real 33.27
user 32.04
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37192E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.045       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.617       1.0000         .10000E-03   10000.    
     8 'Prefactor '    73.427       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14337E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4821       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.352       1.0000         .10000E-03   10000.    
    14 'norm      '    .34929E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3719       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1032       1.0000         .10000E-03   10000.    
    17 'norm      '    .21796E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.416       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7056       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .97018       1.0000         .10000E-03   10000.    
    24 'norm      '    2.4678       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.2519       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    85.133       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12306E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2023       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .70474       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=   3714.265     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     4366 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.038       -.63656E-06** at limit **
   2  Prefactor     .10000E-03    15.804       -.52433E-08** at limit **
   3  Prefactor     .10000E-03    7.9485       -.11163E-07** at limit **
   4  Prefactor     .10048E-03    3.4523        .81387E-06** at limit **
   5  Prefactor     36.041        49.604       -.15734E-06   -.54800E-04
   6  Prefactor     .10000E-03    4.8214        .51115E-08** at limit **
   7  Prefactor     29.613        29.813        .21939E-06   -.69742E-05
   8  Prefactor     73.426        43.163        .74617E-07   -.32651E-04
   9  Prefactor     .10003E-03    73.419        .48666E-05** at limit **
  10  Prefactor     5.4822        11.011        .43929E-06    .29881E-04
  11  Prefactor     .10000E-03    26.899        .44279E-06** at limit **
  12  Prefactor     .10000E-03    25.217       -.98796E-06** at limit **
  13  Prefactor     13.353        20.584        .10883E-05    .13970E-03
  14  norm          .10096E-03    19.360       -.35129E-05** at limit **
  15  norm          3.3713        7.0443       -.63380E-06    .43600E-04
  16  norm          7.1030        6.5689        .30495E-07    .94392E-04
  17  norm          .10016E-03    12.277       -.29738E-05** at limit **
  18  Prefactor     11.416        8.0497       -.69135E-07    .30887E-03
  19  Prefactor     6.7113        129.24       -.52599E-06    .31129E-04
  20  Prefactor     .10000E-03    47.404       -.10918E-05** at limit **
  21  norm          .10000E-03    2.9793        .17147E-06** at limit **
  22  Prefactor     .10000E-03    26.748        .74366E-06** at limit **
  23  norm          .97039        1.3525        .12619E-05    .16035E-02
  24  norm          2.4667        5.2179        .53141E-06    .10815E-03
  25  Prefactor     8.2532        5.2773       -.17481E-06   -.31585E-03
  26  Prefactor     .10000E-03    35.221        .11003E-06** at limit **
  27  Prefactor     85.140        78.005        .43355E-06    .51512E-04
  28  Prefactor     .10000E-03    3.5198        .44488E-07** at limit **
  29  Prefactor     .10000E-03    5.9941       -.66029E-07** at limit **
  30  Prefactor     .10000E-03    62.351        .55914E-06** at limit **
  31  Normalizat    1.2023        .22793       -.92353E-07    .19585E-03
  32  Prefactor     .70448        .23543       -.62767E-06    .16206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100477
  Prefactor  = 36.0413
  Prefactor  = 0.0001
  Prefactor  = 29.6133
  Prefactor  = 73.4257
  Prefactor  = 0.000100026
  Prefactor  = 5.4822
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 13.3528
  norm       = 0.000100959
  norm       = 3.37126
  norm       = 7.10298
  norm       = 0.000100163
  Prefactor  = 11.4163
  Prefactor  = 6.71129
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.970394
  norm       = 2.46668
  Prefactor  = 8.25319
  Prefactor  = 0.000100002
  Prefactor  = 85.1396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20227
  Prefactor  = 0.704482
 **********
 **   18 **HESSE 
 **********

 FCN=   3714.265     FROM HESSE     STATUS=OK           655 CALLS     5021 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9489        .16783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10048E-03    78.705        .20847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.041        49.413        .66752E-04   -1.4507    
   6  Prefactor     .10000E-03    4.8370        .13068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.613        29.801        .73620E-04   -1.4619    
   8  Prefactor     73.426        43.124        .46854E-04   -1.3992    
   9  Prefactor     .10003E-03    77.239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.4822        10.986        .17161E-03   -1.5240    
  11  Prefactor     .10000E-03    26.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.353        20.569        .54810E-03   -1.4977    
  14  norm          .10096E-03    131.36        .45118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3713        7.0371        .21739E-03   -1.5341    
  16  norm          7.1030        6.5654        .13965E-03   -1.5175    
  17  norm          .10016E-03    45.147        .35397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.416        8.0221        .11857E-03   -1.5032    
  19  Prefactor     6.7113        128.64        .15496E-03   -1.5190    
  20  Prefactor     .10000E-03    47.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.9823        .10249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .97039        1.3811        .26120E-03   -1.5511    
  24  norm          2.4667        5.1505        .18386E-03   -1.5394    
  25  Prefactor     8.2532        5.2860        .10660E-03   -1.5133    
  26  Prefactor     .10000E-03    35.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     85.140        78.051        .43539E-04   -1.3860    
  28  Prefactor     .10000E-03    3.5339        .11166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.1796        .29100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    62.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2023        .27537        .22443E-03   -.86533    
  32  Prefactor     .70448        .27961        .30208E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70994e-08
Minuit parameter uncertainties:
  1  0.000423059
  2  9.95735e-06
  3  3.37901e-06
  4  0.0122679
  5  49.4687
  6  1.97389e-06
  7  29.816
  8  43.1428
  9  0.00284599
  10  10.9904
  11  0.000226029
  12  0.000503486
  13  20.5797
  14  0.0224986
  15  7.03885
  16  6.56609
  17  0.00542808
  18  8.02282
  19  58.9122
  20  0.00074778
  21  1.01388e-05
  22  0.000238793
  23  1.38114
  24  5.15146
  25  5.28626
  26  0.000505206
  27  78.145
  28  3.25636e-06
  29  7.58624e-06
  30  0.000347597
  31  0.275701
  32  0.280172
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  7.103e+00  6.566e+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:  7.045e-01  2.802e-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.202e+00  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.54
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 1.61e-08
Energy Flux (Fixed Index): 3.77e-05 +/- 3.48e-05

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) = 3714.03682443
delta logL = 0.228062070231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3713.97449518
delta logL = 0.290391321909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3124       1.0000         .10000E-03   10000.    
     2 'alpha     '    .90323       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71827       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=   3713.974     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3150        4.5699        .48497E-02    .27894E-03
   2  alpha         .90294        .63938        .41929       -.73318E-04
   3  Normalizat    1.1998        .21679        .50823E-01   -.36314E-04
   4  Prefactor     .71823        .23075        .67721E-01   -.91697E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.31498
  alpha      = 0.90294
  Normalizat = 1.19976
  Prefactor  = 0.718231
 **********
 **   18 **HESSE 
 **********

 FCN=   3713.974     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3150        6.7862        .12256E-03   -1.5292    
   2  alpha         .90294        .91061        .18847E-02   -.69297    
   3  Normalizat    1.1998        .25908        .22469E-03   -.86610    
   4  Prefactor     .71823        .27541        .29965E-03   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47255e-10
Minuit parameter uncertainties:
  1  6.78736
  2  0.948606
  3  0.259361
  4  0.275938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853335': 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) = 3713.97449456
delta logL = 0.290391948211

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.315e+00  6.787e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  9.029e-01  9.486e-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:  7.182e-01  2.759e-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.200e+00  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.11
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 0.90 +/- 0.95
Photon Flux (Free Index): 6.49e-09 +/- 8.68e-09
Energy Flux (Free Index): 8.63e-05 +/- 1.23e-04

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/853335/cmap_HighResolution_591840001_592099201_4FGL_J2324.7-4041_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='8.63e-05', photon_flux_error='1.61e-08', dlogl='2.90e-01', energy_flux='3.77e-05', photon_flux2='6.49e-09', job_status='DONE', time_completed='2021-09-29 17:02:55.978785', photon_index_error2='0.95', photon_index2='0.90', ts='9.54', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.23e-04', EG='1.20', time_epoch_completed='1632960175.98', return_code='0', job_id='853335', GAL2='0.72', EG2='1.20', return_code2='0', energy_flux_error='3.48e-05', photon_flux_error2='8.68e-09', ts2='10.11', photon_index='1.62' WHERE bin_id='1360' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:02:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 853335: <4FGL_J2324.7-4041_daily_bin1360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1360 351.182 -40.6834 591840001 592099201 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 :                                   595.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            745 sec.

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

