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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1465
RA = 351.182, Dec = -40.6834
tmin = 619056001, tmax = 619315201
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='854610', job_status='RUN', time_executed='2021-09-29 16:56:44.883881', time_epoch_executed='1632959804.88' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854610/ft1_4FGL_J2324.7-4041_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854610/ft2_4FGL_J2324.7-4041_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854610/ft1_4FGL_J2324.7-4041_daily_bin1465.fits outfile=/scratch/kocevski/854610/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1465.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=619056001.0 tmax=619315201.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.57
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854610/ft2_4FGL_J2324.7-4041_daily_bin1465.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/854610/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1465.fits evtable="EVENTS" outfile="/scratch/kocevski/854610/ft1_filtered_4FGL_J2324.7-4041_daily_bin1465.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/854610/ft1_filtered_4FGL_J2324.7-4041_daily_bin1465.fits" evtable="EVENTS" scfile=/scratch/kocevski/854610/ft2_4FGL_J2324.7-4041_daily_bin1465.fits sctable="SC_DATA" outfile=/scratch/kocevski/854610/ltcube_619056001_619315201_4FGL_J2324.7-4041_daily_bin1465.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/854610/ft2_4FGL_J2324.7-4041_daily_bin1465.fits
.....................!
real 11.57
user 11.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854610/ft1_filtered_4FGL_J2324.7-4041_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/854610/ft2_4FGL_J2324.7-4041_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/854610/ltcube_619056001_619315201_4FGL_J2324.7-4041_daily_bin1465.fits outfile=/scratch/kocevski/854610/expmap_619056001_619315201_4FGL_J2324.7-4041_daily_bin1465.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/854610/ltcube_619056001_619315201_4FGL_J2324.7-4041_daily_bin1465.fits
.....................!
real 191.68
user 186.98
sys 4.35

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/854610/ft1_filtered_4FGL_J2324.7-4041_daily_bin1465.fits scfile=/scratch/kocevski/854610/ft2_4FGL_J2324.7-4041_daily_bin1465.fits outfile=/scratch/kocevski/854610/cmap_619056001_619315201_4FGL_J2324.7-4041_daily_bin1465.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854610/ft1_filtered_4FGL_J2324.7-4041_daily_bin1465.fits scfile=/scratch/kocevski/854610/ft2_4FGL_J2324.7-4041_daily_bin1465.fits outfile=/scratch/kocevski/854610/cmap_HighResolution_619056001_619315201_4FGL_J2324.7-4041_daily_bin1465.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854610/ft1_filtered_4FGL_J2324.7-4041_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/854610/ft2_4FGL_J2324.7-4041_daily_bin1465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854610/Model_4FGL_J2324.7-4041_daily_bin1465.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/854610/ft1_filtered_4FGL_J2324.7-4041_daily_bin1465.fits.....................!
real 32.47
user 31.15
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    112.62       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.506       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .62527       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    88.723       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6651       1.0000         .10000E-03   10000.    
    17 'norm      '    .30269E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23098E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.500       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10436E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.681       1.0000         .10000E-03   10000.    
    23 'norm      '    .22289E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11482E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.4350       1.0000         .10000E-03   10000.    
    30 'Prefactor '    109.79       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2363       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .54592       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=   3600.195     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     5224 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.566        .93987E-07** at limit **
   2  Prefactor     .10000E-03    27.583        .51720E-08** at limit **
   3  Prefactor     .10000E-03    14.978       -.72856E-07** at limit **
   4  Prefactor     .10000E-03    2.2872       -.20060E-06** at limit **
   5  Prefactor     112.59        68.328        .38070E-06    .58296E-05
   6  Prefactor     10.730        11.042        .15632E-06    .24928E-04
   7  Prefactor     20.516        25.621        .18470E-07   -.95037E-05
   8  Prefactor     .10000E-03    13.599       -.17979E-06** at limit **
   9  Prefactor     .61141        15.133        .15410E-05   -.10737E-03
  10  Prefactor     .10000E-03    5.3303       -.21764E-06** at limit **
  11  Prefactor     .10000E-03    31.757       -.97784E-07** at limit **
  12  Prefactor     88.675        72.936        .62401E-06   -.13835E-04
  13  Prefactor     .10000E-03    19.901        .42080E-07** at limit **
  14  norm          .10000E-03    11.319        .10893E-06** at limit **
  15  norm          .10000E-03    3.5490        .23779E-07** at limit **
  16  norm          5.6631        5.7978       -.80442E-06   -.11208E-03
  17  norm          .10009E-03    17.454        .34278E-05** at limit **
  18  Prefactor     .10000E-03    15.149        .12450E-05** at limit **
  19  Prefactor     12.489        35.490       -.27341E-05   -.34759E-04
  20  Prefactor     .10000E-03    29.195        .74316E-07** at limit **
  21  norm          .10000E-03    5.2629       -.28234E-06** at limit **
  22  Prefactor     14.759        19.383        .34486E-06    .25517E-04
  23  norm          .18359E-01    .83405       -.30584E-06    .66133E-03
  24  norm          .10000E-03    1.6022       -.14704E-07** at limit **
  25  Prefactor     .10000E-03    1.8158       -.10802E-08** at limit **
  26  Prefactor     .10000E-03    9.2293       -.68598E-07** at limit **
  27  Prefactor     .10000E-03    59.541        .64170E-06** at limit **
  28  Prefactor     .10001E-03    11.158        .24723E-05** at limit **
  29  Prefactor     2.4344        4.1930        .15761E-06    .97317E-04
  30  Prefactor     109.88        82.577       -.50516E-06   -.62061E-04
  31  Normalizat    1.2364        .23682       -.20964E-05   -.24231E-03
  32  Prefactor     .54568        .23943        .29266E-05   -.83588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 112.588
  Prefactor  = 10.73
  Prefactor  = 20.5164
  Prefactor  = 0.0001
  Prefactor  = 0.611409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.6749
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.66314
  norm       = 0.000100092
  Prefactor  = 0.000100002
  Prefactor  = 12.4892
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 14.7588
  norm       = 0.0183587
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 2.4344
  Prefactor  = 109.878
  Normalizat = 1.23644
  Prefactor  = 0.545685
 **********
 **   18 **HESSE 
 **********

 FCN=   3600.195     FROM HESSE     STATUS=OK           657 CALLS     5881 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3124        .88675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     112.59        68.313        .18953E-03   -1.3582    
   6  Prefactor     10.730        11.078        .12230E-03   -1.5053    
   7  Prefactor     20.516        25.598        .88450E-04   -1.4802    
   8  Prefactor     .10000E-03    13.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61141        53.668        .42428E-02   -1.5552    
  10  Prefactor     .10000E-03    5.3634        .13534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     88.675        72.815        .21328E-03   -1.3822    
  13  Prefactor     .10000E-03    20.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.5539        .11039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6631        5.8742        .13807E-03   -1.5232    
  17  norm          .10009E-03    44.842        .36266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.489        36.373        .11330E-03   -1.5001    
  20  Prefactor     .10000E-03    29.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.4229        .23315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.759        19.555        .10453E-03   -1.4939    
  23  norm          .18359E-01    31.522        .96094E-03   -1.5681    
  24  norm          .10000E-03    1.6068        .74150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8289        .78927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.2332        .17801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    59.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    12.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.4344        4.1828        .15416E-03   -1.5396    
  30  Prefactor     109.88        82.901        .19193E-03   -1.3608    
  31  Normalizat    1.2364        .27044        .20174E-03   -.85484    
  32  Prefactor     .54568        .26819        .30755E-03   -1.0992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16873e-09
Minuit parameter uncertainties:
  1  4.19639e-07
  2  2.69374e-05
  3  1.25252e-06
  4  2.04449e-05
  5  68.3605
  6  11.0796
  7  25.6117
  8  4.3805e-05
  9  11.4663
  10  3.39091e-05
  11  3.1851e-06
  12  72.8881
  13  2.20962e-05
  14  7.48507e-06
  15  3.38586e-06
  16  5.87478
  17  0.00406167
  18  0.000345975
  19  36.438
  20  9.10342e-06
  21  0.000229272
  22  19.5633
  23  1.51811
  24  7.67382e-07
  25  1.64559e-06
  26  4.95733e-06
  27  0.000438254
  28  0.00058627
  29  4.18329
  30  82.9884
  31  0.270744
  32  0.268816
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  5.663e+00  5.875e+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:  5.457e-01  2.688e-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.236e+00  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.39e-08 +/- 1.44e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 3.12e-05

TS (Fixed Index): 2.03
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 5.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854610/likelihoodResults_619056001_619315201_4FGL_J2324.7-4041_daily_bin1465.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) = 3599.68224538
delta logL = 0.51261715592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3599.68070052
delta logL = 0.51416202208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1033       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3313       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54585       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=   3599.681     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      288 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1037        4.6695        .86096E-04   -.55783E-03
   2  alpha         2.3313        .76607        .84401E-02   -.56705E-04
   3  Normalizat    1.2256        .25185        .20238E-03    .19360E-03
   4  Prefactor     .54578        .26427        .30713E-03    .13683E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.10372
  alpha      = 2.33129
  Normalizat = 1.22563
  Prefactor  = 0.545777
 **********
 **   18 **HESSE 
 **********

 FCN=   3599.681     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1037        4.2865        .34438E-05   -1.5356    
   2  alpha         2.3313        .70488        .33760E-03   -.67536E-01
   3  Normalizat    1.2256        .25182        .40477E-04   -.85814    
   4  Prefactor     .54578        .26437        .12285E-04   -1.0992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93871e-10
Minuit parameter uncertainties:
  1  4.28695
  2  0.71462
  3  0.252074
  4  0.264967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854610': 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) = 3599.68069971
delta logL = 0.514162822965

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.104e+00  4.287e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.331e+00  7.146e-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:  5.458e-01  2.650e-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.226e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 2.33 +/- 0.71
Photon Flux (Free Index): 3.24e-08 +/- 3.38e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.45e-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/854610/cmap_HighResolution_619056001_619315201_4FGL_J2324.7-4041_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-04', comment='SUCCESS', photon_flux='1.39e-08', energy_flux2='1.52e-05', photon_flux_error='1.44e-08', dlogl='5.14e-01', energy_flux='3.01e-05', photon_flux2='3.24e-08', job_status='DONE', time_completed='2021-09-29 17:09:09.007864', photon_index_error2='0.71', photon_index2='2.33', ts='2.03', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='5.36e-08', energy_flux_error2='1.45e-05', EG='1.24', time_epoch_completed='1632960549.01', return_code='0', job_id='854610', GAL2='0.55', EG2='1.23', return_code2='0', energy_flux_error='3.12e-05', photon_flux_error2='3.38e-08', ts2='3.05', photon_index='1.62' WHERE bin_id='1465' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:09:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 854610: <4FGL_J2324.7-4041_daily_bin1465> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1465 351.182 -40.6834 619056001 619315201 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 :                                   692.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            834 sec.

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

