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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1165
RA = 351.182, Dec = -40.6834
tmin = 541296001, tmax = 541555201
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='851954', job_status='RUN', time_executed='2021-09-29 16:49:49.644268', time_epoch_executed='1632959389.64' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851954

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851954/ft1_4FGL_J2324.7-4041_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851954/ft2_4FGL_J2324.7-4041_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851954/ft1_4FGL_J2324.7-4041_daily_bin1165.fits outfile=/scratch/kocevski/851954/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1165.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=541296001.0 tmax=541555201.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.75
user 3.50
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851954/ft2_4FGL_J2324.7-4041_daily_bin1165.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/851954/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/851954/ft1_filtered_4FGL_J2324.7-4041_daily_bin1165.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851954/ft1_filtered_4FGL_J2324.7-4041_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/851954/ft2_4FGL_J2324.7-4041_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/851954/ltcube_541296001_541555201_4FGL_J2324.7-4041_daily_bin1165.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/851954/ft2_4FGL_J2324.7-4041_daily_bin1165.fits
.....................!
real 11.78
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851954/ft1_filtered_4FGL_J2324.7-4041_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/851954/ft2_4FGL_J2324.7-4041_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/851954/ltcube_541296001_541555201_4FGL_J2324.7-4041_daily_bin1165.fits outfile=/scratch/kocevski/851954/expmap_541296001_541555201_4FGL_J2324.7-4041_daily_bin1165.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/851954/ltcube_541296001_541555201_4FGL_J2324.7-4041_daily_bin1165.fits
.....................!
real 190.99
user 185.25
sys 5.39

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/851954/ft1_filtered_4FGL_J2324.7-4041_daily_bin1165.fits scfile=/scratch/kocevski/851954/ft2_4FGL_J2324.7-4041_daily_bin1165.fits outfile=/scratch/kocevski/851954/cmap_541296001_541555201_4FGL_J2324.7-4041_daily_bin1165.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851954/ft1_filtered_4FGL_J2324.7-4041_daily_bin1165.fits scfile=/scratch/kocevski/851954/ft2_4FGL_J2324.7-4041_daily_bin1165.fits outfile=/scratch/kocevski/851954/cmap_HighResolution_541296001_541555201_4FGL_J2324.7-4041_daily_bin1165.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851954/ft1_filtered_4FGL_J2324.7-4041_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/851954/ft2_4FGL_J2324.7-4041_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851954/Model_4FGL_J2324.7-4041_daily_bin1165.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/851954/ft1_filtered_4FGL_J2324.7-4041_daily_bin1165.fits.....................!
real 37.81
user 36.51
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.053       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.818       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0501       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5088       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7082       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8677       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7394       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.367       1.0000         .10000E-03   10000.    
    23 'norm      '    2.6418       1.0000         .10000E-03   10000.    
    24 'norm      '    12.077       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.796       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10947E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.0892       1.0000         .10000E-03   10000.    
    30 'Prefactor '    50.891       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3588       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84591       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=   4371.934     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4348 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.053        53.040        .12035E-06   -.21430E-05
   2  Prefactor     13.814        31.126        .11809E-06   -.26958E-04
   3  Prefactor     .10000E-03    12.123        .51406E-09** at limit **
   4  Prefactor     4.0501        4.2510        .15440E-06    .66230E-05
   5  Prefactor     .10000E-03    17.746        .60002E-07** at limit **
   6  Prefactor     .10000E-03    6.6723        .49256E-07** at limit **
   7  Prefactor     1.4393        295.76        .16576E-04   -.44117E-05
   8  Prefactor     7.5047        67.401       -.13468E-04   -.20972E-04
   9  Prefactor     15.223        19.447       -.82538E-06   -.11080E-05
  10  Prefactor     6.7076        6.4408        .10421E-06    .19601E-04
  11  Prefactor     4.4794        70.850        .64797E-06    .36916E-06
  12  Prefactor     5.8780        270.99       -.27078E-05    .25434E-05
  13  Prefactor     .10000E-03    4.4859        .39541E-07** at limit **
  14  norm          .10000E-03    4.6074       -.29189E-07** at limit **
  15  norm          .10000E-03    5.6493       -.23731E-06** at limit **
  16  norm          .10000E-03    3.5324        .41178E-08** at limit **
  17  norm          .10000E-03    20.725        .36413E-06** at limit **
  18  Prefactor     2.7373        9.5800        .10725E-05   -.22295E-04
  19  Prefactor     .10000E-03    41.384       -.17052E-06** at limit **
  20  Prefactor     .10000E-03    68.293        .55108E-06** at limit **
  21  norm          .10000E-03    3.6634        .24543E-07** at limit **
  22  Prefactor     23.373        28.689       -.71044E-06   -.31549E-04
  23  norm          2.6416        1.6846       -.26182E-08   -.17754E-03
  24  norm          12.076        7.5415        .42041E-07   -.11527E-04
  25  Prefactor     .10000E-03    5.5073        .23048E-05** at limit **
  26  Prefactor     17.845        32.441        .58023E-06   -.23526E-04
  27  Prefactor     .10000E-03    79.155        .44679E-06** at limit **
  28  Prefactor     .10000E-03    3.1559        .12445E-06** at limit **
  29  Prefactor     6.0893        5.7071        .65439E-07   -.40316E-04
  30  Prefactor     50.907        72.787        .48954E-06    .18183E-04
  31  Normalizat    1.3587        .24251       -.26186E-06   -.10676E-03
  32  Prefactor     .84597        .24960       -.28014E-06   -.66931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.0529
  Prefactor  = 13.8143
  Prefactor  = 0.0001
  Prefactor  = 4.05006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.43929
  Prefactor  = 7.50466
  Prefactor  = 15.2227
  Prefactor  = 6.70764
  Prefactor  = 4.47942
  Prefactor  = 5.87804
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.73729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.3734
  norm       = 2.64163
  norm       = 12.076
  Prefactor  = 0.0001
  Prefactor  = 17.8448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.08929
  Prefactor  = 50.9068
  Normalizat = 1.35874
  Prefactor  = 0.845974
 **********
 **   18 **HESSE 
 **********

 FCN=   4371.934     FROM HESSE     STATUS=OK           659 CALLS     5007 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.053        53.068        .73085E-04   -1.4611    
   2  Prefactor     13.814        31.052        .10775E-03   -1.4964    
   3  Prefactor     .10000E-03    12.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0501        4.2500        .13478E-03   -1.5305    
   5  Prefactor     .10000E-03    17.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7283        .16676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4393        312.64        .34829E-02   -1.5468    
   8  Prefactor     7.5047        69.031        .14636E-03   -1.5160    
   9  Prefactor     15.223        19.464        .10267E-03   -1.4927    
  10  Prefactor     6.7076        6.4442        .15493E-03   -1.5190    
  11  Prefactor     4.4794        70.860        .19030E-03   -1.5285    
  12  Prefactor     5.8780        270.06        .16579E-03   -1.5223    
  13  Prefactor     .10000E-03    4.4869        .13677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.6082        .13861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6742        .15326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5448        .12136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    21.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7373        9.4020        .24599E-03   -1.5377    
  19  Prefactor     .10000E-03    41.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    68.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.6864        .12347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.373        28.331        .82864E-04   -1.4741    
  23  norm          2.6416        1.6726        .63257E-04   -1.5383    
  24  norm          12.076        7.5434        .11527E-03   -1.5013    
  25  Prefactor     .10000E-03    5.4854        .29553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.845        32.008        .94943E-04   -1.4863    
  27  Prefactor     .10000E-03    79.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.1606        .11469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.0893        5.7033        .14070E-03   -1.5214    
  30  Prefactor     50.907        72.939        .56217E-04   -1.4280    
  31  Normalizat    1.3587        .29872        .23915E-03   -.81829    
  32  Prefactor     .84597        .30195        .31382E-03   -.98055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44986e-09
Minuit parameter uncertainties:
  1  53.1513
  2  31.0886
  3  3.64886e-07
  4  4.25027
  5  5.08725e-07
  6  4.71716e-06
  7  42.651
  8  45.591
  9  19.4725
  10  6.4449
  11  35.682
  12  80.0707
  13  4.94746e-06
  14  5.76705e-06
  15  1.45768e-05
  16  1.73371e-06
  17  6.08589e-05
  18  9.40707
  19  0.000123392
  20  0.00030378
  21  3.32579e-06
  22  28.347
  23  1.67262
  24  7.544
  25  4.11652e-05
  26  32.0385
  27  9.35558e-05
  28  1.74332e-07
  29  5.70378
  30  73.0674
  31  0.299103
  32  0.302548
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.734e-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:  8.460e-01  3.025e-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.359e+00  2.991e-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: 3.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851954/likelihoodResults_541296001_541555201_4FGL_J2324.7-4041_daily_bin1165.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) = 4371.93487874
delta logL = -0.0013156507639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4371.93356307
delta logL = 2.21261871047e-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.6302       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84598       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=   4371.742     FROM MIGRAD    STATUS=CONVERGED    181 CALLS      332 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21937E-01    .76974E-01    .35515E-02    .50037E-02
   2  alpha         4.2300        .81611        .40676       -.51074E-04
   3  Normalizat    1.3051        .32537        .23915E-03    .42762E-03
   4  Prefactor     .87843        .31537        .31382E-03    .14650E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0219365
  alpha      = 4.22995
  Normalizat = 1.30513
  Prefactor  = 0.878434
 **********
 **   18 **HESSE 
 **********

 FCN=   4371.742     FROM HESSE     STATUS=OK            29 CALLS      361 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21937E-01    .76432E-01    .15775E-04   -1.5678    
   2  alpha         4.2300        1.0648        .15684E-01    2.3774    
   3  Normalizat    1.3051        .29432        .47829E-04   -.83414    
   4  Prefactor     .87843        .30525        .12553E-04   -.96899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3264e-10
Minuit parameter uncertainties:
  1  0.0764327
  2  1.13895
  3  0.294703
  4  0.305847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851954': 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) = 4371.7418889
delta logL = 0.191674191438

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.194e-02  7.643e-02  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  4.230e+00  1.139e+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:  8.784e-01  3.058e-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.305e+00  2.947e-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/851954/cmap_HighResolution_541296001_541555201_4FGL_J2324.7-4041_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-05', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2021-09-29 17:02:07.917274', job_id='851954', GAL2='0.88', fit_tolerance='1e-08', EG2='1.31', EG='1.36', time_epoch_completed='1632960127.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.92e-01', ts2='0.40', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1165' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 851954: <4FGL_J2324.7-4041_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1165> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:59 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:46:01 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:46:01 2021
Terminated at Wed Sep 29 17:02:08 2021
Results reported at Wed Sep 29 17:02:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1165 351.182 -40.6834 541296001 541555201 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 :                                   726.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            969 sec.

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

