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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1587
RA = 351.182, Dec = -40.6834
tmin = 650678401, tmax = 650937601
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='854806', job_status='RUN', time_executed='2021-09-29 16:56:07.373216', time_epoch_executed='1632959767.37' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854806

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854806/ft1_4FGL_J2324.7-4041_daily_bin1587.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854806/ft2_4FGL_J2324.7-4041_daily_bin1587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854806/ft1_4FGL_J2324.7-4041_daily_bin1587.fits outfile=/scratch/kocevski/854806/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1587.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=650678401.0 tmax=650937601.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.71
user 3.48
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854806/ft1_filtered_4FGL_J2324.7-4041_daily_bin1587.fits" evtable="EVENTS" scfile=/scratch/kocevski/854806/ft2_4FGL_J2324.7-4041_daily_bin1587.fits sctable="SC_DATA" outfile=/scratch/kocevski/854806/ltcube_650678401_650937601_4FGL_J2324.7-4041_daily_bin1587.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/854806/ft2_4FGL_J2324.7-4041_daily_bin1587.fits
.....................!
real 11.82
user 11.39
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854806/ft1_filtered_4FGL_J2324.7-4041_daily_bin1587.fits evtable="EVENTS" scfile=/scratch/kocevski/854806/ft2_4FGL_J2324.7-4041_daily_bin1587.fits sctable="SC_DATA" expcube=/scratch/kocevski/854806/ltcube_650678401_650937601_4FGL_J2324.7-4041_daily_bin1587.fits outfile=/scratch/kocevski/854806/expmap_650678401_650937601_4FGL_J2324.7-4041_daily_bin1587.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/854806/ltcube_650678401_650937601_4FGL_J2324.7-4041_daily_bin1587.fits
.....................!
real 191.85
user 187.22
sys 4.26

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/854806/ft1_filtered_4FGL_J2324.7-4041_daily_bin1587.fits scfile=/scratch/kocevski/854806/ft2_4FGL_J2324.7-4041_daily_bin1587.fits outfile=/scratch/kocevski/854806/cmap_650678401_650937601_4FGL_J2324.7-4041_daily_bin1587.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854806/ft1_filtered_4FGL_J2324.7-4041_daily_bin1587.fits scfile=/scratch/kocevski/854806/ft2_4FGL_J2324.7-4041_daily_bin1587.fits outfile=/scratch/kocevski/854806/cmap_HighResolution_650678401_650937601_4FGL_J2324.7-4041_daily_bin1587.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13414E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4401       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.475       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.406       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.066       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.242       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10437E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6156       1.0000         .10000E-03   10000.    
    17 'norm      '    15.679       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.321       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .56778       1.0000         .10000E-03   10000.    
    24 'norm      '    .34272       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .30836E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    27.388       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.018       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.9637       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2832       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .54219       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=   3765.801     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4421 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.790        .40857E-07** at limit **
   2  Prefactor     17.083        26.407       -.55602E-07   -.17504E-04
   3  Prefactor     .10000E-03    160.10        .15578E-05** at limit **
   4  Prefactor     5.4362        6.8360        .21099E-06   -.31117E-04
   5  Prefactor     .10000E-03    51.246       -.64627E-08** at limit **
   6  Prefactor     10.469        11.832        .13813E-06   -.24531E-04
   7  Prefactor     .10000E-03    8.2408        .11821E-07** at limit **
   8  Prefactor     13.394        29.810        .56743E-07   -.52749E-05
   9  Prefactor     14.052        17.721        .26763E-06   -.11526E-04
  10  Prefactor     .10000E-03    10.553        .32227E-06** at limit **
  11  Prefactor     .10000E-03    14.198       -.89109E-08** at limit **
  12  Prefactor     .10000E-03    23.803        .21808E-07** at limit **
  13  Prefactor     19.228        20.848       -.23963E-06   -.68045E-04
  14  norm          .10000E-03    5.8737        .40533E-07** at limit **
  15  norm          .10000E-03    14.732       -.42226E-06** at limit **
  16  norm          1.6137        4.6443        .13352E-05   -.73345E-04
  17  norm          15.678        9.1961        .11241E-07   -.14763E-04
  18  Prefactor     17.321        9.8863        .10853E-06   -.12967E-03
  19  Prefactor     .10000E-03    86.023       -.10519E-05** at limit **
  20  Prefactor     .10000E-03    14.724       -.25252E-07** at limit **
  21  norm          .10000E-03    1.9157       -.11348E-06** at limit **
  22  Prefactor     .10000E-03    27.618        .25038E-06** at limit **
  23  norm          .56957        1.1366        .71325E-06    .55810E-03
  24  norm          .34298        4.7193        .21782E-05   -.14841E-03
  25  Prefactor     .10000E-03    3.4521        .63874E-07** at limit **
  26  Prefactor     .10000E-03    14.760        .45558E-07** at limit **
  27  Prefactor     27.227        76.868       -.83870E-06   -.30188E-04
  28  Prefactor     10.009        10.713        .33271E-06   -.29171E-04
  29  Prefactor     3.9617        5.6851        .28897E-06   -.73762E-04
  30  Prefactor     .10000E-03    36.929       -.75225E-06** at limit **
  31  Normalizat    1.2840        .23416       -.15149E-05   -.42368E-04
  32  Prefactor     .54162        .23108        .10006E-05   -.88411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.0831
  Prefactor  = 0.0001
  Prefactor  = 5.43624
  Prefactor  = 0.0001
  Prefactor  = 10.4692
  Prefactor  = 0.0001
  Prefactor  = 13.3944
  Prefactor  = 14.0524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2281
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 1.61367
  norm       = 15.6777
  Prefactor  = 17.3211
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.569573
  norm       = 0.342978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.227
  Prefactor  = 10.0092
  Prefactor  = 3.96173
  Prefactor  = 0.0001
  Normalizat = 1.28399
  Prefactor  = 0.541617
 **********
 **   18 **HESSE 
 **********

 FCN=   3765.801     FROM HESSE     STATUS=OK           657 CALLS     5078 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.083        26.337        .96910E-04   -1.4881    
   3  Prefactor     .10000E-03    163.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4362        6.8308        .16609E-03   -1.5242    
   5  Prefactor     .10000E-03    51.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.469        11.829        .12380E-03   -1.5061    
   7  Prefactor     .10000E-03    8.2441        .17206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.394        29.803        .10940E-03   -1.4976    
   9  Prefactor     14.052        17.768        .10680E-03   -1.4958    
  10  Prefactor     .10000E-03    10.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.228        20.744        .91306E-04   -1.4831    
  14  norm          .10000E-03    5.8759        .14526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6137        4.5563        .21429E-03   -1.5454    
  17  norm          15.678        9.1960        .10115E-03   -1.4916    
  18  Prefactor     17.321        9.7905        .96234E-04   -1.4875    
  19  Prefactor     .10000E-03    87.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9316        .82963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .56957        1.0751        .90789E-03   -1.5557    
  24  norm          .34298        4.5751        .25011E-03   -1.5591    
  25  Prefactor     .10000E-03    6.2789        .21905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     27.227        77.109        .76551E-04   -1.4664    
  28  Prefactor     10.009        10.842        .12660E-03   -1.5075    
  29  Prefactor     3.9617        5.6764        .15755E-03   -1.5310    
  30  Prefactor     .10000E-03    36.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2840        .27667        .21220E-03   -.84046    
  32  Prefactor     .54162        .26943        .32529E-03   -1.1010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74243e-10
Minuit parameter uncertainties:
  1  1.31513e-05
  2  26.3553
  3  1.0616e-05
  4  6.83183
  5  8.62073e-05
  6  11.8314
  7  1.12947e-06
  8  29.8356
  9  17.7746
  10  6.5921e-07
  11  1.11884e-05
  12  1.18415e-05
  13  20.7516
  14  1.01747e-06
  15  0.000189863
  16  4.55732
  17  9.19678
  18  9.79145
  19  0.000962149
  20  4.31108e-06
  21  1.44938e-05
  22  5.28686e-05
  23  1.07513
  24  2.50519
  25  7.46154e-05
  26  8.49497e-06
  27  77.3929
  28  10.8437
  29  5.67713
  30  6.77153e-05
  31  0.276994
  32  0.270068
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.614e+00  4.557e+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.416e-01  2.701e-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.284e+00  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/854806/likelihoodResults_650678401_650937601_4FGL_J2324.7-4041_daily_bin1587.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) = 3765.76790099
delta logL = 0.0330083279027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3765.76717645
delta logL = 0.0337328704427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4906       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9236       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53887       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3765.767     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4873        148.83        .87784E-02    .37036E-03
   2  alpha         1.9250        3.0223        .42627        .65927E-05
   3  Normalizat    1.2847        .49149E-01    .47989E-01   -.47683E-04
   4  Prefactor     .53887        .50254E-01    .73631E-01    .73093E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48726
  alpha      = 1.92504
  Normalizat = 1.28472
  Prefactor  = 0.538874
 **********
 **   18 **HESSE 
 **********

 FCN=   3765.767     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4873        4.1637        .17464E-03   -1.5464    
   2  alpha         1.9250        1.1374        .15736E-01   -.23206    
   3  Normalizat    1.2847        .25200        .21214E-03   -.84024    
   4  Prefactor     .53887        .26267        .32601E-03   -1.1022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2472e-11
Minuit parameter uncertainties:
  1  4.16455
  2  1.1835
  3  0.252241
  4  0.263267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854806': 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) = 3765.76717561
delta logL = 0.0337337140709

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.487e+00  4.165e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.925e+00  1.183e+00  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  5.389e-01  2.633e-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.285e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/854806/cmap_HighResolution_650678401_650937601_4FGL_J2324.7-4041_daily_bin1587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-05', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2021-09-29 17:07:30.491197', job_id='854806', GAL2='0.54', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632960450.49', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='3.37e-02', ts2='0.23', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1587' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:07:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 854806: <4FGL_J2324.7-4041_daily_bin1587> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1587 351.182 -40.6834 650678401 650937601 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 :                                   662.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

