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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1245
RA = 351.436, Dec = 18.3654
tmin = 562032001, tmax = 562291201
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='887114', job_status='RUN', time_executed='2021-09-29 18:39:53.931060', time_epoch_executed='1632965993.93' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887114

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887114/ft1_4FGL_J2325.7+1821_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887114/ft2_4FGL_J2325.7+1821_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887114/ft1_4FGL_J2325.7+1821_daily_bin1245.fits outfile=/scratch/kocevski/887114/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1245.fits ra=351.436 dec=18.3654 rad=12.0 tmin=562032001.0 tmax=562291201.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.58
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887114/ft1_filtered_4FGL_J2325.7+1821_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/887114/ft2_4FGL_J2325.7+1821_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/887114/ltcube_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.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/887114/ft2_4FGL_J2325.7+1821_daily_bin1245.fits
.....................!
real 11.65
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887114/ft1_filtered_4FGL_J2325.7+1821_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/887114/ft2_4FGL_J2325.7+1821_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/887114/ltcube_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.fits outfile=/scratch/kocevski/887114/expmap_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.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/887114/ltcube_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.fits
.....................!
real 190.60
user 185.35
sys 4.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 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/887114/ft1_filtered_4FGL_J2325.7+1821_daily_bin1245.fits scfile=/scratch/kocevski/887114/ft2_4FGL_J2325.7+1821_daily_bin1245.fits outfile=/scratch/kocevski/887114/cmap_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887114/ft1_filtered_4FGL_J2325.7+1821_daily_bin1245.fits scfile=/scratch/kocevski/887114/ft2_4FGL_J2325.7+1821_daily_bin1245.fits outfile=/scratch/kocevski/887114/cmap_HighResolution_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887114/ft1_filtered_4FGL_J2325.7+1821_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/887114/ft2_4FGL_J2325.7+1821_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887114/Model_4FGL_J2325.7+1821_daily_bin1245.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/887114/ft1_filtered_4FGL_J2325.7+1821_daily_bin1245.fits....................!
real 83.86
user 82.64
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/887114/ft1_filtered_4FGL_J2325.7+1821_daily_bin1245.fits', '/scratch/kocevski/887114/ft2_4FGL_J2325.7+1821_daily_bin1245.fits', expMap='/scratch/kocevski/887114/expmap_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.fits', expCube='/scratch/kocevski/887114/ltcube_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/887114/Model_4FGL_J2325.7+1821_daily_bin1245.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/887114/ft1_filtered_4FGL_J2325.7+1821_daily_bin1245.fits
Spacecraft file(s): /scratch/kocevski/887114/ft2_4FGL_J2325.7+1821_daily_bin1245.fits
Exposure map: /scratch/kocevski/887114/expmap_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.fits
Exposure cube: /scratch/kocevski/887114/ltcube_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/887114/Model_4FGL_J2325.7+1821_daily_bin1245.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) = 7579.66820607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8603       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1686       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.586       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1164       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2712       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56549E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0106       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53694       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.508       1.0000         .10000E-03   10000.    
    17 'norm      '    .10380E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.033       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.748       1.0000         .10000E-03   10000.    
    20 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0139       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0967       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79909       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=   7579.644     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2606 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8378       -.67336E-07** at limit **
   2  Prefactor     8.8608        11.285       -.31582E-06   -.16323E-04
   3  Prefactor     2.1688        6.7451        .32073E-05   -.69918E-03
   4  norm          .10000E-03    .86311        .23230E-09** at limit **
   5  Prefactor     31.621        31.928        .14799E-05    .39684E-03
   6  Prefactor     .10000E-03    8.0259       -.25293E-06** at limit **
   7  Prefactor     .10000E-03    8.9277        .35990E-06** at limit **
   8  Prefactor     1.5024        .23814       -.19494E-07   -.38937E-02
   9  Prefactor     4.1193        9.8808        .31550E-06    .13182E-04
  10  Prefactor     6.2688        6.1181       -.54432E-07   -.21038E-03
  11  Prefactor     .10000E-03    5.3074       -.13793E-06** at limit **
  12  Prefactor     .10000E-03    10.884       -.21388E-06** at limit **
  13  Prefactor     .10001E-03    10.588       -.18541E-06** at limit **
  14  Prefactor     1.0292        9.5922        .34072E-05   -.48020E-04
  15  Prefactor     .55512        5.9083        .21068E-06   -.60662E-04
  16  Prefactor     20.465        23.015       -.26255E-05   -.41947E-03
  17  norm          .10000E-03    5.4235        .38219E-06** at limit **
  18  Prefactor     13.031        9.4807        .31360E-06    .13221E-03
  19  Prefactor     11.741        23.988        .18231E-06   -.65904E-05
  20  norm          .10000E-03    3.8473        .28539E-07** at limit **
  21  Prefactor     7.0131        8.3189        .73980E-06   -.30309E-03
  22  Normalizat    1.0967        .20467       -.13081E-05   -.44775E-03
  23  Prefactor     .79904        .10923       -.17655E-06   -.65278E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.86077
  Prefactor  = 2.16877
  norm       = 0.0001
  Prefactor  = 31.6206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.50238
  Prefactor  = 4.11928
  Prefactor  = 6.26884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 1.02921
  Prefactor  = 0.555119
  Prefactor  = 20.4648
  norm       = 0.0001
  Prefactor  = 13.0313
  Prefactor  = 11.7406
  norm       = 0.0001
  Prefactor  = 7.01312
  Normalizat = 1.09669
  Prefactor  = 0.799043
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.644     FROM HESSE     STATUS=OK           378 CALLS     2984 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9410        .28480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8608        11.304        .13466E-03   -1.5113    
   3  Prefactor     2.1688        7.0336        .13983E-02   -1.5413    
   4  norm          .10000E-03    .90229        .15790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.621        32.740        .71295E-04   -1.4583    
   6  Prefactor     .10000E-03    8.1083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5024        .23992        .15884E-04   -1.5463    
   9  Prefactor     4.1193        9.8800        .19869E-03   -1.5302    
  10  Prefactor     6.2688        6.1183        .16029E-03   -1.5207    
  11  Prefactor     .10000E-03    5.3247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    10.171        .96665E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0292        9.9426        .46766E-03   -1.5505    
  15  Prefactor     .55512        48.161        .39323E-02   -1.5559    
  16  Prefactor     20.465        23.590        .88444E-04   -1.4803    
  17  norm          .10000E-03    5.4731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.031        9.5147        .11095E-03   -1.4986    
  19  Prefactor     11.741        24.033        .11688E-03   -1.5023    
  20  norm          .10000E-03    3.8483        .16678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.0131        8.3382        .75739E-03   -1.5178    
  22  Normalizat    1.0967        .24039        .31068E-03   -.89858    
  23  Prefactor     .79904        .12826        .20260E-03   -.99764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51904e-08
Minuit parameter uncertainties:
  1  6.09038e-06
  2  11.3071
  3  7.0363
  4  1.13181e-06
  5  32.7586
  6  6.76784e-05
  7  0.00011092
  8  0.239925
  9  9.88389
  10  6.11894
  11  3.42459e-05
  12  5.92798e-05
  13  0.000727985
  14  6.3989
  15  10.3489
  16  23.6012
  17  6.43123e-05
  18  9.5158
  19  24.0523
  20  1.99119e-06
  21  8.33961
  22  0.240634
  23  0.12831
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  2.046e+01  2.360e+01  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:  7.990e-01  1.283e-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.097e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 351.436 18.365
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.57e-05

TS (Fixed Index): 1.14
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887114/likelihoodResults_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.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) = 7579.25692533
delta logL = 0.386621498695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7579.25283406
delta logL = 0.390712773033

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7579.253     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      313 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8511        24.070        .12765E-03   -.17937E-03
   2  Index         3.1819        1.3509        .64400E-02   -.40579E-04
   3  Normalizat    1.0546        .23253        .31598E-03    .91351E-04
   4  Prefactor     .81391        .12874        .20089E-03    .15681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.85114
  Index      = 3.18193
  Normalizat = 1.05461
  Prefactor  = 0.81391
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.253     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8511        16.365        .51061E-05   -1.5080    
   2  Index         3.1819        .92328        .25760E-03   -.37214    
   3  Normalizat    1.0546        .23169        .12639E-04   -.91223    
   4  Prefactor     .81391        .12814        .40178E-04   -.99218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45728e-11
Minuit parameter uncertainties:
  1  16.3726
  2  0.929432
  3  0.231914
  4  0.128189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887114': 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) = 7579.2528337
delta logL = 0.390713131975

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  9.851e+00  1.637e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  3.182e+00  9.294e-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.139e-01  1.282e-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.055e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 351.436 18.365
Photon Index (Free Index): 3.18 +/- 0.93
Photon Flux (Free Index): 7.96e-08 +/- 6.94e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.20e-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/887114/cmap_HighResolution_562032001_562291201_4FGL_J2325.7+1821_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.47e-05', photon_flux_error='4.98e-08', dlogl='3.91e-01', energy_flux='1.36e-05', photon_flux2='7.96e-08', job_status='DONE', time_completed='2021-09-29 18:52:03.645292', photon_index_error2='0.93', photon_index2='3.18', ts='1.14', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.20e-05', EG='1.10', time_epoch_completed='1632966723.65', return_code='0', job_id='887114', GAL2='0.81', EG2='1.05', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='6.94e-08', ts2='1.99', photon_index='2.43' WHERE bin_id='1245' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 887114: <4FGL_J2325.7+1821_daily_bin1245> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1245> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:35:47 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:35:49 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:35:49 2021
Terminated at Wed Sep 29 18:52:04 2021
Results reported at Wed Sep 29 18:52:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1245 351.436 18.3654 562032001 562291201 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 :                                   727.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            977 sec.

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

