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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin29
RA = 351.436, Dec = 18.3654
tmin = 246844801, tmax = 247104001
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='880398', job_status='RUN', time_executed='2021-09-29 18:18:44.680675', time_epoch_executed='1632964724.68' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='29'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880398

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880398/ft1_4FGL_J2325.7+1821_daily_bin29.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880398/ft2_4FGL_J2325.7+1821_daily_bin29.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880398/ft1_4FGL_J2325.7+1821_daily_bin29.fits outfile=/scratch/kocevski/880398/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin29.fits ra=351.436 dec=18.3654 rad=12.0 tmin=246844801.0 tmax=247104001.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 1.47
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880398/ft1_filtered_4FGL_J2325.7+1821_daily_bin29.fits" evtable="EVENTS" scfile=/scratch/kocevski/880398/ft2_4FGL_J2325.7+1821_daily_bin29.fits sctable="SC_DATA" outfile=/scratch/kocevski/880398/ltcube_246844801_247104001_4FGL_J2325.7+1821_daily_bin29.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/880398/ft2_4FGL_J2325.7+1821_daily_bin29.fits
.....................!
real 12.43
user 12.11
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880398/ft1_filtered_4FGL_J2325.7+1821_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/880398/ft2_4FGL_J2325.7+1821_daily_bin29.fits sctable="SC_DATA" expcube=/scratch/kocevski/880398/ltcube_246844801_247104001_4FGL_J2325.7+1821_daily_bin29.fits outfile=/scratch/kocevski/880398/expmap_246844801_247104001_4FGL_J2325.7+1821_daily_bin29.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/880398/ltcube_246844801_247104001_4FGL_J2325.7+1821_daily_bin29.fits
.....................!
real 191.82
user 186.27
sys 5.06

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/880398/ft1_filtered_4FGL_J2325.7+1821_daily_bin29.fits scfile=/scratch/kocevski/880398/ft2_4FGL_J2325.7+1821_daily_bin29.fits outfile=/scratch/kocevski/880398/cmap_246844801_247104001_4FGL_J2325.7+1821_daily_bin29.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880398/ft1_filtered_4FGL_J2325.7+1821_daily_bin29.fits scfile=/scratch/kocevski/880398/ft2_4FGL_J2325.7+1821_daily_bin29.fits outfile=/scratch/kocevski/880398/cmap_HighResolution_246844801_247104001_4FGL_J2325.7+1821_daily_bin29.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/880398/ft1_filtered_4FGL_J2325.7+1821_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/880398/ft2_4FGL_J2325.7+1821_daily_bin29.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880398/Model_4FGL_J2325.7+1821_daily_bin29.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/880398/ft1_filtered_4FGL_J2325.7+1821_daily_bin29.fits.....................!
real 93.42
user 91.89
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .77577       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.454       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6944       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.806       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.364       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.732       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.927       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9276       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .61524       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    55.919       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10983E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.463       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1373       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79597       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=   8091.401     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2536 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2167        .69646E-07** at limit **
   2  Prefactor     .10000E-03    3.3019        .41754E-07** at limit **
   3  Prefactor     .10000E-03    2.9581       -.62267E-08** at limit **
   4  norm          .77576        1.1575       -.39804E-06   -.16897E-02
   5  Prefactor     .10000E-03    81.037        .13052E-05** at limit **
   6  Prefactor     .10000E-03    4.9566       -.14825E-06** at limit **
   7  Prefactor     10.453        13.732       -.60068E-07   -.21544E-05
   8  Prefactor     3.6943        .32293        .14474E-07   -.42693E-03
   9  Prefactor     16.808        14.010       -.10224E-06    .33079E-05
  10  Prefactor     14.362        8.7645       -.96935E-06    .21846E-03
  11  Prefactor     .10000E-03    3.4930        .43681E-07** at limit **
  12  Prefactor     13.729        23.711        .10656E-06    .62933E-05
  13  Prefactor     13.926        22.146       -.68567E-08    .28919E-05
  14  Prefactor     9.9274        7.4549       -.44061E-07    .84889E-04
  15  Prefactor     .54814        39.493        .83756E-05   -.45436E-04
  16  Prefactor     .10000E-03    15.601       -.10302E-05** at limit **
  17  norm          55.922        13.254        .21478E-06    .31220E-03
  18  Prefactor     .10000E-03    5.5558        .13412E-05** at limit **
  19  Prefactor     27.462        20.236       -.17284E-06    .35054E-04
  20  norm          .10000E-03    17.028        .15776E-05** at limit **
  21  Prefactor     .10000E-03    3.9953        .11908E-07** at limit **
  22  Normalizat    1.1370        .21910        .93217E-07    .64874E-04
  23  Prefactor     .79617        .12549       -.17856E-06   -.99287E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.775756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4531
  Prefactor  = 3.69433
  Prefactor  = 16.8078
  Prefactor  = 14.3624
  Prefactor  = 0.0001
  Prefactor  = 13.7288
  Prefactor  = 13.9256
  Prefactor  = 9.92745
  Prefactor  = 0.548136
  Prefactor  = 0.0001
  norm       = 55.9221
  Prefactor  = 0.0001
  Prefactor  = 27.4617
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13702
  Prefactor  = 0.796174
 **********
 **   18 **HESSE 
 **********

 FCN=   8091.401     FROM HESSE     STATUS=OK           376 CALLS     2912 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1974        .19135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3082        .15962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9601        .15109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .77576        .97359        .12292E-02   -1.5532    
   5  Prefactor     .10000E-03    81.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.453        13.736        .12392E-03   -1.5061    
   8  Prefactor     3.6943        .32332        .14290E-04   -1.5324    
   9  Prefactor     16.808        13.999        .97698E-04   -1.4888    
  10  Prefactor     14.362        8.6832        .52842E-03   -1.4950    
  11  Prefactor     .10000E-03    3.4983        .16419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.729        23.721        .10809E-03   -1.4967    
  13  Prefactor     13.926        22.153        .10733E-03   -1.4961    
  14  Prefactor     9.9274        7.4726        .12718E-03   -1.5078    
  15  Prefactor     .54814        39.661        .44760E-02   -1.5560    
  16  Prefactor     .10000E-03    15.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          55.922        13.279        .53644E-04   -1.4211    
  18  Prefactor     .10000E-03    5.5694        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.462        20.220        .76446E-04   -1.4659    
  20  norm          .10000E-03    17.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0549        .17555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1370        .25444        .33980E-03   -.88572    
  23  Prefactor     .79617        .14620        .23332E-03   -.99870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96851e-08
Minuit parameter uncertainties:
  1  2.57127e-05
  2  2.66837e-06
  3  8.23264e-07
  4  0.973608
  5  0.000109396
  6  4.45651e-06
  7  13.7406
  8  0.323322
  9  14.002
  10  8.68395
  11  6.85007e-08
  12  23.7374
  13  22.1656
  14  7.47329
  15  9.33071
  16  3.33769e-05
  17  13.2793
  18  8.21098e-05
  19  20.2249
  20  4.00345e-05
  21  3.55505e-06
  22  0.254713
  23  0.146275
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  3.338e-05  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.962e-01  1.463e-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.137e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/880398/likelihoodResults_246844801_247104001_4FGL_J2325.7+1821_daily_bin29.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) = 8091.40089816
delta logL = -0.000303529106532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8091.40059461
delta logL = 1.20344338939e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4435       1.0000          .0000       10.000    
     3 'Normalizat'    1.1370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79619       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=   8091.401     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      246 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10097E-03    174.49        .18142E-02** at limit **
   2  Index         2.4927        7.9311        .50000       -.64812E-05
   3  Normalizat    1.1370        .18161E-01    .33980E-03   -.17254E-03
   4  Prefactor     .79618        .10694E-01    .23332E-03   -.52770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100972
  Index      = 2.49271
  Normalizat = 1.13702
  Prefactor  = 0.796176
 **********
 **   18 **HESSE 
 **********

 FCN=   8091.401     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10097E-03    872.66        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4927        5.8305        .50000       -.52528    
   3  Normalizat    1.1370        .43366E-01    .13592E-04   -.88572    
   4  Prefactor     .79618        .25533E-01    .93328E-05   -.99869    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12037e-08
Minuit parameter uncertainties:
  1  0.0591386
  2  1140.04
  3  0.0433679
  4  0.0255338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880398': 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) = 8091.40059456
delta logL = 6.25013854005e-08

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.010e-04  5.914e-02  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.493e+00  1.140e+03  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:  7.962e-01  2.553e-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:  1.137e+00  4.337e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.436 18.365

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/880398/cmap_HighResolution_246844801_247104001_4FGL_J2325.7+1821_daily_bin29.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-03', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2021-09-29 18:31:44.457622', job_id='880398', GAL2='0.80', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632965504.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='29' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 880398: <4FGL_J2325.7+1821_daily_bin29> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin29> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:15:33 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:15:34 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:15:34 2021
Terminated at Wed Sep 29 18:31:44 2021
Results reported at Wed Sep 29 18:31:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin29 351.436 18.3654 246844801 247104001 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 :                                   778.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

