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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin693
RA = 351.182, Dec = -40.6834
tmin = 418953601, tmax = 419212801
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='849692', job_status='RUN', time_executed='2021-09-29 16:43:34.724526', time_epoch_executed='1632959014.72' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849692/ft1_4FGL_J2324.7-4041_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849692/ft2_4FGL_J2324.7-4041_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849692/ft1_4FGL_J2324.7-4041_daily_bin693.fits outfile=/scratch/kocevski/849692/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin693.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.50
user 5.20
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849692/ft1_filtered_4FGL_J2324.7-4041_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/849692/ft2_4FGL_J2324.7-4041_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/849692/ltcube_418953601_419212801_4FGL_J2324.7-4041_daily_bin693.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/849692/ft2_4FGL_J2324.7-4041_daily_bin693.fits
.....................!
real 11.99
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849692/ft1_filtered_4FGL_J2324.7-4041_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/849692/ft2_4FGL_J2324.7-4041_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/849692/ltcube_418953601_419212801_4FGL_J2324.7-4041_daily_bin693.fits outfile=/scratch/kocevski/849692/expmap_418953601_419212801_4FGL_J2324.7-4041_daily_bin693.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/849692/ltcube_418953601_419212801_4FGL_J2324.7-4041_daily_bin693.fits
.....................!
real 193.70
user 188.00
sys 5.34

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/849692/ft1_filtered_4FGL_J2324.7-4041_daily_bin693.fits scfile=/scratch/kocevski/849692/ft2_4FGL_J2324.7-4041_daily_bin693.fits outfile=/scratch/kocevski/849692/cmap_418953601_419212801_4FGL_J2324.7-4041_daily_bin693.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/849692/ft1_filtered_4FGL_J2324.7-4041_daily_bin693.fits scfile=/scratch/kocevski/849692/ft2_4FGL_J2324.7-4041_daily_bin693.fits outfile=/scratch/kocevski/849692/cmap_HighResolution_418953601_419212801_4FGL_J2324.7-4041_daily_bin693.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/849692/ft1_filtered_4FGL_J2324.7-4041_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/849692/ft2_4FGL_J2324.7-4041_daily_bin693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/849692/Model_4FGL_J2324.7-4041_daily_bin693.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/849692/ft1_filtered_4FGL_J2324.7-4041_daily_bin693.fits.....................!
real 31.07
user 29.74
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.106       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28994E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7503       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19584E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4511       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    134.55       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.334       1.0000         .10000E-03   10000.    
    14 'norm      '    6.4867       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    110.53       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.606       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2487       1.0000         .10000E-03   10000.    
    24 'norm      '    17.441       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.2662       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    95.159       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.185       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .15862       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.5041       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=   3270.092     FROM MIGRAD    STATUS=CONVERGED   1476 CALLS     5641 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.070        59.252        .61778E-04   -.12882E-06
   2  Prefactor     .10018E-03    152.33        .62192E-02** at limit **
   3  Prefactor     .10000E-03    18.266        .18142E-02** at limit **
   4  Prefactor     5.7559        5.0043        .11189E-03    .33219E-03
   5  Prefactor     .10000E-03    55.308        .18142E-02** at limit **
   6  Prefactor     .10000E-03    6.1818        .13777E-02** at limit **
   7  Prefactor     .10000E-03    20.060        .18142E-02** at limit **
   8  Prefactor     .10000E-03    21.535        .18142E-02** at limit **
   9  Prefactor     .10001E-03    79.556        .36285E-03** at limit **
  10  Prefactor     1.4466        19.473        .17881E-02    .91610E-04
  11  Prefactor     .10000E-03    14.229        .18142E-02** at limit **
  12  Prefactor     134.59        99.067        .17359E-03   -.27702E-04
  13  Prefactor     10.339        23.159        .12464E-03    .33247E-04
  14  norm          6.4896        14.414        .15758E-03    .26586E-04
  15  norm          .10000E-03    3.3796        .10264E-02** at limit **
  16  norm          .10000E-03    4.2517        .11489E-02** at limit **
  17  norm          .10000E-03    5.9900        .13648E-02** at limit **
  18  Prefactor     .10000E-03    10.397        .17925E-02** at limit **
  19  Prefactor     .10000E-03    44.133        .18142E-02** at limit **
  20  Prefactor     110.54        80.044        .38259E-04    .23683E-04
  21  norm          .10000E-03    3.1126        .98293E-03** at limit **
  22  Prefactor     44.605        29.086        .60029E-04    .15088E-03
  23  norm          5.2490        2.3708        .52316E-04    .32281E-03
  24  norm          17.444        8.3590        .95905E-04    .21681E-03
  25  Prefactor     5.2677        5.9601        .14155E-03    .12649E-04
  26  Prefactor     .10000E-03    23.495        .18142E-02** at limit **
  27  Prefactor     95.155        85.768        .20601E-03   -.13796E-04
  28  Prefactor     10.187        7.8983        .12555E-03   -.10911E-04
  29  Prefactor     .10000E-03    1.7939        .74731E-03** at limit **
  30  Prefactor     .10000E-03    36.690        .18142E-02** at limit **
  31  Normalizat    .15886        .28732        .53038E-03    .27105E-04
  32  Prefactor     1.5040        .31280        .20623E-03    .24145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.07
  Prefactor  = 0.000100182
  Prefactor  = 0.0001
  Prefactor  = 5.75585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 1.44664
  Prefactor  = 0.0001
  Prefactor  = 134.593
  Prefactor  = 10.3392
  norm       = 6.48961
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.544
  norm       = 0.0001
  Prefactor  = 44.6047
  norm       = 5.24902
  norm       = 17.4441
  Prefactor  = 5.26767
  Prefactor  = 0.0001
  Prefactor  = 95.1553
  Prefactor  = 10.187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.158856
  Prefactor  = 1.50397
 **********
 **   18 **HESSE 
 **********

 FCN=   3270.092     FROM HESSE     STATUS=OK           627 CALLS     6268 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.070        59.244        .12356E-04   -1.4410    
   2  Prefactor     .10018E-03    154.89        .12438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7559        5.0034        .44758E-05   -1.5228    
   5  Prefactor     .10000E-03    55.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1840        .27553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.063        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    79.560        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4466        19.347        .71525E-04   -1.5467    
  11  Prefactor     .10000E-03    14.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     134.59        99.058        .69438E-05   -1.3382    
  13  Prefactor     10.339        23.155        .49856E-05   -1.5065    
  14  norm          6.4896        14.414        .63031E-05   -1.5198    
  15  norm          .10000E-03    3.3796        .20527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2520        .22979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.9904        .27297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.398        .35850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    44.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     110.54        80.014        .76517E-05   -1.3601    
  21  norm          .10000E-03    3.1128        .19659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     44.605        29.079        .12006E-04   -1.4371    
  23  norm          5.2490        2.3706        .20927E-05   -1.5250    
  24  norm          17.444        8.3579        .38362E-05   -1.4872    
  25  Prefactor     5.2677        5.9593        .56621E-05   -1.5249    
  26  Prefactor     .10000E-03    23.497        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     95.155        85.766        .41202E-04   -1.3754    
  28  Prefactor     10.187        7.8970        .50222E-05   -1.5070    
  29  Prefactor     .10000E-03    1.7939        .14946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    36.690        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .15886        .28651        .21215E-04   -1.3261    
  32  Prefactor     1.5040        .31206        .82494E-05   -.77429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46696e-09
Minuit parameter uncertainties:
  1  59.3272
  2  0.0106514
  3  5.75126e-05
  4  5.00375
  5  0.000317099
  6  2.32562e-05
  7  7.25456e-05
  8  4.46625e-05
  9  0.00140678
  10  10.5847
  11  1.89264e-05
  12  99.18
  13  23.1753
  14  14.4217
  15  2.32206e-06
  16  7.54576e-06
  17  3.14691e-05
  18  8.60435e-05
  19  2.8233e-05
  20  80.0918
  21  7.95499e-06
  22  29.0882
  23  2.37066
  24  8.35845
  25  5.95993
  26  9.32719e-05
  27  85.8776
  28  7.89778
  29  8.34431e-06
  30  0.000129676
  31  0.289253
  32  0.312458
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  7.546e-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.504e+00  3.125e-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.589e-01  2.893e-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: 4.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849692/likelihoodResults_418953601_419212801_4FGL_J2324.7-4041_daily_bin693.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) = 3270.09293086
delta logL = -0.00105125929258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3270.09187954
delta logL = 5.85187081015e-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.6122       1.0000          .0000       5.0000    
     3 'Normalizat'    .15886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5040       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=   3270.092     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      251 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    321.62        .11549E-02** at limit **
   2  alpha         1.4493        4.2704        .50000        .66530E-07
   3  Normalizat    .15886        .48529E-01    .53041E-03    .48254E-03
   4  Prefactor     1.5040        .55317E-01    .20623E-03    .12942E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.44932
  Normalizat = 0.158857
  Prefactor  = 1.50398
 **********
 **   18 **HESSE 
 **********

 FCN=   3270.092     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    990.93        .23098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4493        2.9229        .50000       -.43374    
   3  Normalizat    .15886        .16863        .21216E-04   -1.3261    
   4  Prefactor     1.5040        .19269        .41247E-04   -.77428    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.09709e-09
Minuit parameter uncertainties:
  1  2.64078e-05
  2  2270.48
  3  0.16918
  4  0.192783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849692': 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): 102
logL (Free Index) = 3270.09187912
delta logL = 4.83816620545e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  2.641e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.449e+00  2.270e+03  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.504e+00  1.928e-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.589e-01  1.692e-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/849692/cmap_HighResolution_418953601_419212801_4FGL_J2324.7-4041_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.84e-05', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2021-09-29 16:55:20.410123', job_id='849692', GAL2='1.50', fit_tolerance='1e-08', EG2='0.16', EG='0.16', time_epoch_completed='1632959720.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.50', dlogl='4.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='693' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:55:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 849692: <4FGL_J2324.7-4041_daily_bin693> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin693> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 16:40:56 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:40:57 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:40:57 2021
Terminated at Wed Sep 29 16:55:21 2021
Results reported at Wed Sep 29 16:55:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin693 351.182 -40.6834 418953601 419212801 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 :                                   703.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

