/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 150 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 = 7567
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin179
RA = 351.19, Dec = 8.0282
tmin = 285724801, tmax = 285984001
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='837868', job_status='RUN', time_executed='2021-09-29 16:08:15.501061', time_epoch_executed='1632956895.5' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837868

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837868/ft1_4FGL_J2324.7+0801_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837868/ft2_4FGL_J2324.7+0801_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837868/ft1_4FGL_J2324.7+0801_daily_bin179.fits outfile=/scratch/kocevski/837868/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin179.fits ra=351.19 dec=8.0282 rad=12.0 tmin=285724801.0 tmax=285984001.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.23
user 3.00
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/837868/ft2_4FGL_J2324.7+0801_daily_bin179.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/837868/ft2_4FGL_J2324.7+0801_daily_bin179.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/837868/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin179.fits evtable="EVENTS" outfile="/scratch/kocevski/837868/ft1_filtered_4FGL_J2324.7+0801_daily_bin179.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.41
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837868/ft1_filtered_4FGL_J2324.7+0801_daily_bin179.fits" evtable="EVENTS" scfile=/scratch/kocevski/837868/ft2_4FGL_J2324.7+0801_daily_bin179.fits sctable="SC_DATA" outfile=/scratch/kocevski/837868/ltcube_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.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/837868/ft2_4FGL_J2324.7+0801_daily_bin179.fits
.....................!
real 9.54
user 9.26
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837868/ft1_filtered_4FGL_J2324.7+0801_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/837868/ft2_4FGL_J2324.7+0801_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/837868/ltcube_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.fits outfile=/scratch/kocevski/837868/expmap_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.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/837868/ltcube_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.fits
.....................!
real 146.02
user 141.68
sys 4.10

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/837868/ft1_filtered_4FGL_J2324.7+0801_daily_bin179.fits scfile=/scratch/kocevski/837868/ft2_4FGL_J2324.7+0801_daily_bin179.fits outfile=/scratch/kocevski/837868/cmap_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.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.19 yref=8.0282 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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837868/ft1_filtered_4FGL_J2324.7+0801_daily_bin179.fits scfile=/scratch/kocevski/837868/ft2_4FGL_J2324.7+0801_daily_bin179.fits outfile=/scratch/kocevski/837868/cmap_HighResolution_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.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.19 yref=8.0282 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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837868/ft1_filtered_4FGL_J2324.7+0801_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/837868/ft2_4FGL_J2324.7+0801_daily_bin179.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837868/Model_4FGL_J2324.7+0801_daily_bin179.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/837868/ft1_filtered_4FGL_J2324.7+0801_daily_bin179.fits.....................!
real 102.44
user 101.29
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/837868/ft1_filtered_4FGL_J2324.7+0801_daily_bin179.fits', '/scratch/kocevski/837868/ft2_4FGL_J2324.7+0801_daily_bin179.fits', expMap='/scratch/kocevski/837868/expmap_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.fits', expCube='/scratch/kocevski/837868/ltcube_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/837868/Model_4FGL_J2324.7+0801_daily_bin179.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7+0801'

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/837868/ft1_filtered_4FGL_J2324.7+0801_daily_bin179.fits
Spacecraft file(s): /scratch/kocevski/837868/ft2_4FGL_J2324.7+0801_daily_bin179.fits
Exposure map: /scratch/kocevski/837868/expmap_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.fits
Exposure cube: /scratch/kocevski/837868/ltcube_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/837868/Model_4FGL_J2324.7+0801_daily_bin179.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) = 11426.1697414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    13.752       1.0000         .10000E-03   10000.    
     3 'norm      '    .10337E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .74190       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.262       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0371       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4714       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10836E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3763       1.0000         .10000E-03   10000.    
    18 'norm      '    36.554       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6216       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.867       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4040       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .56340       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11426.09     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2567 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5157        .14991E-07** at limit **
   2  Prefactor     13.752        .63559       -.15824E-07   -.33052E-02
   3  norm          .21455E-03    5.9508       -.16823E-05** at limit **
   4  Prefactor     .10000E-03    20.510       -.46180E-06** at limit **
   5  Prefactor     .71349        5.3255        .13232E-05   -.67473E-03
   6  Prefactor     .10000E-03    3.9330        .41316E-07** at limit **
   7  Prefactor     .10000E-03    4.1338        .15453E-07** at limit **
   8  Prefactor     21.263        10.849       -.17623E-06   -.11097E-03
   9  norm          1.0371        .89898        .15874E-06    .82356E-03
  10  Prefactor     9.2713        9.0950       -.31633E-07    .19582E-03
  11  Prefactor     2.7552        18.871        .24040E-06   -.31254E-04
  12  Prefactor     .10000E-03    10.093        .92457E-08** at limit **
  13  norm          .10000E-03    4.1276       -.35970E-06** at limit **
  14  Prefactor     4.4703        4.7021       -.73511E-07    .90500E-04
  15  Prefactor     .10000E-03    177.37        .53636E-05** at limit **
  16  Prefactor     .10001E-03    4.8511       -.22041E-05** at limit **
  17  Prefactor     2.3444        55.798       -.64525E-05   -.51109E-04
  18  norm          36.554        20.886        .13085E-06    .25958E-04
  19  norm          1.6302        24.724        .96587E-05    .14608E-03
  20  Prefactor     .10000E-03    3.3155       -.63980E-06** at limit **
  21  Prefactor     .10000E-03    14.497       -.17175E-06** at limit **
  22  Prefactor     21.864        17.733       -.71406E-06   -.32836E-05
  23  Prefactor     .10000E-03    5.0005        .83056E-07** at limit **
  24  Normalizat    1.4041        .19761        .17366E-05    .15797E-03
  25  Prefactor     .56338        .11566       -.14144E-05    .41543E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.7525
  norm       = 0.000214553
  Prefactor  = 0.0001
  Prefactor  = 0.713493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2632
  norm       = 1.03714
  Prefactor  = 9.27135
  Prefactor  = 2.75515
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.4703
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  Prefactor  = 2.34444
  norm       = 36.5536
  norm       = 1.6302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.864
  Prefactor  = 0.0001
  Normalizat = 1.40412
  Prefactor  = 0.563377
 **********
 **   18 **HESSE 
 **********

 FCN=   11426.09     FROM HESSE     STATUS=OK           439 CALLS     3006 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.752        .63441        .17108E-04   -1.4966    
   3  norm          .21455E-03    8.6147        .90612E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .71349        44.235        .44351E-02   -1.5539    
   6  Prefactor     .10000E-03    3.9407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.263        10.792        .86864E-04   -1.4785    
   9  norm          1.0371        .82701        .90847E-03   -1.5504    
  10  Prefactor     9.2713        9.0773        .13161E-03   -1.5099    
  11  Prefactor     2.7552        18.704        .24521E-03   -1.5376    
  12  Prefactor     .10000E-03    10.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.1422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4703        4.6987        .19042E-03   -1.5285    
  15  Prefactor     .10000E-03    177.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    18.697        .42057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3444        57.125        .26576E-03   -1.5402    
  18  norm          36.554        20.884        .66287E-04   -1.4498    
  19  norm          1.6302        26.522        .33232E-03   -1.5453    
  20  Prefactor     .10000E-03    3.4641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.864        17.700        .85656E-04   -1.4772    
  23  Prefactor     .10000E-03    5.0200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4041        .23553        .34080E-03   -.80510    
  25  Prefactor     .56338        .13752        .30752E-03   -1.0915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0527e-08
Minuit parameter uncertainties:
  1  1.13917e-06
  2  0.634409
  3  0.0628369
  4  5.32613e-05
  5  11.2438
  6  2.75058e-06
  7  1.04414e-06
  8  10.7933
  9  0.827021
  10  9.07864
  11  14.3636
  12  6.0396e-07
  13  2.99807e-05
  14  4.6991
  15  0.000919588
  16  0.0008837
  17  23.1696
  18  20.8883
  19  13.1574
  20  4.04254e-05
  21  1.05636e-05
  22  17.7044
  23  5.6161e-06
  24  0.23571
  25  0.137603
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  9.271e+00  9.079e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  5.634e-01  1.376e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.404e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.34e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.40e-05

TS (Fixed Index): 2.66
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/837868/likelihoodResults_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.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) = 11426.0716708
delta logL = 0.0157568618215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11426.0428235
delta logL = 0.044604187211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0858       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7258       1.0000          .0000       10.000    
     3 'Normalizat'    1.3686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11426.04     FROM MIGRAD    STATUS=FAILED        95 CALLS      279 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0841        162.74        .16275E-03   -.24980E-03
   2  Index         2.7251        5.9635        .82632E-02    .10023E-02
   3  Normalizat    1.3693        .48017        .34418E-03    .11627E-02
   4  Prefactor     .57587        .20544        .30435E-03    .85192E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11426.04     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      370 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0841        162.74        .13069E-03   -.24980E-03
   2  Index         2.7251        5.9635        .10168E-02    .10023E-02
   3  Normalizat    1.3693        .48017        .20274E-03    .11627E-02
   4  Prefactor     .57587        .20544        .15694E-03    .85192E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11426.04     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      399 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0838        14.355        .65099E-05   -.52950E-03
   2  Index         2.7251        1.6613        .16526E-02   -.60949E-05
   3  Normalizat    1.3693        .25968        .68837E-04    .11005E-02
   4  Prefactor     .57587        .14502        .60870E-04    .77286E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.0838
  Index      = 2.7251
  Normalizat = 1.36929
  Prefactor  = 0.575866
 **********
 **   18 **HESSE 
 **********

 FCN=   11426.04     FROM HESSE     STATUS=OK            25 CALLS      424 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0838        12.448        .13020E-05   -1.5215    
   2  Index         2.7251        1.4478        .66106E-04   -.47235    
   3  Normalizat    1.3693        .25298        .13767E-04   -.81521    
   4  Prefactor     .57587        .14300        .12174E-04   -1.0861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05781e-09
Minuit parameter uncertainties:
  1  12.4536
  2  1.47456
  3  0.253209
  4  0.143092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837868': 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) = 11426.0428195
delta logL = 0.0446081986211

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.084e+00  1.245e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.725e+00  1.475e+00  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  5.759e-01  1.431e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.369e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.73 +/- 1.47
Photon Flux (Free Index): 6.07e-08 +/- 9.16e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/837868/cmap_HighResolution_285724801_285984001_4FGL_J2324.7+0801_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.48e-03', comment='SUCCESS', photon_flux='3.34e-08', energy_flux2='1.43e-05', photon_flux_error='3.27e-08', dlogl='4.46e-02', energy_flux='1.42e-05', photon_flux2='6.07e-08', job_status='DONE', time_completed='2021-09-29 16:22:05.431980', photon_index_error2='1.47', photon_index2='2.73', ts='2.66', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.16e-05', EG='1.40', time_epoch_completed='1632957725.43', return_code='0', job_id='837868', GAL2='0.58', EG2='1.37', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='9.16e-08', ts2='2.74', photon_index='2.23' WHERE bin_id='179' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:22:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 837868: <4FGL_J2324.7+0801_daily_bin179> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin179> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:34 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05:35 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:05:35 2021
Terminated at Wed Sep 29 16:22:06 2021
Results reported at Wed Sep 29 16:22:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin179 351.19 8.0282 285724801 285984001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7+0801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   827.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

