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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1285
RA = 351.182, Dec = -40.6834
tmin = 572400001, tmax = 572659201
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='853218', job_status='RUN', time_executed='2021-09-29 16:53:40.675794', time_epoch_executed='1632959620.68' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853218

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853218/ft1_4FGL_J2324.7-4041_daily_bin1285.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853218/ft2_4FGL_J2324.7-4041_daily_bin1285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853218/ft1_4FGL_J2324.7-4041_daily_bin1285.fits outfile=/scratch/kocevski/853218/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1285.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=572400001.0 tmax=572659201.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.73
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853218/ft2_4FGL_J2324.7-4041_daily_bin1285.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/853218/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1285.fits evtable="EVENTS" outfile="/scratch/kocevski/853218/ft1_filtered_4FGL_J2324.7-4041_daily_bin1285.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853218/ft1_filtered_4FGL_J2324.7-4041_daily_bin1285.fits" evtable="EVENTS" scfile=/scratch/kocevski/853218/ft2_4FGL_J2324.7-4041_daily_bin1285.fits sctable="SC_DATA" outfile=/scratch/kocevski/853218/ltcube_572400001_572659201_4FGL_J2324.7-4041_daily_bin1285.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/853218/ft2_4FGL_J2324.7-4041_daily_bin1285.fits
.....................!
real 11.98
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853218/ft1_filtered_4FGL_J2324.7-4041_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/853218/ft2_4FGL_J2324.7-4041_daily_bin1285.fits sctable="SC_DATA" expcube=/scratch/kocevski/853218/ltcube_572400001_572659201_4FGL_J2324.7-4041_daily_bin1285.fits outfile=/scratch/kocevski/853218/expmap_572400001_572659201_4FGL_J2324.7-4041_daily_bin1285.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/853218/ltcube_572400001_572659201_4FGL_J2324.7-4041_daily_bin1285.fits
.....................!
real 191.27
user 186.01
sys 4.95

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/853218/ft1_filtered_4FGL_J2324.7-4041_daily_bin1285.fits scfile=/scratch/kocevski/853218/ft2_4FGL_J2324.7-4041_daily_bin1285.fits outfile=/scratch/kocevski/853218/cmap_572400001_572659201_4FGL_J2324.7-4041_daily_bin1285.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853218/ft1_filtered_4FGL_J2324.7-4041_daily_bin1285.fits scfile=/scratch/kocevski/853218/ft2_4FGL_J2324.7-4041_daily_bin1285.fits outfile=/scratch/kocevski/853218/cmap_HighResolution_572400001_572659201_4FGL_J2324.7-4041_daily_bin1285.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853218/ft1_filtered_4FGL_J2324.7-4041_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/853218/ft2_4FGL_J2324.7-4041_daily_bin1285.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853218/Model_4FGL_J2324.7-4041_daily_bin1285.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/853218/ft1_filtered_4FGL_J2324.7-4041_daily_bin1285.fits.....................!
real 38.08
user 36.79
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .86295       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8716       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   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 '    32.469       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.570       1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.281       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4420       1.0000         .10000E-03   10000.    
    21 'norm      '    7.3816       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .45916E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    1.9877       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12573E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.7315       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13219E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .99034       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1634       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=   4740.935     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4315 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.459        .26219E-07** at limit **
   2  Prefactor     .10000E-03    12.726       -.18948E-06** at limit **
   3  Prefactor     .10000E-03    7.9221       -.11455E-06** at limit **
   4  Prefactor     .86310        3.0157        .58558E-06    .41795E-04
   5  Prefactor     .10000E-03    28.993        .80244E-07** at limit **
   6  Prefactor     4.8719        6.2010        .40864E-05    .42150E-03
   7  Prefactor     39.481        28.810        .49565E-06    .67572E-04
   8  Prefactor     .10000E-03    8.8712       -.16310E-07** at limit **
   9  Prefactor     .10000E-03    8.7592        .64658E-07** at limit **
  10  Prefactor     .10000E-03    13.932       -.16997E-05** at limit **
  11  Prefactor     .10000E-03    19.821       -.44540E-06** at limit **
  12  Prefactor     32.468        55.857        .52571E-06   -.55267E-05
  13  Prefactor     .10000E-03    4.8118       -.13618E-06** at limit **
  14  norm          .10000E-03    4.3280       -.49060E-07** at limit **
  15  norm          .10000E-03    3.9307       -.51168E-07** at limit **
  16  norm          .10000E-03    11.084       -.27421E-07** at limit **
  17  norm          .10000E-03    8.0262        .10669E-05** at limit **
  18  Prefactor     11.566        7.5656        .33363E-06    .13703E-03
  19  Prefactor     39.278        47.093        .45979E-07   -.26904E-04
  20  Prefactor     9.5248        101.71        .50169E-05    .12073E-03
  21  norm          7.3816        7.5869        .29639E-06    .36632E-04
  22  Prefactor     .10000E-03    6.6670       -.61640E-07** at limit **
  23  norm          .48686E-01    .67812       -.10005E-06    .69481E-03
  24  norm          1.9881        5.0459        .73321E-06    .40319E-04
  25  Prefactor     .10002E-03    3.8456       -.18741E-05** at limit **
  26  Prefactor     .10000E-03    37.610       -.13808E-05** at limit **
  27  Prefactor     .10000E-03    27.044        .39071E-06** at limit **
  28  Prefactor     8.7344        9.0155        .29544E-05    .23625E-03
  29  Prefactor     .10001E-03    2.7060        .12766E-05** at limit **
  30  Prefactor     .10000E-03    32.034       -.97754E-07** at limit **
  31  Normalizat    .98954        .22395       -.46372E-05    .20846E-03
  32  Prefactor     1.1642        .23660        .32550E-05   -.40921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.863098
  Prefactor  = 0.0001
  Prefactor  = 4.87193
  Prefactor  = 39.4807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.4683
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5658
  Prefactor  = 39.2778
  Prefactor  = 9.52482
  norm       = 7.38164
  Prefactor  = 0.0001
  norm       = 0.0486859
  norm       = 1.98807
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.73445
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Normalizat = 0.989542
  Prefactor  = 1.16416
 **********
 **   18 **HESSE 
 **********

 FCN=   4740.935     FROM HESSE     STATUS=OK           651 CALLS     4966 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .86310        2.9765        .21344E-03   -1.5522    
   5  Prefactor     .10000E-03    29.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8719        6.3009        .91123E-03   -1.5266    
   7  Prefactor     39.481        28.798        .63799E-04   -1.4450    
   8  Prefactor     .10000E-03    8.8827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.7948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.468        55.841        .70321E-04   -1.4568    
  13  Prefactor     .10000E-03    4.8156        .14750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.3294        .13990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9558        .13324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.1083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.566        7.5416        .11777E-03   -1.5028    
  19  Prefactor     39.278        47.253        .63953E-04   -1.4454    
  20  Prefactor     9.5248        101.30        .13042E-03   -1.5091    
  21  norm          7.3816        7.5398        .14417E-03   -1.5165    
  22  Prefactor     .10000E-03    6.6755        .17357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .48686E-01    3.9353        .10538E-02   -1.5664    
  24  norm          1.9881        4.9826        .22378E-03   -1.5426    
  25  Prefactor     .10002E-03    7.6983        .24669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    37.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    27.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.7344        9.0399        .67826E-03   -1.5117    
  29  Prefactor     .10001E-03    10.786        .21194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    32.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .98954        .26360        .24957E-03   -.93382    
  32  Prefactor     1.1642        .28528        .25855E-03   -.87441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34515e-09
Minuit parameter uncertainties:
  1  0.000115567
  2  2.34324e-05
  3  2.31095e-05
  4  2.97703
  5  0.000130646
  6  6.3018
  7  28.8077
  8  1.73061e-05
  9  1.77437e-05
  10  0.000117414
  11  0.000112358
  12  55.9309
  13  2.60733e-06
  14  3.27477e-07
  15  2.6618e-06
  16  6.60823e-06
  17  6.65617e-06
  18  7.54226
  19  47.2985
  20  62.2605
  21  7.54077
  22  2.94202e-05
  23  0.874589
  24  4.98363
  25  0.000679902
  26  0.000161142
  27  0.000145931
  28  9.04132
  29  0.00074496
  30  1.3228e-05
  31  0.263949
  32  0.285657
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.608e-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:  1.164e+00  2.857e-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:  9.895e-01  2.639e-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: 5.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853218/likelihoodResults_572400001_572659201_4FGL_J2324.7-4041_daily_bin1285.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4740.93529336
delta logL = -0.000425023020398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4740.93486708
delta logL = 1.2496511772e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11420E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7580       1.0000          .0000       5.0000    
     3 'Normalizat'    .98997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1637       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=   4740.841     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      274 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1683        110.17        .90712E-02    .24171E-03
   2  alpha         2.4035        3.6359        .28002        .19880E-04
   3  Normalizat    .98978        .43055E-01    .46041E-01   -.47301E-03
   4  Prefactor     1.1546        .47682E-01    .58619E-01   -.23303E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16825
  alpha      = 2.40351
  Normalizat = 0.989779
  Prefactor  = 1.15457
 **********
 **   18 **HESSE 
 **********

 FCN=   4740.841     FROM HESSE     STATUS=OK            29 CALLS      303 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1683        4.5291        .17672E-03   -1.5492    
   2  alpha         2.4035        1.2479        .15611E-01   -.38607E-01
   3  Normalizat    .98978        .25274        .24940E-03   -.93374    
   4  Prefactor     1.1546        .28316        .25923E-03   -.87741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37118e-10
Minuit parameter uncertainties:
  1  4.53042
  2  1.30671
  3  0.253044
  4  0.283535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853218': 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) = 4740.84139337
delta logL = 0.0934749635289

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.168e+00  4.530e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.404e+00  1.307e+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:  1.155e+00  2.835e-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:  9.898e-01  2.530e-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/853218/cmap_HighResolution_572400001_572659201_4FGL_J2324.7-4041_daily_bin1285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-04', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2021-09-29 17:06:56.646917', job_id='853218', GAL2='1.15', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632960416.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='9.35e-02', ts2='0.19', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1285' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:06:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 853218: <4FGL_J2324.7-4041_daily_bin1285> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1285> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:23 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:24 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:24 2021
Terminated at Wed Sep 29 17:06:57 2021
Results reported at Wed Sep 29 17:06:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1285 351.182 -40.6834 572400001 572659201 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 :                                   754.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

