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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin755
RA = 351.182, Dec = -40.6834
tmin = 435024001, tmax = 435283201
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='849825', job_status='RUN', time_executed='2021-09-29 16:41:14.435117', time_epoch_executed='1632958874.44' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849825/ft1_4FGL_J2324.7-4041_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849825/ft2_4FGL_J2324.7-4041_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849825/ft1_4FGL_J2324.7-4041_daily_bin755.fits outfile=/scratch/kocevski/849825/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin755.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.03
user 4.73
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849825/ft2_4FGL_J2324.7-4041_daily_bin755.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/849825/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/849825/ft1_filtered_4FGL_J2324.7-4041_daily_bin755.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.50
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849825/ft1_filtered_4FGL_J2324.7-4041_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/849825/ft2_4FGL_J2324.7-4041_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/849825/ltcube_435024001_435283201_4FGL_J2324.7-4041_daily_bin755.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/849825/ft2_4FGL_J2324.7-4041_daily_bin755.fits
.....................!
real 12.07
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849825/ft1_filtered_4FGL_J2324.7-4041_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/849825/ft2_4FGL_J2324.7-4041_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/849825/ltcube_435024001_435283201_4FGL_J2324.7-4041_daily_bin755.fits outfile=/scratch/kocevski/849825/expmap_435024001_435283201_4FGL_J2324.7-4041_daily_bin755.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/849825/ltcube_435024001_435283201_4FGL_J2324.7-4041_daily_bin755.fits
.....................!
real 191.15
user 185.81
sys 5.02

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/849825/ft1_filtered_4FGL_J2324.7-4041_daily_bin755.fits scfile=/scratch/kocevski/849825/ft2_4FGL_J2324.7-4041_daily_bin755.fits outfile=/scratch/kocevski/849825/cmap_435024001_435283201_4FGL_J2324.7-4041_daily_bin755.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849825/ft1_filtered_4FGL_J2324.7-4041_daily_bin755.fits scfile=/scratch/kocevski/849825/ft2_4FGL_J2324.7-4041_daily_bin755.fits outfile=/scratch/kocevski/849825/cmap_HighResolution_435024001_435283201_4FGL_J2324.7-4041_daily_bin755.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41336E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10999E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6317       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.525       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.373       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.036       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.2317       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.4275       1.0000         .10000E-03   10000.    
    24 'norm      '    6.1020       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.569       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.3447       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .98332       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0764       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=   2330.791     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4307 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    390.10       -.14082E-03** at limit **
   2  Prefactor     .10000E-03    213.29        .11102E-03** at limit **
   3  Prefactor     .10000E-03    45.533        .22077E-04** at limit **
   4  Prefactor     8.6342        7.7393        .30408E-05   -.45182E-04
   5  Prefactor     .10000E-03    33.767       -.19646E-04** at limit **
   6  Prefactor     .10000E-03    9.3511       -.34379E-07** at limit **
   7  Prefactor     .10000E-03    88.010        .19801E-04** at limit **
   8  Prefactor     44.547        48.327        .90081E-05   -.13694E-04
   9  Prefactor     .10000E-03    18.521        .25836E-06** at limit **
  10  Prefactor     11.380        15.587       -.62621E-06   -.31669E-04
  11  Prefactor     .10000E-03    35.817        .13564E-04** at limit **
  12  Prefactor     .10000E-03    262.45       -.16647E-04** at limit **
  13  Prefactor     76.048        41.004        .20383E-05   -.29675E-04
  14  norm          .10000E-03    9.1210        .29103E-05** at limit **
  15  norm          8.2315        11.327       -.13890E-06   -.28362E-04
  16  norm          .10000E-03    3.1491        .38505E-07** at limit **
  17  norm          .10000E-03    4.9660        .17325E-07** at limit **
  18  Prefactor     .10000E-03    4.1827       -.69028E-08** at limit **
  19  Prefactor     .10000E-03    35.113        .51833E-05** at limit **
  20  Prefactor     .10001E-03    289.53       -.88347E-04** at limit **
  21  norm          .10000E-03    3.1338        .99129E-07** at limit **
  22  Prefactor     .10000E-03    9.1111       -.28574E-05** at limit **
  23  norm          7.4287        3.3183       -.22050E-06   -.24447E-03
  24  norm          6.1002        7.0782       -.15677E-05   -.54630E-05
  25  Prefactor     .10000E-03    2.5346       -.15047E-07** at limit **
  26  Prefactor     11.585        38.933        .37025E-05   -.12938E-03
  27  Prefactor     .10000E-03    56.769       -.42276E-04** at limit **
  28  Prefactor     .10000E-03    14.463        .24306E-06** at limit **
  29  Prefactor     9.3485        8.5148       -.12021E-05   -.11852E-02
  30  Prefactor     .10000E-03    48.674        .26969E-05** at limit **
  31  Normalizat    .98285        .31569       -.18957E-05   -.16301E-04
  32  Prefactor     1.0763        .33851        .44422E-07   -.51718E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.63424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5469
  Prefactor  = 0.0001
  Prefactor  = 11.3804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.0477
  norm       = 0.0001
  norm       = 8.23145
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.42867
  norm       = 6.10023
  Prefactor  = 0.0001
  Prefactor  = 11.5845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.34846
  Prefactor  = 0.0001
  Normalizat = 0.982846
  Prefactor  = 1.07628
 **********
 **   18 **HESSE 
 **********

 FCN=   2330.791     FROM HESSE     STATUS=OK           643 CALLS     4950 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    390.70        .19453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    215.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6342        7.7336        .12200E-03   -1.5120    
   5  Prefactor     .10000E-03    33.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.3797        .14418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    88.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.547        48.354        .60083E-04   -1.4372    
   9  Prefactor     .10000E-03    18.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.380        15.585        .11879E-03   -1.5033    
  11  Prefactor     .10000E-03    35.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    265.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     76.048        41.136        .46049E-04   -1.3962    
  14  norm          .10000E-03    9.1282        .14243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.2315        11.333        .13973E-03   -1.5134    
  16  norm          .10000E-03    3.1494        .83678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9701        .10508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1856        .96421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    292.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1455        .83445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1172        .14233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.4287        3.3227        .51079E-04   -1.5163    
  24  norm          6.1002        7.0758        .13291E-03   -1.5214    
  25  Prefactor     .10000E-03    2.5374        .75011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.585        38.896        .11778E-03   -1.5027    
  27  Prefactor     .10000E-03    56.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.629        .17921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.3485        8.5169        .12668E-03   -1.5096    
  30  Prefactor     .10000E-03    48.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .98285        .38244        .26414E-03   -.93607    
  32  Prefactor     1.0763        .41008        .27996E-03   -.90228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29086e-09
Minuit parameter uncertainties:
  1  0.002232
  2  0.00145315
  3  3.0791e-05
  4  7.73451
  5  7.34711e-05
  6  2.39642e-05
  7  0.000413849
  8  48.3964
  9  1.61152e-06
  10  15.5901
  11  1.04396e-05
  12  0.000325596
  13  41.1518
  14  1.18539e-06
  15  11.3358
  16  1.68293e-06
  17  6.18652e-06
  18  9.1956e-07
  19  6.68575e-05
  20  0.00263951
  21  1.05192e-05
  22  1.2568e-06
  23  3.32279
  24  7.07678
  25  6.06925e-06
  26  38.9816
  27  1.50965e-05
  28  5.89213e-05
  29  8.518
  30  2.56886e-05
  31  0.383507
  32  0.411285
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.683e-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.076e+00  4.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.828e-01  3.835e-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: 4.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849825/likelihoodResults_435024001_435283201_4FGL_J2324.7-4041_daily_bin755.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): 102
logL (Free Index) = 2330.79184145
delta logL = -0.000811291907212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2330.79103008
delta logL = 7.86822056398e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2330.791     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      239 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    184.53        .84381E-02** at limit **
   2  alpha         1.2562        4.2858        .18015        .10715E-07
   3  Normalizat    .98285        .56848E-01    .26414E-03    .75320E-06
   4  Prefactor     1.0763        .63013E-01    .27996E-03   -.24771E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.25615
  Normalizat = 0.982845
  Prefactor  = 1.07628
 **********
 **   18 **HESSE 
 **********

 FCN=   2330.791     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6685        .88944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2562        3.0946        .36031E-01   -.52076    
   3  Normalizat    .98285        .36758        .10566E-04   -.93607    
   4  Prefactor     1.0763        .40732        .11199E-04   -.90228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4895e-12
Minuit parameter uncertainties:
  1  1.47035e-05
  2  192.534
  3  0.368531
  4  0.408501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849825': 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) = 2330.79102834
delta logL = 1.82251778824e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.470e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.256e+00  1.925e+02  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.076e+00  4.085e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.828e-01  3.685e-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/849825/cmap_HighResolution_435024001_435283201_4FGL_J2324.7-4041_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.87e-05', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-09-29 16:50:32.269065', job_id='849825', GAL2='1.08', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632959432.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='755' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:50:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 849825: <4FGL_J2324.7-4041_daily_bin755> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin755> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 16:41:03 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:41:05 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:41:05 2021
Terminated at Wed Sep 29 16:50:33 2021
Results reported at Wed Sep 29 16:50:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin755 351.182 -40.6834 435024001 435283201 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 :                                   546.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            570 sec.

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

