/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 135 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7-4041_daily_bin124
RA = 351.182, Dec = -40.6834
tmin = 271468801, tmax = 271728001
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='845085', job_status='RUN', time_executed='2021-09-29 16:32:48.777418', time_epoch_executed='1632958368.78' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845085

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845085/ft1_4FGL_J2324.7-4041_daily_bin124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845085/ft2_4FGL_J2324.7-4041_daily_bin124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845085/ft1_4FGL_J2324.7-4041_daily_bin124.fits outfile=/scratch/kocevski/845085/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin124.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=271468801.0 tmax=271728001.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 1.60
user 1.41
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845085/ft1_filtered_4FGL_J2324.7-4041_daily_bin124.fits" evtable="EVENTS" scfile=/scratch/kocevski/845085/ft2_4FGL_J2324.7-4041_daily_bin124.fits sctable="SC_DATA" outfile=/scratch/kocevski/845085/ltcube_271468801_271728001_4FGL_J2324.7-4041_daily_bin124.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/845085/ft2_4FGL_J2324.7-4041_daily_bin124.fits
.....................!
real 12.20
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845085/ft1_filtered_4FGL_J2324.7-4041_daily_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/845085/ft2_4FGL_J2324.7-4041_daily_bin124.fits sctable="SC_DATA" expcube=/scratch/kocevski/845085/ltcube_271468801_271728001_4FGL_J2324.7-4041_daily_bin124.fits outfile=/scratch/kocevski/845085/expmap_271468801_271728001_4FGL_J2324.7-4041_daily_bin124.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/845085/ltcube_271468801_271728001_4FGL_J2324.7-4041_daily_bin124.fits
.....................!
real 190.64
user 185.44
sys 4.89

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/845085/ft1_filtered_4FGL_J2324.7-4041_daily_bin124.fits scfile=/scratch/kocevski/845085/ft2_4FGL_J2324.7-4041_daily_bin124.fits outfile=/scratch/kocevski/845085/cmap_271468801_271728001_4FGL_J2324.7-4041_daily_bin124.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845085/ft1_filtered_4FGL_J2324.7-4041_daily_bin124.fits scfile=/scratch/kocevski/845085/ft2_4FGL_J2324.7-4041_daily_bin124.fits outfile=/scratch/kocevski/845085/cmap_HighResolution_271468801_271728001_4FGL_J2324.7-4041_daily_bin124.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1823       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8167       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.073       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8012       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .87900E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    132.00       1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.675       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.017       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3039       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8624       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1216       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.5818       1.0000         .10000E-03   10000.    
    24 'norm      '    2.2888       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.1007       1.0000         .10000E-03   10000.    
    30 'Prefactor '    31.469       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .74765       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84073       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=   4830.553     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4370 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2247        39.123        .13815E-05   -.47261E-05
   2  Prefactor     .10000E-03    13.466       -.18193E-06** at limit **
   3  Prefactor     .10000E-03    9.7080       -.16381E-06** at limit **
   4  Prefactor     5.8180        3.4099       -.11071E-06   -.23283E-03
   5  Prefactor     32.153        35.102       -.45612E-06   -.16038E-03
   6  Prefactor     1.7997        6.6998        .71038E-05   -.26495E-03
   7  Prefactor     .10000E-03    7.3595        .26798E-06** at limit **
   8  Prefactor     .10014E-03    21.937        .10730E-05** at limit **
   9  Prefactor     .10000E-03    6.2010        .59885E-06** at limit **
  10  Prefactor     .10000E-03    6.1472        .19299E-06** at limit **
  11  Prefactor     131.97        59.581       -.16205E-05    .17028E-04
  12  Prefactor     46.757        83.268       -.15624E-05   -.50869E-04
  13  Prefactor     .10000E-03    5.9490       -.27484E-07** at limit **
  14  norm          12.014        10.033        .41850E-07    .63290E-05
  15  norm          .10000E-03    2.0344       -.16576E-07** at limit **
  16  norm          1.3060        3.4327        .59880E-07   -.40689E-05
  17  norm          3.8600        5.9135        .21176E-06    .44522E-04
  18  Prefactor     .10000E-03    5.4984       -.18069E-06** at limit **
  19  Prefactor     .10000E-03    24.811        .18189E-07** at limit **
  20  Prefactor     .10000E-03    11.949       -.30816E-07** at limit **
  21  norm          5.1212        4.2143        .61573E-07    .12942E-04
  22  Prefactor     .10000E-03    6.9183       -.10136E-06** at limit **
  23  norm          3.5821        1.3317        .84611E-07    .10197E-02
  24  norm          2.2870        2.5732        .10531E-07   -.41267E-04
  25  Prefactor     .10000E-03    1.7360       -.19700E-07** at limit **
  26  Prefactor     .10000E-03    19.440       -.33664E-06** at limit **
  27  Prefactor     .10000E-03    19.214        .11175E-07** at limit **
  28  Prefactor     .10001E-03    5.7876       -.21528E-05** at limit **
  29  Prefactor     3.0995        2.9638        .10602E-06    .15156E-03
  30  Prefactor     31.419        34.062        .11050E-05    .96342E-04
  31  Normalizat    .74772        .16473       -.68663E-06   -.10604E-03
  32  Prefactor     .84088        .17953       -.13040E-06   -.13752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.22468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.81799
  Prefactor  = 32.1535
  Prefactor  = 1.79968
  Prefactor  = 0.0001
  Prefactor  = 0.000100143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.971
  Prefactor  = 46.7573
  Prefactor  = 0.0001
  norm       = 12.014
  norm       = 0.0001
  norm       = 1.30597
  norm       = 3.86
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.12117
  Prefactor  = 0.0001
  norm       = 3.58214
  norm       = 2.28705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 3.09953
  Prefactor  = 31.4189
  Normalizat = 0.747717
  Prefactor  = 0.840884
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.553     FROM HESSE     STATUS=OK           659 CALLS     5029 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2247        39.175        .13226E-03   -1.5100    
   2  Prefactor     .10000E-03    13.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.7305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8180        3.4103        .94804E-04   -1.5226    
   5  Prefactor     32.153        35.149        .70752E-04   -1.4573    
   6  Prefactor     1.7997        6.7498        .15574E-02   -1.5440    
   7  Prefactor     .10000E-03    7.3731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10014E-03    31.162        .86266E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2743        .16938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2076        .16824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     131.97        59.667        .35048E-04   -1.3405    
  12  Prefactor     46.757        83.598        .58689E-04   -1.4339    
  13  Prefactor     .10000E-03    5.9597        .16554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.014        10.033        .11556E-03   -1.5015    
  15  norm          .10000E-03    2.0352        .96814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3060        3.3949        .19018E-03   -1.5479    
  17  norm          3.8600        5.9040        .20174E-03   -1.5315    
  18  Prefactor     .10000E-03    5.6061        .15899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1212        4.2464        .11456E-03   -1.5255    
  22  Prefactor     .10000E-03    6.9441        .17849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.5821        1.3325        .46942E-04   -1.5329    
  24  norm          2.2870        2.5659        .11355E-03   -1.5405    
  25  Prefactor     .10000E-03    1.7701        .89369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    19.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    6.3393        .33433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.0995        2.9605        .11272E-03   -1.5356    
  30  Prefactor     31.419        34.196        .71426E-04   -1.4586    
  31  Normalizat    .74772        .19534        .22130E-03   -1.0204    
  32  Prefactor     .84088        .21262        .23580E-03   -.98238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45851e-09
Minuit parameter uncertainties:
  1  38.0623
  2  3.70484e-05
  3  3.62401e-05
  4  3.4104
  5  35.1716
  6  6.75262
  7  5.31114e-05
  8  0.00423054
  9  0.000111283
  10  2.57943e-05
  11  59.6944
  12  83.8089
  13  1.62933e-06
  14  10.0346
  15  1.67825e-06
  16  3.39538
  17  5.90491
  18  3.31344e-05
  19  1.29429e-06
  20  1.68232e-05
  21  4.24663
  22  2.2274e-05
  23  1.33246
  24  2.56604
  25  1.92927e-06
  26  1.68632e-05
  27  0.000125501
  28  0.000391242
  29  2.96062
  30  34.2177
  31  0.195523
  32  0.212831
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.306e+00  3.395e+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:  8.409e-01  2.128e-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:  7.477e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/845085/likelihoodResults_271468801_271728001_4FGL_J2324.7-4041_daily_bin124.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) = 4830.55169634
delta logL = 0.00121796175154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4830.55166953
delta logL = 0.00124477750887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3316       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5527       1.0000          .0000       5.0000    
     3 'Normalizat'    .74792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84086       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=   4830.552     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      262 TOTAL
                     EDM=   .92E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3295        3.2315        .19118E-03    .14272E-05
   2  alpha         1.5515        1.3415        .35622E-01   -.12006E-05
   3  Normalizat    .74792        .18720        .22127E-03   -.15465E-04
   4  Prefactor     .84085        .21193        .23580E-03   -.17646E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32953
  alpha      = 1.55146
  Normalizat = 0.747922
  Prefactor  = 0.840855
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.552     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3295        3.2015        .76473E-05   -1.5477    
   2  alpha         1.5515        1.3310        .14249E-02   -.38916    
   3  Normalizat    .74792        .18738        .88508E-05   -1.0203    
   4  Prefactor     .84085        .21216        .94322E-05   -.98239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79767e-13
Minuit parameter uncertainties:
  1  3.20196
  2  1.41814
  3  0.187544
  4  0.212365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845085': 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) = 4830.5516689
delta logL = 0.00124540637444

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.330e+00  3.202e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.551e+00  1.418e+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.409e-01  2.124e-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:  7.479e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/845085/cmap_HighResolution_271468801_271728001_4FGL_J2324.7-4041_daily_bin124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-05', job_status='DONE', photon_flux_upper_limit='3.17e-08', time_completed='2021-09-29 16:45:38.051890', job_id='845085', GAL2='0.84', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632959138.05', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.25e-03', ts2='0.24', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='124' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:45:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 845085: <4FGL_J2324.7-4041_daily_bin124> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin124> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:30:24 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:30:26 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:30:26 2021
Terminated at Wed Sep 29 16:45:38 2021
Results reported at Wed Sep 29 16:45:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin124 351.182 -40.6834 271468801 271728001 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 :                                   769.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

