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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1407
RA = 351.436, Dec = 18.3654
tmin = 604022401, tmax = 604281601
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='887364', job_status='RUN', time_executed='2021-09-29 18:36:21.660323', time_epoch_executed='1632965781.66' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887364/ft1_4FGL_J2325.7+1821_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887364/ft2_4FGL_J2325.7+1821_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887364/ft1_4FGL_J2325.7+1821_daily_bin1407.fits outfile=/scratch/kocevski/887364/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1407.fits ra=351.436 dec=18.3654 rad=12.0 tmin=604022401.0 tmax=604281601.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 4.17
user 3.94
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887364/ft1_filtered_4FGL_J2325.7+1821_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/887364/ft2_4FGL_J2325.7+1821_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/887364/ltcube_604022401_604281601_4FGL_J2325.7+1821_daily_bin1407.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/887364/ft2_4FGL_J2325.7+1821_daily_bin1407.fits
.....................!
real 11.61
user 11.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887364/ft1_filtered_4FGL_J2325.7+1821_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/887364/ft2_4FGL_J2325.7+1821_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/887364/ltcube_604022401_604281601_4FGL_J2325.7+1821_daily_bin1407.fits outfile=/scratch/kocevski/887364/expmap_604022401_604281601_4FGL_J2325.7+1821_daily_bin1407.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/887364/ltcube_604022401_604281601_4FGL_J2325.7+1821_daily_bin1407.fits
.....................!
real 190.65
user 186.21
sys 4.09

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/887364/ft1_filtered_4FGL_J2325.7+1821_daily_bin1407.fits scfile=/scratch/kocevski/887364/ft2_4FGL_J2325.7+1821_daily_bin1407.fits outfile=/scratch/kocevski/887364/cmap_604022401_604281601_4FGL_J2325.7+1821_daily_bin1407.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887364/ft1_filtered_4FGL_J2325.7+1821_daily_bin1407.fits scfile=/scratch/kocevski/887364/ft2_4FGL_J2325.7+1821_daily_bin1407.fits outfile=/scratch/kocevski/887364/cmap_HighResolution_604022401_604281601_4FGL_J2325.7+1821_daily_bin1407.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887364/ft1_filtered_4FGL_J2325.7+1821_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/887364/ft2_4FGL_J2325.7+1821_daily_bin1407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887364/Model_4FGL_J2325.7+1821_daily_bin1407.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/887364/ft1_filtered_4FGL_J2325.7+1821_daily_bin1407.fits.....................!
real 78.83
user 77.46
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1462       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5398       1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.634       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4899       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7289       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.764       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9219       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11578E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.521       1.0000         .10000E-03   10000.    
    17 'norm      '    52.181       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7670       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58316       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1885       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=   7049.786     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2545 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1452        2.4800       -.46113E-06   -.47317E-03
   2  Prefactor     .10000E-03    5.6340       -.83476E-06** at limit **
   3  Prefactor     .10000E-03    13.164       -.57888E-05** at limit **
   4  norm          1.9884        2.1788       -.22271E-06   -.42544E-03
   5  Prefactor     5.5383        22.079       -.20138E-05   -.30796E-04
   6  Prefactor     53.632        19.343        .34011E-08    .12089E-04
   7  Prefactor     .10000E-03    6.0486        .13886E-05** at limit **
   8  Prefactor     .52070        .16906       -.43953E-07   -.17549E-03
   9  Prefactor     2.3471        6.3345       -.32551E-06   -.34486E-03
  10  Prefactor     9.4898        9.8510       -.87273E-06   -.11680E-03
  11  Prefactor     3.7282        9.0298       -.69734E-06   -.15475E-03
  12  Prefactor     14.723        24.464       -.22891E-04   -.21108E-04
  13  Prefactor     .10000E-03    11.159        .50214E-05** at limit **
  14  Prefactor     5.9212        8.0311       -.28910E-06   -.19656E-03
  15  Prefactor     .10000E-03    14.533        .83279E-05** at limit **
  16  Prefactor     13.521        18.307       -.10309E-05   -.10110E-04
  17  norm          52.212        17.317       -.46239E-05   -.33672E-03
  18  Prefactor     3.7371        11.425        .67420E-05   -.14409E-03
  19  Prefactor     .10000E-03    13.587       -.61223E-05** at limit **
  20  norm          .10000E-03    7.2280       -.14371E-05** at limit **
  21  Prefactor     .10000E-03    4.3830       -.93273E-07** at limit **
  22  Normalizat    .58338        .23341        .44931E-05    .37876E-05
  23  Prefactor     1.1885        .13707        .78544E-06   -.97794E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.14517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.98838
  Prefactor  = 5.5383
  Prefactor  = 53.6324
  Prefactor  = 0.0001
  Prefactor  = 0.520699
  Prefactor  = 2.3471
  Prefactor  = 9.4898
  Prefactor  = 3.72824
  Prefactor  = 14.7227
  Prefactor  = 0.0001
  Prefactor  = 5.92118
  Prefactor  = 0.0001
  Prefactor  = 13.5206
  norm       = 52.2122
  Prefactor  = 3.73709
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.583383
  Prefactor  = 1.18848
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.786     FROM HESSE     STATUS=OK           372 CALLS     2917 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1452        2.4651        .13391E-03   -1.5415    
   2  Prefactor     .10000E-03    5.6744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9884        2.1590        .12152E-03   -1.5426    
   5  Prefactor     5.5383        22.094        .17070E-03   -1.5237    
   6  Prefactor     53.632        19.244        .54768E-04   -1.4242    
   7  Prefactor     .10000E-03    6.0509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .52070        .16833        .18524E-04   -1.5564    
   9  Prefactor     2.3471        6.3109        .26765E-03   -1.5402    
  10  Prefactor     9.4898        9.8465        .13009E-03   -1.5092    
  11  Prefactor     3.7282        9.0159        .20911E-03   -1.5322    
  12  Prefactor     14.723        24.454        .10424E-03   -1.4940    
  13  Prefactor     .10000E-03    11.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9212        7.9900        .16502E-03   -1.5221    
  15  Prefactor     .10000E-03    14.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.521        18.243        .10893E-03   -1.4972    
  17  norm          52.212        17.029        .55521E-04   -1.4262    
  18  Prefactor     3.7371        11.148        .20801E-03   -1.5321    
  19  Prefactor     .10000E-03    13.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.2431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4393        .17160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .58338        .24914        .41816E-03   -1.0869    
  23  Prefactor     1.1885        .14959        .18655E-03   -.86686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56623e-10
Minuit parameter uncertainties:
  1  2.46526
  2  6.61851e-06
  3  2.34503e-05
  4  2.15904
  5  22.1267
  6  19.2458
  7  8.82043e-07
  8  0.168327
  9  6.31266
  10  9.84814
  11  9.01922
  12  24.4702
  13  5.95102e-05
  14  7.99143
  15  3.94903e-05
  16  18.2504
  17  17.0309
  18  11.1538
  19  3.06942e-05
  20  1.53218e-05
  21  2.21558e-05
  22  0.249623
  23  0.14964
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.352e+01  1.825e+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.188e+00  1.496e-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:  5.834e-01  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/887364/likelihoodResults_604022401_604281601_4FGL_J2325.7+1821_daily_bin1407.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) = 7049.62409913
delta logL = 0.161619935483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7049.61242554
delta logL = 0.173293525323

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.966       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9061       1.0000          .0000       10.000    
     3 'Normalizat'    .59796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1831       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=   7049.612     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      273 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.966        22.005        .94491E-04    .30748E-03
   2  Index         1.9059        .81440        .12295E-01    .11313E-03
   3  Normalizat    .59803        .23552        .41329E-03   -.59086E-04
   4  Prefactor     1.1831        .14641        .18689E-03   -.14159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9658
  Index      = 1.90585
  Normalizat = 0.598027
  Prefactor  = 1.18308
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.612     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.966        22.085        .18898E-04   -1.4860    
   2  Index         1.9059        .81742        .49181E-03   -.66725    
   3  Normalizat    .59803        .23557        .16532E-04   -1.0807    
   4  Prefactor     1.1831        .14645        .37378E-04   -.86854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5331e-10
Minuit parameter uncertainties:
  1  22.0954
  2  0.823443
  3  0.235971
  4  0.146502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887364': 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) = 7049.61242544
delta logL = 0.173293627735

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.797e+01  2.210e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  1.906e+00  8.234e-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:  1.183e+00  1.465e-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:  5.980e-01  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 351.436 18.365
Photon Index (Free Index): 1.91 +/- 0.82
Photon Flux (Free Index): 1.74e-08 +/- 2.94e-08
Energy Flux (Free Index): 1.54e-05 +/- 2.52e-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/887364/cmap_HighResolution_604022401_604281601_4FGL_J2325.7+1821_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.22e-03', comment='SUCCESS', energy_flux2='1.54e-05', dlogl='1.73e-01', photon_flux2='1.74e-08', job_status='DONE', time_completed='2021-09-29 18:47:59.017166', photon_index_error2='0.82', photon_index2='1.91', ts='0.91', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='2.52e-05', EG='0.58', time_epoch_completed='1632966479.02', return_code='0', job_id='887364', GAL2='1.18', EG2='0.60', return_code2='0', photon_flux_error2='2.94e-08', ts2='1.26', photon_index='2.43' WHERE bin_id='1407' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:47:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 887364: <4FGL_J2325.7+1821_daily_bin1407> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1407> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:36:09 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:36:10 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:36:10 2021
Terminated at Wed Sep 29 18:47:59 2021
Results reported at Wed Sep 29 18:47:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1407 351.436 18.3654 604022401 604281601 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 :                                   696.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            710 sec.

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

