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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1333
RA = 351.182, Dec = -40.6834
tmin = 584841601, tmax = 585100801
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='853293', job_status='RUN', time_executed='2021-09-29 16:52:07.156477', time_epoch_executed='1632959527.16' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853293

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853293/ft1_4FGL_J2324.7-4041_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853293/ft2_4FGL_J2324.7-4041_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853293/ft1_4FGL_J2324.7-4041_daily_bin1333.fits outfile=/scratch/kocevski/853293/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1333.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=584841601.0 tmax=585100801.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 2.90
user 2.72
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853293/ft1_filtered_4FGL_J2324.7-4041_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/853293/ft2_4FGL_J2324.7-4041_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/853293/ltcube_584841601_585100801_4FGL_J2324.7-4041_daily_bin1333.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/853293/ft2_4FGL_J2324.7-4041_daily_bin1333.fits
.....................!
real 12.14
user 11.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853293/ft1_filtered_4FGL_J2324.7-4041_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/853293/ft2_4FGL_J2324.7-4041_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/853293/ltcube_584841601_585100801_4FGL_J2324.7-4041_daily_bin1333.fits outfile=/scratch/kocevski/853293/expmap_584841601_585100801_4FGL_J2324.7-4041_daily_bin1333.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/853293/ltcube_584841601_585100801_4FGL_J2324.7-4041_daily_bin1333.fits
.....................!
real 190.38
user 185.29
sys 4.73

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853293/ft1_filtered_4FGL_J2324.7-4041_daily_bin1333.fits scfile=/scratch/kocevski/853293/ft2_4FGL_J2324.7-4041_daily_bin1333.fits outfile=/scratch/kocevski/853293/cmap_HighResolution_584841601_585100801_4FGL_J2324.7-4041_daily_bin1333.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853293/ft1_filtered_4FGL_J2324.7-4041_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/853293/ft2_4FGL_J2324.7-4041_daily_bin1333.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853293/Model_4FGL_J2324.7-4041_daily_bin1333.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/853293/ft1_filtered_4FGL_J2324.7-4041_daily_bin1333.fits.....................!
real 39.02
user 37.61
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.026       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.419       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.043       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59933E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.388       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3732       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .98665       1.0000         .10000E-03   10000.    
    17 'norm      '    11.206       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7871       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5982       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .70337E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.5253       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1968       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .68275       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=   5060.518     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     4399 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.088       -.21402E-04** at limit **
   2  Prefactor     49.034        28.128       -.12703E-04   -.28905E-04
   3  Prefactor     .10000E-03    23.253        .19611E-04** at limit **
   4  Prefactor     .10000E-03    5.2962        .45705E-06** at limit **
   5  Prefactor     42.147        73.110       -.25692E-04   -.25679E-03
   6  Prefactor     4.4144        11.002       -.10085E-05   -.13826E-03
   7  Prefactor     22.026        21.786        .57026E-05   -.16572E-03
   8  Prefactor     .10001E-03    134.26        .91069E-04** at limit **
   9  Prefactor     17.388        19.465       -.34289E-05   -.98046E-04
  10  Prefactor     .10000E-03    5.6072        .10719E-05** at limit **
  11  Prefactor     .10000E-03    13.218       -.78140E-06** at limit **
  12  Prefactor     .10000E-03    16.125        .57341E-05** at limit **
  13  Prefactor     .10000E-03    5.6488       -.98437E-06** at limit **
  14  norm          2.3735        6.8289       -.84818E-05   -.34734E-03
  15  norm          .10000E-03    4.7014        .24593E-07** at limit **
  16  norm          .98642        3.1692       -.10183E-05   -.97521E-03
  17  norm          11.209        9.3861       -.56661E-06   -.61672E-04
  18  Prefactor     2.7866        8.0383       -.19842E-05   -.51791E-03
  19  Prefactor     .10000E-03    17.385       -.13787E-04** at limit **
  20  Prefactor     .10000E-03    42.462        .14312E-04** at limit **
  21  norm          .10000E-03    1.3912        .53791E-08** at limit **
  22  Prefactor     3.6026        23.839        .80708E-06   -.48778E-04
  23  norm          .10000E-03    .34831        .14737E-07** at limit **
  24  norm          .10000E-03    1.8722       -.26757E-06** at limit **
  25  Prefactor     .10000E-03    1.3958        .46975E-07** at limit **
  26  Prefactor     .10000E-03    16.080        .40827E-05** at limit **
  27  Prefactor     .10000E-03    63.586       -.28792E-04** at limit **
  28  Prefactor     6.5290        5.5409        .48363E-06   -.17279E-03
  29  Prefactor     .10000E-03    1.2397        .28482E-06** at limit **
  30  Prefactor     .10000E-03    50.469        .65685E-05** at limit **
  31  Normalizat    1.1967        .18928        .23311E-05   -.43754E-03
  32  Prefactor     .68277        .20028        .23843E-05   -.25947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.0341
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 42.1473
  Prefactor  = 4.41436
  Prefactor  = 22.0262
  Prefactor  = 0.000100009
  Prefactor  = 17.3883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.37346
  norm       = 0.0001
  norm       = 0.986416
  norm       = 11.2087
  Prefactor  = 2.78663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.6026
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.52895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19665
  Prefactor  = 0.682766
 **********
 **   18 **HESSE 
 **********

 FCN=   5060.518     FROM HESSE     STATUS=OK           649 CALLS     5048 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.034        28.132        .57271E-04   -1.4306    
   3  Prefactor     .10000E-03    23.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3704        .15960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.147        73.751        .61551E-04   -1.4409    
   6  Prefactor     4.4144        10.998        .19166E-03   -1.5288    
   7  Prefactor     22.026        21.749        .85314E-04   -1.4769    
   8  Prefactor     .10001E-03    138.00        .42129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.388        19.562        .96050E-04   -1.4874    
  10  Prefactor     .10000E-03    5.6438        .16448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6669        .16512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3735        6.8384        .26595E-03   -1.5400    
  15  norm          .10000E-03    4.7649        .15047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .98642        2.8629        .22105E-02   -1.5509    
  17  norm          11.209        9.3863        .11968E-03   -1.5038    
  18  Prefactor     2.7866        7.4985        .23771E-03   -1.5374    
  19  Prefactor     .10000E-03    17.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4013        .81866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6026        20.799        .21302E-03   -1.5328    
  23  norm          .10000E-03    .35619        .81698E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.0825        .18763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.4427        .16410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    63.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.5290        5.5558        .14635E-03   -1.5197    
  29  Prefactor     .10000E-03    1.2467        .77302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    50.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1967        .22325        .20781E-03   -.86706    
  32  Prefactor     .68277        .23486        .29207E-03   -1.0421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58379e-09
Minuit parameter uncertainties:
  1  3.96732e-05
  2  28.1396
  3  9.52686e-05
  4  0.00010525
  5  73.9113
  6  11.0033
  7  21.7563
  8  0.00226064
  9  19.5689
  10  1.08331e-05
  11  1.49109e-06
  12  7.08616e-06
  13  4.98274e-06
  14  6.84063
  15  9.36493e-06
  16  2.86331
  17  9.38754
  18  7.50103
  19  1.6467e-06
  20  0.00013875
  21  1.39137e-06
  22  17.3212
  23  1.44681e-06
  24  1.00943e-07
  25  6.22305e-06
  26  0.000119321
  27  0.000123426
  28  5.55621
  29  2.97582e-05
  30  0.000209417
  31  0.223425
  32  0.235201
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  9.864e-01  2.863e+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:  6.828e-01  2.352e-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.197e+00  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/853293/likelihoodResults_584841601_585100801_4FGL_J2324.7-4041_daily_bin1333.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) = 5060.17626664
delta logL = 0.341376652704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5060.12760495
delta logL = 0.390038342931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7420       1.0000         .10000E-03   10000.    
     2 'alpha     '    .82246       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68197       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=   5060.128     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7386        2.7999        .79461E-02    .13069E-03
   2  alpha         .82253        .75491        .50000       -.17864E-04
   3  Normalizat    1.1959        .17978        .34995E-01   -.82100E-05
   4  Prefactor     .68193        .19710        .66018E-01    .13195E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73862
  alpha      = 0.822525
  Normalizat = 1.19593
  Prefactor  = 0.681929
 **********
 **   18 **HESSE 
 **********

 FCN=   5060.128     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7386        2.9186        .13432E-03   -1.5444    
   2  alpha         .82253        .77754        .26534E-02   -.73554    
   3  Normalizat    1.1959        .21004        .20777E-03   -.86729    
   4  Prefactor     .68193        .22985        .29210E-03   -1.0424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09054e-12
Minuit parameter uncertainties:
  1  2.91883
  2  0.802361
  3  0.210183
  4  0.230168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853293': 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) = 5060.12760356
delta logL = 0.39003973376

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.739e+00  2.919e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  8.225e-01  8.024e-01  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:  6.819e-01  2.302e-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.196e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 351.182 -40.683

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/853293/cmap_HighResolution_584841601_585100801_4FGL_J2324.7-4041_daily_bin1333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-05', job_status='DONE', photon_flux_upper_limit='2.86e-08', time_completed='2021-09-29 17:05:38.355541', job_id='853293', GAL2='0.68', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632960338.36', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='3.90e-01', ts2='0.94', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1333' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:05:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 853293: <4FGL_J2324.7-4041_daily_bin1333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1333 351.182 -40.6834 584841601 585100801 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 :                                   774.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

