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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin350
RA = 351.436, Dec = 18.3654
tmin = 330048001, tmax = 330307201
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='883079', job_status='RUN', time_executed='2021-09-29 18:24:13.127474', time_epoch_executed='1632965053.13' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883079

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883079/ft1_4FGL_J2325.7+1821_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883079/ft2_4FGL_J2325.7+1821_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883079/ft1_4FGL_J2325.7+1821_daily_bin350.fits outfile=/scratch/kocevski/883079/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin350.fits ra=351.436 dec=18.3654 rad=12.0 tmin=330048001.0 tmax=330307201.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.47
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/883079/ft2_4FGL_J2325.7+1821_daily_bin350.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/883079/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin350.fits evtable="EVENTS" outfile="/scratch/kocevski/883079/ft1_filtered_4FGL_J2325.7+1821_daily_bin350.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/883079/ft1_filtered_4FGL_J2325.7+1821_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/883079/ft2_4FGL_J2325.7+1821_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/883079/ltcube_330048001_330307201_4FGL_J2325.7+1821_daily_bin350.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/883079/ft2_4FGL_J2325.7+1821_daily_bin350.fits
.....................!
real 12.09
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883079/ft1_filtered_4FGL_J2325.7+1821_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/883079/ft2_4FGL_J2325.7+1821_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/883079/ltcube_330048001_330307201_4FGL_J2325.7+1821_daily_bin350.fits outfile=/scratch/kocevski/883079/expmap_330048001_330307201_4FGL_J2325.7+1821_daily_bin350.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/883079/ltcube_330048001_330307201_4FGL_J2325.7+1821_daily_bin350.fits
.....................!
real 190.36
user 186.11
sys 3.87

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/883079/ft1_filtered_4FGL_J2325.7+1821_daily_bin350.fits scfile=/scratch/kocevski/883079/ft2_4FGL_J2325.7+1821_daily_bin350.fits outfile=/scratch/kocevski/883079/cmap_330048001_330307201_4FGL_J2325.7+1821_daily_bin350.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883079/ft1_filtered_4FGL_J2325.7+1821_daily_bin350.fits scfile=/scratch/kocevski/883079/ft2_4FGL_J2325.7+1821_daily_bin350.fits outfile=/scratch/kocevski/883079/cmap_HighResolution_330048001_330307201_4FGL_J2325.7+1821_daily_bin350.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/883079/ft1_filtered_4FGL_J2325.7+1821_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/883079/ft2_4FGL_J2325.7+1821_daily_bin350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/883079/Model_4FGL_J2325.7+1821_daily_bin350.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/883079/ft1_filtered_4FGL_J2325.7+1821_daily_bin350.fits.....................!
real 75.74
user 74.35
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .57818       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0363       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6189       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3891       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .74064       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7470       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7286       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9581       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9001       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.037       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5641       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.738       1.0000         .10000E-03   10000.    
    20 'norm      '    11.092       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0831       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79604       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0473       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=   6953.272     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2544 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0152        2.0533       -.87274E-07    .19412E-03
   2  Prefactor     .56823        6.9753       -.14867E-05    .43390E-04
   3  Prefactor     .10000E-03    13.896        .93825E-06** at limit **
   4  norm          2.0362        1.4114        .42915E-07    .29488E-03
   5  Prefactor     .10000E-03    7.6124       -.11806E-06** at limit **
   6  Prefactor     6.6171        12.769       -.12490E-05    .13424E-03
   7  Prefactor     1.3873        42.855       -.62532E-05   -.46892E-04
   8  Prefactor     .74063        .17673        .21488E-07    .85584E-03
   9  Prefactor     7.7443        14.934       -.29272E-05    .28408E-03
  10  Prefactor     .10000E-03    1.5306        .29883E-06** at limit **
  11  Prefactor     9.7271        13.511       -.16474E-05    .21314E-03
  12  Prefactor     .10000E-03    13.263       -.56935E-06** at limit **
  13  Prefactor     .10000E-03    13.383       -.17253E-06** at limit **
  14  Prefactor     6.9556        8.3014       -.13494E-05   -.59886E-04
  15  Prefactor     6.8999        11.344       -.42464E-06    .31373E-04
  16  Prefactor     17.039        21.760        .32123E-05   -.32326E-03
  17  norm          2.5655        6.6367       -.52733E-06   -.34679E-03
  18  Prefactor     .10000E-03    2.2698        .16616E-06** at limit **
  19  Prefactor     23.738        22.059       -.39332E-06    .70619E-04
  20  norm          11.091        11.719       -.50208E-06    .74727E-04
  21  Prefactor     1.0820        3.8220       -.18692E-05   -.97760E-03
  22  Normalizat    .79603        .20286        .15449E-05    .20359E-03
  23  Prefactor     1.0474        .11862       -.15539E-06    .47621E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.01518
  Prefactor  = 0.568226
  Prefactor  = 0.0001
  norm       = 2.03623
  Prefactor  = 0.0001
  Prefactor  = 6.61708
  Prefactor  = 1.38732
  Prefactor  = 0.740629
  Prefactor  = 7.74427
  Prefactor  = 0.0001
  Prefactor  = 9.72711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.95557
  Prefactor  = 6.89994
  Prefactor  = 17.0394
  norm       = 2.56549
  Prefactor  = 0.0001
  Prefactor  = 23.7382
  norm       = 11.0914
  Prefactor  = 1.08199
  Normalizat = 0.796032
  Prefactor  = 1.04739
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.272     FROM HESSE     STATUS=OK           382 CALLS     2926 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0152        2.0338        .11392E-03   -1.5424    
   2  Prefactor     .56823        28.614        .41519E-02   -1.5557    
   3  Prefactor     .10000E-03    14.411        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0362        1.4168        .79240E-04   -1.5423    
   5  Prefactor     .10000E-03    7.6135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6171        12.740        .15598E-03   -1.5193    
   7  Prefactor     1.3873        45.937        .36880E-03   -1.5472    
   8  Prefactor     .74063        .17587        .16006E-04   -1.5536    
   9  Prefactor     7.7443        14.780        .14407E-03   -1.5151    
  10  Prefactor     .10000E-03    1.5296        .10064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7271        13.441        .12848E-03   -1.5084    
  12  Prefactor     .10000E-03    13.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9556        8.3019        .15209E-03   -1.5180    
  15  Prefactor     6.8999        11.234        .15273E-03   -1.5183    
  16  Prefactor     17.039        21.136        .97033E-04   -1.4882    
  17  norm          2.5655        6.6579        .25493E-03   -1.5388    
  18  Prefactor     .10000E-03    2.2803        .12259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.738        22.014        .82214E-04   -1.4733    
  20  norm          11.091        11.713        .12029E-03   -1.5042    
  21  Prefactor     1.0820        4.4699        .33886E-03   -1.5500    
  22  Normalizat    .79603        .23058        .33599E-03   -1.0022    
  23  Prefactor     1.0474        .13522        .18326E-03   -.91166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85261e-09
Minuit parameter uncertainties:
  1  2.03387
  2  8.06786
  3  8.79189e-05
  4  1.41681
  5  1.16703e-05
  6  12.7454
  7  15.9789
  8  0.17587
  9  14.7868
  10  9.5307e-06
  11  13.4451
  12  6.71475e-05
  13  1.40978e-05
  14  8.30328
  15  11.2379
  16  21.1458
  17  6.65979
  18  5.18404e-06
  19  22.0212
  20  11.7155
  21  4.3987
  22  0.230861
  23  0.13526
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.704e+01  2.115e+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:  1.047e+00  1.353e-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:  7.960e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 351.436 18.365
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.60e-08 +/- 4.46e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.41e-05

TS (Fixed Index): 1.02
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/883079/likelihoodResults_330048001_330307201_4FGL_J2325.7+1821_daily_bin350.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): 102
logL (Free Index) = 6951.21159491
delta logL = 2.06086553691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6950.52143725
delta logL = 2.7510232025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.7661       1.0000          .0000       10.000    
     3 'Normalizat'    .66940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1070       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=   6950.521     FROM MIGRAD    STATUS=CONVERGED    326 CALLS      693 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24164E-02    .27668E-03** at limit **
   2  Index         8.7661        2.1595        .12515       -.12840E-03
   3  Normalizat    .66938        .64721E-01    .81979E-01    .23958E-03
   4  Prefactor     1.1071        .39475E-01    .37325E-01    .23125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.76614
  Normalizat = 0.669383
  Prefactor  = 1.10711
 **********
 **   18 **HESSE 
 **********

 FCN=   6950.521     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      732 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .14266E-01    .12542E-03   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7661        2.7399        .54088E-03   -49.413    
   3  Normalizat    .66938        .14790        .36303E-03   -1.0511    
   4  Prefactor     1.1071        .90899E-01    .17881E-03   -.89240    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.07117e-08
Minuit parameter uncertainties:
  1  5.99112e-08
  2  3.23848
  3  0.147983
  4  0.0909122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883079': 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): 102
logL (Free Index) = 6950.52143662
delta logL = 2.75102383155

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  5.991e-08  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  8.766e+00  3.238e+00  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:  1.107e+00  9.091e-02  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:  6.694e-01  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.98
Ra Dec: 351.436 18.365
Photon Index (Free Index): 8.77 +/- 3.24
Photon Flux (Free Index): 1.15e-07 +/- 8.09e-07
Energy Flux (Free Index): 1.31e-05 +/- 9.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/883079/cmap_HighResolution_330048001_330307201_4FGL_J2325.7+1821_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', comment='SUCCESS', photon_flux='3.60e-08', energy_flux2='1.31e-05', photon_flux_error='4.46e-08', dlogl='2.75e+00', energy_flux='1.13e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-29 18:36:27.435282', photon_index_error2='3.24', photon_index2='8.77', ts='1.02', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='9.20e-05', EG='0.80', time_epoch_completed='1632965787.44', return_code='0', job_id='883079', GAL2='1.11', EG2='0.67', return_code2='102', energy_flux_error='1.41e-05', photon_flux_error2='8.09e-07', ts2='6.98', photon_index='2.43' WHERE bin_id='350' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:36:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 883079: <4FGL_J2325.7+1821_daily_bin350> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin350> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 18:20:27 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:20:29 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:20:29 2021
Terminated at Wed Sep 29 18:36:28 2021
Results reported at Wed Sep 29 18:36:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin350 351.436 18.3654 330048001 330307201 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 :                                   733.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

