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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1627
RA = 351.182, Dec = -40.6834
tmin = 661046401, tmax = 661305601
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='252695', job_status='RUN', time_executed='2021-12-16 00:43:46.926673', time_epoch_executed='1639644226.93' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252695/ft1_4FGL_J2324.7-4041_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252695/ft2_4FGL_J2324.7-4041_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252695/ft1_4FGL_J2324.7-4041_daily_bin1627.fits outfile=/scratch/kocevski/252695/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1627.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=661046401.0 tmax=661305601.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.59
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252695/ft1_filtered_4FGL_J2324.7-4041_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/252695/ft2_4FGL_J2324.7-4041_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/252695/ltcube_661046401_661305601_4FGL_J2324.7-4041_daily_bin1627.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/252695/ft2_4FGL_J2324.7-4041_daily_bin1627.fits
.....................!
real 12.47
user 12.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252695/ft1_filtered_4FGL_J2324.7-4041_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/252695/ft2_4FGL_J2324.7-4041_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/252695/ltcube_661046401_661305601_4FGL_J2324.7-4041_daily_bin1627.fits outfile=/scratch/kocevski/252695/expmap_661046401_661305601_4FGL_J2324.7-4041_daily_bin1627.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/252695/ltcube_661046401_661305601_4FGL_J2324.7-4041_daily_bin1627.fits
.....................!
real 190.90
user 185.08
sys 5.21

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/252695/ft1_filtered_4FGL_J2324.7-4041_daily_bin1627.fits scfile=/scratch/kocevski/252695/ft2_4FGL_J2324.7-4041_daily_bin1627.fits outfile=/scratch/kocevski/252695/cmap_661046401_661305601_4FGL_J2324.7-4041_daily_bin1627.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252695/ft1_filtered_4FGL_J2324.7-4041_daily_bin1627.fits scfile=/scratch/kocevski/252695/ft2_4FGL_J2324.7-4041_daily_bin1627.fits outfile=/scratch/kocevski/252695/cmap_HighResolution_661046401_661305601_4FGL_J2324.7-4041_daily_bin1627.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/252695/ft1_filtered_4FGL_J2324.7-4041_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/252695/ft2_4FGL_J2324.7-4041_daily_bin1627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/252695/Model_4FGL_J2324.7-4041_daily_bin1627.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/252695/ft1_filtered_4FGL_J2324.7-4041_daily_bin1627.fits.....................!
real 38.89
user 37.40
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .62495E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12822E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.717       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.863       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13653E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    68.570       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.729       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4499       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4233       1.0000         .10000E-03   10000.    
    17 'norm      '    19.238       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.302       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8190       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1862       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .65333       1.0000         .10000E-03   10000.    
    24 'norm      '    7.9357       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.936       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .94156E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    59.160       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .97785       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .65518       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5056.558     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     3683 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.461        .31470E-04** at limit **
   2  Prefactor     .10000E-03    5.0072        .24533E-06** at limit **
   3  Prefactor     .10002E-03    303.27       -.39330E-04** at limit **
   4  Prefactor     .10000E-03    2.1152       -.27932E-06** at limit **
   5  Prefactor     .10004E-03    37.990        .12065E-04** at limit **
   6  Prefactor     2.7561        7.6871        .15611E-04   -.34620E-04
   7  Prefactor     .10000E-03    37.946        .11370E-04** at limit **
   8  Prefactor     18.706        1.1262       -.13045E-06    .18414E-03
   9  Prefactor     34.862        1.1486       -.52937E-06    .10963E-02
  10  Prefactor     .10000E-03    8.8221        .28199E-08** at limit **
  11  Prefactor     68.585        1.6470        .45862E-06   -.15334E-02
  12  Prefactor     .10000E-03    21.866       -.17421E-04** at limit **
  13  Prefactor     13.734        1.0285       -.42154E-07    .30408E-04
  14  norm          1.4492        6.2317        .17026E-04    .10092E-03
  15  norm          .10000E-03    2.0097        .91606E-07** at limit **
  16  norm          3.4233        3.7021       -.46819E-06    .16365E-05
  17  norm          19.240        1.1864       -.16316E-06    .28146E-03
  18  Prefactor     .10000E-03    1.6211       -.25984E-06** at limit **
  19  Prefactor     27.301        1.0280       -.20822E-06    .54803E-03
  20  Prefactor     8.8086        1.3124       -.58411E-06    .18909E-03
  21  norm          3.1870        3.0081        .40808E-06    .20462E-03
  22  Prefactor     .10000E-03    4.4172        .23917E-06** at limit **
  23  norm          .65264        .87015        .25712E-07   -.10332E-02
  24  norm          7.9359        1.9319       -.40866E-07   -.91305E-03
  25  Prefactor     .10000E-03    2.7729       -.16700E-06** at limit **
  26  Prefactor     24.938        1.0728       -.39838E-06    .59438E-03
  27  Prefactor     .10000E-03    32.977       -.20187E-04** at limit **
  28  Prefactor     .10951        3.2551        .22159E-05   -.61623E-03
  29  Prefactor     .10000E-03    2.1844       -.61807E-07** at limit **
  30  Prefactor     59.165        1.2373       -.13305E-06    .16416E-03
  31  Normalizat    .97758        .19769       -.37653E-05    .50425E-03
  32  Prefactor     .65542        .21524        .23274E-05    .36835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 2.75612
  Prefactor  = 0.000100004
  Prefactor  = 18.7059
  Prefactor  = 34.8623
  Prefactor  = 0.0001
  Prefactor  = 68.5853
  Prefactor  = 0.0001
  Prefactor  = 13.7335
  norm       = 1.4492
  norm       = 0.0001
  norm       = 3.42326
  norm       = 19.2403
  Prefactor  = 0.0001
  Prefactor  = 27.3012
  Prefactor  = 8.80864
  norm       = 3.18704
  Prefactor  = 0.0001
  norm       = 0.65264
  norm       = 7.93592
  Prefactor  = 0.0001
  Prefactor  = 24.9377
  Prefactor  = 0.000100004
  Prefactor  = 0.109509
  Prefactor  = 0.0001
  Prefactor  = 59.1645
  Normalizat = 0.977583
  Prefactor  = 0.655419
 **********
 **   18 **HESSE 
 **********

 FCN=   5056.558     FROM HESSE     STATUS=OK           749 CALLS     4432 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.531        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    27.973        .11823       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    77.988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7561        7.8995        .61223E-02   -1.5376    
   7  Prefactor     .10000E-03    75.903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.706        24.985        .23144E-02   -1.4843    
   9  Prefactor     34.862        16.524        .16968E-02   -1.4526    
  10  Prefactor     .10000E-03    8.4710        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     68.585        49.286        .12118E-02   -1.4050    
  12  Prefactor     .10000E-03    21.880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.734        12.391        .27025E-02   -1.4967    
  14  norm          1.4492        6.3371        .89456E-02   -1.5467    
  15  norm          .10000E-03    2.0067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4233        3.9528        .54657E-02   -1.5338    
  17  norm          19.240        10.267        .22829E-02   -1.4830    
  18  Prefactor     .10000E-03    1.6180        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.301        31.730        .19168E-02   -1.4662    
  20  Prefactor     8.8086        36.763        .33743E-02   -1.5114    
  21  norm          3.1870        3.6193        .56754E-02   -1.5351    
  22  Prefactor     .10000E-03    4.4085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .65264        .99679        .17453E-01   -1.5546    
  24  norm          7.9359        4.1155        .35584E-02   -1.5144    
  25  Prefactor     .10000E-03    2.7059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     24.938        18.320        .20055E-02   -1.4709    
  27  Prefactor     .10000E-03    33.025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10951        3.8959        .77451E-01   -1.5642    
  29  Prefactor     .10000E-03    2.0959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     59.165        50.721        .13040E-02   -1.4168    
  31  Normalizat    .97758        .17598        .45889E-01   -.93785    
  32  Prefactor     .65542        .18130        .62582E-01   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02827e-07
Minuit parameter uncertainties:
  1  0.000264463
  2  3.58726e-05
  3  0.00142701
  4  1.60992e-05
  5  0.00349151
  6  7.90248
  7  0.00106521
  8  24.9991
  9  16.526
  10  6.58082e-06
  11  49.3156
  12  6.58826e-05
  13  12.3929
  14  6.0618
  15  6.1969e-07
  16  3.95306
  17  10.2676
  18  1.95423e-05
  19  31.7496
  20  36.0285
  21  3.61955
  22  1.48566e-05
  23  0.996818
  24  4.11562
  25  1.48175e-05
  26  18.3242
  27  0.000756654
  28  1.30585
  29  1.15507e-05
  30  50.7576
  31  0.176087
  32  0.181458
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.423e+00  3.953e+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:  6.554e-01  1.815e-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:  9.776e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 8.39e-09 +/- 9.69e-09
Energy Flux (Fixed Index): 1.82e-05 +/- 2.10e-05

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

Saving results to:
/scratch/kocevski/252695/likelihoodResults_661046401_661305601_4FGL_J2324.7-4041_daily_bin1627.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) = 5056.41495732
delta logL = 0.142893511299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5056.4116051
delta logL = 0.146245733281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6155       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0767       1.0000          .0000       5.0000    
     3 'Normalizat'    .97331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65633       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=   5056.412     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      273 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6157        3.7633        .11496E-03   -.65864E-04
   2  alpha         2.0766        .88821        .12209E-01   -.84103E-05
   3  Normalizat    .97321        .19430        .21012E-03    .14328E-03
   4  Prefactor     .65644        .21396        .27652E-03    .12881E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.61574
  alpha      = 2.07659
  Normalizat = 0.973205
  Prefactor  = 0.656441
 **********
 **   18 **HESSE 
 **********

 FCN=   5056.412     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6157        3.5668        .45983E-05   -1.5384    
   2  alpha         2.0766        .84378        .48836E-03   -.17018    
   3  Normalizat    .97321        .19435        .42024E-04   -.93934    
   4  Prefactor     .65644        .21410        .11061E-04   -1.0526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38233e-11
Minuit parameter uncertainties:
  1  3.56712
  2  0.861212
  3  0.194496
  4  0.214371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252695': 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) = 5056.41160495
delta logL = 0.146245883187

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.616e+00  3.567e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.077e+00  8.612e-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:  6.564e-01  2.144e-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:  9.732e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 2.08 +/- 0.86
Photon Flux (Free Index): 1.52e-08 +/- 2.16e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.41e-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/252695/cmap_HighResolution_661046401_661305601_4FGL_J2324.7-4041_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-05', comment='SUCCESS', photon_flux='8.39e-09', energy_flux2='1.11e-05', photon_flux_error='9.69e-09', dlogl='1.46e-01', energy_flux='1.82e-05', photon_flux2='1.52e-08', job_status='DONE', time_completed='2021-12-16 00:56:25.030693', photon_index_error2='0.86', photon_index2='2.08', ts='2.06', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='3.80e-08', energy_flux_error2='1.41e-05', EG='0.98', time_epoch_completed='1639644985.03', return_code='0', job_id='252695', GAL2='0.66', EG2='0.97', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='2.16e-08', ts2='2.35', photon_index='1.62' WHERE bin_id='1627' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:56:25 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 252695: <4FGL_J2324.7-4041_daily_bin1627> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Dec 16 00:40:12 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:40:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:40:15 2021
Terminated at Thu Dec 16 00:56:25 2021
Results reported at Thu Dec 16 00:56:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1627 351.182 -40.6834 661046401 661305601 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 :                                   759.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

