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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1454
RA = 351.182, Dec = -40.6834
tmin = 616204801, tmax = 616464001
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='854593', job_status='RUN', time_executed='2021-09-29 16:58:35.208024', time_epoch_executed='1632959915.21' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854593/ft1_4FGL_J2324.7-4041_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854593/ft2_4FGL_J2324.7-4041_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854593/ft1_4FGL_J2324.7-4041_daily_bin1454.fits outfile=/scratch/kocevski/854593/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1454.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=616204801.0 tmax=616464001.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.96
user 3.72
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854593/ft2_4FGL_J2324.7-4041_daily_bin1454.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/854593/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1454.fits evtable="EVENTS" outfile="/scratch/kocevski/854593/ft1_filtered_4FGL_J2324.7-4041_daily_bin1454.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/854593/ft1_filtered_4FGL_J2324.7-4041_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/854593/ft2_4FGL_J2324.7-4041_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/854593/ltcube_616204801_616464001_4FGL_J2324.7-4041_daily_bin1454.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/854593/ft2_4FGL_J2324.7-4041_daily_bin1454.fits
.....................!
real 12.32
user 11.98
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854593/ft1_filtered_4FGL_J2324.7-4041_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/854593/ft2_4FGL_J2324.7-4041_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/854593/ltcube_616204801_616464001_4FGL_J2324.7-4041_daily_bin1454.fits outfile=/scratch/kocevski/854593/expmap_616204801_616464001_4FGL_J2324.7-4041_daily_bin1454.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/854593/ltcube_616204801_616464001_4FGL_J2324.7-4041_daily_bin1454.fits
.....................!
real 191.06
user 185.47
sys 5.22

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/854593/ft1_filtered_4FGL_J2324.7-4041_daily_bin1454.fits scfile=/scratch/kocevski/854593/ft2_4FGL_J2324.7-4041_daily_bin1454.fits outfile=/scratch/kocevski/854593/cmap_616204801_616464001_4FGL_J2324.7-4041_daily_bin1454.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854593/ft1_filtered_4FGL_J2324.7-4041_daily_bin1454.fits scfile=/scratch/kocevski/854593/ft2_4FGL_J2324.7-4041_daily_bin1454.fits outfile=/scratch/kocevski/854593/cmap_HighResolution_616204801_616464001_4FGL_J2324.7-4041_daily_bin1454.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854593/ft1_filtered_4FGL_J2324.7-4041_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/854593/ft2_4FGL_J2324.7-4041_daily_bin1454.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854593/Model_4FGL_J2324.7-4041_daily_bin1454.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/854593/ft1_filtered_4FGL_J2324.7-4041_daily_bin1454.fits.....................!
real 35.77
user 33.61
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.984       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6297       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.588       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2871       1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8861       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.9049       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .54339       1.0000         .10000E-03   10000.    
    24 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.962       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.5941       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .80935       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0439       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=   4340.689     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4278 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.869       -.46146E-05** at limit **
   2  Prefactor     41.981        28.452       -.21716E-05   -.27774E-05
   3  Prefactor     3.6281        35.802       -.27262E-05   -.34218E-04
   4  Prefactor     4.0952        4.2326       -.15324E-06   -.21561E-03
   5  Prefactor     .10000E-03    24.883       -.65068E-05** at limit **
   6  Prefactor     .10000E-03    16.083        .39100E-05** at limit **
   7  Prefactor     .10000E-03    13.832       -.12496E-05** at limit **
   8  Prefactor     .10000E-03    32.664        .61719E-05** at limit **
   9  Prefactor     32.394        17.284       -.18541E-06   -.59074E-05
  10  Prefactor     .10000E-03    3.7474        .17104E-05** at limit **
  11  Prefactor     53.589        52.349        .14767E-05   -.19116E-04
  12  Prefactor     .10000E-03    29.465       -.49583E-07** at limit **
  13  Prefactor     .10000E-03    3.9048       -.95562E-06** at limit **
  14  norm          7.2856        13.754       -.13649E-06   -.43442E-04
  15  norm          .10000E-03    3.5715       -.87302E-06** at limit **
  16  norm          .10000E-03    2.4118        .53251E-07** at limit **
  17  norm          .10000E-03    2.7338        .48189E-08** at limit **
  18  Prefactor     4.8887        7.0079       -.47121E-06   -.20979E-03
  19  Prefactor     .10000E-03    34.589        .10039E-04** at limit **
  20  Prefactor     .10000E-03    49.697       -.59461E-05** at limit **
  21  norm          4.9038        5.2697       -.18263E-05   -.45194E-03
  22  Prefactor     .10000E-03    10.828       -.12931E-06** at limit **
  23  norm          .54334        .85031       -.78504E-08   -.11857E-03
  24  norm          .10000E-03    3.0847        .25193E-06** at limit **
  25  Prefactor     .10000E-03    1.7064        .73507E-08** at limit **
  26  Prefactor     26.963        23.731        .69680E-06   -.31864E-05
  27  Prefactor     .10000E-03    19.357       -.53732E-06** at limit **
  28  Prefactor     1.5931        6.2871        .12457E-05   -.69962E-03
  29  Prefactor     .10000E-03    1.6706        .49629E-07** at limit **
  30  Prefactor     .10000E-03    48.554       -.22329E-05** at limit **
  31  Normalizat    .80927        .19270        .43424E-06   -.98293E-04
  32  Prefactor     1.0440        .21471        .36463E-06   -.85187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.9808
  Prefactor  = 3.6281
  Prefactor  = 4.0952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3939
  Prefactor  = 0.0001
  Prefactor  = 53.5894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.28558
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.88869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.90383
  Prefactor  = 0.0001
  norm       = 0.543339
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.963
  Prefactor  = 0.0001
  Prefactor  = 1.59309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.809274
  Prefactor  = 1.04402
 **********
 **   18 **HESSE 
 **********

 FCN=   4340.689     FROM HESSE     STATUS=OK           649 CALLS     4927 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.981        28.468        .61867E-04   -1.4411    
   3  Prefactor     3.6281        36.030        .21206E-03   -1.5327    
   4  Prefactor     4.0952        4.2332        .13330E-03   -1.5303    
   5  Prefactor     .10000E-03    24.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.394        17.300        .70402E-04   -1.4569    
  10  Prefactor     .10000E-03    3.7446        .12432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     53.589        52.252        .54791E-04   -1.4243    
  12  Prefactor     .10000E-03    29.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9024        .12710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2856        13.774        .14858E-03   -1.5168    
  15  norm          .10000E-03    3.5700        .12147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4137        .99913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7395        .10638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8887        6.9981        .18197E-03   -1.5266    
  19  Prefactor     .10000E-03    34.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.9038        5.3933        .15046E-03   -1.5265    
  22  Prefactor     .10000E-03    10.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .54334        .84847        .45787E-04   -1.5561    
  24  norm          .10000E-03    3.1359        .11285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.7132        .83978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     26.963        23.691        .77152E-04   -1.4669    
  27  Prefactor     .10000E-03    19.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.5931        6.2198        .29885E-03   -1.5456    
  29  Prefactor     .10000E-03    1.6867        .83111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    48.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .80927        .22599        .23661E-03   -.99726    
  32  Prefactor     1.0440        .25225        .24118E-03   -.91276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43474e-09
Minuit parameter uncertainties:
  1  6.8606e-07
  2  28.4772
  3  22.8842
  4  4.2335
  5  3.7493e-06
  6  0.000104471
  7  3.72604e-06
  8  4.36833e-05
  9  17.303
  10  1.99096e-06
  11  52.297
  12  1.74878e-06
  13  1.53015e-08
  14  13.7799
  15  2.57833e-06
  16  7.7995e-06
  17  1.12751e-06
  18  6.99924
  19  0.000187441
  20  2.01212e-05
  21  5.39386
  22  2.17497e-05
  23  0.848489
  24  2.96328e-05
  25  1.14357e-06
  26  23.6994
  27  5.92906e-06
  28  6.22231
  29  4.70498e-06
  30  8.83711e-05
  31  0.226257
  32  0.252541
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  7.800e-06  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.044e+00  2.525e-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:  8.093e-01  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 3.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854593/likelihoodResults_616204801_616464001_4FGL_J2324.7-4041_daily_bin1454.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) = 4340.6909714
delta logL = -0.00190911314712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4340.6890625
delta logL = -2.14310603042e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6287       1.0000          .0000       5.0000    
     3 'Normalizat'    .80914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0442       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=   4340.689     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      188 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9085        .90712E-02** at limit **
   2  alpha         1.6342        3.3082        .44866       -.10207E-04
   3  Normalizat    .80927        .18373        .43729E-01   -.65798E-04
   4  Prefactor     1.0440        .21128        .40263E-01   -.53363E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.63417
  Normalizat = 0.809274
  Prefactor  = 1.04402
 **********
 **   18 **HESSE 
 **********

 FCN=   4340.689     FROM HESSE     STATUS=OK            33 CALLS      221 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4298        .10002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6342        3.2884        .50000       -.35366    
   3  Normalizat    .80927        .21500        .23661E-03   -.99726    
   4  Prefactor     1.0440        .24732        .24118E-03   -.91276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13372e-10
Minuit parameter uncertainties:
  1  1.62197e-08
  2  2.35158
  3  0.215227
  4  0.247587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854593': 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) = 4340.68906224
delta logL = 4.67007339466e-08

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.622e-08  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.634e+00  2.352e+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.044e+00  2.476e-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:  8.093e-01  2.152e-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/854593/cmap_HighResolution_616204801_616464001_4FGL_J2324.7-4041_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-05', job_status='DONE', photon_flux_upper_limit='3.23e-08', time_completed='2021-09-29 17:10:54.770437', job_id='854593', GAL2='1.04', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632960654.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1454' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:10:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 854593: <4FGL_J2324.7-4041_daily_bin1454> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1454> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:55:14 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:55:15 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:55:15 2021
Terminated at Wed Sep 29 17:10:55 2021
Results reported at Wed Sep 29 17:10:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1454 351.182 -40.6834 616204801 616464001 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 :                                   712.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            941 sec.

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

