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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1393
RA = 351.182, Dec = -40.6834
tmin = 600393601, tmax = 600652801
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='853392', job_status='RUN', time_executed='2021-09-29 16:51:34.744212', time_epoch_executed='1632959494.74' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853392/ft1_4FGL_J2324.7-4041_daily_bin1393.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853392/ft2_4FGL_J2324.7-4041_daily_bin1393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853392/ft1_4FGL_J2324.7-4041_daily_bin1393.fits outfile=/scratch/kocevski/853392/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1393.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=600393601.0 tmax=600652801.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.64
user 3.43
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853392/ft2_4FGL_J2324.7-4041_daily_bin1393.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/853392/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1393.fits evtable="EVENTS" outfile="/scratch/kocevski/853392/ft1_filtered_4FGL_J2324.7-4041_daily_bin1393.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853392/ft1_filtered_4FGL_J2324.7-4041_daily_bin1393.fits" evtable="EVENTS" scfile=/scratch/kocevski/853392/ft2_4FGL_J2324.7-4041_daily_bin1393.fits sctable="SC_DATA" outfile=/scratch/kocevski/853392/ltcube_600393601_600652801_4FGL_J2324.7-4041_daily_bin1393.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/853392/ft2_4FGL_J2324.7-4041_daily_bin1393.fits
.....................!
real 12.02
user 11.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853392/ft1_filtered_4FGL_J2324.7-4041_daily_bin1393.fits evtable="EVENTS" scfile=/scratch/kocevski/853392/ft2_4FGL_J2324.7-4041_daily_bin1393.fits sctable="SC_DATA" expcube=/scratch/kocevski/853392/ltcube_600393601_600652801_4FGL_J2324.7-4041_daily_bin1393.fits outfile=/scratch/kocevski/853392/expmap_600393601_600652801_4FGL_J2324.7-4041_daily_bin1393.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/853392/ltcube_600393601_600652801_4FGL_J2324.7-4041_daily_bin1393.fits
.....................!
real 190.71
user 184.99
sys 5.37

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/853392/ft1_filtered_4FGL_J2324.7-4041_daily_bin1393.fits scfile=/scratch/kocevski/853392/ft2_4FGL_J2324.7-4041_daily_bin1393.fits outfile=/scratch/kocevski/853392/cmap_600393601_600652801_4FGL_J2324.7-4041_daily_bin1393.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853392/ft1_filtered_4FGL_J2324.7-4041_daily_bin1393.fits scfile=/scratch/kocevski/853392/ft2_4FGL_J2324.7-4041_daily_bin1393.fits outfile=/scratch/kocevski/853392/cmap_HighResolution_600393601_600652801_4FGL_J2324.7-4041_daily_bin1393.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/853392/ft1_filtered_4FGL_J2324.7-4041_daily_bin1393.fits evtable="EVENTS" scfile=/scratch/kocevski/853392/ft2_4FGL_J2324.7-4041_daily_bin1393.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853392/Model_4FGL_J2324.7-4041_daily_bin1393.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/853392/ft1_filtered_4FGL_J2324.7-4041_daily_bin1393.fits.....................!
real 34.84
user 33.60
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3905       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3536       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8040       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.747       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.814       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    183.43       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34563E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.374       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1616       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.649       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.639       1.0000         .10000E-03   10000.    
    23 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .64883       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.252       1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.960       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.3723       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.8880       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .13211E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .69184       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=   3928.198     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     4367 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3748        45.667       -.53619E-05   -.61672E-05
   2  Prefactor     .10000E-03    22.495        .69459E-06** at limit **
   3  Prefactor     7.3475        20.661       -.15190E-06    .14674E-05
   4  Prefactor     .10000E-03    1.5418        .64179E-07** at limit **
   5  Prefactor     .10000E-03    15.995       -.32526E-07** at limit **
   6  Prefactor     .10000E-03    3.8091        .57329E-07** at limit **
   7  Prefactor     5.8010        38.977       -.11805E-05   -.35476E-05
   8  Prefactor     17.746        23.579       -.12821E-06    .66018E-05
   9  Prefactor     18.808        16.675       -.19515E-07    .16320E-04
  10  Prefactor     .10000E-03    3.7890        .93101E-07** at limit **
  11  Prefactor     .10000E-03    36.848       -.39390E-06** at limit **
  12  Prefactor     183.45        113.04        .26314E-05    .22156E-04
  13  Prefactor     .10001E-03    334.27       -.80495E-04** at limit **
  14  norm          18.374        15.529       -.74935E-07    .77608E-05
  15  norm          .10000E-03    2.5003        .42413E-08** at limit **
  16  norm          .10000E-03    2.7822        .71774E-07** at limit **
  17  norm          .10000E-03    2.7384       -.36746E-07** at limit **
  18  Prefactor     9.1617        10.907       -.48014E-06    .14951E-03
  19  Prefactor     .10000E-03    23.244       -.26906E-06** at limit **
  20  Prefactor     53.655        51.999        .14226E-05    .17910E-04
  21  norm          .10000E-03    2.9026        .92550E-07** at limit **
  22  Prefactor     53.646        30.013        .29051E-06    .22735E-03
  23  norm          .10000E-03    .77871       -.42981E-07** at limit **
  24  norm          .10000E-03    1.6247        .53505E-07** at limit **
  25  Prefactor     .64917        6.4696       -.12662E-05    .12782E-03
  26  Prefactor     12.254        20.860       -.60258E-06    .75120E-04
  27  Prefactor     37.906        83.597       -.13381E-04   -.14268E-04
  28  Prefactor     6.3686        9.3259       -.20327E-05   -.22538E-03
  29  Prefactor     8.8856        6.3410       -.12892E-07    .72562E-04
  30  Prefactor     .10000E-03    73.744        .24418E-05** at limit **
  31  Normalizat    1.2205        .23735       -.78681E-06   -.23484E-03
  32  Prefactor     .69193        .23568        .95193E-06    .13704E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.37477
  Prefactor  = 0.0001
  Prefactor  = 7.34751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.801
  Prefactor  = 17.7458
  Prefactor  = 18.808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 183.45
  Prefactor  = 0.000100006
  norm       = 18.3736
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.16174
  Prefactor  = 0.0001
  Prefactor  = 53.6552
  norm       = 0.0001
  Prefactor  = 53.6457
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.649168
  Prefactor  = 12.254
  Prefactor  = 37.9062
  Prefactor  = 6.36862
  Prefactor  = 8.88557
  Prefactor  = 0.000100003
  Normalizat = 1.22052
  Prefactor  = 0.691928
 **********
 **   18 **HESSE 
 **********

 FCN=   3928.198     FROM HESSE     STATUS=OK           663 CALLS     5030 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3748        45.757        .13078E-03   -1.5096    
   2  Prefactor     .10000E-03    22.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3475        20.654        .14791E-03   -1.5166    
   4  Prefactor     .10000E-03    1.5480        .75998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8194        .11946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8010        38.880        .16671E-03   -1.5226    
   8  Prefactor     17.746        23.563        .95073E-04   -1.4865    
   9  Prefactor     18.808        16.679        .92338E-04   -1.4840    
  10  Prefactor     .10000E-03    3.7983        .11914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     183.45        113.53        .14904E-03   -1.2991    
  13  Prefactor     .10001E-03    28.699        .74954E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.374        15.530        .93438E-04   -1.4850    
  15  norm          .10000E-03    2.5005        .96788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7881        .10210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7396        .10129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.1617        10.887        .13241E-03   -1.5103    
  19  Prefactor     .10000E-03    23.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     53.655        52.128        .27380E-03   -1.4242    
  21  norm          .10000E-03    2.9337        .10426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     53.646        29.987        .54766E-04   -1.4242    
  23  norm          .10000E-03    1.1490        .10287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.6324        .78015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .64917        6.4516        .29361E-03   -1.5547    
  26  Prefactor     12.254        20.664        .11444E-03   -1.5008    
  27  Prefactor     37.906        83.559        .65052E-04   -1.4476    
  28  Prefactor     6.3686        9.3622        .79501E-03   -1.5203    
  29  Prefactor     8.8856        6.3551        .12638E-03   -1.5112    
  30  Prefactor     .10000E-03    74.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2205        .28766        .22774E-03   -.85971    
  32  Prefactor     .69193        .28307        .30696E-03   -1.0384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51847e-09
Minuit parameter uncertainties:
  1  41.4737
  2  3.52286e-05
  3  20.6736
  4  7.65846e-07
  5  1.72322e-06
  6  1.41529e-06
  7  30.0643
  8  23.5754
  9  16.683
  10  3.758e-06
  11  1.71175e-05
  12  113.663
  13  0.000835583
  14  15.5334
  15  1.94596e-06
  16  1.19033e-06
  17  1.98373e-06
  18  10.8892
  19  1.15654e-05
  20  52.1723
  21  1.17803e-07
  22  29.9957
  23  7.51415e-05
  24  2.06729e-06
  25  4.09326
  26  20.6763
  27  83.8184
  28  9.36434
  29  6.35557
  30  0.00099031
  31  0.288035
  32  0.283661
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.190e-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:  6.919e-01  2.837e-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.221e+00  2.880e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853392/likelihoodResults_600393601_600652801_4FGL_J2324.7-4041_daily_bin1393.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) = 3928.19991352
delta logL = -0.00162206349205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3928.19829145
delta logL = 5.01722752233e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6273       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69191       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=   3928.198     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      244 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    278.36        .10216E-02** at limit **
   2  alpha         1.8024        3.4011        .50000       -.20748E-07
   3  Normalizat    1.2205        .61818E-01    .22774E-03   -.45177E-04
   4  Prefactor     .69192        .64765E-01    .30696E-03   -.33518E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.8024
  Normalizat = 1.22053
  Prefactor  = 0.691919
 **********
 **   18 **HESSE 
 **********

 FCN=   3928.198     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9259        .20432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8024        2.9114        .50000       -.28279    
   3  Normalizat    1.2205        .26583        .91097E-05   -.85971    
   4  Prefactor     .69192        .27828        .12278E-04   -1.0384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48202e-12
Minuit parameter uncertainties:
  1  1.41998e-05
  2  291.89
  3  0.266122
  4  0.278838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853392': 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) = 3928.1982912
delta logL = 2.51841811405e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.420e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.802e+00  2.919e+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:  6.919e-01  2.788e-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.221e+00  2.661e-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/853392/cmap_HighResolution_600393601_600652801_4FGL_J2324.7-4041_daily_bin1393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-05', job_status='DONE', photon_flux_upper_limit='3.50e-08', time_completed='2021-09-29 17:03:15.153161', job_id='853392', GAL2='0.69', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632960195.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='2.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1393' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:03:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 853392: <4FGL_J2324.7-4041_daily_bin1393> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1393 351.182 -40.6834 600393601 600652801 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 :                                   681.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            759 sec.

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

