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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1038
RA = 351.182, Dec = -40.6834
tmin = 508377601, tmax = 508636801
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='851760', job_status='RUN', time_executed='2021-09-29 16:47:22.986241', time_epoch_executed='1632959242.99' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851760/ft1_4FGL_J2324.7-4041_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851760/ft2_4FGL_J2324.7-4041_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851760/ft1_4FGL_J2324.7-4041_daily_bin1038.fits outfile=/scratch/kocevski/851760/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1038.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=508377601.0 tmax=508636801.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.62
user 3.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851760/ft1_filtered_4FGL_J2324.7-4041_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/851760/ft2_4FGL_J2324.7-4041_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/851760/ltcube_508377601_508636801_4FGL_J2324.7-4041_daily_bin1038.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/851760/ft2_4FGL_J2324.7-4041_daily_bin1038.fits
.....................!
real 12.04
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851760/ft1_filtered_4FGL_J2324.7-4041_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/851760/ft2_4FGL_J2324.7-4041_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/851760/ltcube_508377601_508636801_4FGL_J2324.7-4041_daily_bin1038.fits outfile=/scratch/kocevski/851760/expmap_508377601_508636801_4FGL_J2324.7-4041_daily_bin1038.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/851760/ltcube_508377601_508636801_4FGL_J2324.7-4041_daily_bin1038.fits
.....................!
real 189.29
user 184.95
sys 4.01

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/851760/ft1_filtered_4FGL_J2324.7-4041_daily_bin1038.fits scfile=/scratch/kocevski/851760/ft2_4FGL_J2324.7-4041_daily_bin1038.fits outfile=/scratch/kocevski/851760/cmap_508377601_508636801_4FGL_J2324.7-4041_daily_bin1038.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851760/ft1_filtered_4FGL_J2324.7-4041_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/851760/ft2_4FGL_J2324.7-4041_daily_bin1038.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851760/Model_4FGL_J2324.7-4041_daily_bin1038.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/851760/ft1_filtered_4FGL_J2324.7-4041_daily_bin1038.fits.....................!
real 38.42
user 36.52
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.824       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6758       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7770       1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.659       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .76048       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5431       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.279       1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.854       1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.868       1.0000         .10000E-03   10000.    
    21 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17498E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .45944       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    78.517       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0092       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1105       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=   4729.557     FROM MIGRAD    STATUS=CONVERGED    843 CALLS     4326 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.169       -.34691E-06** at limit **
   2  Prefactor     14.822        19.053        .66094E-07    .61539E-04
   3  Prefactor     29.670        28.321        .11425E-06    .25655E-04
   4  Prefactor     3.6761        3.8460       -.98825E-07    .66532E-04
   5  Prefactor     .10000E-03    31.846        .53044E-07** at limit **
   6  Prefactor     9.7765        8.1367        .15701E-07    .10969E-03
   7  Prefactor     56.660        34.926       -.33467E-06    .72614E-05
   8  Prefactor     .10000E-03    15.579        .22833E-07** at limit **
   9  Prefactor     .10000E-03    10.274       -.32013E-06** at limit **
  10  Prefactor     .10000E-03    19.912       -.13187E-05** at limit **
  11  Prefactor     .10000E-03    15.004       -.30440E-06** at limit **
  12  Prefactor     .10000E-03    46.537       -.30488E-06** at limit **
  13  Prefactor     .10000E-03    21.878       -.77896E-06** at limit **
  14  norm          .76015        12.029       -.89409E-06    .37218E-04
  15  norm          3.5430        4.2107       -.11856E-07    .48333E-04
  16  norm          .10000E-03    1.8499       -.27890E-07** at limit **
  17  norm          .10000E-03    4.4498       -.16014E-06** at limit **
  18  Prefactor     18.263        9.0124        .66733E-06    .96895E-03
  19  Prefactor     52.910        53.004        .39446E-05    .18981E-03
  20  Prefactor     56.866        57.262        .99311E-07    .36383E-04
  21  norm          .10000E-03    3.6305       -.31001E-06** at limit **
  22  Prefactor     .10010E-03    25.765        .55746E-05** at limit **
  23  norm          .10000E-03    .30897       -.69146E-07** at limit **
  24  norm          .43924        18.490       -.83740E-05    .54663E-03
  25  Prefactor     .10000E-03    1.4754       -.11933E-06** at limit **
  26  Prefactor     .10000E-03    6.3635       -.78348E-07** at limit **
  27  Prefactor     .10000E-03    22.998       -.14562E-06** at limit **
  28  Prefactor     .10000E-03    3.4482        .96651E-07** at limit **
  29  Prefactor     .10000E-03    3.9910       -.46645E-06** at limit **
  30  Prefactor     78.583        57.467       -.15993E-05   -.43807E-04
  31  Normalizat    1.0098        .22906       -.41714E-05    .21984E-03
  32  Prefactor     1.1097        .23772        .60545E-05    .72443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.8225
  Prefactor  = 29.6702
  Prefactor  = 3.67613
  Prefactor  = 0.0001
  Prefactor  = 9.77648
  Prefactor  = 56.6597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.760147
  norm       = 3.543
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2635
  Prefactor  = 52.9104
  Prefactor  = 56.8657
  norm       = 0.0001
  Prefactor  = 0.000100098
  norm       = 0.0001
  norm       = 0.439243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.5829
  Normalizat = 1.00983
  Prefactor  = 1.10969
 **********
 **   18 **HESSE 
 **********

 FCN=   4729.557     FROM HESSE     STATUS=OK           649 CALLS     4975 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.822        19.050        .10403E-03   -1.4938    
   3  Prefactor     29.670        28.333        .73540E-04   -1.4618    
   4  Prefactor     3.6761        3.8399        .13264E-03   -1.5324    
   5  Prefactor     .10000E-03    31.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7765        8.1396        .12816E-03   -1.5083    
   7  Prefactor     56.660        34.951        .53294E-04   -1.4201    
   8  Prefactor     .10000E-03    15.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .76015        74.044        .45581E-02   -1.5534    
  15  norm          3.5430        4.2094        .15004E-03   -1.5331    
  16  norm          .10000E-03    1.8508        .91357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.4669        .14171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.263        8.8003        .93679E-04   -1.4853    
  19  Prefactor     52.910        55.418        .55169E-04   -1.4252    
  20  Prefactor     56.866        57.335        .53197E-04   -1.4198    
  21  norm          .10000E-03    3.7108        .12835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10010E-03    116.08        .50656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .31123        .37342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .43924        29.087        .23985E-02   -1.5575    
  25  Prefactor     .10000E-03    1.4871        .81610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.3660        .16945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.4807        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.0702        .13433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     78.583        57.375        .22660E-03   -1.3933    
  31  Normalizat    1.0098        .26304        .25201E-03   -.92702    
  32  Prefactor     1.1097        .27891        .26582E-03   -.89158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17594e-09
Minuit parameter uncertainties:
  1  6.31088e-05
  2  19.0581
  3  28.3453
  4  3.84016
  5  7.55583e-05
  6  8.14051
  7  34.9638
  8  7.45072e-05
  9  8.83987e-05
  10  0.000548876
  11  4.02969e-05
  12  0.000175398
  13  0.000312027
  14  15.0227
  15  4.20978
  16  3.77394e-06
  17  2.30488e-05
  18  8.80092
  19  55.4716
  20  57.3907
  21  6.38705e-05
  22  0.0067554
  23  3.60669e-06
  24  7.15156
  25  1.25022e-05
  26  1.66911e-05
  27  1.78471e-05
  28  3.47408e-05
  29  7.028e-05
  30  57.4155
  31  0.263375
  32  0.279279
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.774e-06  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.110e+00  2.793e-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.010e+00  2.634e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851760/likelihoodResults_508377601_508636801_4FGL_J2324.7-4041_daily_bin1038.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) = 4729.55901983
delta logL = -0.00227445883775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4729.55674651
delta logL = -1.13921396405e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10288E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6144       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1099       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=   4729.557     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      230 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.709        .91718E-03** at limit **
   2  alpha         1.3693        3.0934        .18006        .95973E-08
   3  Normalizat    1.0098        .24839        .25201E-03   -.24125E-03
   4  Prefactor     1.1097        .27434        .26581E-03   -.22172E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.36928
  Normalizat = 1.00984
  Prefactor  = 1.10967
 **********
 **   18 **HESSE 
 **********

 FCN=   4729.557     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9551        .18344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3693        3.9926        .72022E-02   -.46933    
   3  Normalizat    1.0098        .24864        .50403E-04   -.92701    
   4  Prefactor     1.1097        .27462        .53163E-04   -.89158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48836e-11
Minuit parameter uncertainties:
  1  1.36608e-06
  2  147.917
  3  0.248922
  4  0.274967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851760': 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) = 4729.55674393
delta logL = 1.44065325003e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.366e-06  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.369e+00  1.479e+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.110e+00  2.750e-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.010e+00  2.489e-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/851760/cmap_HighResolution_508377601_508636801_4FGL_J2324.7-4041_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-05', job_status='DONE', photon_flux_upper_limit='2.64e-08', time_completed='2021-09-29 16:59:55.652863', job_id='851760', GAL2='1.11', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632959995.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1038' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 851760: <4FGL_J2324.7-4041_daily_bin1038> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1038> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:42 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:43 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:45:43 2021
Terminated at Wed Sep 29 16:59:56 2021
Results reported at Wed Sep 29 16:59:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1038 351.182 -40.6834 508377601 508636801 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 :                                   746.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

