/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 166 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7362
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1283
RA = 351.182, Dec = -40.6834
tmin = 571881601, tmax = 572140801
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='853215', job_status='RUN', time_executed='2021-09-29 16:53:19.007301', time_epoch_executed='1632959599.01' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853215/ft1_4FGL_J2324.7-4041_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853215/ft2_4FGL_J2324.7-4041_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853215/ft1_4FGL_J2324.7-4041_daily_bin1283.fits outfile=/scratch/kocevski/853215/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1283.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=571881601.0 tmax=572140801.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.59
user 2.38
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853215/ft2_4FGL_J2324.7-4041_daily_bin1283.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/853215/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/853215/ft1_filtered_4FGL_J2324.7-4041_daily_bin1283.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853215/ft1_filtered_4FGL_J2324.7-4041_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/853215/ft2_4FGL_J2324.7-4041_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/853215/ltcube_571881601_572140801_4FGL_J2324.7-4041_daily_bin1283.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/853215/ft2_4FGL_J2324.7-4041_daily_bin1283.fits
.....................!
real 12.01
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853215/ft1_filtered_4FGL_J2324.7-4041_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/853215/ft2_4FGL_J2324.7-4041_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/853215/ltcube_571881601_572140801_4FGL_J2324.7-4041_daily_bin1283.fits outfile=/scratch/kocevski/853215/expmap_571881601_572140801_4FGL_J2324.7-4041_daily_bin1283.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/853215/ltcube_571881601_572140801_4FGL_J2324.7-4041_daily_bin1283.fits
.....................!
real 190.80
user 185.12
sys 5.36

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/853215/ft1_filtered_4FGL_J2324.7-4041_daily_bin1283.fits scfile=/scratch/kocevski/853215/ft2_4FGL_J2324.7-4041_daily_bin1283.fits outfile=/scratch/kocevski/853215/cmap_571881601_572140801_4FGL_J2324.7-4041_daily_bin1283.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.35
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853215/ft1_filtered_4FGL_J2324.7-4041_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/853215/ft2_4FGL_J2324.7-4041_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853215/Model_4FGL_J2324.7-4041_daily_bin1283.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/853215/ft1_filtered_4FGL_J2324.7-4041_daily_bin1283.fits.....................!
real 28.60
user 27.36
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.651       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5783       1.0000         .10000E-03   10000.    
     5 'Prefactor '    158.63       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6019       1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.100       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4579       1.0000         .10000E-03   10000.    
    17 'norm      '    19.925       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .71746E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.432       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5343       1.0000         .10000E-03   10000.    
    21 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12870E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8370       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2047       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    45.514       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.5286       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.6276       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0897       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=   2792.424     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4360 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.410       -.83400E-07** at limit **
   2  Prefactor     64.680        54.857        .50612E-06    .27583E-04
   3  Prefactor     34.763        42.661       -.50225E-07    .36365E-05
   4  Prefactor     3.5814        11.523       -.15256E-06    .94959E-05
   5  Prefactor     158.55        193.04        .64769E-06    .37618E-05
   6  Prefactor     .10000E-03    9.8761       -.64723E-07** at limit **
   7  Prefactor     .10000E-03    52.235       -.91187E-07** at limit **
   8  Prefactor     .10000E-03    59.882        .32208E-06** at limit **
   9  Prefactor     22.175        59.277       -.79354E-06   -.77042E-06
  10  Prefactor     .10000E-03    9.4856       -.11433E-06** at limit **
  11  Prefactor     .10000E-03    39.806       -.20568E-07** at limit **
  12  Prefactor     .10000E-03    48.157       -.34130E-06** at limit **
  13  Prefactor     5.6768        70.668        .24295E-05    .20591E-04
  14  norm          .10000E-03    9.3308       -.10629E-07** at limit **
  15  norm          12.113        13.549        .11662E-05    .80421E-04
  16  norm          2.4515        8.7490        .19156E-06    .37812E-04
  17  norm          19.918        20.741       -.21858E-06   -.17203E-04
  18  Prefactor     .10000E-03    17.033       -.88705E-06** at limit **
  19  Prefactor     65.636        128.55       -.26802E-06    .12490E-04
  20  Prefactor     1.4780        967.05        .60131E-05   -.46267E-05
  21  norm          .10000E-03    9.9270       -.69689E-06** at limit **
  22  Prefactor     .10000E-03    165.11       -.20530E-05** at limit **
  23  norm          .10000E-03    1.0773       -.14469E-06** at limit **
  24  norm          5.8283        12.027        .20245E-06    .60896E-04
  25  Prefactor     3.2064        5.1111       -.25192E-06    .27353E-03
  26  Prefactor     .10000E-03    49.530       -.26173E-06** at limit **
  27  Prefactor     45.475        127.58        .17193E-05    .38484E-06
  28  Prefactor     7.5371        14.639        .93799E-07   -.30571E-05
  29  Prefactor     .10000E-03    7.5030       -.34731E-06** at limit **
  30  Prefactor     .10000E-03    63.314        .30075E-06** at limit **
  31  Normalizat    1.6256        .50187       -.56667E-05    .69668E-04
  32  Prefactor     1.0916        .49242        .89047E-05    .37939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 64.6797
  Prefactor  = 34.7625
  Prefactor  = 3.5814
  Prefactor  = 158.548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.67681
  norm       = 0.0001
  norm       = 12.1129
  norm       = 2.45147
  norm       = 19.9178
  Prefactor  = 0.000100003
  Prefactor  = 65.636
  Prefactor  = 1.47797
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.82826
  Prefactor  = 3.20638
  Prefactor  = 0.0001
  Prefactor  = 45.4754
  Prefactor  = 7.53714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.62555
  Prefactor  = 1.09159
 **********
 **   18 **HESSE 
 **********

 FCN=   2792.424     FROM HESSE     STATUS=OK           657 CALLS     5017 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     64.680        54.679        .49911E-04   -1.4098    
   3  Prefactor     34.763        42.676        .67964E-04   -1.4528    
   4  Prefactor     3.5814        11.491        .21364E-03   -1.5329    
   5  Prefactor     158.55        193.01        .16007E-03   -1.3183    
   6  Prefactor     .10000E-03    9.8819        .16221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.175        59.339        .85120E-04   -1.4766    
  10  Prefactor     .10000E-03    9.4970        .15898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6768        69.452        .16973E-03   -1.5231    
  14  norm          .10000E-03    9.3312        .15767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.113        13.479        .11516E-03   -1.5012    
  16  norm          2.4515        8.7679        .25901E-03   -1.5395    
  17  norm          19.918        20.726        .89730E-04   -1.4815    
  18  Prefactor     .10000E-03    49.757        .39625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     65.636        128.99        .24807E-03   -1.4086    
  20  Prefactor     1.4780        1004.7        .34444E-02   -1.5465    
  21  norm          .10000E-03    9.8978        .16156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    168.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.0898        .53479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8283        12.026        .16623E-03   -1.5225    
  25  Prefactor     3.2064        5.0655        .72141E-03   -1.5350    
  26  Prefactor     .10000E-03    49.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     45.475        127.59        .59430E-04   -1.4358    
  28  Prefactor     7.5371        14.651        .14616E-03   -1.5159    
  29  Prefactor     .10000E-03    7.5494        .14089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    63.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.6256        .50421        .27567E-03   -.74309    
  32  Prefactor     1.0916        .49241        .34938E-03   -.89736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83837e-10
Minuit parameter uncertainties:
  1  3.02002e-05
  2  54.721
  3  42.7131
  4  11.4979
  5  193.785
  6  9.39848e-07
  7  3.52027e-06
  8  6.16474e-05
  9  59.497
  10  5.93348e-06
  11  3.43646e-06
  12  1.93946e-06
  13  39.7693
  14  2.32575e-06
  15  13.4824
  16  8.77248
  17  20.7339
  18  0.000727811
  19  129.548
  20  78.425
  21  9.59388e-05
  22  0.000418968
  23  5.57506e-07
  24  12.0311
  25  5.06618
  26  2.00526e-05
  27  128.364
  28  14.6576
  29  1.90817e-05
  30  4.26922e-05
  31  0.505802
  32  0.494479
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.451e+00  8.772e+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:  1.092e+00  4.945e-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.626e+00  5.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 7.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853215/likelihoodResults_571881601_572140801_4FGL_J2324.7-4041_daily_bin1283.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) = 2791.82961892
delta logL = 0.594385833962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2791.81376696
delta logL = 0.610237794468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94452       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1333       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1103       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2791.814     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      253 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94340        22.553        .12521E-01    .22064E-03
   2  alpha         3.1338        3.9273        .22865        .33921E-04
   3  Normalizat    1.5706        .87107E-01    .63073E-01   -.98055E-06
   4  Prefactor     1.1103        .89792E-01    .78139E-01    .46452E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.943395
  alpha      = 3.13381
  Normalizat = 1.57064
  Prefactor  = 1.11029
 **********
 **   18 **HESSE 
 **********

 FCN=   2791.814     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      288 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94340        59.401        .57053E-03   -1.5514    
   2  alpha         3.1338        3.4378        .80966E-02    .25632    
   3  Normalizat    1.5706        .54152        .27896E-03   -.75812    
   4  Prefactor     1.1103        .52276        .34586E-03   -.89138    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.51144e-08
Minuit parameter uncertainties:
  1  14.9866
  2  6.9602
  3  0.543549
  4  0.525204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853215': 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): 102
logL (Free Index) = 2791.81376676
delta logL = 0.610237996246

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  9.434e-01  1.499e+01  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  3.134e+00  6.960e+00  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.110e+00  5.252e-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.571e+00  5.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 3.13 +/- 6.96
Photon Flux (Free Index): 8.09e-08 +/- 3.00e-07
Energy Flux (Free Index): 1.78e-05 +/- 2.04e-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/853215/cmap_HighResolution_571881601_572140801_4FGL_J2324.7-4041_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-04', comment='SUCCESS', energy_flux2='1.78e-05', dlogl='6.10e-01', photon_flux2='8.09e-08', job_status='DONE', time_completed='2021-09-29 17:03:25.476417', photon_index_error2='6.96', photon_index2='3.13', ts='0.12', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='7.78e-08', energy_flux_error2='2.04e-05', EG='1.63', time_epoch_completed='1632960205.48', return_code='0', job_id='853215', GAL2='1.11', EG2='1.57', return_code2='102', photon_flux_error2='3.00e-07', ts2='1.35', photon_index='1.62' WHERE bin_id='1283' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:03:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 853215: <4FGL_J2324.7-4041_daily_bin1283> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1283 351.182 -40.6834 571881601 572140801 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 :                                   571.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

