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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1645
RA = 351.182, Dec = -40.6834
tmin = 665712001, tmax = 665971201
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='630718', job_status='RUN', time_executed='2022-02-08 00:43:14.614259', time_epoch_executed='1644309794.61' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630718

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630718/ft1_4FGL_J2324.7-4041_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630718/ft2_4FGL_J2324.7-4041_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630718/ft1_4FGL_J2324.7-4041_daily_bin1645.fits outfile=/scratch/kocevski/630718/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1645.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=665712001.0 tmax=665971201.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.61
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630718/ft2_4FGL_J2324.7-4041_daily_bin1645.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/630718/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1645.fits evtable="EVENTS" outfile="/scratch/kocevski/630718/ft1_filtered_4FGL_J2324.7-4041_daily_bin1645.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630718/ft1_filtered_4FGL_J2324.7-4041_daily_bin1645.fits" evtable="EVENTS" scfile=/scratch/kocevski/630718/ft2_4FGL_J2324.7-4041_daily_bin1645.fits sctable="SC_DATA" outfile=/scratch/kocevski/630718/ltcube_665712001_665971201_4FGL_J2324.7-4041_daily_bin1645.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/630718/ft2_4FGL_J2324.7-4041_daily_bin1645.fits
.....................!
real 11.89
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630718/ft1_filtered_4FGL_J2324.7-4041_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/630718/ft2_4FGL_J2324.7-4041_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/630718/ltcube_665712001_665971201_4FGL_J2324.7-4041_daily_bin1645.fits outfile=/scratch/kocevski/630718/expmap_665712001_665971201_4FGL_J2324.7-4041_daily_bin1645.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/630718/ltcube_665712001_665971201_4FGL_J2324.7-4041_daily_bin1645.fits
.....................!
real 190.55
user 185.25
sys 4.94

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/630718/ft1_filtered_4FGL_J2324.7-4041_daily_bin1645.fits scfile=/scratch/kocevski/630718/ft2_4FGL_J2324.7-4041_daily_bin1645.fits outfile=/scratch/kocevski/630718/cmap_665712001_665971201_4FGL_J2324.7-4041_daily_bin1645.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.54
user 0.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/630718/ft1_filtered_4FGL_J2324.7-4041_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/630718/ft2_4FGL_J2324.7-4041_daily_bin1645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/630718/Model_4FGL_J2324.7-4041_daily_bin1645.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/630718/ft1_filtered_4FGL_J2324.7-4041_daily_bin1645.fits.....................!
real 42.31
user 40.97
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    55.804       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19550E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7821       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.470       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.413       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .43415E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6166       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.276       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.710       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4388       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.176       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13040       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.4262       1.0000         .10000E-03   10000.    
    30 'Prefactor '    39.142       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96988       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88058       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=   5659.919     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     3794 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.258       -.49892E-05** at limit **
   2  Prefactor     55.812        24.302        .25996E-06   -.84234E-05
   3  Prefactor     .10000E-03    10.046        .41178E-05** at limit **
   4  Prefactor     .51022E-01    2.0603       -.69142E-06    .71796E-03
   5  Prefactor     .10000E-03    33.541       -.14078E-05** at limit **
   6  Prefactor     3.7785        6.7686       -.27510E-06   -.26376E-03
   7  Prefactor     .10000E-03    11.182       -.43156E-05** at limit **
   8  Prefactor     .10000E-03    8.9962       -.88060E-06** at limit **
   9  Prefactor     11.472        11.435       -.24739E-06   -.24671E-04
  10  Prefactor     11.409        8.1044        .17456E-07    .61153E-04
  11  Prefactor     .10000E-03    32.500        .22816E-05** at limit **
  12  Prefactor     .10000E-03    22.662        .47142E-05** at limit **
  13  Prefactor     .10000E-03    11.079       -.47078E-05** at limit **
  14  norm          .10000E-03    5.2779        .66774E-07** at limit **
  15  norm          .10000E-03    6.2868        .11009E-07** at limit **
  16  norm          .10000E-03    1.7610       -.10254E-06** at limit **
  17  norm          3.6173        4.7348        .77382E-06   -.16038E-04
  18  Prefactor     .10000E-03    12.091        .76161E-05** at limit **
  19  Prefactor     19.300        27.799        .52032E-05    .24964E-04
  20  Prefactor     .10000E-03    61.993       -.13842E-04** at limit **
  21  norm          .10000E-03    3.4596       -.35438E-06** at limit **
  22  Prefactor     46.715        18.426       -.97191E-06   -.54879E-03
  23  norm          1.4391        1.2370        .45895E-07   -.93861E-03
  24  norm          .10000E-03    2.4578       -.66622E-07** at limit **
  25  Prefactor     .10000E-03    1.6739        .10826E-07** at limit **
  26  Prefactor     12.178        19.898       -.73587E-06   -.44945E-04
  27  Prefactor     .10000E-03    133.14       -.17832E-04** at limit **
  28  Prefactor     .12664        3.3896       -.11670E-05    .48142E-03
  29  Prefactor     6.4268        3.8821        .30926E-07   -.11582E-03
  30  Prefactor     39.145        38.280        .27367E-05    .14646E-03
  31  Normalizat    .96971        .17674       -.98794E-07    .35294E-03
  32  Prefactor     .88064        .18890       -.19034E-06    .23049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 55.8117
  Prefactor  = 0.0001
  Prefactor  = 0.0510224
  Prefactor  = 0.0001
  Prefactor  = 3.7785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.472
  Prefactor  = 11.4092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.61731
  Prefactor  = 0.0001
  Prefactor  = 19.3
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.7146
  norm       = 1.43906
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1782
  Prefactor  = 0.0001
  Prefactor  = 0.126635
  Prefactor  = 6.42677
  Prefactor  = 39.1455
  Normalizat = 0.969709
  Prefactor  = 0.880641
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.919     FROM HESSE     STATUS=OK           653 CALLS     4447 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.812        24.308        .53698E-04   -1.4212    
   3  Prefactor     .10000E-03    10.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .51022E-01    58.085        .20433E-02   -1.5663    
   5  Prefactor     .10000E-03    33.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7785        6.7795        .20758E-03   -1.5319    
   7  Prefactor     .10000E-03    11.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.0099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.472        11.460        .11829E-03   -1.5030    
  10  Prefactor     11.409        8.1058        .11858E-03   -1.5032    
  11  Prefactor     .10000E-03    32.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.2897        .16880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    44.092        .35552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7649        .97463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6173        4.7240        .18163E-03   -1.5328    
  18  Prefactor     .10000E-03    12.386        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.300        27.615        .91226E-04   -1.4829    
  20  Prefactor     .10000E-03    62.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.5714        .27150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     46.715        18.440        .58668E-04   -1.4340    
  23  norm          1.4391        1.1828        .69494E-04   -1.5468    
  24  norm          .10000E-03    2.4902        .11499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.6882        .94834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.178        19.838        .11480E-03   -1.5010    
  27  Prefactor     .10000E-03    133.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .12664        65.886        .25074E-02   -1.5637    
  29  Prefactor     6.4268        3.8830        .10849E-03   -1.5201    
  30  Prefactor     39.145        39.022        .64066E-04   -1.4456    
  31  Normalizat    .96971        .21345        .22567E-03   -.94052    
  32  Prefactor     .88064        .22512        .26283E-03   -.96821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99957e-08
Minuit parameter uncertainties:
  1  1.18576e-06
  2  24.3123
  3  6.7293e-07
  4  3.443
  5  3.1542e-05
  6  6.78089
  7  6.99775e-06
  8  4.83099e-06
  9  11.4617
  10  8.10653
  11  3.50959e-06
  12  9.49162e-07
  13  1.25718e-05
  14  2.09105e-07
  15  2.1946e-06
  16  1.03577e-05
  17  4.72451
  18  2.96426e-05
  19  27.6332
  20  3.61155e-05
  21  7.82008e-05
  22  18.442
  23  1.18281
  24  2.26552e-05
  25  3.7466e-06
  26  19.8488
  27  7.9e-05
  28  5.78115
  29  3.88316
  30  39.0476
  31  0.213633
  32  0.225359
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.036e-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:  8.806e-01  2.254e-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.697e-01  2.136e-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: 2.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630718/likelihoodResults_665712001_665971201_4FGL_J2324.7-4041_daily_bin1645.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) = 5659.92174626
delta logL = -0.00262567098071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5659.91912059
delta logL = 4.52018866781e-10

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.6241       1.0000          .0000       5.0000    
     3 'Normalizat'    .96971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88064       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=   5659.919     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      233 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    208.43        .97463E-03** at limit **
   2  alpha         1.6331        3.0033        .50000       -.98294E-06
   3  Normalizat    .96971        .52468E-01    .22567E-03    .48362E-05
   4  Prefactor     .88064        .58821E-01    .26283E-03    .27251E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.63311
  Normalizat = 0.969707
  Prefactor  = 0.880642
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.919     FROM HESSE     STATUS=OK            29 CALLS      262 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    2.9313        .19493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6331        3.1393        .50000       -.35411    
   3  Normalizat    .96971        .19856        .90268E-05   -.94052    
   4  Prefactor     .88064        .22255        .10513E-04   -.96821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90828e-09
Minuit parameter uncertainties:
  1  0.000248643
  2  178.39
  3  0.198706
  4  0.222779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630718': 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) = 5659.91912059
delta logL = 4.06089384342e-09

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  2.486e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.633e+00  1.784e+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:  8.806e-01  2.228e-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.697e-01  1.987e-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/630718/cmap_HighResolution_665712001_665971201_4FGL_J2324.7-4041_daily_bin1645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-05', job_status='DONE', photon_flux_upper_limit='2.25e-08', time_completed='2022-02-08 00:56:57.504926', job_id='630718', GAL2='0.88', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1644310617.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.06e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1645' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:56:57 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 630718: <4FGL_J2324.7-4041_daily_bin1645> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1645> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Feb  8 00:40:25 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:40:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:40:26 2022
Terminated at Tue Feb  8 00:56:58 2022
Results reported at Tue Feb  8 00:56:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1645 351.182 -40.6834 665712001 665971201 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 :                                   825.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

