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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1438
RA = 351.182, Dec = -40.6834
tmin = 612057601, tmax = 612316801
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='854562', job_status='RUN', time_executed='2021-09-29 16:55:31.491499', time_epoch_executed='1632959731.49' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854562

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854562/ft1_4FGL_J2324.7-4041_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854562/ft2_4FGL_J2324.7-4041_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854562/ft1_4FGL_J2324.7-4041_daily_bin1438.fits outfile=/scratch/kocevski/854562/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1438.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=612057601.0 tmax=612316801.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 4.58
user 4.30
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854562/ft1_filtered_4FGL_J2324.7-4041_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/854562/ft2_4FGL_J2324.7-4041_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/854562/ltcube_612057601_612316801_4FGL_J2324.7-4041_daily_bin1438.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/854562/ft2_4FGL_J2324.7-4041_daily_bin1438.fits
.....................!
real 12.65
user 12.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854562/ft1_filtered_4FGL_J2324.7-4041_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/854562/ft2_4FGL_J2324.7-4041_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/854562/ltcube_612057601_612316801_4FGL_J2324.7-4041_daily_bin1438.fits outfile=/scratch/kocevski/854562/expmap_612057601_612316801_4FGL_J2324.7-4041_daily_bin1438.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/854562/ltcube_612057601_612316801_4FGL_J2324.7-4041_daily_bin1438.fits
.....................!
real 192.84
user 186.77
sys 4.53

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/854562/ft1_filtered_4FGL_J2324.7-4041_daily_bin1438.fits scfile=/scratch/kocevski/854562/ft2_4FGL_J2324.7-4041_daily_bin1438.fits outfile=/scratch/kocevski/854562/cmap_612057601_612316801_4FGL_J2324.7-4041_daily_bin1438.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854562/ft1_filtered_4FGL_J2324.7-4041_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/854562/ft2_4FGL_J2324.7-4041_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854562/Model_4FGL_J2324.7-4041_daily_bin1438.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/854562/ft1_filtered_4FGL_J2324.7-4041_daily_bin1438.fits.....................!
real 46.51
user 44.97
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.787       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6163       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4643       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.561       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5446       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4395       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2641       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1997       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .13460E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10852E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .30204       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.788       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.532       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    34.285       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .87797       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79904       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=   6438.684     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4397 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.453       -.46697E-07** at limit **
   2  Prefactor     11.787        12.961        .15878E-06    .31513E-04
   3  Prefactor     .10000E-03    28.388        .48079E-06** at limit **
   4  Prefactor     1.6168        3.0385        .38913E-05   -.15270E-03
   5  Prefactor     .10000E-03    22.060        .71764E-07** at limit **
   6  Prefactor     .10000E-03    7.7336       -.18007E-06** at limit **
   7  Prefactor     6.4646        11.770        .23179E-06    .68412E-05
   8  Prefactor     13.561        13.851        .27888E-07    .49468E-04
   9  Prefactor     34.892        12.531        .18453E-06    .50767E-05
  10  Prefactor     2.1552        3.5663       -.19581E-06    .11057E-03
  11  Prefactor     .10001E-03    36.648       -.32820E-06** at limit **
  12  Prefactor     .10000E-03    22.970       -.12215E-06** at limit **
  13  Prefactor     4.5444        7.6620        .11628E-05   -.11493E-03
  14  norm          .10000E-03    2.9342        .31911E-07** at limit **
  15  norm          .10000E-03    1.5340        .53626E-07** at limit **
  16  norm          4.4419        3.9651        .94276E-07   -.45660E-04
  17  norm          6.2646        5.8035        .12958E-06   -.83153E-04
  18  Prefactor     9.1978        5.0461       -.77480E-06   -.12931E-02
  19  Prefactor     .10000E-03    11.040       -.12381E-07** at limit **
  20  Prefactor     .10000E-03    17.104        .73878E-07** at limit **
  21  norm          .10000E-03    1.6985        .66925E-06** at limit **
  22  Prefactor     .10000E-03    6.9075       -.48821E-05** at limit **
  23  norm          .10000E-03    .21392        .43156E-08** at limit **
  24  norm          .30167        1.7157        .51353E-06    .31648E-04
  25  Prefactor     .10000E-03    1.7520       -.65953E-06** at limit **
  26  Prefactor     10.781        17.128        .85622E-06    .16117E-03
  27  Prefactor     10.517        40.360        .11862E-05   -.96352E-04
  28  Prefactor     .10000E-03    3.7234       -.22052E-06** at limit **
  29  Prefactor     .10000E-03    .89523       -.14775E-09** at limit **
  30  Prefactor     34.286        37.663        .19582E-06   -.50587E-04
  31  Normalizat    .87802        .14547       -.81431E-06   -.80791E-04
  32  Prefactor     .79898        .16111       -.63679E-06   -.15309E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.7867
  Prefactor  = 0.000100003
  Prefactor  = 1.61676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.46461
  Prefactor  = 13.5607
  Prefactor  = 34.8922
  Prefactor  = 2.15518
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 4.54441
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.44186
  norm       = 6.26456
  Prefactor  = 9.1978
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.30167
  Prefactor  = 0.000100002
  Prefactor  = 10.781
  Prefactor  = 10.5175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2855
  Normalizat = 0.878024
  Prefactor  = 0.798978
 **********
 **   18 **HESSE 
 **********

 FCN=   6438.684     FROM HESSE     STATUS=OK           661 CALLS     5058 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.787        12.957        .11668E-03   -1.5021    
   3  Prefactor     .10000E-03    28.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6168        3.2298        .96563E-03   -1.5454    
   5  Prefactor     .10000E-03    22.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0797        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4646        11.767        .15785E-03   -1.5199    
   8  Prefactor     13.561        13.847        .10877E-03   -1.4971    
   9  Prefactor     34.892        12.543        .67842E-04   -1.4526    
  10  Prefactor     2.1552        3.5452        .18869E-03   -1.5414    
  11  Prefactor     .10001E-03    37.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5444        7.6772        .94420E-03   -1.5282    
  14  norm          .10000E-03    2.9359        .13424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5347        .97061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4419        3.6584        .13521E-03   -1.5286    
  17  norm          6.2646        5.8011        .16039E-03   -1.5207    
  18  Prefactor     9.1978        4.9108        .12519E-03   -1.5101    
  19  Prefactor     .10000E-03    11.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.7973        .18365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.476        .33257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .21397        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .30167        1.6531        .20318E-03   -1.5598    
  25  Prefactor     .10000E-03    10.129        .19171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.781        16.238        .12198E-03   -1.5051    
  27  Prefactor     10.517        40.432        .12346E-03   -1.5059    
  28  Prefactor     .10000E-03    3.8503        .30204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .89950        .74109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     34.286        37.644        .68438E-04   -1.4536    
  31  Normalizat    .87802        .17591        .20909E-03   -.97237    
  32  Prefactor     .79898        .19537        .24505E-03   -.99766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42051e-09
Minuit parameter uncertainties:
  1  0.000216201
  2  12.9597
  3  0.000628658
  4  3.2301
  5  0.000185809
  6  8.59871e-05
  7  11.7716
  8  13.8499
  9  12.544
  10  3.54558
  11  0.00105137
  12  0.000216051
  13  7.67889
  14  4.66278e-06
  15  5.45755e-06
  16  3.65858
  17  5.8016
  18  4.91106
  19  0.000149304
  20  0.000208644
  21  3.91972e-05
  22  0.000216024
  23  1.99763e-07
  24  1.41218
  25  0.00025453
  26  16.2444
  27  40.5374
  28  2.89503e-05
  29  3.77289e-07
  30  37.6697
  31  0.176023
  32  0.195535
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.442e+00  3.659e+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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  7.990e-01  1.955e-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:  8.780e-01  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.09
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.09e-08 +/- 8.97e-09
Energy Flux (Fixed Index): 2.36e-05 +/- 1.94e-05

TS (Fixed Index): 3.09
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 3.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854562/likelihoodResults_612057601_612316801_4FGL_J2324.7-4041_daily_bin1438.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) = 6438.56879274
delta logL = 0.114947751809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6438.56726988
delta logL = 0.116470610899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6455       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8850       1.0000          .0000       5.0000    
     3 'Normalizat'    .87581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79906       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=   6438.567     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      259 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6456        3.7513        .11843E-03   -.49917E-05
   2  alpha         1.8852        .56956        .11065E-01   -.67463E-05
   3  Normalizat    .87579        .17118        .20933E-03    .59969E-03
   4  Prefactor     .79910        .19341        .24499E-03    .52698E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.6456
  alpha      = 1.88518
  Normalizat = 0.875792
  Prefactor  = 0.799096
 **********
 **   18 **HESSE 
 **********

 FCN=   6438.567     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6456        3.6202        .47372E-05   -1.5326    
   2  alpha         1.8852        .55002        .44260E-03   -.24848    
   3  Normalizat    .87579        .17131        .41865E-04   -.97316    
   4  Prefactor     .79910        .19359        .48998E-04   -.99762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95942e-10
Minuit parameter uncertainties:
  1  3.62038
  2  0.554857
  3  0.171421
  4  0.193757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854562': 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) = 6438.56726978
delta logL = 0.116470711216

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.646e+00  3.620e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.885e+00  5.549e-01  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:  7.991e-01  1.938e-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:  8.758e-01  1.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.31
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.89 +/- 0.55
Photon Flux (Free Index): 1.42e-08 +/- 1.33e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.80e-05

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/854562/cmap_HighResolution_612057601_612316801_4FGL_J2324.7-4041_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-05', comment='SUCCESS', photon_flux='1.09e-08', energy_flux2='1.58e-05', photon_flux_error='8.97e-09', dlogl='1.16e-01', energy_flux='2.36e-05', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-09-29 17:11:07.132815', photon_index_error2='0.55', photon_index2='1.89', ts='3.09', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='3.42e-08', energy_flux_error2='1.80e-05', EG='0.88', time_epoch_completed='1632960667.13', return_code='0', job_id='854562', GAL2='0.80', EG2='0.88', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='1.33e-08', ts2='3.31', photon_index='1.62' WHERE bin_id='1438' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:11:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 854562: <4FGL_J2324.7-4041_daily_bin1438> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1438> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:55:12 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:55:13 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:55:13 2021
Terminated at Wed Sep 29 17:11:07 2021
Results reported at Wed Sep 29 17:11:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1438 351.182 -40.6834 612057601 612316801 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 :                                   927.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            955 sec.

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

