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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1288
RA = 351.182, Dec = -40.6834
tmin = 573177601, tmax = 573436801
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='853222', job_status='RUN', time_executed='2021-09-29 16:51:40.251175', time_epoch_executed='1632959500.25' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853222

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853222/ft1_4FGL_J2324.7-4041_daily_bin1288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853222/ft2_4FGL_J2324.7-4041_daily_bin1288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853222/ft1_4FGL_J2324.7-4041_daily_bin1288.fits outfile=/scratch/kocevski/853222/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1288.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=573177601.0 tmax=573436801.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.49
user 5.22
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853222/ft1_filtered_4FGL_J2324.7-4041_daily_bin1288.fits" evtable="EVENTS" scfile=/scratch/kocevski/853222/ft2_4FGL_J2324.7-4041_daily_bin1288.fits sctable="SC_DATA" outfile=/scratch/kocevski/853222/ltcube_573177601_573436801_4FGL_J2324.7-4041_daily_bin1288.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/853222/ft2_4FGL_J2324.7-4041_daily_bin1288.fits
.....................!
real 13.08
user 12.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853222/ft1_filtered_4FGL_J2324.7-4041_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/853222/ft2_4FGL_J2324.7-4041_daily_bin1288.fits sctable="SC_DATA" expcube=/scratch/kocevski/853222/ltcube_573177601_573436801_4FGL_J2324.7-4041_daily_bin1288.fits outfile=/scratch/kocevski/853222/expmap_573177601_573436801_4FGL_J2324.7-4041_daily_bin1288.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/853222/ltcube_573177601_573436801_4FGL_J2324.7-4041_daily_bin1288.fits
.....................!
real 192.52
user 187.06
sys 5.13

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/853222/ft1_filtered_4FGL_J2324.7-4041_daily_bin1288.fits scfile=/scratch/kocevski/853222/ft2_4FGL_J2324.7-4041_daily_bin1288.fits outfile=/scratch/kocevski/853222/cmap_573177601_573436801_4FGL_J2324.7-4041_daily_bin1288.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853222/ft1_filtered_4FGL_J2324.7-4041_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/853222/ft2_4FGL_J2324.7-4041_daily_bin1288.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853222/Model_4FGL_J2324.7-4041_daily_bin1288.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/853222/ft1_filtered_4FGL_J2324.7-4041_daily_bin1288.fits......................!
real 33.68
user 32.45
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.014       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.307       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.426       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.493       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.097       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.544       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.8654       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1401       1.0000         .10000E-03   10000.    
    19 'Prefactor '    100.55       1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.420       1.0000         .10000E-03   10000.    
    21 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2631       1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16254E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.9039       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .16317E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5406       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .42858       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=   3702.635     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     5351 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.383       -.73584E-06** at limit **
   2  Prefactor     .10000E-03    12.259       -.42840E-06** at limit **
   3  Prefactor     26.017        48.083       -.10642E-06    .40891E-04
   4  Prefactor     16.307        6.9464       -.76346E-07    .64284E-04
   5  Prefactor     33.424        42.248       -.16862E-06    .28110E-05
   6  Prefactor     17.491        12.702       -.22952E-06    .52783E-04
   7  Prefactor     .10000E-03    18.878        .62133E-06** at limit **
   8  Prefactor     .10000E-03    16.002       -.98333E-06** at limit **
   9  Prefactor     40.095        25.034       -.31678E-06    .37251E-04
  10  Prefactor     .10000E-03    2.1314        .69466E-08** at limit **
  11  Prefactor     70.552        59.014        .86995E-06    .70459E-04
  12  Prefactor     .10001E-03    138.97       -.93089E-05** at limit **
  13  Prefactor     .10000E-03    14.082        .96074E-06** at limit **
  14  norm          6.8650        10.636        .66649E-06   -.10391E-03
  15  norm          .10000E-03    2.6769       -.79847E-07** at limit **
  16  norm          .10000E-03    3.6255       -.88089E-07** at limit **
  17  norm          .10000E-03    14.549        .48992E-07** at limit **
  18  Prefactor     6.1392        9.1607        .31047E-05   -.32434E-03
  19  Prefactor     100.53        50.430       -.14337E-05   -.17097E-04
  20  Prefactor     64.397        73.688       -.34564E-05   -.63956E-04
  21  norm          .10000E-03    3.4920       -.17479E-06** at limit **
  22  Prefactor     .10000E-03    24.965       -.97964E-06** at limit **
  23  norm          1.2630        1.4603       -.15622E-06    .76373E-03
  24  norm          .10000E-03    3.4608       -.74759E-07** at limit **
  25  Prefactor     .10006E-03    4.6328       -.28618E-05** at limit **
  26  Prefactor     9.8655        38.921        .58336E-05    .21761E-03
  27  Prefactor     .10000E-03    52.692       -.48178E-05** at limit **
  28  Prefactor     .10000E-03    18.178        .74512E-06** at limit **
  29  Prefactor     .10000E-03    4.1836       -.83279E-06** at limit **
  30  Prefactor     .10002E-03    79.492        .11404E-04** at limit **
  31  Normalizat    1.5409        .28031        .43437E-05    .27695E-03
  32  Prefactor     .42838        .27984       -.58837E-05    .21255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0172
  Prefactor  = 16.3065
  Prefactor  = 33.4241
  Prefactor  = 17.4912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.0951
  Prefactor  = 0.0001
  Prefactor  = 70.5521
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 6.865
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.13915
  Prefactor  = 100.532
  Prefactor  = 64.3973
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26299
  norm       = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 9.86553
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Normalizat = 1.54088
  Prefactor  = 0.428376
 **********
 **   18 **HESSE 
 **********

 FCN=   3702.635     FROM HESSE     STATUS=OK           647 CALLS     5998 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.017        48.234        .78542E-04   -1.4687    
   4  Prefactor     16.307        6.9414        .99181E-04   -1.4900    
   5  Prefactor     33.424        42.234        .69310E-04   -1.4551    
   6  Prefactor     17.491        12.706        .95760E-04   -1.4871    
   7  Prefactor     .10000E-03    18.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.095        25.058        .63301E-04   -1.4441    
  10  Prefactor     .10000E-03    2.1321        .86761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     70.552        59.002        .47795E-04   -1.4026    
  12  Prefactor     .10001E-03    141.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.8650        10.626        .76561E-03   -1.5184    
  15  norm          .10000E-03    2.6779        .97237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6347        .11310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1392        9.0748        .81009E-03   -1.5212    
  19  Prefactor     100.53        50.555        .40094E-04   -1.3699    
  20  Prefactor     64.397        74.111        .50000E-04   -1.4101    
  21  norm          .10000E-03    3.5031        .11080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2630        1.4249        .71506E-04   -1.5483    
  24  norm          .10000E-03    3.4887        .11047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10006E-03    18.037        .21870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.8655        37.653        .12733E-03   -1.5080    
  27  Prefactor     .10000E-03    53.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.0016        .23963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10002E-03    81.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.5409        .31932        .21608E-03   -.76636    
  32  Prefactor     .42838        .31035        .40069E-03   -1.1538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72277e-09
Minuit parameter uncertainties:
  1  7.893e-05
  2  3.06898e-05
  3  48.3068
  4  6.94174
  5  42.2717
  6  12.7081
  7  4.83568e-05
  8  0.000111586
  9  25.0646
  10  9.16831e-07
  11  59.0513
  12  0.00271063
  13  3.58826e-05
  14  10.6285
  15  6.62657e-06
  16  9.55509e-06
  17  4.02025e-05
  18  9.07681
  19  50.5762
  20  74.2179
  21  1.43159e-05
  22  0.000208377
  23  1.42492
  24  2.17153e-06
  25  0.00207885
  26  37.7435
  27  0.000865259
  28  5.98896e-05
  29  9.18281e-06
  30  0.00232473
  31  0.319742
  32  0.311578
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  9.555e-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:  4.284e-01  3.116e-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.541e+00  3.197e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853222/likelihoodResults_573177601_573436801_4FGL_J2324.7-4041_daily_bin1288.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) = 3702.63658182
delta logL = -0.00119330489269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3702.63538842
delta logL = 9.38616722124e-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.6365       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42834       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=   3702.635     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      204 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7960        .90712E-02** at limit **
   2  alpha         1.6513        3.3215        .44788       -.18558E-04
   3  Normalizat    1.5409        .25857        .48880E-01    .20948E-04
   4  Prefactor     .42837        .26881        .90422E-01    .37222E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.6513
  Normalizat = 1.54088
  Prefactor  = 0.428372
 **********
 **   18 **HESSE 
 **********

 FCN=   3702.635     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7200        .11397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6513        3.2955        .50000       -.34636    
   3  Normalizat    1.5409        .28881        .21608E-03   -.76636    
   4  Prefactor     .42837        .29922        .40070E-03   -1.1538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46371e-10
Minuit parameter uncertainties:
  1  6.02044e-06
  2  2.36183
  3  0.289116
  4  0.300324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853222': 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) = 3702.63538829
delta logL = 2.17809429159e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.020e-06  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.651e+00  2.362e+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:  4.284e-01  3.003e-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.541e+00  2.891e-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/853222/cmap_HighResolution_573177601_573436801_4FGL_J2324.7-4041_daily_bin1288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-05', job_status='DONE', photon_flux_upper_limit='4.14e-08', time_completed='2021-09-29 17:04:17.300925', job_id='853222', GAL2='0.43', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1632960257.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='2.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1288' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:04:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 853222: <4FGL_J2324.7-4041_daily_bin1288> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1288> 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) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:25 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:25 2021
Terminated at Wed Sep 29 17:04:18 2021
Results reported at Wed Sep 29 17:04:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1288 351.182 -40.6834 573177601 573436801 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

