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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1640
RA = 351.182, Dec = -40.6834
tmin = 664416001, tmax = 664675201
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='284992', job_status='RUN', time_executed='2022-01-24 00:41:16.971936', time_epoch_executed='1643013676.97' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284992/ft1_4FGL_J2324.7-4041_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284992/ft2_4FGL_J2324.7-4041_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284992/ft1_4FGL_J2324.7-4041_daily_bin1640.fits outfile=/scratch/kocevski/284992/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1640.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=664416001.0 tmax=664675201.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.87
user 2.66
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/284992/ft2_4FGL_J2324.7-4041_daily_bin1640.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/284992/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1640.fits evtable="EVENTS" outfile="/scratch/kocevski/284992/ft1_filtered_4FGL_J2324.7-4041_daily_bin1640.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.43
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284992/ft1_filtered_4FGL_J2324.7-4041_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/284992/ft2_4FGL_J2324.7-4041_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/284992/ltcube_664416001_664675201_4FGL_J2324.7-4041_daily_bin1640.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/284992/ft2_4FGL_J2324.7-4041_daily_bin1640.fits
.....................!
real 9.60
user 9.29
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284992/ft1_filtered_4FGL_J2324.7-4041_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284992/ft2_4FGL_J2324.7-4041_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/284992/ltcube_664416001_664675201_4FGL_J2324.7-4041_daily_bin1640.fits outfile=/scratch/kocevski/284992/expmap_664416001_664675201_4FGL_J2324.7-4041_daily_bin1640.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/284992/ltcube_664416001_664675201_4FGL_J2324.7-4041_daily_bin1640.fits
.....................!
real 153.11
user 148.37
sys 4.46

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/284992/ft1_filtered_4FGL_J2324.7-4041_daily_bin1640.fits scfile=/scratch/kocevski/284992/ft2_4FGL_J2324.7-4041_daily_bin1640.fits outfile=/scratch/kocevski/284992/cmap_664416001_664675201_4FGL_J2324.7-4041_daily_bin1640.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.46
user 0.29
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284992/ft1_filtered_4FGL_J2324.7-4041_daily_bin1640.fits scfile=/scratch/kocevski/284992/ft2_4FGL_J2324.7-4041_daily_bin1640.fits outfile=/scratch/kocevski/284992/cmap_HighResolution_664416001_664675201_4FGL_J2324.7-4041_daily_bin1640.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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/284992/ft1_filtered_4FGL_J2324.7-4041_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284992/ft2_4FGL_J2324.7-4041_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284992/Model_4FGL_J2324.7-4041_daily_bin1640.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/284992/ft1_filtered_4FGL_J2324.7-4041_daily_bin1640.fits.....................!
real 29.04
user 27.97
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.889       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12420E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15845E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5202       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.229       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.264       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.0179       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2842       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.721       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .87358       1.0000         .10000E-03   10000.    
    24 'norm      '    4.7752       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9494       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.754       1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.4598       1.0000         .10000E-03   10000.    
    30 'Prefactor '    51.075       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1093       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .96734       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=   4116.560     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4305 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.888        63.851       -.53774E-05    .10098E-04
   2  Prefactor     .10000E-03    26.107       -.19900E-04** at limit **
   3  Prefactor     .10000E-03    62.080       -.32660E-04** at limit **
   4  Prefactor     .10000E-03    3.8349       -.10427E-06** at limit **
   5  Prefactor     .10000E-03    19.027        .10835E-04** at limit **
   6  Prefactor     .10016E-03    6.4276       -.38339E-05** at limit **
   7  Prefactor     27.505        36.471       -.49091E-04   -.46972E-04
   8  Prefactor     .10001E-03    41.198        .20354E-04** at limit **
   9  Prefactor     9.5200        20.469        .26012E-05   -.59126E-06
  10  Prefactor     18.228        10.733       -.18409E-06    .54765E-04
  11  Prefactor     17.264        44.497       -.12072E-05    .10515E-03
  12  Prefactor     .10000E-03    38.974        .14142E-04** at limit **
  13  Prefactor     .10000E-03    8.8226        .28766E-05** at limit **
  14  norm          .10000E-03    6.0669       -.36760E-06** at limit **
  15  norm          .10000E-03    9.6684       -.40666E-05** at limit **
  16  norm          .10000E-03    2.0292       -.35768E-07** at limit **
  17  norm          5.0188        14.778       -.35957E-05   -.89570E-04
  18  Prefactor     4.2845        4.2506        .11862E-05    .19911E-03
  19  Prefactor     38.717        51.118       -.59625E-05    .32587E-04
  20  Prefactor     .10000E-03    51.324        .11591E-04** at limit **
  21  norm          .10000E-03    2.3482        .55792E-07** at limit **
  22  Prefactor     .10000E-03    4.7575        .65832E-07** at limit **
  23  norm          .87403        1.1275       -.36947E-06    .63333E-06
  24  norm          4.7751        4.7416       -.16708E-06    .15767E-04
  25  Prefactor     .10000E-03    4.2654       -.93690E-07** at limit **
  26  Prefactor     1.9491        50.637       -.57917E-05   -.63987E-04
  27  Prefactor     .10000E-03    51.824        .10482E-04** at limit **
  28  Prefactor     12.755        11.662       -.17695E-05   -.32375E-04
  29  Prefactor     9.4602        5.4115       -.33708E-06    .30565E-03
  30  Prefactor     51.079        91.382        .44688E-05    .53345E-06
  31  Normalizat    1.1089        .24192        .34925E-05    .40531E-03
  32  Prefactor     .96773        .24640        .62382E-05    .33521E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100161
  Prefactor  = 27.5046
  Prefactor  = 0.000100009
  Prefactor  = 9.52004
  Prefactor  = 18.2281
  Prefactor  = 17.264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.0188
  Prefactor  = 4.2845
  Prefactor  = 38.7166
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.87403
  norm       = 4.77514
  Prefactor  = 0.0001
  Prefactor  = 1.94912
  Prefactor  = 0.0001
  Prefactor  = 12.7545
  Prefactor  = 9.46016
  Prefactor  = 51.0787
  Normalizat = 1.10891
  Prefactor  = 0.967729
 **********
 **   18 **HESSE 
 **********

 FCN=   4116.560     FROM HESSE     STATUS=OK           653 CALLS     4958 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.888        63.830        .12141E-03   -1.5048    
   2  Prefactor     .10000E-03    26.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    62.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9158        .12260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10016E-03    30.208        .30848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.505        36.571        .76324E-04   -1.4659    
   8  Prefactor     .10001E-03    41.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5200        20.495        .12988E-03   -1.5091    
  10  Prefactor     18.228        10.741        .93807E-04   -1.4854    
  11  Prefactor     17.264        44.257        .96393E-04   -1.4877    
  12  Prefactor     .10000E-03    38.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.8432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.0703        .15435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.8349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0294        .89256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0188        14.789        .17951E-03   -1.5260    
  18  Prefactor     4.2845        4.2574        .12768E-03   -1.5294    
  19  Prefactor     38.717        51.375        .64412E-04   -1.4463    
  20  Prefactor     .10000E-03    51.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3517        .95903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7607        .13667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .87403        1.0697        .73372E-03   -1.5521    
  24  norm          4.7751        4.7312        .13072E-03   -1.5271    
  25  Prefactor     .10000E-03    4.3591        .25720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.9491        50.371        .29724E-03   -1.5429    
  27  Prefactor     .10000E-03    51.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.755        11.660        .11216E-03   -1.4994    
  29  Prefactor     9.4602        5.4159        .10827E-03   -1.5093    
  30  Prefactor     51.079        91.411        .56116E-04   -1.4277    
  31  Normalizat    1.1089        .29411        .24458E-03   -.89466    
  32  Prefactor     .96773        .29750        .27919E-03   -.93813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13606e-09
Minuit parameter uncertainties:
  1  52.8091
  2  4.8298e-05
  3  0.000199589
  4  2.09272e-05
  5  1.16726e-05
  6  0.00441552
  7  36.6012
  8  0.00120702
  9  20.5106
  10  10.7421
  11  44.3413
  12  5.76021e-05
  13  3.3659e-05
  14  1.22415e-05
  15  1.82017e-05
  16  3.77469e-07
  17  14.8003
  18  4.25766
  19  51.434
  20  0.000101084
  21  5.29857e-06
  22  9.90245e-06
  23  1.06973
  24  4.73156
  25  1.2542e-05
  26  19.8352
  27  7.78913e-05
  28  11.6622
  29  5.41617
  30  91.6639
  31  0.294542
  32  0.298008
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.775e-07  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:  9.677e-01  2.980e-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.109e+00  2.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/284992/likelihoodResults_664416001_664675201_4FGL_J2324.7-4041_daily_bin1640.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) = 4116.56250941
delta logL = -0.00202034399626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4116.56048903
delta logL = 3.47708919435e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6161       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96771       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=   4116.560     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      235 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.4693        .89491E-03** at limit **
   2  alpha         1.3924        3.9603        .17998       -.58870E-07
   3  Normalizat    1.1089        .27061        .24458E-03    .30074E-04
   4  Prefactor     .96773        .29215        .27919E-03    .26713E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.3924
  Normalizat = 1.10891
  Prefactor  = 0.967729
 **********
 **   18 **HESSE 
 **********

 FCN=   4116.560     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1129        .17898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3924        3.7491        .71993E-02   -.45899    
   3  Normalizat    1.1089        .27092        .97831E-05   -.89466    
   4  Prefactor     .96773        .29248        .11168E-04   -.93813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37349e-10
Minuit parameter uncertainties:
  1  6.22609e-05
  2  162.239
  3  0.271262
  4  0.292958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284992': 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) = 4116.5604881
delta logL = 9.7263182397e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.226e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.392e+00  1.622e+02  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.677e-01  2.930e-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.109e+00  2.713e-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/284992/cmap_HighResolution_664416001_664675201_4FGL_J2324.7-4041_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-05', job_status='DONE', photon_flux_upper_limit='2.92e-08', time_completed='2022-01-24 00:50:24.476748', job_id='284992', GAL2='0.97', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1643014224.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1640' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:50:24 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 284992: <4FGL_J2324.7-4041_daily_bin1640> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1640> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 24 00:40:29 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:40:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:40:30 2022
Terminated at Mon Jan 24 00:50:25 2022
Results reported at Mon Jan 24 00:50:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1640 351.182 -40.6834 664416001 664675201 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 :                                   548.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            596 sec.

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

