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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1148
RA = 351.19, Dec = 8.0282
tmin = 536889601, tmax = 537148801
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='843580', job_status='RUN', time_executed='2021-09-29 16:27:27.686589', time_epoch_executed='1632958047.69' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843580

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843580/ft1_4FGL_J2324.7+0801_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843580/ft2_4FGL_J2324.7+0801_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843580/ft1_4FGL_J2324.7+0801_daily_bin1148.fits outfile=/scratch/kocevski/843580/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1148.fits ra=351.19 dec=8.0282 rad=12.0 tmin=536889601.0 tmax=537148801.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.87
user 3.41
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/843580/ft2_4FGL_J2324.7+0801_daily_bin1148.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/843580/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1148.fits evtable="EVENTS" outfile="/scratch/kocevski/843580/ft1_filtered_4FGL_J2324.7+0801_daily_bin1148.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843580/ft1_filtered_4FGL_J2324.7+0801_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/843580/ft2_4FGL_J2324.7+0801_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/843580/ltcube_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.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/843580/ft2_4FGL_J2324.7+0801_daily_bin1148.fits
.....................!
real 12.33
user 11.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843580/ft1_filtered_4FGL_J2324.7+0801_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/843580/ft2_4FGL_J2324.7+0801_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/843580/ltcube_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.fits outfile=/scratch/kocevski/843580/expmap_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.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/843580/ltcube_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.fits
.....................!
real 192.30
user 187.28
sys 4.70

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/843580/ft1_filtered_4FGL_J2324.7+0801_daily_bin1148.fits scfile=/scratch/kocevski/843580/ft2_4FGL_J2324.7+0801_daily_bin1148.fits outfile=/scratch/kocevski/843580/cmap_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843580/ft1_filtered_4FGL_J2324.7+0801_daily_bin1148.fits scfile=/scratch/kocevski/843580/ft2_4FGL_J2324.7+0801_daily_bin1148.fits outfile=/scratch/kocevski/843580/cmap_HighResolution_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843580/ft1_filtered_4FGL_J2324.7+0801_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/843580/ft2_4FGL_J2324.7+0801_daily_bin1148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843580/Model_4FGL_J2324.7+0801_daily_bin1148.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/843580/ft1_filtered_4FGL_J2324.7+0801_daily_bin1148.fits.....................!
real 92.88
user 91.41
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/843580/ft1_filtered_4FGL_J2324.7+0801_daily_bin1148.fits', '/scratch/kocevski/843580/ft2_4FGL_J2324.7+0801_daily_bin1148.fits', expMap='/scratch/kocevski/843580/expmap_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.fits', expCube='/scratch/kocevski/843580/ltcube_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/843580/Model_4FGL_J2324.7+0801_daily_bin1148.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/843580/ft1_filtered_4FGL_J2324.7+0801_daily_bin1148.fits
Spacecraft file(s): /scratch/kocevski/843580/ft2_4FGL_J2324.7+0801_daily_bin1148.fits
Exposure map: /scratch/kocevski/843580/expmap_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.fits
Exposure cube: /scratch/kocevski/843580/ltcube_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/843580/Model_4FGL_J2324.7+0801_daily_bin1148.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) = 8131.5831741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0877       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.421       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8412       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2016       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.198       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.339       1.0000         .10000E-03   10000.    
    19 'norm      '    18.323       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13786E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5120       1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.940       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4882       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80410       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=   8131.577     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2878 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.108       -.38302E-05** at limit **
   2  Prefactor     4.0878        .36728       -.53226E-08    .61643E-03
   3  norm          .10000E-03    8.7346        .11174E-05** at limit **
   4  Prefactor     .10000E-03    25.540       -.18419E-04** at limit **
   5  Prefactor     10.421        7.9938       -.28105E-07   -.61210E-04
   6  Prefactor     .10000E-03    4.2255        .15986E-06** at limit **
   7  Prefactor     .10000E-03    7.8337       -.29931E-05** at limit **
   8  Prefactor     5.8413        5.3275        .14064E-05   -.15492E-03
   9  norm          .10000E-03    .30590       -.71859E-07** at limit **
  10  Prefactor     5.2020        5.7112       -.11181E-06   -.23174E-04
  11  Prefactor     24.199        14.389        .69793E-07   -.66214E-06
  12  Prefactor     .10000E-03    97.872       -.13820E-04** at limit **
  13  norm          .10000E-03    2.2348        .12034E-06** at limit **
  14  Prefactor     .10000E-03    2.3489        .12216E-06** at limit **
  15  Prefactor     .10000E-03    59.095        .18642E-04** at limit **
  16  Prefactor     .10000E-03    7.5241        .20212E-05** at limit **
  17  Prefactor     .10000E-03    21.996        .19042E-04** at limit **
  18  norm          13.340        15.447       -.46285E-08   -.27509E-04
  19  norm          18.309        20.843        .60686E-06    .17938E-04
  20  Prefactor     .10000E-03    2.9725       -.37379E-06** at limit **
  21  Prefactor     9.5102        31.707       -.17239E-05   -.12857E-04
  22  Prefactor     39.943        26.034        .39805E-06   -.46392E-04
  23  Prefactor     .10000E-03    2.1415       -.12941E-06** at limit **
  24  Normalizat    1.4881        .22855        .65628E-06    .20770E-04
  25  Prefactor     .80419        .13971        .18933E-07    .28045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.08775
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.84125
  norm       = 0.0001
  Prefactor  = 5.20198
  Prefactor  = 24.1985
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3395
  norm       = 18.3087
  Prefactor  = 0.0001
  Prefactor  = 9.51017
  Prefactor  = 39.9433
  Prefactor  = 0.0001
  Normalizat = 1.48808
  Prefactor  = 0.804194
 **********
 **   18 **HESSE 
 **********

 FCN=   8131.577     FROM HESSE     STATUS=OK           425 CALLS     3303 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0878        .36788        .15644E-04   -1.5304    
   3  norm          .10000E-03    8.7915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.421        7.9977        .12412E-03   -1.5062    
   6  Prefactor     .10000E-03    4.2335        .18102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.8413        5.3127        .16617E-03   -1.5225    
   9  norm          .10000E-03    .31163        .48691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2020        5.7123        .17626E-03   -1.5252    
  11  Prefactor     24.199        14.391        .81431E-04   -1.4724    
  12  Prefactor     .10000E-03    98.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2394        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3614        .13493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    59.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.340        15.449        .10967E-03   -1.4977    
  19  norm          18.309        19.839        .93567E-04   -1.4852    
  20  Prefactor     .10000E-03    6.3349        .28740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5102        31.809        .12994E-03   -1.5091    
  22  Prefactor     39.943        26.082        .63425E-04   -1.4443    
  23  Prefactor     .10000E-03    2.1439        .12887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4881        .27001        .32107E-03   -.78114    
  25  Prefactor     .80419        .16466        .26112E-03   -.99574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02731e-11
Minuit parameter uncertainties:
  1  1.72405e-06
  2  0.367878
  3  5.00518e-06
  4  1.26852e-05
  5  7.99855
  6  1.71545e-06
  7  1.91801e-07
  8  5.3131
  9  2.09733e-07
  10  5.71286
  11  14.3927
  12  7.8887e-05
  13  2.5287e-06
  14  3.57895e-06
  15  3.3276e-06
  16  1.43134e-05
  17  5.658e-05
  18  15.4535
  19  19.8457
  20  3.03426e-06
  21  31.866
  22  26.0892
  23  6.39639e-07
  24  0.270267
  25  0.164756
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  5.202e+00  5.713e+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:  8.042e-01  1.648e-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.488e+00  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.42
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 7.99e-06 +/- 8.78e-06

TS (Fixed Index): 2.42
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/843580/likelihoodResults_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.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) = 8131.46928526
delta logL = 0.107757245506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8131.46638161
delta logL = 0.110660899008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9092       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8173       1.0000          .0000       10.000    
     3 'Normalizat'    1.4971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80094       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.

 FCN=   8131.466     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      277 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9093        7.9236        .15263E-03   -.17541E-03
   2  Index         1.8174        .80412        .12975E-01   -.49110E-04
   3  Normalizat    1.4970        .26209        .32024E-03    .47286E-04
   4  Prefactor     .80100        .16339        .26157E-03    .64544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.90934
  Index      = 1.81741
  Normalizat = 1.49704
  Prefactor  = 0.800998
 **********
 **   18 **HESSE 
 **********

 FCN=   8131.466     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9093        7.8365        .61053E-05   -1.5182    
   2  Index         1.8174        .79560        .51900E-03   -.68997    
   3  Normalizat    1.4970        .26231        .12810E-04   -.77862    
   4  Prefactor     .80100        .16355        .10463E-04   -.99692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23126e-10
Minuit parameter uncertainties:
  1  7.8377
  2  0.801356
  3  0.26255
  4  0.163648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843580': 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) = 8131.46638153
delta logL = 0.110660976181

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.909e+00  7.838e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.817e+00  8.014e-01  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:  8.010e-01  1.636e-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.497e+00  2.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.82 +/- 0.80
Photon Flux (Free Index): 1.21e-08 +/- 1.78e-08
Energy Flux (Free Index): 1.38e-05 +/- 2.46e-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/843580/cmap_HighResolution_536889601_537148801_4FGL_J2324.7+0801_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='1.38e-05', photon_flux_error='2.05e-08', dlogl='1.11e-01', energy_flux='7.99e-06', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-09-29 16:41:37.962382', photon_index_error2='0.80', photon_index2='1.82', ts='2.42', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.36e-08', energy_flux_error2='2.46e-05', EG='1.49', time_epoch_completed='1632958897.96', return_code='0', job_id='843580', GAL2='0.80', EG2='1.50', return_code2='0', energy_flux_error='8.78e-06', photon_flux_error2='1.78e-08', ts2='2.64', photon_index='2.23' WHERE bin_id='1148' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:41:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 843580: <4FGL_J2324.7+0801_daily_bin1148> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1148> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:25:23 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:25:26 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:25:26 2021
Terminated at Wed Sep 29 16:41:38 2021
Results reported at Wed Sep 29 16:41:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1148 351.19 8.0282 536889601 537148801 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 :                                   843.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

