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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin141
RA = 351.19, Dec = 8.0282
tmin = 275875201, tmax = 276134401
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='837806', job_status='RUN', time_executed='2021-09-29 16:09:21.252931', time_epoch_executed='1632956961.25' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837806

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837806/ft1_4FGL_J2324.7+0801_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837806/ft2_4FGL_J2324.7+0801_daily_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837806/ft1_4FGL_J2324.7+0801_daily_bin141.fits outfile=/scratch/kocevski/837806/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin141.fits ra=351.19 dec=8.0282 rad=12.0 tmin=275875201.0 tmax=276134401.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.17
user 2.96
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/837806/ft2_4FGL_J2324.7+0801_daily_bin141.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/837806/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin141.fits evtable="EVENTS" outfile="/scratch/kocevski/837806/ft1_filtered_4FGL_J2324.7+0801_daily_bin141.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837806/ft1_filtered_4FGL_J2324.7+0801_daily_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/837806/ft2_4FGL_J2324.7+0801_daily_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/837806/ltcube_275875201_276134401_4FGL_J2324.7+0801_daily_bin141.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/837806/ft2_4FGL_J2324.7+0801_daily_bin141.fits
.....................!
real 10.94
user 10.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837806/ft1_filtered_4FGL_J2324.7+0801_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/837806/ft2_4FGL_J2324.7+0801_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/837806/ltcube_275875201_276134401_4FGL_J2324.7+0801_daily_bin141.fits outfile=/scratch/kocevski/837806/expmap_275875201_276134401_4FGL_J2324.7+0801_daily_bin141.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/837806/ltcube_275875201_276134401_4FGL_J2324.7+0801_daily_bin141.fits
.....................!
real 189.96
user 185.26
sys 4.30

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/837806/ft1_filtered_4FGL_J2324.7+0801_daily_bin141.fits scfile=/scratch/kocevski/837806/ft2_4FGL_J2324.7+0801_daily_bin141.fits outfile=/scratch/kocevski/837806/cmap_275875201_276134401_4FGL_J2324.7+0801_daily_bin141.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.52
user 0.33
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837806/ft1_filtered_4FGL_J2324.7+0801_daily_bin141.fits scfile=/scratch/kocevski/837806/ft2_4FGL_J2324.7+0801_daily_bin141.fits outfile=/scratch/kocevski/837806/cmap_HighResolution_275875201_276134401_4FGL_J2324.7+0801_daily_bin141.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.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837806/ft1_filtered_4FGL_J2324.7+0801_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/837806/ft2_4FGL_J2324.7+0801_daily_bin141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837806/Model_4FGL_J2324.7+0801_daily_bin141.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/837806/ft1_filtered_4FGL_J2324.7+0801_daily_bin141.fits.....................!
real 94.80
user 93.47
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1486       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7769       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8819       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.063       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.600       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5392       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10812E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.354       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6246       1.0000         .10000E-03   10000.    
    18 'norm      '    25.190       1.0000         .10000E-03   10000.    
    19 'norm      '    .10969E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7906       1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.915       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.872       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.003       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60963       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1437       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8333.898     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2884 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.886         .0000    ** at limit **
   2  Prefactor     9.1486        .55871         .0000        .37555E-03
   3  norm          3.7764        11.414         .0000        .15372E-03
   4  Prefactor     .10007E-03    15.031         .0000    ** at limit **
   5  Prefactor     2.8794        8.5283         .0000        .31430E-03
   6  Prefactor     22.061        14.992         .0000       -.15065E-02
   7  Prefactor     .10000E-03    13.078         .0000    ** at limit **
   8  Prefactor     .10000E-03    2.2543         .0000    ** at limit **
   9  norm          .10000E-03    .31627         .0000    ** at limit **
  10  Prefactor     20.594        14.263         .0000        .33520E-02
  11  Prefactor     7.5378        12.187         .0000        .47437E-03
  12  Prefactor     .10005E-03    23.602         .0000    ** at limit **
  13  norm          .10009E-03    14.338         .0000    ** at limit **
  14  Prefactor     .10000E-03    3.0092         .0000    ** at limit **
  15  Prefactor     .10006E-03    82.659         .0000    ** at limit **
  16  Prefactor     22.349        17.689         .0000        .74812E-02
  17  Prefactor     6.6276        40.610         .0000        .38964E-03
  18  norm          25.189        16.296         .0000       -.85646E-03
  19  norm          .10007E-03    23.352         .0000    ** at limit **
  20  Prefactor     1.7992        6.4045         .0000        .23953E-01
  21  Prefactor     34.775        44.753         .0000        .10097E-02
  22  Prefactor     15.876        27.230         .0000       -.20846E-02
  23  Prefactor     14.004        11.172         .0000        .32764E-03
  24  Normalizat    .60950        .24155         .0000        .90065E-04
  25  Prefactor     1.1438        .14375         .0000        .45119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.1486
  norm       = 3.77642
  Prefactor  = 0.000100074
  Prefactor  = 2.87937
  Prefactor  = 22.0609
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.5939
  Prefactor  = 7.53785
  Prefactor  = 0.000100053
  norm       = 0.00010009
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 22.3489
  Prefactor  = 6.62756
  norm       = 25.1891
  norm       = 0.000100066
  Prefactor  = 1.79921
  Prefactor  = 34.7745
  Prefactor  = 15.8762
  Prefactor  = 14.0037
  Normalizat = 0.609499
  Prefactor  = 1.14382
 **********
 **   18 **HESSE 
 **********

 FCN=   8333.898     FROM HESSE     STATUS=OK           415 CALLS     3299 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1486        .55838        .16117E-04   -1.5103    
   3  norm          3.7764        11.395        .20772E-03   -1.5319    
   4  Prefactor     .10007E-03    15.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8794        8.5074        .23941E-03   -1.5369    
   6  Prefactor     22.061        14.979        .85275E-04   -1.4768    
   7  Prefactor     .10000E-03    13.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2596        .13385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .31926        .50088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.594        14.190        .88248E-04   -1.4800    
  11  Prefactor     7.5378        12.178        .14606E-03   -1.5159    
  12  Prefactor     .10005E-03    23.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10009E-03    14.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0216        .15459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    82.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.349        17.224        .84718E-04   -1.4762    
  17  Prefactor     6.6276        40.188        .77955E-03   -1.5193    
  18  norm          25.189        16.294        .79813E-04   -1.4704    
  19  norm          .10007E-03    23.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7992        6.2134        .15629E-02   -1.5440    
  21  Prefactor     34.775        44.746        .67820E-04   -1.4528    
  22  Prefactor     15.876        27.201        .10053E-03   -1.4911    
  23  Prefactor     14.004        11.180        .10704E-03   -1.4959    
  24  Normalizat    .60950        .26824        .48277E-03   -1.0758    
  25  Prefactor     1.1438        .16281        .23016E-03   -.88078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34644e-07
Minuit parameter uncertainties:
  1  7.06385e-06
  2  0.558381
  3  11.4012
  4  0.00211018
  5  8.51102
  6  14.9811
  7  0.000390809
  8  5.24294e-06
  9  3.89599e-07
  10  14.1919
  11  12.182
  12  0.00223805
  13  0.00228841
  14  1.11291e-05
  15  0.00435963
  16  17.228
  17  32.673
  18  16.2973
  19  0.0024802
  20  6.21563
  21  44.7897
  22  27.2225
  23  11.1816
  24  0.268817
  25  0.162878
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.059e+01  1.419e+01  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:  1.144e+00  1.629e-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:  6.095e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.04
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.41e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 3.16e-05 +/- 2.18e-05

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) = 8333.79443244
delta logL = 0.103884114724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8333.78463302
delta logL = 0.113683534422

Fit tolerance = 1e-08

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

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

 FCN=   8333.785     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      229 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.511        499.11        .21111E-02   -.53713E-04
   2  Index         1.9360        5.6003        .17393        .50316E-04
   3  Normalizat    .63288        .22271        .10698       -.23932E-04
   4  Prefactor     1.1393        .70739E-01    .52183E-01   -.19357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5108
  Index      = 1.93598
  Normalizat = 0.632883
  Prefactor  = 1.13926
 **********
 **   18 **HESSE 
 **********

 FCN=   8333.785     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.511        17.108        .84443E-04   -1.4759    
   2  Index         1.9360        .65471        .10009E-01   -.65960    
   3  Normalizat    .63288        .25573        .47459E-03   -1.0661    
   4  Prefactor     1.1393        .16178        .23068E-03   -.88221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37213e-11
Minuit parameter uncertainties:
  1  17.1121
  2  0.657746
  3  0.256206
  4  0.161847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837806': 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) = 8333.78463111
delta logL = 0.113685439965

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.251e+01  1.711e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.936e+00  6.577e-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:  1.139e+00  1.618e-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:  6.329e-01  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.19
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.94 +/- 0.66
Photon Flux (Free Index): 4.78e-08 +/- 6.61e-08
Energy Flux (Free Index): 3.89e-05 +/- 3.72e-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/837806/cmap_HighResolution_275875201_276134401_4FGL_J2324.7+0801_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.41e-08', energy_flux2='3.89e-05', photon_flux_error='5.10e-08', dlogl='1.14e-01', energy_flux='3.16e-05', photon_flux2='4.78e-08', job_status='DONE', time_completed='2021-09-29 16:21:43.651877', photon_index_error2='0.66', photon_index2='1.94', ts='8.04', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.72e-05', EG='0.61', time_epoch_completed='1632957703.65', return_code='0', job_id='837806', GAL2='1.14', EG2='0.63', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='6.61e-08', ts2='8.19', photon_index='2.23' WHERE bin_id='141' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:21:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 837806: <4FGL_J2324.7+0801_daily_bin141> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin141 351.19 8.0282 275875201 276134401 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.74 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.

