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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin442
RA = 351.19, Dec = 8.0282
tmin = 353894401, tmax = 354153601
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='839268', job_status='RUN', time_executed='2021-09-29 16:10:55.433252', time_epoch_executed='1632957055.43' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839268/ft1_4FGL_J2324.7+0801_daily_bin442.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839268/ft2_4FGL_J2324.7+0801_daily_bin442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839268/ft1_4FGL_J2324.7+0801_daily_bin442.fits outfile=/scratch/kocevski/839268/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin442.fits ra=351.19 dec=8.0282 rad=12.0 tmin=353894401.0 tmax=354153601.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.45
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839268/ft1_filtered_4FGL_J2324.7+0801_daily_bin442.fits" evtable="EVENTS" scfile=/scratch/kocevski/839268/ft2_4FGL_J2324.7+0801_daily_bin442.fits sctable="SC_DATA" outfile=/scratch/kocevski/839268/ltcube_353894401_354153601_4FGL_J2324.7+0801_daily_bin442.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/839268/ft2_4FGL_J2324.7+0801_daily_bin442.fits
.....................!
real 11.63
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839268/ft1_filtered_4FGL_J2324.7+0801_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/839268/ft2_4FGL_J2324.7+0801_daily_bin442.fits sctable="SC_DATA" expcube=/scratch/kocevski/839268/ltcube_353894401_354153601_4FGL_J2324.7+0801_daily_bin442.fits outfile=/scratch/kocevski/839268/expmap_353894401_354153601_4FGL_J2324.7+0801_daily_bin442.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/839268/ltcube_353894401_354153601_4FGL_J2324.7+0801_daily_bin442.fits
.....................!
real 190.30
user 186.02
sys 3.91

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/839268/ft1_filtered_4FGL_J2324.7+0801_daily_bin442.fits scfile=/scratch/kocevski/839268/ft2_4FGL_J2324.7+0801_daily_bin442.fits outfile=/scratch/kocevski/839268/cmap_353894401_354153601_4FGL_J2324.7+0801_daily_bin442.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839268/ft1_filtered_4FGL_J2324.7+0801_daily_bin442.fits scfile=/scratch/kocevski/839268/ft2_4FGL_J2324.7+0801_daily_bin442.fits outfile=/scratch/kocevski/839268/cmap_HighResolution_353894401_354153601_4FGL_J2324.7+0801_daily_bin442.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/839268/ft1_filtered_4FGL_J2324.7+0801_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/839268/ft2_4FGL_J2324.7+0801_daily_bin442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839268/Model_4FGL_J2324.7+0801_daily_bin442.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/839268/ft1_filtered_4FGL_J2324.7+0801_daily_bin442.fits.....................!
real 78.45
user 77.04
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.119       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31893E-01   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.311       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 '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.7377       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8507       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.610       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5407       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .54572E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.5383       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    249.26       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.6523       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0460       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2775       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=   7442.011     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2878 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.118        20.089        .39386E-06    .32758E-04
   2  Prefactor     .31915E-01    .76978E-01   -.44719E-07   -.29995E-02
   3  norm          .10000E-03    5.3286        .34185E-07** at limit **
   4  Prefactor     .10000E-03    10.660       -.10568E-07** at limit **
   5  Prefactor     10.310        7.3852        .33036E-06    .42744E-04
   6  Prefactor     .10000E-03    5.2193        .10973E-06** at limit **
   7  Prefactor     .10000E-03    14.952       -.32932E-06** at limit **
   8  Prefactor     .10000E-03    3.2276       -.25392E-07** at limit **
   9  norm          5.7373        1.7402       -.47196E-07   -.69460E-03
  10  Prefactor     2.8508        5.5003       -.34302E-06   -.54594E-05
  11  Prefactor     .10000E-03    5.8603       -.33539E-06** at limit **
  12  Prefactor     58.613        77.580       -.25109E-07   -.64612E-05
  13  norm          2.5395        6.8206        .61894E-05   -.53427E-04
  14  Prefactor     .10000E-03    2.9232        .20563E-06** at limit **
  15  Prefactor     .10000E-03    634.94        .46033E-04** at limit **
  16  Prefactor     .10000E-03    9.9818        .87524E-06** at limit **
  17  Prefactor     .10000E-03    5.3127        .10312E-06** at limit **
  18  norm          .10000E-03    4.5251        .16670E-06** at limit **
  19  norm          9.5472        18.176       -.20260E-05   -.53754E-04
  20  Prefactor     .10000E-03    4.2786        .27060E-06** at limit **
  21  Prefactor     249.25        74.707        .46564E-06   -.86170E-05
  22  Prefactor     7.6561        34.031       -.93513E-06   -.34006E-05
  23  Prefactor     .10000E-03    7.4373       -.67488E-07** at limit **
  24  Normalizat    1.0460        .22876       -.90300E-06   -.36194E-05
  25  Prefactor     1.2775        .14122       -.99991E-07   -.34112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1179
  Prefactor  = 0.031915
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.73731
  Prefactor  = 2.85077
  Prefactor  = 0.0001
  Prefactor  = 58.6125
  norm       = 2.53949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.54722
  Prefactor  = 0.0001
  Prefactor  = 249.251
  Prefactor  = 7.65606
  Prefactor  = 0.0001
  Normalizat = 1.04598
  Prefactor  = 1.27747
 **********
 **   18 **HESSE 
 **********

 FCN=   7442.011     FROM HESSE     STATUS=OK           419 CALLS     3297 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.118        19.985        .87158E-04   -1.4789    
   2  Prefactor     .31915E-01    .63788E-01    .35777E-03   -1.5672    
   3  norm          .10000E-03    5.3325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.310        7.3728        .62391E-03   -1.5066    
   6  Prefactor     .10000E-03    5.2356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2565        .15132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7373        1.7409        .60562E-04   -1.5229    
  10  Prefactor     2.8508        5.4792        .24080E-03   -1.5370    
  11  Prefactor     .10000E-03    5.8697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.613        77.581        .52404E-04   -1.4175    
  13  norm          2.5395        6.8230        .12810E-02   -1.5389    
  14  Prefactor     .10000E-03    2.9517        .14410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    631.34        .21113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5302        .17922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.5472        18.178        .12976E-03   -1.5090    
  20  Prefactor     .10000E-03    4.3238        .17396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     249.25        74.824        .25658E-04   -1.2537    
  22  Prefactor     7.6561        33.907        .14497E-03   -1.5155    
  23  Prefactor     .10000E-03    7.5545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0460        .26393        .35803E-03   -.91505    
  25  Prefactor     1.2775        .16403        .21063E-03   -.83979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45006e-10
Minuit parameter uncertainties:
  1  19.991
  2  0.0637883
  3  9.463e-07
  4  2.86346e-06
  5  7.37344
  6  3.32113e-06
  7  2.51694e-06
  8  1.70714e-06
  9  1.74091
  10  5.48018
  11  1.56961e-06
  12  77.7156
  13  6.82514
  14  4.15448e-06
  15  0.000948853
  16  9.17153e-05
  17  4.44439e-07
  18  1.2311e-06
  19  18.1883
  20  4.22345e-05
  21  74.8531
  22  32.2541
  23  4.76711e-06
  24  0.264262
  25  0.164093
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.851e+00  5.480e+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:  1.277e+00  1.641e-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.046e+00  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839268/likelihoodResults_353894401_354153601_4FGL_J2324.7+0801_daily_bin442.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) = 7441.96154963
delta logL = 0.0498170469909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7441.94298632
delta logL = 0.068380355845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1745       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8162       1.0000          .0000       10.000    
     3 'Normalizat'    1.0501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2757       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=   7441.943     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      249 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1744        7.5026        .19726E-03    .97400E-05
   2  Index         1.8162        1.0104        .16448E-01    .39155E-05
   3  Normalizat    1.0501        .25153        .35740E-03   -.22998E-04
   4  Prefactor     1.2757        .16261        .21074E-03   -.49566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17441
  Index      = 1.8162
  Normalizat = 1.05012
  Prefactor  = 1.27567
 **********
 **   18 **HESSE 
 **********

 FCN=   7441.943     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1744        7.3890        .78903E-05   -1.5299    
   2  Index         1.8162        .99607        .65794E-03   -.69029    
   3  Normalizat    1.0501        .25168        .14296E-04   -.91370    
   4  Prefactor     1.2757        .16271        .42148E-04   -.84033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77347e-12
Minuit parameter uncertainties:
  1  7.39058
  2  1.0075
  3  0.251966
  4  0.162778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839268': 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) = 7441.94298632
delta logL = 0.0683803572038

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.174e+00  7.391e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.816e+00  1.007e+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:  1.276e+00  1.628e-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.050e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
Ra Dec: 351.190 8.028

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/839268/cmap_HighResolution_353894401_354153601_4FGL_J2324.7+0801_daily_bin442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-29 16:23:29.282021', job_id='839268', GAL2='1.28', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632957809.28', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='6.84e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='442' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:23:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 839268: <4FGL_J2324.7+0801_daily_bin442> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin442> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:18 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:19 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:10:19 2021
Terminated at Wed Sep 29 16:23:30 2021
Results reported at Wed Sep 29 16:23:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin442 351.19 8.0282 353894401 354153601 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 :                                   751.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

