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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1127
RA = 351.182, Dec = -40.6834
tmin = 531446401, tmax = 531705601
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='851899', job_status='RUN', time_executed='2021-09-29 16:46:51.344481', time_epoch_executed='1632959211.34' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851899/ft1_4FGL_J2324.7-4041_daily_bin1127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851899/ft2_4FGL_J2324.7-4041_daily_bin1127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851899/ft1_4FGL_J2324.7-4041_daily_bin1127.fits outfile=/scratch/kocevski/851899/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1127.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=531446401.0 tmax=531705601.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.59
user 3.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851899/ft1_filtered_4FGL_J2324.7-4041_daily_bin1127.fits" evtable="EVENTS" scfile=/scratch/kocevski/851899/ft2_4FGL_J2324.7-4041_daily_bin1127.fits sctable="SC_DATA" outfile=/scratch/kocevski/851899/ltcube_531446401_531705601_4FGL_J2324.7-4041_daily_bin1127.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/851899/ft2_4FGL_J2324.7-4041_daily_bin1127.fits
.....................!
real 12.32
user 11.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851899/ft1_filtered_4FGL_J2324.7-4041_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/851899/ft2_4FGL_J2324.7-4041_daily_bin1127.fits sctable="SC_DATA" expcube=/scratch/kocevski/851899/ltcube_531446401_531705601_4FGL_J2324.7-4041_daily_bin1127.fits outfile=/scratch/kocevski/851899/expmap_531446401_531705601_4FGL_J2324.7-4041_daily_bin1127.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/851899/ltcube_531446401_531705601_4FGL_J2324.7-4041_daily_bin1127.fits
.....................!
real 191.00
user 185.42
sys 5.25

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/851899/ft1_filtered_4FGL_J2324.7-4041_daily_bin1127.fits scfile=/scratch/kocevski/851899/ft2_4FGL_J2324.7-4041_daily_bin1127.fits outfile=/scratch/kocevski/851899/cmap_531446401_531705601_4FGL_J2324.7-4041_daily_bin1127.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851899/ft1_filtered_4FGL_J2324.7-4041_daily_bin1127.fits scfile=/scratch/kocevski/851899/ft2_4FGL_J2324.7-4041_daily_bin1127.fits outfile=/scratch/kocevski/851899/cmap_HighResolution_531446401_531705601_4FGL_J2324.7-4041_daily_bin1127.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851899/ft1_filtered_4FGL_J2324.7-4041_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/851899/ft2_4FGL_J2324.7-4041_daily_bin1127.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851899/Model_4FGL_J2324.7-4041_daily_bin1127.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/851899/ft1_filtered_4FGL_J2324.7-4041_daily_bin1127.fits.....................!
real 36.75
user 35.43
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7361       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7848       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2358       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.079       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.748       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5349       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    122.94       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8995       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6281       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10586E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.381       1.0000         .10000E-03   10000.    
    20 'Prefactor '    118.31       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8968       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9423       1.0000         .10000E-03   10000.    
    24 'norm      '    5.1231       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8056       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .18521       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3122       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .57582       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=   4252.597     FROM MIGRAD    STATUS=CONVERGED    868 CALLS     4471 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7321        180.11       -.10666E-06   -.38527E-05
   2  Prefactor     9.7864        22.964       -.12706E-05   -.45584E-04
   3  Prefactor     .10312E-03    35.650        .55691E-05** at limit **
   4  Prefactor     5.2358        3.7574       -.10173E-06    .17801E-04
   5  Prefactor     .10000E-03    23.265        .48298E-08** at limit **
   6  Prefactor     1.3591        6.6452        .42030E-05   -.15428E-03
   7  Prefactor     42.081        30.937        .31832E-07    .18643E-04
   8  Prefactor     31.753        29.802        .70467E-06    .10607E-03
   9  Prefactor     1.5332        55.315       -.72752E-07   -.46549E-05
  10  Prefactor     13.626        12.260        .49777E-07    .43618E-04
  11  Prefactor     .10000E-03    23.793        .23904E-06** at limit **
  12  Prefactor     123.00        86.442       -.31740E-05   -.19390E-03
  13  Prefactor     1.9015        20.455        .30979E-05   -.32211E-04
  14  norm          .10000E-03    4.7161        .11785E-06** at limit **
  15  norm          .10000E-03    3.0379        .10253E-06** at limit **
  16  norm          .10000E-03    2.4300        .24881E-06** at limit **
  17  norm          2.6288        5.9286        .15059E-06   -.78715E-05
  18  Prefactor     .10000E-03    6.9721       -.27619E-05** at limit **
  19  Prefactor     46.483        61.857        .54081E-06   -.44902E-06
  20  Prefactor     118.37        83.338       -.32916E-05   -.19387E-03
  21  norm          1.8908        6.4672       -.19609E-05   -.29107E-03
  22  Prefactor     .10000E-03    15.484       -.33689E-06** at limit **
  23  norm          1.9431        1.2353       -.27405E-06   -.42789E-03
  24  norm          5.1243        5.7362        .47848E-06    .71889E-04
  25  Prefactor     .10000E-03    4.4985       -.22335E-05** at limit **
  26  Prefactor     1.8054        90.846        .42025E-05    .72630E-04
  27  Prefactor     .10000E-03    25.603        .70690E-06** at limit **
  28  Prefactor     .10000E-03    3.9240        .27103E-06** at limit **
  29  Prefactor     .18925        2.9991       -.42702E-06   -.14891E-04
  30  Prefactor     .10000E-03    42.859        .44840E-06** at limit **
  31  Normalizat    1.3123        .27651        .36297E-05   -.37510E-03
  32  Prefactor     .57578        .26793       -.67997E-05    .26451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.73215
  Prefactor  = 9.78645
  Prefactor  = 0.000103122
  Prefactor  = 5.23581
  Prefactor  = 0.0001
  Prefactor  = 1.35906
  Prefactor  = 42.0805
  Prefactor  = 31.7533
  Prefactor  = 1.53325
  Prefactor  = 13.6255
  Prefactor  = 0.0001
  Prefactor  = 123.002
  Prefactor  = 1.90153
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.62881
  Prefactor  = 0.0001
  Prefactor  = 46.4829
  Prefactor  = 118.373
  norm       = 1.89084
  Prefactor  = 0.0001
  norm       = 1.94308
  norm       = 5.12425
  Prefactor  = 0.000100001
  Prefactor  = 1.80538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.189252
  Prefactor  = 0.0001
  Normalizat = 1.31225
  Prefactor  = 0.575782
 **********
 **   18 **HESSE 
 **********

 FCN=   4252.597     FROM HESSE     STATUS=OK           671 CALLS     5142 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7321        179.61        .16771E-03   -1.5229    
   2  Prefactor     9.7864        22.990        .12811E-03   -1.5082    
   3  Prefactor     .10312E-03    31.220        .11555       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2358        3.7570        .10321E-03   -1.5250    
   5  Prefactor     .10000E-03    23.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3591        7.5051        .17059E-02   -1.5475    
   7  Prefactor     42.081        30.906        .61798E-04   -1.4410    
   8  Prefactor     31.753        29.854        .71112E-04   -1.4580    
   9  Prefactor     1.5332        55.307        .34435E-03   -1.5460    
  10  Prefactor     13.626        12.261        .54254E-03   -1.4970    
  11  Prefactor     .10000E-03    23.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     123.00        87.446        .18150E-03   -1.3485    
  13  Prefactor     1.9015        20.901        .15089E-02   -1.5432    
  14  norm          .10000E-03    4.7185        .13832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.0423        .11100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4357        .99327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6288        5.9006        .23045E-03   -1.5384    
  18  Prefactor     .10000E-03    21.562        .27377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.483        61.413        .58874E-04   -1.4343    
  20  Prefactor     118.37        83.857        .18497E-03   -1.3528    
  21  norm          1.8908        6.3679        .24592E-03   -1.5433    
  22  Prefactor     .10000E-03    15.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9431        1.2206        .54060E-04   -1.5429    
  24  norm          5.1243        5.6969        .14696E-03   -1.5255    
  25  Prefactor     .10000E-03    4.6880        .27106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.8054        90.687        .31101E-03   -1.5439    
  27  Prefactor     .10000E-03    25.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.9422        .12616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .18925        18.954        .20690E-02   -1.5621    
  30  Prefactor     .10000E-03    42.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3123        .29275        .21988E-03   -.83201    
  32  Prefactor     .57578        .28351        .33594E-03   -1.0862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64837e-08
Minuit parameter uncertainties:
  1  64.3852
  2  23.0103
  3  0.0197566
  4  3.75715
  5  1.73883e-05
  6  6.38848
  7  30.9175
  8  29.8684
  9  18.4352
  10  12.2631
  11  7.2263e-06
  12  87.5378
  13  12.6139
  14  8.43506e-06
  15  7.4463e-06
  16  1.92019e-05
  17  5.90187
  18  1.56997e-05
  19  61.4971
  20  83.9408
  21  6.37021
  22  3.90887e-05
  23  1.22064
  24  5.69746
  25  0.000115986
  26  25.6314
  27  0.000130342
  28  1.04913e-05
  29  3.78811
  30  5.62602e-05
  31  0.29312
  32  0.284216
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.920e-05  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:  5.758e-01  2.842e-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.312e+00  2.931e-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: 3.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851899/likelihoodResults_531446401_531705601_4FGL_J2324.7-4041_daily_bin1127.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) = 4252.59879976
delta logL = -0.00165817339257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4252.59714167
delta logL = -8.08568074717e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6204       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57569       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=   4252.597     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      234 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    343.85        .99376E-03** at limit **
   2  alpha         1.5240        4.0201        .50000        .80036E-08
   3  Normalizat    1.3123        .77956E-01    .21988E-03   -.85312E-05
   4  Prefactor     .57577        .82304E-01    .33593E-03   -.12995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.52397
  Normalizat = 1.31226
  Prefactor  = 0.575774
 **********
 **   18 **HESSE 
 **********

 FCN=   4252.597     FROM HESSE     STATUS=OK            27 CALLS      261 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5593        .19875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5240        3.6153        .20000       -.40108    
   3  Normalizat    1.3123        .26102        .87952E-05   -.83201    
   4  Prefactor     .57577        .27525        .13437E-04   -1.0862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30035e-12
Minuit parameter uncertainties:
  1  9.44619e-08
  2  181.054
  3  0.261278
  4  0.275891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851899': 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) = 4252.59714144
delta logL = 1.50030246004e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  9.446e-08  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.524e+00  1.811e+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:  5.758e-01  2.759e-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.312e+00  2.613e-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/851899/cmap_HighResolution_531446401_531705601_4FGL_J2324.7-4041_daily_bin1127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-05', job_status='DONE', photon_flux_upper_limit='3.22e-08', time_completed='2021-09-29 16:59:04.195037', job_id='851899', GAL2='0.58', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632959944.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1127' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 851899: <4FGL_J2324.7-4041_daily_bin1127> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1127> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:55 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:56 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:45:56 2021
Terminated at Wed Sep 29 16:59:04 2021
Results reported at Wed Sep 29 16:59:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1127 351.182 -40.6834 531446401 531705601 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 :                                   718.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

