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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin898
RA = 351.182, Dec = -40.6834
tmin = 472089601, tmax = 472348801
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='851543', job_status='RUN', time_executed='2021-09-29 16:49:09.852102', time_epoch_executed='1632959349.85' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851543

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851543/ft1_4FGL_J2324.7-4041_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851543/ft2_4FGL_J2324.7-4041_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851543/ft1_4FGL_J2324.7-4041_daily_bin898.fits outfile=/scratch/kocevski/851543/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin898.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=472089601.0 tmax=472348801.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 2.79
user 2.57
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851543/ft1_filtered_4FGL_J2324.7-4041_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/851543/ft2_4FGL_J2324.7-4041_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/851543/ltcube_472089601_472348801_4FGL_J2324.7-4041_daily_bin898.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/851543/ft2_4FGL_J2324.7-4041_daily_bin898.fits
.....................!
real 9.45
user 9.14
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851543/ft1_filtered_4FGL_J2324.7-4041_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/851543/ft2_4FGL_J2324.7-4041_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/851543/ltcube_472089601_472348801_4FGL_J2324.7-4041_daily_bin898.fits outfile=/scratch/kocevski/851543/expmap_472089601_472348801_4FGL_J2324.7-4041_daily_bin898.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/851543/ltcube_472089601_472348801_4FGL_J2324.7-4041_daily_bin898.fits
.....................!
real 149.49
user 145.87
sys 3.38

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/851543/ft1_filtered_4FGL_J2324.7-4041_daily_bin898.fits scfile=/scratch/kocevski/851543/ft2_4FGL_J2324.7-4041_daily_bin898.fits outfile=/scratch/kocevski/851543/cmap_472089601_472348801_4FGL_J2324.7-4041_daily_bin898.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.46
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851543/ft1_filtered_4FGL_J2324.7-4041_daily_bin898.fits scfile=/scratch/kocevski/851543/ft2_4FGL_J2324.7-4041_daily_bin898.fits outfile=/scratch/kocevski/851543/cmap_HighResolution_472089601_472348801_4FGL_J2324.7-4041_daily_bin898.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.46
user 0.32
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851543/ft1_filtered_4FGL_J2324.7-4041_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/851543/ft2_4FGL_J2324.7-4041_daily_bin898.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851543/Model_4FGL_J2324.7-4041_daily_bin898.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/851543/ft1_filtered_4FGL_J2324.7-4041_daily_bin898.fits.....................!
real 27.66
user 26.65
sys 0.95

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.744       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.171       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.866       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .52898E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1270       1.0000         .10000E-03   10000.    
    14 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1479       1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    27.335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10979E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.440       1.0000         .10000E-03   10000.    
    21 'norm      '    8.7723       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1511       1.0000         .10000E-03   10000.    
    24 'norm      '    4.0036       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.6583       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .44108E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.7917       1.0000         .10000E-03   10000.    
    30 'Prefactor '    48.400       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0831       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .68192       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=   3928.787     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     3611 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.700        7.2911       -.47107E-06    .10628E-02
   2  Prefactor     .10018E-03    9.9585       -.51896E-05** at limit **
   3  Prefactor     .10003E-03    21.206       -.54930E-05** at limit **
   4  Prefactor     .10000E-03    2.8463       -.10036E-05** at limit **
   5  Prefactor     32.252        16.862       -.50691E-05    .14654E-01
   6  Prefactor     .10000E-03    2.3120       -.13426E-05** at limit **
   7  Prefactor     .10013E-03    23.926        .15838E-04** at limit **
   8  Prefactor     .10001E-03    13.379        .13629E-05** at limit **
   9  Prefactor     .10000E-03    4.4559       -.38629E-06** at limit **
  10  Prefactor     18.865        1.1380        .28239E-06   -.18215E-03
  11  Prefactor     .10027E-03    8.4080        .21640E-06** at limit **
  12  Prefactor     .10436E-03    54.539        .17928E-04** at limit **
  13  Prefactor     9.1172        6.3097        .36508E-05    .76359E-03
  14  norm          .10000E-03    3.9524       -.12319E-05** at limit **
  15  norm          5.1482        1.0597       -.54645E-06   -.29006E-03
  16  norm          .10000E-03    2.5935        .66789E-06** at limit **
  17  norm          27.354        2.3599        .22313E-06   -.13856E-02
  18  Prefactor     .10000E-03    2.4913        .78602E-06** at limit **
  19  Prefactor     .10020E-03    35.688       -.11217E-04** at limit **
  20  Prefactor     61.433        1.6060       -.13035E-07   -.16069E-03
  21  norm          8.7723        3.2594        .28996E-05    .26641E-02
  22  Prefactor     .10000E-03    5.5409        .18696E-05** at limit **
  23  norm          2.1513        1.3531        .51901E-07    .55811E-04
  24  norm          4.0037        3.7157        .44969E-05    .16321E-02
  25  Prefactor     9.6576        1.9834       -.10885E-05   -.12412E-02
  26  Prefactor     .10000E-03    8.8161        .15931E-05** at limit **
  27  Prefactor     .24836E-03    1036.1       -.14517E-04** at limit **
  28  Prefactor     .10000E-03    2.8334       -.83729E-06** at limit **
  29  Prefactor     2.7904        5.5910       -.67618E-05   -.13197E-02
  30  Prefactor     48.413        2.4787        .13750E-07    .16559E-03
  31  Normalizat    1.0831        .26398       -.76687E-06    .48842E-04
  32  Prefactor     .68201        .27947        .96759E-05    .40988E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.7004
  Prefactor  = 0.000100183
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 32.2516
  Prefactor  = 0.0001
  Prefactor  = 0.000100135
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 18.8655
  Prefactor  = 0.000100272
  Prefactor  = 0.000104364
  Prefactor  = 9.11717
  norm       = 0.0001
  norm       = 5.14821
  norm       = 0.0001
  norm       = 27.3542
  Prefactor  = 0.0001
  Prefactor  = 0.000100197
  Prefactor  = 61.4329
  norm       = 8.77228
  Prefactor  = 0.0001
  norm       = 2.15125
  norm       = 4.00366
  Prefactor  = 9.65764
  Prefactor  = 0.0001
  Prefactor  = 0.000248355
  Prefactor  = 0.0001
  Prefactor  = 2.79043
  Prefactor  = 48.4135
  Normalizat = 1.08311
  Prefactor  = 0.682012
 **********
 **   18 **HESSE 
 **********

 FCN=   3928.787     FROM HESSE     STATUS=OK           723 CALLS     4334 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.700        84.434        .16098E-02   -1.4463    
   2  Prefactor     .10018E-03    15.467        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    22.743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8000        .34353E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.252        40.081        .17661E-02   -1.4572    
   6  Prefactor     .10000E-03    2.3034        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10013E-03    25.375        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    13.539        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.865        11.598        .23053E-02   -1.4839    
  11  Prefactor     .10027E-03    14.920        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10436E-03    69.468        .10565E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.1172        17.753        .33166E-02   -1.5104    
  14  norm          .10000E-03    3.9518        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1482        5.1566        .44297E-02   -1.5254    
  16  norm          .10000E-03    2.5910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          27.354        14.513        .19156E-02   -1.4661    
  18  Prefactor     .10000E-03    2.4842        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10020E-03    36.432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     61.433        75.854        .12798E-02   -1.4139    
  21  norm          8.7723        6.5039        .33833E-02   -1.5116    
  22  Prefactor     .10000E-03    5.5341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1513        1.3870        .70234E-02   -1.5415    
  24  norm          4.0037        6.3137        .50389E-02   -1.5308    
  25  Prefactor     9.6576        5.2968        .32236E-02   -1.5086    
  26  Prefactor     .10000E-03    8.8131        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .24836E-03    1129.7        .92413E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.8266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.7904        5.6871        .60878E-02   -1.5374    
  30  Prefactor     48.413        54.280        .14410E-02   -1.4315    
  31  Normalizat    1.0831        .22882        .38733E-01   -.90296    
  32  Prefactor     .68201        .23842        .67262E-01   -1.0424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3467e-06
Minuit parameter uncertainties:
  1  84.6968
  2  0.00336445
  3  0.00154023
  4  5.02672e-07
  5  40.1143
  6  2.07535e-06
  7  0.00369835
  8  0.000842009
  9  7.79103e-07
  10  11.5998
  11  0.00403352
  12  0.0348632
  13  17.7634
  14  8.84267e-07
  15  5.157
  16  6.31495e-07
  17  14.5152
  18  6.31509e-07
  19  0.00536283
  20  75.9734
  21  6.5044
  22  6.24013e-06
  23  1.38706
  24  6.3147
  25  5.29704
  26  1.00058e-05
  27  0.835029
  28  1.30806e-06
  29  5.68824
  30  54.335
  31  0.22903
  32  0.238782
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.315e-07  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:  6.820e-01  2.388e-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.083e+00  2.290e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851543/likelihoodResults_472089601_472348801_4FGL_J2324.7-4041_daily_bin898.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) = 3928.78904383
delta logL = -0.00172511204119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3928.78731872
delta logL = -1.04955688585e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6250       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0831       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68201       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3928.787     FROM MIGRAD    STATUS=FAILED        83 CALLS      226 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    3.2607        .98531E-03** at limit **
   2  alpha         1.6610        3.0352        .17962       -.14151E-05
   3  Normalizat    1.0831        .25846        .22464E-03    .67814E-05
   4  Prefactor     .68201        .27839        .29763E-03    .46983E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3928.787     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      351 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    3.2607        .21551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6610        3.0352        .41224E-03   -.34225    
   3  Normalizat    1.0831        .25846        .69530E-04   -.90296    
   4  Prefactor     .68201        .27839        .79583E-04   -1.0424    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3928.787     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      382 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6061        .19706E-03** at limit **
   2  alpha         1.6971        2.9876        .71846E-01   -.31885E-07
   3  Normalizat    1.0831        .25877        .89857E-05   -.84768E-05
   4  Prefactor     .68201        .27872        .11905E-04   -.64936E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.69708
  Normalizat = 1.08311
  Prefactor  = 0.682011
 **********
 **   18 **HESSE 
 **********

 FCN=   3928.787     FROM HESSE     STATUS=OK            23 CALLS      405 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5997        .39412E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6971        2.9992        .28739E-02   -.32696    
   3  Normalizat    1.0831        .25831        .17971E-05   -.90296    
   4  Prefactor     .68201        .27824        .23810E-05   -1.0424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35598e-11
Minuit parameter uncertainties:
  1  7.55884e-06
  2  251.929
  3  0.258615
  4  0.278807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851543': 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) = 3928.78731867
delta logL = 4.54601831734e-08

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  7.559e-06  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.697e+00  2.519e+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:  6.820e-01  2.788e-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.083e+00  2.586e-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/851543/cmap_HighResolution_472089601_472348801_4FGL_J2324.7-4041_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-05', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2021-09-29 16:57:46.697813', job_id='851543', GAL2='0.68', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632959866.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='4.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='898' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:57:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 851543: <4FGL_J2324.7-4041_daily_bin898> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin898> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:24 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:45:25 2021
Terminated at Wed Sep 29 16:57:47 2021
Results reported at Wed Sep 29 16:57:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin898 351.182 -40.6834 472089601 472348801 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 :                                   514.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             202.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            743 sec.

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

