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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1228
RA = 351.182, Dec = -40.6834
tmin = 557625601, tmax = 557884801
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='853132', job_status='RUN', time_executed='2021-09-29 16:53:30.373457', time_epoch_executed='1632959610.37' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853132

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853132/ft1_4FGL_J2324.7-4041_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853132/ft2_4FGL_J2324.7-4041_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853132/ft1_4FGL_J2324.7-4041_daily_bin1228.fits outfile=/scratch/kocevski/853132/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1228.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=557625601.0 tmax=557884801.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.48
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853132/ft2_4FGL_J2324.7-4041_daily_bin1228.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/853132/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1228.fits evtable="EVENTS" outfile="/scratch/kocevski/853132/ft1_filtered_4FGL_J2324.7-4041_daily_bin1228.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853132/ft1_filtered_4FGL_J2324.7-4041_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/853132/ft2_4FGL_J2324.7-4041_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/853132/ltcube_557625601_557884801_4FGL_J2324.7-4041_daily_bin1228.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/853132/ft2_4FGL_J2324.7-4041_daily_bin1228.fits
.....................!
real 11.93
user 11.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853132/ft1_filtered_4FGL_J2324.7-4041_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/853132/ft2_4FGL_J2324.7-4041_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/853132/ltcube_557625601_557884801_4FGL_J2324.7-4041_daily_bin1228.fits outfile=/scratch/kocevski/853132/expmap_557625601_557884801_4FGL_J2324.7-4041_daily_bin1228.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/853132/ltcube_557625601_557884801_4FGL_J2324.7-4041_daily_bin1228.fits
.....................!
real 190.13
user 184.50
sys 5.33

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/853132/ft1_filtered_4FGL_J2324.7-4041_daily_bin1228.fits scfile=/scratch/kocevski/853132/ft2_4FGL_J2324.7-4041_daily_bin1228.fits outfile=/scratch/kocevski/853132/cmap_557625601_557884801_4FGL_J2324.7-4041_daily_bin1228.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853132/ft1_filtered_4FGL_J2324.7-4041_daily_bin1228.fits scfile=/scratch/kocevski/853132/ft2_4FGL_J2324.7-4041_daily_bin1228.fits outfile=/scratch/kocevski/853132/cmap_HighResolution_557625601_557884801_4FGL_J2324.7-4041_daily_bin1228.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/853132/ft1_filtered_4FGL_J2324.7-4041_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/853132/ft2_4FGL_J2324.7-4041_daily_bin1228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853132/Model_4FGL_J2324.7-4041_daily_bin1228.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/853132/ft1_filtered_4FGL_J2324.7-4041_daily_bin1228.fits................................!
real 16.15
user 14.89
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    252.46       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.917       1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.419       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3259       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13797E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0650       1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53869E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    219.32       1.0000         .10000E-03   10000.    
    21 'norm      '    .10481E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11727E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.6059       1.0000         .10000E-03   10000.    
    24 'norm      '    .12756E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    48.836       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .46492E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.232       1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.1453       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10783E-02   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4029       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .40519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   369.7261     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     3722 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     252.46        1.0405        .10071E-06   -.67237E-03
   2  Prefactor     .10095E-03    24.330       -.41426E-04** at limit **
   3  Prefactor     51.906        2.5523       -.18726E-05    .27598E-02
   4  Prefactor    10000.0        19.790        .47506E-04   -.15225E-02
   5  Prefactor    10000.0        .26048        .13260E-05   -.37812E-04
   6  Prefactor     .84647E-02    1.8110       -.14182E-04    .47842E-03
   7  Prefactor     44.420        1.0540        .28386E-06   -.35422E-03
   8  Prefactor    10000.0        .34816        .42576E-05   -.14496E-03
   9  Prefactor     4.3259        1.0068        .12388E-07   -.14912E-05
  10  Prefactor    10000.0        9.5550        .33486E-04   -.10998E-02
  11  Prefactor     .19911E-03    162.85       -.81360E-04** at limit **
  12  Prefactor    10000.0        .26978        .14562E-05** at limit **
  13  Prefactor     9.0361        5.5797       -.94690E-05    .21604E-02
  14  norm          .10617E-03    97.734        .33930E-04** at limit **
  15  norm          .10015E-03    21.983        .28800E-04** at limit **
  16  norm          .10022E-03    13.755       -.84367E-05** at limit **
  17  norm          .21675E-03    131.91        .25404E-04** at limit **
  18  Prefactor     .10000E-03    18.978       -.44003E-05** at limit **
  19  Prefactor     .10475E-03    6.6399        .28705E-05** at limit **
  20  Prefactor     219.32        1.0703       -.14281E-06    .83204E-03
  21  norm          .10097E-03    15.827        .40391E-04** at limit **
  22  Prefactor     .10070E-03    14.557        .42802E-04** at limit **
  23  norm          6.6074        6.8922       -.16721E-06   -.34936E-04
  24  norm          .10105E-03    24.664       -.48042E-04** at limit **
  25  Prefactor     .10000E-03    10.158        .21739E-05** at limit **
  26  Prefactor     48.854        3.3580        .22614E-05   -.26043E-02
  27  Prefactor     .14391E-03    4.7337       -.18611E-04** at limit **
  28  Prefactor     13.200        6.1901       -.87384E-05    .29332E-02
  29  Prefactor     9.1473        1.2146       -.51360E-06   -.28554E-05
  30  Prefactor     .10209E-03    17.393       -.22299E-04** at limit **
  31  Normalizat    1.4033        1.2941        .30581E-04    .27445E-06
  32  Prefactor     .40447        1.2729       -.49527E-04    .54893E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 252.458
  Prefactor  = 0.00010095
  Prefactor  = 51.9056
  Prefactor  = 9999.99
  Prefactor  = 10000
  Prefactor  = 0.00846467
  Prefactor  = 44.4203
  Prefactor  = 9999.99
  Prefactor  = 4.32592
  Prefactor  = 9999.99
  Prefactor  = 0.000199114
  Prefactor  = 10000
  Prefactor  = 9.03607
  norm       = 0.000106166
  norm       = 0.000100151
  norm       = 0.000100221
  norm       = 0.000216753
  Prefactor  = 0.000100002
  Prefactor  = 0.000104746
  Prefactor  = 219.318
  norm       = 0.000100967
  Prefactor  = 0.000100701
  norm       = 6.60742
  norm       = 0.000101053
  Prefactor  = 0.0001
  Prefactor  = 48.8536
  Prefactor  = 0.000143911
  Prefactor  = 13.1999
  Prefactor  = 9.14734
  Prefactor  = 0.000102093
  Normalizat = 1.40329
  Prefactor  = 0.404472
 **********
 **   18 **HESSE 
 **********

 FCN=   369.7261     FROM HESSE     STATUS=OK           703 CALLS     4425 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     252.46        364.44        .63747E-03   -1.2517    
   2  Prefactor     .10095E-03    37.076        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     51.906        189.89        .13915E-02   -1.4266    
   4  Prefactor    10000.0        1189.4        .90712E-02    1.5693    
   5  Prefactor    10000.0        2219.6        .99351E-02    1.5698    
   6  Prefactor     .84647E-02    1850.6        .90712E-02   -1.5690    
   7  Prefactor     44.420        2278.1        .15039E-02   -1.4374    
   8  Prefactor    10000.0        2162.8        .90859E-02    1.5686    
   9  Prefactor     4.3259        2291.0        .48420E-02   -1.5292    
  10  Prefactor    10000.0        1423.6        .90712E-02    1.5691    
  11  Prefactor     .19911E-03    357.70        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        2203.6        .10064E-01    1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0361        200.54        .33280E-02   -1.5107    
  14  norm          .10617E-03    96.749        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10015E-03    21.877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10022E-03    35.584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .21675E-03    197.70        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10475E-03    273.24        .10560E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     219.32        1873.2        .68277E-03   -1.2735    
  21  norm          .10097E-03    30.323        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10070E-03    31.642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.6074        7.7105        .39033E-02   -1.5194    
  24  norm          .10105E-03    25.184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     48.854        84.433        .14345E-02   -1.4309    
  27  Prefactor     .14391E-03    680.97        .10596E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.200        163.05        .27529E-02   -1.4981    
  29  Prefactor     9.1473        21.673        .33132E-02   -1.5103    
  30  Prefactor     .10209E-03    402.10        .10356E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.4033        1.1107        .66430E-01   -.80534    
  32  Prefactor     .40447        1.0708        .12063       -1.1658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17385e-06
Minuit parameter uncertainties:
  1  367.797
  2  0.0118778
  3  192.172
  4  5.28745
  5  5.12261
  6  8.13427
  7  665.003
  8  10.6402
  9  207.671
  10  6.37279
  11  0.378862
  12  4.45034
  13  85.4623
  14  0.0489269
  15  0.00363306
  16  0.00560795
  17  0.304862
  18  0.000399364
  19  0.0723535
  20  1343.09
  21  0.0108366
  22  0.0094252
  23  7.7117
  24  0.0103027
  25  1.54605e-05
  26  84.6406
  27  0.349896
  28  93.1009
  29  21.6919
  30  0.0584145
  31  1.1307
  32  1.13206
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.002e-04  5.608e-03  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.045e-01  1.132e+00  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.403e+00  1.131e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 5.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853132/likelihoodResults_557625601_557884801_4FGL_J2324.7-4041_daily_bin1228.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) = 369.726132468
delta logL = -3.79475324053e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 369.726132178
delta logL = -3.50476483391e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13490E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4087       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40443       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=   369.7261     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      313 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6293.4        .72027E-02** at limit **
   2  alpha         1.1672        4.4164        .16475        .76900E-08
   3  Normalizat    1.4033        .21129        .29385E-03    .19954E-04
   4  Prefactor     .40447        .21806        .53506E-03    .10836E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.16718
  Normalizat = 1.40329
  Prefactor  = 0.404472
 **********
 **   18 **HESSE 
 **********

 FCN=   369.7261     FROM HESSE     STATUS=OK            23 CALLS      336 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    43.623        .12402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1672        3.0492        .65898E-02   -.56229    
   3  Normalizat    1.4033        1.2933        .58770E-04   -.80534    
   4  Prefactor     .40447        1.2622        .21402E-04   -1.1658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.641e-11
Minuit parameter uncertainties:
  1  5.63396e-05
  2  666.11
  3  1.32549
  4  1.36993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853132': 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) = 369.726128435
delta logL = 2.38774646277e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  5.634e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.167e+00  6.661e+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:  4.045e-01  1.370e+00  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.403e+00  1.325e+00  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/853132/cmap_HighResolution_557625601_557884801_4FGL_J2324.7-4041_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-03', job_status='DONE', photon_flux_upper_limit='5.29e-07', time_completed='2021-09-29 16:59:29.190896', job_id='853132', GAL2='0.40', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632959969.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='2.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1228' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 853132: <4FGL_J2324.7-4041_daily_bin1228> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1228> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:16 2021
Job was executed on host(s) <bullet0115>, 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 16:59:29 2021
Results reported at Wed Sep 29 16:59:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1228 351.182 -40.6834 557625601 557884801 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 :                                   357.00 sec.
    Max Memory :                                 1246 MB
    Average Memory :                             244.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   552 sec.
    Turnaround time :                            553 sec.

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

