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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin602
RA = 351.436, Dec = 18.3654
tmin = 395366401, tmax = 395625601
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='884639', job_status='RUN', time_executed='2021-09-29 18:26:24.391208', time_epoch_executed='1632965184.39' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884639

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884639/ft1_4FGL_J2325.7+1821_daily_bin602.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884639/ft2_4FGL_J2325.7+1821_daily_bin602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884639/ft1_4FGL_J2325.7+1821_daily_bin602.fits outfile=/scratch/kocevski/884639/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin602.fits ra=351.436 dec=18.3654 rad=12.0 tmin=395366401.0 tmax=395625601.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 5.10
user 4.87
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/884639/ft2_4FGL_J2325.7+1821_daily_bin602.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/884639/ft2_4FGL_J2325.7+1821_daily_bin602.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/884639/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin602.fits evtable="EVENTS" outfile="/scratch/kocevski/884639/ft1_filtered_4FGL_J2325.7+1821_daily_bin602.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884639/ft1_filtered_4FGL_J2325.7+1821_daily_bin602.fits" evtable="EVENTS" scfile=/scratch/kocevski/884639/ft2_4FGL_J2325.7+1821_daily_bin602.fits sctable="SC_DATA" outfile=/scratch/kocevski/884639/ltcube_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.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/884639/ft2_4FGL_J2325.7+1821_daily_bin602.fits
.....................!
real 11.62
user 11.23
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884639/ft1_filtered_4FGL_J2325.7+1821_daily_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/884639/ft2_4FGL_J2325.7+1821_daily_bin602.fits sctable="SC_DATA" expcube=/scratch/kocevski/884639/ltcube_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.fits outfile=/scratch/kocevski/884639/expmap_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.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/884639/ltcube_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.fits
.....................!
real 189.75
user 184.61
sys 4.72

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

Setting source of interest to:
4FGL J2325.7+1821 @ 351.436 18.3654

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/884639/ft1_filtered_4FGL_J2325.7+1821_daily_bin602.fits scfile=/scratch/kocevski/884639/ft2_4FGL_J2325.7+1821_daily_bin602.fits outfile=/scratch/kocevski/884639/cmap_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.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.436 yref=18.3654 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884639/ft1_filtered_4FGL_J2325.7+1821_daily_bin602.fits scfile=/scratch/kocevski/884639/ft2_4FGL_J2325.7+1821_daily_bin602.fits outfile=/scratch/kocevski/884639/cmap_HighResolution_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.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.436 yref=18.3654 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/884639/ft1_filtered_4FGL_J2325.7+1821_daily_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/884639/ft2_4FGL_J2325.7+1821_daily_bin602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884639/Model_4FGL_J2325.7+1821_daily_bin602.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/884639/ft1_filtered_4FGL_J2325.7+1821_daily_bin602.fits.....................!
real 84.83
user 83.26
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/884639/ft1_filtered_4FGL_J2325.7+1821_daily_bin602.fits', '/scratch/kocevski/884639/ft2_4FGL_J2325.7+1821_daily_bin602.fits', expMap='/scratch/kocevski/884639/expmap_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.fits', expCube='/scratch/kocevski/884639/ltcube_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/884639/Model_4FGL_J2325.7+1821_daily_bin602.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.7+1821'

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/884639/ft1_filtered_4FGL_J2325.7+1821_daily_bin602.fits
Spacecraft file(s): /scratch/kocevski/884639/ft2_4FGL_J2325.7+1821_daily_bin602.fits
Exposure map: /scratch/kocevski/884639/expmap_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.fits
Exposure cube: /scratch/kocevski/884639/ltcube_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/884639/Model_4FGL_J2325.7+1821_daily_bin602.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) = 7552.24962396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13922E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3191       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10423E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.967       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.786       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9141       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9116       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4680       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0037       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4889       1.0000         .10000E-03   10000.    
    17 'norm      '    .45070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .29192E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1869       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86619       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7552.240     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2976 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6560        .13378E-06** at limit **
   2  Prefactor     .10000E-03    7.4839        .77576E-07** at limit **
   3  Prefactor     4.3227        10.376        .18051E-05    .27844E-03
   4  norm          2.7871        1.7771        .26924E-07   -.24362E-05
   5  Prefactor     .10003E-03    22.874       -.11400E-06** at limit **
   6  Prefactor     .10000E-03    10.692       -.45284E-08** at limit **
   7  Prefactor     10.969        12.469        .66796E-06    .26974E-03
   8  Prefactor     1.1466        .21155       -.25685E-08   -.64556E-03
   9  Prefactor     11.788        10.336       -.53341E-07   -.14832E-03
  10  Prefactor     4.9143        4.6604        .86955E-07    .12175E-03
  11  Prefactor     2.9122        13.777        .19051E-05    .10175E-03
  12  Prefactor     8.4556        17.035        .10901E-05    .13027E-03
  13  Prefactor     5.6332        37.590        .98927E-06    .47950E-06
  14  Prefactor     1.0077        5.6064        .25937E-05   -.45212E-03
  15  Prefactor     .10000E-03    4.6784        .76906E-08** at limit **
  16  Prefactor     3.4875        9.0239       -.32631E-06   -.12265E-03
  17  norm          .10000E-03    5.1995       -.90916E-06** at limit **
  18  Prefactor     4.0553        8.7216        .73394E-06    .26379E-03
  19  Prefactor     .10000E-03    8.5775        .95584E-07** at limit **
  20  norm          .10000E-03    9.2208        .92255E-07** at limit **
  21  Prefactor     .10000E-03    2.1961        .12871E-07** at limit **
  22  Normalizat    1.1869        .20626       -.16192E-05    .26164E-04
  23  Prefactor     .86611        .11524        .92411E-07   -.10454E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3227
  norm       = 2.7871
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 10.9693
  Prefactor  = 1.14658
  Prefactor  = 11.7875
  Prefactor  = 4.91426
  Prefactor  = 2.91224
  Prefactor  = 8.45562
  Prefactor  = 5.63322
  Prefactor  = 1.00772
  Prefactor  = 0.0001
  Prefactor  = 3.48747
  norm       = 0.000100004
  Prefactor  = 4.05528
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1869
  Prefactor  = 0.866109
 **********
 **   18 **HESSE 
 **********

 FCN=   7552.240     FROM HESSE     STATUS=OK           390 CALLS     3366 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2760        .21333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.5574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3227        10.686        .19384E-03   -1.5292    
   4  norm          2.7871        1.7776        .89860E-04   -1.5374    
   5  Prefactor     .10003E-03    24.045        .13137       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.969        12.699        .12098E-03   -1.5045    
   8  Prefactor     1.1466        .21216        .16025E-04   -1.5494    
   9  Prefactor     11.788        10.355        .11669E-03   -1.5021    
  10  Prefactor     4.9143        4.6628        .17692E-03   -1.5265    
  11  Prefactor     2.9122        13.978        .23811E-03   -1.5367    
  12  Prefactor     8.4556        17.215        .13776E-03   -1.5126    
  13  Prefactor     5.6332        37.432        .16921E-03   -1.5233    
  14  Prefactor     1.0077        6.7026        .41483E-03   -1.5507    
  15  Prefactor     .10000E-03    4.7095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4875        8.9873        .21647E-03   -1.5334    
  17  norm          .10000E-03    13.371        .35095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0553        8.3953        .19970E-03   -1.5305    
  19  Prefactor     .10000E-03    8.5916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    72.100        .50823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.2060        .12576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1869        .23801        .29664E-03   -.87008    
  23  Prefactor     .86611        .13575        .20321E-03   -.97336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43023e-09
Minuit parameter uncertainties:
  1  6.31826e-06
  2  2.17793e-05
  3  10.6906
  4  1.77763
  5  0.00156501
  6  1.91748e-05
  7  12.7018
  8  0.21216
  9  10.3568
  10  4.66319
  11  12.7652
  12  17.2248
  13  29.0682
  14  5.19841
  15  4.6224e-06
  16  8.99076
  17  0.000479437
  18  8.39774
  19  1.93778e-05
  20  0.000281546
  21  2.05007e-06
  22  0.238223
  23  0.135799
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.487e+00  8.991e+00  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  8.661e-01  1.358e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.187e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 7.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884639/likelihoodResults_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.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) = 7551.72092753
delta logL = 0.519322172576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7551.72068971
delta logL = 0.519559995692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.392       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5490       1.0000          .0000       10.000    
     3 'Normalizat'    1.1950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85982       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7551.721     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      272 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.372        34.111        .29674E-02    .10190E-02
   2  Index         1.5492        1.1463        .29273       -.34549E-04
   3  Normalizat    1.1949        .19152        .66846E-01    .20838E-03
   4  Prefactor     .85982        .11461        .44491E-01    .29813E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3716
  Index      = 1.54916
  Normalizat = 1.19487
  Prefactor  = 0.85982
 **********
 **   18 **HESSE 
 **********

 FCN=   7551.721     FROM HESSE     STATUS=OK            29 CALLS      301 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.372        14.881        .11869E-03   -1.5033    
   2  Index         1.5492        .63533        .11769E-01   -.76172    
   3  Normalizat    1.1949        .22348        .29572E-03   -.86761    
   4  Prefactor     .85982        .13388        .20377E-03   -.97560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00506e-09
Minuit parameter uncertainties:
  1  14.8853
  2  0.638641
  3  0.223658
  4  0.133929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884639': 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) = 7551.72068734
delta logL = 0.519562368803

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.137e+01  1.489e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  1.549e+00  6.386e-01  0.000e+00  1.000e+01 (-1.000e+00)
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  8.598e-01  1.339e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.195e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 351.436 18.365
Photon Index (Free Index): 1.55 +/- 0.64
Photon Flux (Free Index): 7.70e-09 +/- 1.11e-08
Energy Flux (Free Index): 2.06e-05 +/- 4.11e-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/884639/cmap_HighResolution_395366401_395625601_4FGL_J2325.7+1821_daily_bin602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', comment='SUCCESS', energy_flux2='2.06e-05', dlogl='5.20e-01', photon_flux2='7.70e-09', job_status='DONE', time_completed='2021-09-29 18:39:29.779829', photon_index_error2='0.64', photon_index2='1.55', ts='0.20', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='7.15e-08', energy_flux_error2='4.11e-05', EG='1.19', time_epoch_completed='1632965969.78', return_code='0', job_id='884639', GAL2='0.86', EG2='1.19', return_code2='0', photon_flux_error2='1.11e-08', ts2='1.25', photon_index='2.43' WHERE bin_id='602' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:39:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 884639: <4FGL_J2325.7+1821_daily_bin602> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:26:14 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:26:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:26:15 2021
Terminated at Wed Sep 29 18:39:30 2021
Results reported at Wed Sep 29 18:39:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin602 351.436 18.3654 395366401 395625601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.7+1821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   780.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

