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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1221
RA = 351.182, Dec = -40.6834
tmin = 555811201, tmax = 556070401
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='853121', job_status='RUN', time_executed='2021-09-29 16:53:10.139794', time_epoch_executed='1632959590.14' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853121

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853121/ft1_4FGL_J2324.7-4041_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853121/ft2_4FGL_J2324.7-4041_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853121/ft1_4FGL_J2324.7-4041_daily_bin1221.fits outfile=/scratch/kocevski/853121/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1221.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=555811201.0 tmax=556070401.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.61
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853121/ft1_filtered_4FGL_J2324.7-4041_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/853121/ft2_4FGL_J2324.7-4041_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/853121/ltcube_555811201_556070401_4FGL_J2324.7-4041_daily_bin1221.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/853121/ft2_4FGL_J2324.7-4041_daily_bin1221.fits
.....................!
real 13.51
user 13.17
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853121/ft1_filtered_4FGL_J2324.7-4041_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/853121/ft2_4FGL_J2324.7-4041_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/853121/ltcube_555811201_556070401_4FGL_J2324.7-4041_daily_bin1221.fits outfile=/scratch/kocevski/853121/expmap_555811201_556070401_4FGL_J2324.7-4041_daily_bin1221.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/853121/ltcube_555811201_556070401_4FGL_J2324.7-4041_daily_bin1221.fits
.....................!
real 190.79
user 186.13
sys 4.12

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/853121/ft1_filtered_4FGL_J2324.7-4041_daily_bin1221.fits scfile=/scratch/kocevski/853121/ft2_4FGL_J2324.7-4041_daily_bin1221.fits outfile=/scratch/kocevski/853121/cmap_555811201_556070401_4FGL_J2324.7-4041_daily_bin1221.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853121/ft1_filtered_4FGL_J2324.7-4041_daily_bin1221.fits scfile=/scratch/kocevski/853121/ft2_4FGL_J2324.7-4041_daily_bin1221.fits outfile=/scratch/kocevski/853121/cmap_HighResolution_555811201_556070401_4FGL_J2324.7-4041_daily_bin1221.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853121/ft1_filtered_4FGL_J2324.7-4041_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/853121/ft2_4FGL_J2324.7-4041_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853121/Model_4FGL_J2324.7-4041_daily_bin1221.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/853121/ft1_filtered_4FGL_J2324.7-4041_daily_bin1221.fits.......................!
real 19.99
user 18.82
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.643       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1834       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    176.14       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11128E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11431E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.271       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2015       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11913E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.7276       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .51177E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.5405       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.0603       1.0000         .10000E-03   10000.    
    26 'Prefactor '    72.084       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.5705       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3438       1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.503       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .41958       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=   1258.646     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4389 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.273        .73943E-06** at limit **
   2  Prefactor     .10000E-03    94.703        .30650E-06** at limit **
   3  Prefactor     40.647        54.712       -.44938E-07   -.47330E-05
   4  Prefactor     4.1832        6.8680       -.13381E-07    .18056E-04
   5  Prefactor     .10000E-03    52.350       -.20071E-06** at limit **
   6  Prefactor     .10000E-03    22.363       -.10904E-06** at limit **
   7  Prefactor     .10000E-03    18.335        .88888E-07** at limit **
   8  Prefactor     .10000E-03    39.551       -.13969E-07** at limit **
   9  Prefactor     .10000E-03    41.641        .99663E-06** at limit **
  10  Prefactor     .10000E-03    14.401        .12100E-07** at limit **
  11  Prefactor     .10000E-03    56.467       -.10055E-06** at limit **
  12  Prefactor     176.20        178.33        .81793E-06    .45314E-04
  13  Prefactor     .10000E-03    124.81       -.26439E-05** at limit **
  14  norm          .10000E-03    12.308       -.52932E-07** at limit **
  15  norm          .68222E-03    49.380       -.94547E-05** at limit **
  16  norm          .10000E-03    18.934       -.12668E-06** at limit **
  17  norm          21.274        19.829       -.47471E-07   -.22878E-05
  18  Prefactor     9.1848        12.690        .38335E-05    .99751E-03
  19  Prefactor     .10000E-03    127.67       -.11522E-05** at limit **
  20  Prefactor     .10000E-03    45.359        .13858E-06** at limit **
  21  norm          8.7271        9.4824       -.27873E-06   -.49433E-04
  22  Prefactor     .10000E-03    167.81       -.42749E-05** at limit **
  23  norm          .10000E-03    2.0081       -.33315E-06** at limit **
  24  norm          3.5400        8.0825        .14278E-06    .29285E-04
  25  Prefactor     6.0605        11.250        .19472E-06    .13337E-03
  26  Prefactor     72.080        68.850        .40841E-06    .95200E-04
  27  Prefactor     .10000E-03    53.988       -.42668E-06** at limit **
  28  Prefactor     1.5718        19.469        .13471E-05    .38964E-04
  29  Prefactor     2.3412        8.3923        .59207E-06    .10818E-03
  30  Prefactor     13.641        121.19       -.17431E-05   -.23179E-04
  31  Normalizat    1.2573        .41493       -.11467E-05    .23535E-03
  32  Prefactor     .42016        .44243        .29284E-05    .15088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 40.6471
  Prefactor  = 4.18321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 176.199
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000682225
  norm       = 0.0001
  norm       = 21.2744
  Prefactor  = 9.1848
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 8.72708
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 3.54004
  Prefactor  = 6.0605
  Prefactor  = 72.0805
  Prefactor  = 0.0001
  Prefactor  = 1.57178
  Prefactor  = 2.34124
  Prefactor  = 13.6412
  Normalizat = 1.25732
  Prefactor  = 0.420159
 **********
 **   18 **HESSE 
 **********

 FCN=   1258.646     FROM HESSE     STATUS=OK           655 CALLS     5044 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    95.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.647        54.738        .62876E-04   -1.4432    
   4  Prefactor     4.1832        6.8584        .11484E-03   -1.5299    
   5  Prefactor     .10000E-03    52.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.603        .16388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.337        .14842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.470        .13151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    56.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     176.20        178.52        .15204E-03   -1.3045    
  13  Prefactor     .10000E-03    126.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.309        .12160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68222E-03    38.040        .56476E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.976        .15019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.274        19.834        .86845E-04   -1.4785    
  18  Prefactor     9.1848        13.139        .13212E-03   -1.5102    
  19  Prefactor     .10000E-03    127.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    45.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.7271        9.4575        .10597E-03   -1.5117    
  22  Prefactor     .10000E-03    178.86        .38340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.0655        .97568E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.5400        8.0603        .14244E-03   -1.5332    
  25  Prefactor     6.0605        11.228        .14173E-03   -1.5216    
  26  Prefactor     72.080        68.715        .47285E-04   -1.4008    
  27  Prefactor     .10000E-03    53.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.5718        19.236        .28825E-03   -1.5457    
  29  Prefactor     2.3412        8.3384        .18197E-03   -1.5402    
  30  Prefactor     13.641        120.53        .10900E-03   -1.4969    
  31  Normalizat    1.2573        .46964        .20006E-03   -.84849    
  32  Prefactor     .42016        .49159        .35633E-03   -1.1579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16051e-09
Minuit parameter uncertainties:
  1  0.00071059
  2  1.82571e-05
  3  54.8056
  4  6.85968
  5  0.00014891
  6  1.33886e-05
  7  2.15174e-05
  8  5.63236e-05
  9  0.000263326
  10  2.97004e-06
  11  4.16833e-05
  12  179.076
  13  0.000843642
  14  9.68593e-06
  15  0.297831
  16  1.45229e-05
  17  19.8404
  18  13.143
  19  0.0011523
  20  9.64804e-05
  21  9.45914
  22  0.00180876
  23  4.93762e-06
  24  8.06278
  25  11.2319
  26  68.7911
  27  0.000174646
  28  11.0013
  29  8.3425
  30  81.3161
  31  0.47124
  32  0.496645
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.452e-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:  4.202e-01  4.966e-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.257e+00  4.712e-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: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853121/likelihoodResults_555811201_556070401_4FGL_J2324.7-4041_daily_bin1221.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) = 1258.64664157
delta logL = -0.000249588429369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1258.64639297
delta logL = -9.86727172858e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10857E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3001       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42014       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=   1258.646     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.434        .90712E-02** at limit **
   2  alpha         2.2699        3.5395        .41319        .94067E-05
   3  Normalizat    1.2573        .38889        .33616E-01   -.73538E-04
   4  Prefactor     .42016        .41722        .80443E-01   -.29251E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.26994
  Normalizat = 1.25732
  Prefactor  = 0.420155
 **********
 **   18 **HESSE 
 **********

 FCN=   1258.646     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.461        .26729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2699        3.4948        .50000       -.92153E-01
   3  Normalizat    1.2573        .43032        .20006E-03   -.84849    
   4  Prefactor     .42016        .45992        .35633E-03   -1.1579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1212e-10
Minuit parameter uncertainties:
  1  8.39185e-05
  2  2.49072
  3  0.431548
  4  0.464043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853121': 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) = 1258.64639256
delta logL = -5.82403799854e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  8.392e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.270e+00  2.491e+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.202e-01  4.640e-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.257e+00  4.315e-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/853121/cmap_HighResolution_555811201_556070401_4FGL_J2324.7-4041_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-04', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-29 17:00:38.814885', job_id='853121', GAL2='0.42', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632960038.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='-5.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1221' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:00:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 853121: <4FGL_J2324.7-4041_daily_bin1221> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1221 351.182 -40.6834 555811201 556070401 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 :                                   445.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            624 sec.

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

