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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1623
RA = 351.182, Dec = -40.6834
tmin = 660009601, tmax = 660268801
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='500279', job_status='RUN', time_executed='2021-12-08 09:28:13.789004', time_epoch_executed='1638984493.79' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500279

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500279/ft1_4FGL_J2324.7-4041_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500279/ft2_4FGL_J2324.7-4041_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500279/ft1_4FGL_J2324.7-4041_daily_bin1623.fits outfile=/scratch/kocevski/500279/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1623.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=660009601.0 tmax=660268801.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 4.85
user 4.61
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500279/ft1_filtered_4FGL_J2324.7-4041_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/500279/ft2_4FGL_J2324.7-4041_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/500279/ltcube_660009601_660268801_4FGL_J2324.7-4041_daily_bin1623.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/500279/ft2_4FGL_J2324.7-4041_daily_bin1623.fits
.....................!
real 14.19
user 13.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500279/ft1_filtered_4FGL_J2324.7-4041_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/500279/ft2_4FGL_J2324.7-4041_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/500279/ltcube_660009601_660268801_4FGL_J2324.7-4041_daily_bin1623.fits outfile=/scratch/kocevski/500279/expmap_660009601_660268801_4FGL_J2324.7-4041_daily_bin1623.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/500279/ltcube_660009601_660268801_4FGL_J2324.7-4041_daily_bin1623.fits
.....................!
real 192.89
user 186.76
sys 5.09

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/500279/ft1_filtered_4FGL_J2324.7-4041_daily_bin1623.fits scfile=/scratch/kocevski/500279/ft2_4FGL_J2324.7-4041_daily_bin1623.fits outfile=/scratch/kocevski/500279/cmap_660009601_660268801_4FGL_J2324.7-4041_daily_bin1623.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500279/ft1_filtered_4FGL_J2324.7-4041_daily_bin1623.fits scfile=/scratch/kocevski/500279/ft2_4FGL_J2324.7-4041_daily_bin1623.fits outfile=/scratch/kocevski/500279/cmap_HighResolution_660009601_660268801_4FGL_J2324.7-4041_daily_bin1623.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7925       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.133       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.212       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.633       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3049       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11057E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.777       1.0000         .10000E-03   10000.    
    15 'norm      '    .16172E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8954       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3658       1.0000         .10000E-03   10000.    
    21 'norm      '    6.1514       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .44632       1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.827       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7474       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .39189E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .45713       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2597       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=   3419.178     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4419 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7938        52.778        .22869E-06   -.14208E-04
   2  Prefactor     30.539        30.416        .11475E-06   -.48747E-04
   3  Prefactor     .10000E-03    21.826        .16732E-06** at limit **
   4  Prefactor     10.133        5.7689       -.70252E-07    .42621E-04
   5  Prefactor     22.223        44.554        .29098E-06   -.11713E-04
   6  Prefactor     .10000E-03    6.2485       -.17955E-06** at limit **
   7  Prefactor     .10000E-03    17.644        .15760E-06** at limit **
   8  Prefactor     .10000E-03    9.1025       -.53877E-07** at limit **
   9  Prefactor     38.633        22.211        .70621E-07   -.11963E-04
  10  Prefactor     8.3052        9.8419        .52342E-07   -.54885E-04
  11  Prefactor     .10000E-03    87.094        .94160E-06** at limit **
  12  Prefactor     .10000E-03    39.903       -.79965E-07** at limit **
  13  Prefactor     .10000E-03    18.417       -.86159E-06** at limit **
  14  norm          12.779        13.651        .70669E-08   -.14096E-04
  15  norm          .10000E-03    254.20       -.65742E-05** at limit **
  16  norm          .10000E-03    2.0474       -.42240E-07** at limit **
  17  norm          .10000E-03    8.8914       -.17877E-06** at limit **
  18  Prefactor     9.8830        12.540        .10623E-06    .24448E-04
  19  Prefactor     .10000E-03    39.002       -.45293E-06** at limit **
  20  Prefactor     9.3588        45.665       -.14204E-06    .82821E-05
  21  norm          6.1518        5.0653       -.21150E-07   -.35549E-04
  22  Prefactor     .10000E-03    56.935       -.17210E-05** at limit **
  23  norm          .44698        1.8642        .84166E-06    .11029E-03
  24  norm          .10000E-03    9.3966       -.30833E-05** at limit **
  25  Prefactor     .10000E-03    1.8212       -.13960E-06** at limit **
  26  Prefactor     24.824        27.736       -.52460E-06   -.13520E-03
  27  Prefactor     .10000E-03    52.237       -.45658E-06** at limit **
  28  Prefactor     6.7420        10.088        .12106E-06    .46193E-04
  29  Prefactor     .10000E-03    3.7042       -.81939E-07** at limit **
  30  Prefactor     .10000E-03    191.32       -.42700E-06** at limit **
  31  Normalizat    .45708        .23088       -.14989E-05   -.76814E-04
  32  Prefactor     1.2597        .24072        .79681E-06   -.63471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.79375
  Prefactor  = 30.539
  Prefactor  = 0.0001
  Prefactor  = 10.1331
  Prefactor  = 22.2233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.6334
  Prefactor  = 8.30517
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.7793
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.88299
  Prefactor  = 0.0001
  Prefactor  = 9.35884
  norm       = 6.15177
  Prefactor  = 0.000100001
  norm       = 0.446979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8241
  Prefactor  = 0.0001
  Prefactor  = 6.74205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.457079
  Prefactor  = 1.25968
 **********
 **   18 **HESSE 
 **********

 FCN=   3419.178     FROM HESSE     STATUS=OK           663 CALLS     5082 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7938        52.785        .16687E-03   -1.5227    
   2  Prefactor     30.539        30.365        .72507E-04   -1.4602    
   3  Prefactor     .10000E-03    21.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.133        5.7806        .10114E-03   -1.5071    
   5  Prefactor     22.223        44.628        .84988E-04   -1.4765    
   6  Prefactor     .10000E-03    6.2751        .14260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1077        .17231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.633        22.188        .64485E-04   -1.4464    
  10  Prefactor     8.3052        9.8378        .13911E-03   -1.5132    
  11  Prefactor     .10000E-03    87.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.779        13.652        .11206E-03   -1.4993    
  15  norm          .10000E-03    21.055        .57868E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0478        .81708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.0923        .17011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.8830        13.860        .12738E-03   -1.5079    
  19  Prefactor     .10000E-03    39.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.3588        45.610        .13095E-03   -1.5096    
  21  norm          6.1518        4.8741        .11013E-03   -1.5212    
  22  Prefactor     .10000E-03    60.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .44698        1.8742        .12051E-03   -1.5574    
  24  norm          .10000E-03    9.1429        .24472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8272        .76987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     24.824        27.745        .80394E-04   -1.4711    
  27  Prefactor     .10000E-03    52.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.7420        10.092        .15447E-03   -1.5189    
  29  Prefactor     .10000E-03    3.7500        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    192.72        .21273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .45708        .26415        .31024E-03   -1.1445    
  32  Prefactor     1.2597        .28274        .21750E-03   -.84514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82686e-10
Minuit parameter uncertainties:
  1  35.0165
  2  30.3801
  3  4.42021e-05
  4  5.78095
  5  44.6947
  6  4.27578e-05
  7  3.26271e-05
  8  4.14091e-06
  9  22.1926
  10  9.83976
  11  0.000509578
  12  1.43438e-05
  13  7.03065e-05
  14  13.6552
  15  1.42475e-05
  16  6.91909e-07
  17  4.74877e-05
  18  13.864
  19  2.59379e-05
  20  41.3718
  21  4.87443
  22  0.000461376
  23  1.83043
  24  8.47163e-05
  25  9.63004e-07
  26  27.7595
  27  0.000132034
  28  10.0941
  29  1.15226e-05
  30  0.000252728
  31  0.264872
  32  0.283081
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.919e-07  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:  1.260e+00  2.831e-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:  4.571e-01  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/500279/likelihoodResults_660009601_660268801_4FGL_J2324.7-4041_daily_bin1623.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): 102
logL (Free Index) = 3419.17908602
delta logL = -0.00137964620717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3419.17770631
delta logL = 6.67628228257e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6156       1.0000          .0000       5.0000    
     3 'Normalizat'    .45707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2597       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3419.178     FROM MIGRAD    STATUS=FAILED        93 CALLS      243 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    119.13        .82031E-02** at limit **
   2  alpha         1.3580        3.6355        .18001       -.12060E-06
   3  Normalizat    .45708        .39585E-01    .31023E-03    .15849E-04
   4  Prefactor     1.2597        .44675E-01    .21750E-03    .23244E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3419.178     FROM SIMPLEX   STATUS=UNCHANGED    166 CALLS      409 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    119.13        .23112E-03** at limit **
   2  alpha         1.3580        3.6355        .11780E-04   -.12060E-06
   3  Normalizat    .45708        .39585E-01    .29871E-06    .15849E-04
   4  Prefactor     1.2597        .44675E-01    .18325E-06    .23244E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3419.178     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      437 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1743        .84151E-03** at limit **
   2  alpha         1.3604        3.0998        .72002E-02    .10310E-06
   3  Normalizat    .45708        .24353        .12409E-04    .15941E-04
   4  Prefactor     1.2597        .27516        .43500E-04    .23443E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.36045
  Normalizat = 0.457081
  Prefactor  = 1.25968
 **********
 **   18 **HESSE 
 **********

 FCN=   3419.178     FROM HESSE     STATUS=OK            23 CALLS      460 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1715        .16830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3604        3.1065        .14400E-02   -.47329    
   3  Normalizat    .45708        .24345        .24819E-05   -1.1445    
   4  Prefactor     1.2597        .27509        .87001E-05   -.84514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03745e-10
Minuit parameter uncertainties:
  1  3.09278e-05
  2  157.004
  3  0.244019
  4  0.275411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500279': 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) = 3419.17770499
delta logL = 1.39023723023e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.093e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.360e+00  1.570e+02  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:  1.260e+00  2.754e-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:  4.571e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.182 -40.683

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-05', job_status='DONE', photon_flux_upper_limit='2.91e-08', time_completed='2021-12-08 09:39:01.330335', job_id='500279', GAL2='1.26', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1638985141.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1623' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:39:01 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 500279: <4FGL_J2324.7-4041_daily_bin1623> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1623> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 09:25:37 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:27:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:27:17 2021
Terminated at Wed Dec  8 09:39:02 2021
Results reported at Wed Dec  8 09:39:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1623 351.182 -40.6834 660009601 660268801 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 :                                   645.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            805 sec.

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

