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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1359
RA = 351.182, Dec = -40.6834
tmin = 591580801, tmax = 591840001
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='853333', job_status='RUN', time_executed='2021-09-29 16:51:39.914650', time_epoch_executed='1632959499.91' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853333/ft1_4FGL_J2324.7-4041_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853333/ft2_4FGL_J2324.7-4041_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853333/ft1_4FGL_J2324.7-4041_daily_bin1359.fits outfile=/scratch/kocevski/853333/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1359.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=591580801.0 tmax=591840001.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.79
user 3.58
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853333/ft1_filtered_4FGL_J2324.7-4041_daily_bin1359.fits" evtable="EVENTS" scfile=/scratch/kocevski/853333/ft2_4FGL_J2324.7-4041_daily_bin1359.fits sctable="SC_DATA" outfile=/scratch/kocevski/853333/ltcube_591580801_591840001_4FGL_J2324.7-4041_daily_bin1359.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/853333/ft2_4FGL_J2324.7-4041_daily_bin1359.fits
.....................!
real 12.85
user 12.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853333/ft1_filtered_4FGL_J2324.7-4041_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/853333/ft2_4FGL_J2324.7-4041_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/853333/ltcube_591580801_591840001_4FGL_J2324.7-4041_daily_bin1359.fits outfile=/scratch/kocevski/853333/expmap_591580801_591840001_4FGL_J2324.7-4041_daily_bin1359.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/853333/ltcube_591580801_591840001_4FGL_J2324.7-4041_daily_bin1359.fits
.....................!
real 190.98
user 186.35
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/853333/ft1_filtered_4FGL_J2324.7-4041_daily_bin1359.fits scfile=/scratch/kocevski/853333/ft2_4FGL_J2324.7-4041_daily_bin1359.fits outfile=/scratch/kocevski/853333/cmap_591580801_591840001_4FGL_J2324.7-4041_daily_bin1359.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853333/ft1_filtered_4FGL_J2324.7-4041_daily_bin1359.fits scfile=/scratch/kocevski/853333/ft2_4FGL_J2324.7-4041_daily_bin1359.fits outfile=/scratch/kocevski/853333/cmap_HighResolution_591580801_591840001_4FGL_J2324.7-4041_daily_bin1359.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.55
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853333/ft1_filtered_4FGL_J2324.7-4041_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/853333/ft2_4FGL_J2324.7-4041_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853333/Model_4FGL_J2324.7-4041_daily_bin1359.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/853333/ft1_filtered_4FGL_J2324.7-4041_daily_bin1359.fits.....................!
real 37.59
user 36.36
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.627       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4781       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .95117E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.107       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2117       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.7362       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6812       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.6473       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4371       1.0000         .10000E-03   10000.    
    23 'norm      '    .56095       1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6742       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12031E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .22342E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.4961       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.6291       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11144E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5665       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .21333       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=   4669.946     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     5141 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    26.581       -.19177E-05** at limit **
   2  Prefactor     22.667        21.145        .27786E-06    .26306E-03
   3  Prefactor     .10000E-03    9.6654        .15815E-07** at limit **
   4  Prefactor     .10000E-03    1.7133       -.30965E-07** at limit **
   5  Prefactor     .10000E-03    12.305        .11190E-07** at limit **
   6  Prefactor     9.4831        8.4820        .17712E-06   -.75074E-04
   7  Prefactor     .10029E-03    27.475        .69024E-05** at limit **
   8  Prefactor     .10000E-03    6.3452       -.74505E-08** at limit **
   9  Prefactor     20.113        14.067        .67185E-07   -.16367E-03
  10  Prefactor     4.2126        4.3710       -.58264E-08   -.53493E-04
  11  Prefactor     .10000E-03    37.155        .28377E-08** at limit **
  12  Prefactor     .10000E-03    64.216       -.89736E-06** at limit **
  13  Prefactor     .10000E-03    16.129       -.19780E-06** at limit **
  14  norm          7.7388        11.554        .29746E-05    .58915E-03
  15  norm          .10000E-03    2.0176       -.27767E-07** at limit **
  16  norm          .10000E-03    3.8551        .97702E-07** at limit **
  17  norm          .10000E-03    5.5238       -.98655E-07** at limit **
  18  Prefactor     .10000E-03    5.7069       -.34230E-06** at limit **
  19  Prefactor     1.6531        423.50        .11314E-04    .15164E-04
  20  Prefactor     .10001E-03    25.620        .16951E-05** at limit **
  21  norm          6.6479        6.8726       -.46369E-06   -.23947E-03
  22  Prefactor     4.4479        16.411        .47005E-07   -.12722E-04
  23  norm          .56106        .58520       -.45481E-07   -.22404E-03
  24  norm          .10000E-03    1.4488       -.59582E-08** at limit **
  25  Prefactor     2.6746        3.6106        .14099E-06    .28924E-03
  26  Prefactor     .10429E-03    23.591       -.29453E-05** at limit **
  27  Prefactor     .10001E-03    504.40        .31185E-05** at limit **
  28  Prefactor     5.5015        7.3768        .73239E-06    .28125E-03
  29  Prefactor     5.6275        5.5754        .43994E-06    .57324E-03
  30  Prefactor     .10001E-03    120.96        .20182E-05** at limit **
  31  Normalizat    1.5666        .24917       -.29903E-05   -.18987E-03
  32  Prefactor     .21299        .24331        .58380E-05    .38450E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 22.6674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.48312
  Prefactor  = 0.000100287
  Prefactor  = 0.0001
  Prefactor  = 20.1127
  Prefactor  = 4.21261
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 7.73878
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65308
  Prefactor  = 0.000100007
  norm       = 6.64791
  Prefactor  = 4.44791
  norm       = 0.561058
  norm       = 0.0001
  Prefactor  = 2.67457
  Prefactor  = 0.000104285
  Prefactor  = 0.000100014
  Prefactor  = 5.50155
  Prefactor  = 5.62754
  Prefactor  = 0.000100006
  Normalizat = 1.56663
  Prefactor  = 0.212993
 **********
 **   18 **HESSE 
 **********

 FCN=   4669.946     FROM HESSE     STATUS=OK           661 CALLS     5802 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    27.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.667        21.202        .84206E-04   -1.4755    
   3  Prefactor     .10000E-03    9.6702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7361        .87316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4831        8.4931        .13017E-03   -1.5092    
   7  Prefactor     .10029E-03    55.011        .46351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3486        .16812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.113        14.070        .89322E-04   -1.4811    
  10  Prefactor     4.2126        4.3650        .14134E-03   -1.5297    
  11  Prefactor     .10000E-03    37.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    64.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.7388        11.871        .72086E-03   -1.5152    
  15  norm          .10000E-03    2.0195        .94794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8781        .13069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.355        .31053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.7409        .15855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6531        369.42        .32488E-03   -1.5451    
  20  Prefactor     .10001E-03    26.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.6479        6.3172        .12725E-03   -1.5192    
  22  Prefactor     4.4479        16.252        .19117E-03   -1.5286    
  23  norm          .56106        .58735        .51203E-04   -1.5558    
  24  norm          .10000E-03    1.4530        .80263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.6746        3.5835        .13919E-03   -1.5381    
  26  Prefactor     .10429E-03    25.452        .88519E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    512.73        .20127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.5015        7.4009        .17139E-03   -1.5239    
  29  Prefactor     5.6275        5.5966        .14582E-03   -1.5233    
  30  Prefactor     .10001E-03    121.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.5666        .24443        .18632E-03   -.75923    
  32  Prefactor     .21299        .22715        .47343E-03   -1.2779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6572e-09
Minuit parameter uncertainties:
  1  0.00100062
  2  21.2095
  3  3.23406e-06
  4  7.32427e-07
  5  6.09688e-06
  6  8.4942
  7  0.00794778
  8  2.38861e-06
  9  14.0719
  10  4.36533
  11  4.67215e-05
  12  0.000658868
  13  2.28425e-05
  14  11.8741
  15  1.51995e-06
  16  7.2817e-06
  17  2.88832e-06
  18  3.12138e-05
  19  49.7364
  20  0.000861537
  21  6.31785
  22  16.2681
  23  0.587351
  24  7.75166e-07
  25  3.58376
  26  0.0208957
  27  0.00550006
  28  7.40217
  29  5.59708
  30  0.00172273
  31  0.244618
  32  0.228097
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  7.282e-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:  2.130e-01  2.281e-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.567e+00  2.446e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853333/likelihoodResults_591580801_591840001_4FGL_J2324.7-4041_daily_bin1359.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) = 4669.9468705
delta logL = -0.00120388571304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4669.94566637
delta logL = 2.38023858401e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6557       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .21295       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=   4669.946     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.735        .90712E-02** at limit **
   2  alpha         1.6907        2.8953        .44600       -.40120E-04
   3  Normalizat    1.5666        .23439        .42155E-01   -.51164E-03
   4  Prefactor     .21299        .23603        .10702       -.10703E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.69071
  Normalizat = 1.56663
  Prefactor  = 0.212991
 **********
 **   18 **HESSE 
 **********

 FCN=   4669.946     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4259        .13655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6907        3.3153        .50000       -.32965    
   3  Normalizat    1.5666        .21654        .18632E-03   -.75923    
   4  Prefactor     .21299        .21788        .47342E-03   -1.2779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06408e-09
Minuit parameter uncertainties:
  1  6.41622e-05
  2  2.41601
  3  0.216668
  4  0.21872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853333': 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) = 4669.94566548
delta logL = 1.1296442608e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.416e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.691e+00  2.416e+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:  2.130e-01  2.187e-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.567e+00  2.167e-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/853333/cmap_HighResolution_591580801_591840001_4FGL_J2324.7-4041_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-05', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2021-09-29 17:05:28.582185', job_id='853333', GAL2='0.21', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1632960328.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.21', dlogl='1.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1359' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:05:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 853333: <4FGL_J2324.7-4041_daily_bin1359> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1359> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:31 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:32 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:50:32 2021
Terminated at Wed Sep 29 17:05:28 2021
Results reported at Wed Sep 29 17:05:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1359 351.182 -40.6834 591580801 591840001 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 :                                   802.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

