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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1277
RA = 351.182, Dec = -40.6834
tmin = 570326401, tmax = 570585601
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='853206', job_status='RUN', time_executed='2021-09-29 16:53:38.368828', time_epoch_executed='1632959618.37' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853206

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853206/ft1_4FGL_J2324.7-4041_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853206/ft2_4FGL_J2324.7-4041_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853206/ft1_4FGL_J2324.7-4041_daily_bin1277.fits outfile=/scratch/kocevski/853206/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1277.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=570326401.0 tmax=570585601.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 3.48
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853206/ft2_4FGL_J2324.7-4041_daily_bin1277.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/853206/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1277.fits evtable="EVENTS" outfile="/scratch/kocevski/853206/ft1_filtered_4FGL_J2324.7-4041_daily_bin1277.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/853206/ft1_filtered_4FGL_J2324.7-4041_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/853206/ft2_4FGL_J2324.7-4041_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/853206/ltcube_570326401_570585601_4FGL_J2324.7-4041_daily_bin1277.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/853206/ft2_4FGL_J2324.7-4041_daily_bin1277.fits
.....................!
real 11.72
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853206/ft1_filtered_4FGL_J2324.7-4041_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/853206/ft2_4FGL_J2324.7-4041_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/853206/ltcube_570326401_570585601_4FGL_J2324.7-4041_daily_bin1277.fits outfile=/scratch/kocevski/853206/expmap_570326401_570585601_4FGL_J2324.7-4041_daily_bin1277.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/853206/ltcube_570326401_570585601_4FGL_J2324.7-4041_daily_bin1277.fits
.....................!
real 190.02
user 185.19
sys 4.52

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/853206/ft1_filtered_4FGL_J2324.7-4041_daily_bin1277.fits scfile=/scratch/kocevski/853206/ft2_4FGL_J2324.7-4041_daily_bin1277.fits outfile=/scratch/kocevski/853206/cmap_570326401_570585601_4FGL_J2324.7-4041_daily_bin1277.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853206/ft1_filtered_4FGL_J2324.7-4041_daily_bin1277.fits scfile=/scratch/kocevski/853206/ft2_4FGL_J2324.7-4041_daily_bin1277.fits outfile=/scratch/kocevski/853206/cmap_HighResolution_570326401_570585601_4FGL_J2324.7-4041_daily_bin1277.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/853206/ft1_filtered_4FGL_J2324.7-4041_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/853206/ft2_4FGL_J2324.7-4041_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853206/Model_4FGL_J2324.7-4041_daily_bin1277.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/853206/ft1_filtered_4FGL_J2324.7-4041_daily_bin1277.fits......!
real 13.79
user 12.65
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .99087E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40720E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9999.8       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20385E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22241E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .89980E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'norm      '    .22033E-01   1.0000         .10000E-03   10000.    
    15 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    16 'norm      '    .14006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .14967E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .45919E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .36030E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    570.49       1.0000         .10000E-03   10000.    
    21 'norm      '    24.511       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15687E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .46713E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10700E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25393E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .24959E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19721E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.8428       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .44960E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77222       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=   71.37927     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4486 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    201.27        .34398E-06** at limit **
   2  Prefactor     .10000E-03    117.19       -.48710E-07** at limit **
   3  Prefactor     .10007E-03    6429.2       -.44376E-04** at limit **
   4  Prefactor     .10000E-03    912.56        .22975E-06** at limit **
   5  Prefactor    10000.0        9909.7        .10200E-04** at limit **
   6  Prefactor     .10000E-03    364.53       -.16744E-06** at limit **
   7  Prefactor    10000.0        7918.6        .31979E-05** at limit **
   8  Prefactor    10000.0        8873.0       -.11319E-05** at limit **
   9  Prefactor     .10000E-03    6219.3        .75723E-06** at limit **
  10  Prefactor    10000.0        8011.7       -.17275E-05** at limit **
  11  Prefactor     .10000E-03    7523.3       -.30862E-06** at limit **
  12  Prefactor     .10000E-03    7607.7        .17435E-06** at limit **
  13  Prefactor    10000.0        9994.0        .20239E-05** at limit **
  14  norm          .10000E-03    7498.6       -.28336E-06** at limit **
  15  norm         10000.0        8407.1        .27262E-05** at limit **
  16  norm          .10000E-03    142.83        .17553E-05** at limit **
  17  norm          .10000E-03    77.962        .79708E-06** at limit **
  18  Prefactor     .10000E-03    7817.5        .15424E-05** at limit **
  19  Prefactor     .10000E-03    1094.8        .85516E-05** at limit **
  20  Prefactor     570.74        577.31        .79638E-06   -.57694E-05
  21  norm          24.336        74.566        .13377E-05   -.37010E-05
  22  Prefactor     .10000E-03    1426.6        .58652E-06** at limit **
  23  norm          .10000E-03    1800.6        .10654E-05** at limit **
  24  norm          .10000E-03    36.912        .11949E-05** at limit **
  25  Prefactor     .10000E-03    151.30        .35778E-07** at limit **
  26  Prefactor     .10000E-03    317.24       -.18306E-07** at limit **
  27  Prefactor     .10000E-03    437.81        .15291E-05** at limit **
  28  Prefactor     3.7052        210.78        .10888E-04   -.21460E-04
  29  Prefactor     .10000E-03    19.191       -.33979E-07** at limit **
  30  Prefactor     .10000E-03    321.07        .30502E-05** at limit **
  31  Normalizat    .10000E-01    .66239        .18933E-04** at limit **
  32  Prefactor     .77340        .70953       -.17410E-04   -.15954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10000
  norm       = 0.000100004
  norm       = 10000
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 570.742
  norm       = 24.3359
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.70522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.773399
 **********
 **   18 **HESSE 
 **********

 FCN=   71.37927     FROM HESSE     STATUS=OK           629 CALLS     5115 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    201.26        .11786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    117.19        .89805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    6406.3        .38028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    912.56        .21255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9915.0        .20261E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    364.66        .15908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        7910.4        .18516E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        8870.2        .19611E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6219.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        8013.6        .19210E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7523.4        .20131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7608.3        .18269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        9993.7        .18311E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7500.5        .18265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        8402.7        .18367E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    142.76        .99176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    77.940        .73195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7817.1        .19317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1092.8        .19621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     570.74        575.74        .86231E-04   -1.0883    
  21  norm          24.336        74.365        .80911E-04   -1.4721    
  22  Prefactor     .10000E-03    1426.7        .20435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1800.2        .21191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    36.891        .50322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    151.31        .10210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    317.24        .14826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    437.64        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.7052        204.02        .18926E-03   -1.5323    
  29  Prefactor     .10000E-03    19.190        .36281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    320.71        .14910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .72115        .44159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .77340        .71628        .18100E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03619e-10
Minuit parameter uncertainties:
  1  8.3137e-05
  2  3.62186e-06
  3  0.0289055
  4  0.000298505
  5  0.375671
  6  0.00035943
  7  0.08027
  8  0.0198876
  9  0.000855186
  10  0.0062967
  11  0.00275952
  12  0.0072058
  13  0.0393515
  14  0.0103727
  15  0.0623856
  16  1.40145e-05
  17  4.70937e-06
  18  0.00476491
  19  0.00142475
  20  581.822
  21  74.6499
  22  0.000943218
  23  0.000856511
  24  1.38933e-06
  25  7.02201e-05
  26  1.45966e-05
  27  2.42136e-06
  28  55.1873
  29  2.92659e-06
  30  0.000195368
  31  1.0725e-05
  32  0.725154
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.401e-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.734e-01  7.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.000e-02  1.073e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 1.73e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853206/likelihoodResults_570326401_570585601_4FGL_J2324.7-4041_daily_bin1277.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) = 71.3793066328
delta logL = -3.29752153476e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 71.3793070188
delta logL = -3.33611364312e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94858E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6234       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77404       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=   71.37927     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      192 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    135.56        .90859E-02** at limit **
   2  alpha         1.6189        3.2822        .44920        .14459E-06
   3  Normalizat    .10000E-01    .55506        .10172    ** at limit **
   4  Prefactor     .77340        .57256        .43378E-01   -.15594E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.61889
  Normalizat = 0.01
  Prefactor  = 0.773399
 **********
 **   18 **HESSE 
 **********

 FCN=   71.37927     FROM HESSE     STATUS=OK            29 CALLS      221 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    135.16        .99198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6189        3.2818        .50000       -.36018    
   3  Normalizat    .10000E-01    .55964        .44154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77340        .56631        .18102E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35939e-10
Minuit parameter uncertainties:
  1  0.000569288
  2  2.3397
  3  2.64954e-05
  4  0.570637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853206': 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) = 71.3792736575
delta logL = 7.6894934864e-11

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  5.693e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.619e+00  2.340e+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.734e-01  5.706e-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.000e-02  2.650e-05  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/853206/cmap_HighResolution_570326401_570585601_4FGL_J2324.7-4041_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-03', job_status='DONE', photon_flux_upper_limit='1.73e-06', time_completed='2021-09-29 16:59:54.104643', job_id='853206', GAL2='0.77', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632959994.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.69e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1277' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 853206: <4FGL_J2324.7-4041_daily_bin1277> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1277> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:22 2021
Job was executed on host(s) <bullet0128>, 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 16:59:54 2021
Results reported at Wed Sep 29 16:59:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1277 351.182 -40.6834 570326401 570585601 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 :                                   333.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             234.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            572 sec.

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

