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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1308
RA = 351.182, Dec = -40.6834
tmin = 578361601, tmax = 578620801
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='853253', job_status='RUN', time_executed='2021-09-29 16:50:34.963270', time_epoch_executed='1632959434.96' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853253

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853253/ft1_4FGL_J2324.7-4041_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853253/ft2_4FGL_J2324.7-4041_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853253/ft1_4FGL_J2324.7-4041_daily_bin1308.fits outfile=/scratch/kocevski/853253/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1308.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=578361601.0 tmax=578620801.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.72
user 2.50
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853253/ft2_4FGL_J2324.7-4041_daily_bin1308.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/853253/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1308.fits evtable="EVENTS" outfile="/scratch/kocevski/853253/ft1_filtered_4FGL_J2324.7-4041_daily_bin1308.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.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853253/ft1_filtered_4FGL_J2324.7-4041_daily_bin1308.fits" evtable="EVENTS" scfile=/scratch/kocevski/853253/ft2_4FGL_J2324.7-4041_daily_bin1308.fits sctable="SC_DATA" outfile=/scratch/kocevski/853253/ltcube_578361601_578620801_4FGL_J2324.7-4041_daily_bin1308.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/853253/ft2_4FGL_J2324.7-4041_daily_bin1308.fits
.....................!
real 8.87
user 8.57
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853253/ft1_filtered_4FGL_J2324.7-4041_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/853253/ft2_4FGL_J2324.7-4041_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/853253/ltcube_578361601_578620801_4FGL_J2324.7-4041_daily_bin1308.fits outfile=/scratch/kocevski/853253/expmap_578361601_578620801_4FGL_J2324.7-4041_daily_bin1308.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/853253/ltcube_578361601_578620801_4FGL_J2324.7-4041_daily_bin1308.fits
.....................!
real 141.00
user 136.94
sys 3.81

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/853253/ft1_filtered_4FGL_J2324.7-4041_daily_bin1308.fits scfile=/scratch/kocevski/853253/ft2_4FGL_J2324.7-4041_daily_bin1308.fits outfile=/scratch/kocevski/853253/cmap_578361601_578620801_4FGL_J2324.7-4041_daily_bin1308.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.44
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853253/ft1_filtered_4FGL_J2324.7-4041_daily_bin1308.fits scfile=/scratch/kocevski/853253/ft2_4FGL_J2324.7-4041_daily_bin1308.fits outfile=/scratch/kocevski/853253/cmap_HighResolution_578361601_578620801_4FGL_J2324.7-4041_daily_bin1308.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.41
user 0.29
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853253/ft1_filtered_4FGL_J2324.7-4041_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/853253/ft2_4FGL_J2324.7-4041_daily_bin1308.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853253/Model_4FGL_J2324.7-4041_daily_bin1308.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/853253/ft1_filtered_4FGL_J2324.7-4041_daily_bin1308.fits.....................!
real 30.05
user 28.98
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.300       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.292       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.337       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4645       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.116       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17235       1.0000         .10000E-03   10000.    
    12 'Prefactor '    67.091       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8847       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6613       1.0000         .10000E-03   10000.    
    17 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4241       1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.161       1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.065       1.0000         .10000E-03   10000.    
    21 'norm      '    5.4608       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.403       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0468       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .24484       1.0000         .10000E-03   10000.    
    30 'Prefactor '    62.811       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91953       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0921       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=   5086.440     FROM MIGRAD    STATUS=CONVERGED   1482 CALLS     5046 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.301        38.376        .10983E-03    .13870E-04
   2  Prefactor     .10000E-03    13.064        .18142E-02** at limit **
   3  Prefactor     .10000E-03    11.242        .18142E-02** at limit **
   4  Prefactor     12.293        5.6778        .10912E-03    .26254E-04
   5  Prefactor     33.332        43.373        .69402E-04    .26210E-05
   6  Prefactor     6.4646        8.5744        .15785E-03    .25496E-04
   7  Prefactor     .10000E-03    10.927        .18142E-02** at limit **
   8  Prefactor     .10000E-03    6.9243        .18142E-02** at limit **
   9  Prefactor     18.118        17.620        .94100E-04    .72489E-05
  10  Prefactor     .10000E-03    3.0187        .12076E-02** at limit **
  11  Prefactor     .23464        50.684        .14341        .45354E-04
  12  Prefactor     67.090        64.654        .49001E-04    .48722E-05
  13  Prefactor     1.8802        18.712        .30318E-03   -.32361E-04
  14  norm          .10000E-03    3.8729        .13705E-02** at limit **
  15  norm          .10000E-03    10.262        .36285E-03** at limit **
  16  norm          4.6610        4.3972        .13950E-03    .23634E-05
  17  norm          .10000E-03    4.9807        .15495E-02** at limit **
  18  Prefactor     3.4267        6.1776        .10930E-02   -.22456E-04
  19  Prefactor     55.107        74.031        .54009E-04    .37174E-04
  20  Prefactor     65.071        49.696        .49753E-04    .14853E-04
  21  norm          5.4626        8.6646        .84550E-03   -.41858E-04
  22  Prefactor     .10000E-03    14.578        .18142E-02** at limit **
  23  norm          .10000E-03    .34086        .40322E-03** at limit **
  24  norm          .10000E-03    2.8602        .11692E-02** at limit **
  25  Prefactor     .10000E-03    1.0180        .70153E-03** at limit **
  26  Prefactor     .10000E-03    17.501        .18142E-02** at limit **
  27  Prefactor     16.405        49.336        .98891E-04    .86221E-05
  28  Prefactor     1.0473        9.6984        .40028E-03    .10367E-03
  29  Prefactor     .23975        7.5663        .23754E-02    .10339E-02
  30  Prefactor     62.852        63.623        .50632E-04    .55326E-04
  31  Normalizat    .91924        .24581        .25234E-03    .33658E-03
  32  Prefactor     1.0924        .25775        .25898E-03    .29798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2932
  Prefactor  = 33.3322
  Prefactor  = 6.46458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1181
  Prefactor  = 0.0001
  Prefactor  = 0.234642
  Prefactor  = 67.0903
  Prefactor  = 1.88016
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 4.66103
  norm       = 0.0001
  Prefactor  = 3.42672
  Prefactor  = 55.1072
  Prefactor  = 65.0705
  norm       = 5.46264
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4045
  Prefactor  = 1.04731
  Prefactor  = 0.239749
  Prefactor  = 62.8519
  Normalizat = 0.919237
  Prefactor  = 1.09245
 **********
 **   18 **HESSE 
 **********

 FCN=   5086.440     FROM HESSE     STATUS=OK           641 CALLS     5687 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.301        38.375        .43933E-05   -1.4978    
   2  Prefactor     .10000E-03    13.066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.293        5.6771        .43649E-05   -1.5007    
   5  Prefactor     33.332        43.363        .27761E-05   -1.4553    
   6  Prefactor     6.4646        8.5733        .63140E-05   -1.5199    
   7  Prefactor     .10000E-03    10.927        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.118        17.617        .37640E-05   -1.4856    
  10  Prefactor     .10000E-03    3.0189        .24153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .23464        50.586        .14359       -1.5611    
  12  Prefactor     67.090        64.649        .98001E-05   -1.4068    
  13  Prefactor     1.8802        18.700        .12127E-04   -1.5434    
  14  norm          .10000E-03    3.8730        .27411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.263        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6610        4.3972        .55799E-05   -1.5276    
  17  norm          .10000E-03    4.9816        .30991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4267        6.1736        .43720E-04   -1.5338    
  19  Prefactor     55.107        73.933        .10802E-04   -1.4222    
  20  Prefactor     65.071        49.692        .99506E-05   -1.4093    
  21  norm          5.4626        8.6490        .33820E-04   -1.5240    
  22  Prefactor     .10000E-03    14.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .34087        .80643E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.8606        .23384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.0180        .14031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.505        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.405        49.305        .39557E-05   -1.4898    
  28  Prefactor     1.0473        9.6762        .16011E-04   -1.5503    
  29  Prefactor     .23975        7.5645        .95015E-04   -1.5610    
  30  Prefactor     62.852        63.580        .10126E-04   -1.4121    
  31  Normalizat    .91924        .24585        .50468E-04   -.95787    
  32  Prefactor     1.0924        .25802        .51797E-04   -.89708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79801e-09
Minuit parameter uncertainties:
  1  38.4459
  2  7.70004e-06
  3  5.51775e-06
  4  5.67735
  5  43.404
  6  8.57489
  7  1.16548e-05
  8  8.38507e-06
  9  17.6217
  10  9.89162e-06
  11  6.8949
  12  64.7168
  13  11.8634
  14  5.55895e-06
  15  0.000229702
  16  4.39747
  17  1.09936e-05
  18  6.17477
  19  74.056
  20  49.7232
  21  8.65093
  22  0.000246251
  23  4.41877e-06
  24  5.30242e-05
  25  1.89683e-06
  26  3.86401e-05
  27  49.4275
  28  6.36784
  29  2.6932
  30  63.6486
  31  0.246147
  32  0.258315
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.661e+00  4.397e+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  2.583e-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:  9.192e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.46
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.14e-08 +/- 1.08e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 2.33e-05

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) = 5086.18212191
delta logL = 0.257462363592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5086.17567145
delta logL = 0.263912829088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1502       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0981       1.0000          .0000       5.0000    
     3 'Normalizat'    .92153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0934       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=   5086.176     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1494        4.0749        .49463E-02   -.12113E-03
   2  alpha         1.0980        .61133        .47196       -.15556E-04
   3  Normalizat    .92151        .18954        .45176E-01    .11404E-04
   4  Prefactor     1.0934        .21098        .58561E-01    .67009E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.14939
  alpha      = 1.09801
  Normalizat = 0.921513
  Prefactor  = 1.09343
 **********
 **   18 **HESSE 
 **********

 FCN=   5086.176     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .87E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1494        4.5210        .13640E-03   -1.5301    
   2  alpha         1.0980        .68888        .20371E-02   -.59535    
   3  Normalizat    .92151        .22674        .25210E-03   -.95708    
   4  Prefactor     1.0934        .25264        .25897E-03   -.89677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69945e-15
Minuit parameter uncertainties:
  1  4.52136
  2  0.702278
  3  0.226975
  4  0.252917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853253': 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) = 5086.17567143
delta logL = 0.263912847226

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.149e+00  4.521e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.098e+00  7.023e-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:  1.093e+00  2.529e-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:  9.215e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.10 +/- 0.70
Photon Flux (Free Index): 6.18e-09 +/- 7.30e-09
Energy Flux (Free Index): 5.34e-05 +/- 7.38e-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/853253/cmap_HighResolution_578361601_578620801_4FGL_J2324.7-4041_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-08', energy_flux2='5.34e-05', photon_flux_error='1.08e-08', dlogl='2.64e-01', energy_flux='2.47e-05', photon_flux2='6.18e-09', job_status='DONE', time_completed='2021-09-29 16:59:39.701511', photon_index_error2='0.70', photon_index2='1.10', ts='5.46', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='7.38e-05', EG='0.92', time_epoch_completed='1632959979.7', return_code='0', job_id='853253', GAL2='1.09', EG2='0.92', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='7.30e-09', ts2='6.00', photon_index='1.62' WHERE bin_id='1308' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 853253: <4FGL_J2324.7-4041_daily_bin1308> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1308> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:25 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:27 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:27 2021
Terminated at Wed Sep 29 16:59:40 2021
Results reported at Wed Sep 29 16:59:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1308 351.182 -40.6834 578361601 578620801 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 :                                   538.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   552 sec.
    Turnaround time :                            555 sec.

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

