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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1282
RA = 351.182, Dec = -40.6834
tmin = 571622401, tmax = 571881601
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='853213', job_status='RUN', time_executed='2021-09-29 16:51:40.617853', time_epoch_executed='1632959500.62' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853213/ft1_4FGL_J2324.7-4041_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853213/ft2_4FGL_J2324.7-4041_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853213/ft1_4FGL_J2324.7-4041_daily_bin1282.fits outfile=/scratch/kocevski/853213/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1282.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=571622401.0 tmax=571881601.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.70
user 2.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853213/ft1_filtered_4FGL_J2324.7-4041_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/853213/ft2_4FGL_J2324.7-4041_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/853213/ltcube_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.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/853213/ft2_4FGL_J2324.7-4041_daily_bin1282.fits
.....................!
real 12.51
user 12.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853213/ft1_filtered_4FGL_J2324.7-4041_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/853213/ft2_4FGL_J2324.7-4041_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/853213/ltcube_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.fits outfile=/scratch/kocevski/853213/expmap_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.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/853213/ltcube_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.fits
.....................!
real 192.91
user 187.59
sys 4.99

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/853213/ft1_filtered_4FGL_J2324.7-4041_daily_bin1282.fits scfile=/scratch/kocevski/853213/ft2_4FGL_J2324.7-4041_daily_bin1282.fits outfile=/scratch/kocevski/853213/cmap_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853213/ft1_filtered_4FGL_J2324.7-4041_daily_bin1282.fits scfile=/scratch/kocevski/853213/ft2_4FGL_J2324.7-4041_daily_bin1282.fits outfile=/scratch/kocevski/853213/cmap_HighResolution_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/853213/ft1_filtered_4FGL_J2324.7-4041_daily_bin1282.fits', '/scratch/kocevski/853213/ft2_4FGL_J2324.7-4041_daily_bin1282.fits', expMap='/scratch/kocevski/853213/expmap_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.fits', expCube='/scratch/kocevski/853213/ltcube_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/853213/Model_4FGL_J2324.7-4041_daily_bin1282.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/853213/ft1_filtered_4FGL_J2324.7-4041_daily_bin1282.fits
Spacecraft file(s): /scratch/kocevski/853213/ft2_4FGL_J2324.7-4041_daily_bin1282.fits
Exposure map: /scratch/kocevski/853213/expmap_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.fits
Exposure cube: /scratch/kocevski/853213/ltcube_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/853213/Model_4FGL_J2324.7-4041_daily_bin1282.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2520.52281787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.957       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11680E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.310       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3028       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19425E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    167.45       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.774       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.851       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.922       1.0000         .10000E-03   10000.    
    14 'norm      '    13.891       1.0000         .10000E-03   10000.    
    15 'norm      '    8.7272       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    28.128       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.342       1.0000         .10000E-03   10000.    
    19 'Prefactor '    136.24       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.5004       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8256       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .35231E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .73597E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .20567E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    35.270       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0317       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79566       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=   2520.492     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4492 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.971        71.066        .24173E-06   -.20290E-04
   2  Prefactor     .10000E-03    103.40        .58002E-06** at limit **
   3  Prefactor     44.299        48.916        .54475E-06   -.17547E-04
   4  Prefactor     8.3014        12.218        .61683E-06    .30111E-04
   5  Prefactor     .10000E-03    37.752       -.65663E-07** at limit **
   6  Prefactor     .10001E-03    14.533       -.51848E-06** at limit **
   7  Prefactor     167.41        103.87        .13182E-06   -.24408E-04
   8  Prefactor     .10000E-03    24.898       -.22365E-06** at limit **
   9  Prefactor     15.762        37.761        .54359E-06    .75695E-05
  10  Prefactor     .10000E-03    12.273       -.18083E-06** at limit **
  11  Prefactor     37.921        67.483        .64617E-06    .55561E-05
  12  Prefactor     .10000E-03    185.45       -.65151E-06** at limit **
  13  Prefactor     14.894        33.730        .91723E-06    .16307E-04
  14  norm          13.886        20.842        .16108E-06    .58060E-05
  15  norm          8.7280        11.882        .46748E-07   -.14331E-04
  16  norm          .10000E-03    6.4419       -.83818E-06** at limit **
  17  norm          28.118        19.745        .15529E-06   -.15596E-04
  18  Prefactor     12.342        11.231        .73424E-07   -.27093E-05
  19  Prefactor     136.14        76.213        .14603E-05    .84429E-04
  20  Prefactor     .10000E-03    105.49        .46820E-06** at limit **
  21  norm          .10000E-03    10.156       -.30203E-05** at limit **
  22  Prefactor     .10000E-03    8.7865       -.14764E-07** at limit **
  23  norm          .10000E-03    1.0691        .55993E-07** at limit **
  24  norm          .10000E-03    6.0686       -.10935E-05** at limit **
  25  Prefactor     9.5011        8.2381        .13440E-06   -.67452E-05
  26  Prefactor     4.8052        103.18        .90161E-06    .28238E-05
  27  Prefactor     .10000E-03    222.83        .58050E-05** at limit **
  28  Prefactor     .24445E-01    10.920        .24296E-05   -.51178E-03
  29  Prefactor     .10000E-03    4.8152        .16267E-06** at limit **
  30  Prefactor     35.425        71.573       -.35980E-05   -.92705E-04
  31  Normalizat    1.0325        .32720       -.20688E-05   -.18723E-03
  32  Prefactor     .79537        .32287       -.20216E-06   -.16307E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.9705
  Prefactor  = 0.0001
  Prefactor  = 44.2993
  Prefactor  = 8.30138
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 167.412
  Prefactor  = 0.0001
  Prefactor  = 15.7617
  Prefactor  = 0.0001
  Prefactor  = 37.9207
  Prefactor  = 0.0001
  Prefactor  = 14.8941
  norm       = 13.886
  norm       = 8.72802
  norm       = 0.0001
  norm       = 28.1176
  Prefactor  = 12.3419
  Prefactor  = 136.139
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.5011
  Prefactor  = 4.80516
  Prefactor  = 0.000100001
  Prefactor  = 0.0244446
  Prefactor  = 0.0001
  Prefactor  = 35.4252
  Normalizat = 1.03249
  Prefactor  = 0.795373
 **********
 **   18 **HESSE 
 **********

 FCN=   2520.492     FROM HESSE     STATUS=OK           663 CALLS     5155 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.971        71.180        .55640E-04   -1.4265    
   2  Prefactor     .10000E-03    105.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.299        49.123        .60228E-04   -1.4376    
   4  Prefactor     8.3014        12.005        .13913E-03   -1.5132    
   5  Prefactor     .10000E-03    37.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    69.069        .35813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     167.41        103.72        .15587E-03   -1.3113    
   8  Prefactor     .10000E-03    24.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.762        37.739        .10084E-03   -1.4914    
  10  Prefactor     .10000E-03    12.323        .17173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.921        67.344        .65145E-04   -1.4476    
  12  Prefactor     .10000E-03    185.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.894        33.707        .10368E-03   -1.4936    
  14  norm          13.886        20.839        .10747E-03   -1.4963    
  15  norm          8.7280        11.845        .13568E-03   -1.5117    
  16  norm          .10000E-03    6.4501        .12424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          28.118        19.749        .75539E-04   -1.4647    
  18  Prefactor     12.342        11.221        .11402E-03   -1.5005    
  19  Prefactor     136.14        78.015        .17253E-03   -1.3369    
  20  Prefactor     .10000E-03    105.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    10.104        .30730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7917        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.0835        .10053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.0982        .12010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.5011        8.0813        .99472E-04   -1.5091    
  26  Prefactor     4.8052        98.694        .18313E-03   -1.5270    
  27  Prefactor     .10000E-03    224.63        .21321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .24445E-01    24.373        .40642E-01   -1.5677    
  29  Prefactor     .10000E-03    10.121        .21138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     35.425        72.702        .67479E-04   -1.4517    
  31  Normalizat    1.0325        .39381        .25049E-03   -.91950    
  32  Prefactor     .79537        .38703        .30333E-03   -.99899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60746e-09
Minuit parameter uncertainties:
  1  71.2968
  2  0.000294006
  3  49.1675
  4  12.0089
  5  4.46576e-06
  6  0.00168325
  7  103.836
  8  9.12701e-06
  9  37.7966
  10  2.51599e-06
  11  67.4791
  12  0.000348532
  13  33.75
  14  20.8495
  15  11.8478
  16  2.40687e-05
  17  19.7532
  18  11.2232
  19  78.0736
  20  9.71079e-05
  21  0.000104064
  22  3.98937e-07
  23  2.64187e-07
  24  2.41229e-05
  25  8.08225
  26  43.6361
  27  0.0010471
  28  1.54121
  29  7.9971e-05
  30  72.8845
  31  0.394928
  32  0.388361
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  7.954e-01  3.884e-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.032e+00  3.949e-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: 6.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853213/likelihoodResults_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.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) = 2520.49230802
delta logL = -0.000716654649295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2520.49159159
delta logL = -2.23111783271e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10309E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6414       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79553       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=   2520.492     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.146        .90712E-02** at limit **
   2  alpha         1.6601        3.3299        .44739       -.13285E-04
   3  Normalizat    1.0325        .29257        .41937E-01   -.33382E-04
   4  Prefactor     .79538        .31616        .68558E-01   -.51467E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66008
  Normalizat = 1.03249
  Prefactor  = 0.795376
 **********
 **   18 **HESSE 
 **********

 FCN=   2520.492     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.7049        .12587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6601        3.2997        .50000       -.34263    
   3  Normalizat    1.0325        .34773        .25049E-03   -.91950    
   4  Prefactor     .79538        .37517        .30333E-03   -.99899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08686e-10
Minuit parameter uncertainties:
  1  8.63888e-05
  2  2.37226
  3  0.3485
  4  0.376383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853213': 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) = 2520.49159116
delta logL = 2.03339368454e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  8.639e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.660e+00  2.372e+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:  7.954e-01  3.764e-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.032e+00  3.485e-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/853213/cmap_HighResolution_571622401_571881601_4FGL_J2324.7-4041_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-04', job_status='DONE', photon_flux_upper_limit='6.15e-08', time_completed='2021-09-29 17:01:18.392899', job_id='853213', GAL2='0.80', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632960078.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1282' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:01:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 853213: <4FGL_J2324.7-4041_daily_bin1282> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1282> 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) <bullet0139>, 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:01:19 2021
Results reported at Wed Sep 29 17:01:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1282 351.182 -40.6834 571622401 571881601 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 :                                   553.02 sec.
    Max Memory :                                 1112 MB
    Average Memory :                             289.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            656 sec.

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

