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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin1606
RA = 351.315, Dec = 39.9542
tmin = 655603201, tmax = 655862401
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='500284', job_status='RUN', time_executed='2021-12-08 09:29:33.827773', time_epoch_executed='1638984573.83' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500284/ft1_4FGL_J2325.2+3957_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500284/ft1_4FGL_J2325.2+3957_daily_bin1606.fits outfile=/scratch/kocevski/500284/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin1606.fits ra=351.315 dec=39.9542 rad=12.0 tmin=655603201.0 tmax=655862401.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.35
user 4.05
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.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/500284/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/500284/ft1_filtered_4FGL_J2325.2+3957_daily_bin1606.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500284/ft1_filtered_4FGL_J2325.2+3957_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/500284/ltcube_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.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/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.fits
.....................!
real 13.84
user 13.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500284/ft1_filtered_4FGL_J2325.2+3957_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/500284/ltcube_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.fits outfile=/scratch/kocevski/500284/expmap_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.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/500284/ltcube_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.fits
.....................!
real 191.57
user 185.90
sys 5.15

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2325.2+3957 @ 351.315 39.9542

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/500284/ft1_filtered_4FGL_J2325.2+3957_daily_bin1606.fits scfile=/scratch/kocevski/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.fits outfile=/scratch/kocevski/500284/cmap_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.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.315 yref=39.9542 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500284/ft1_filtered_4FGL_J2325.2+3957_daily_bin1606.fits scfile=/scratch/kocevski/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.fits outfile=/scratch/kocevski/500284/cmap_HighResolution_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.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.315 yref=39.9542 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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/500284/ft1_filtered_4FGL_J2325.2+3957_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500284/Model_4FGL_J2325.2+3957_daily_bin1606.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/500284/ft1_filtered_4FGL_J2325.2+3957_daily_bin1606.fits.....................!
real 78.11
user 76.57
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/500284/ft1_filtered_4FGL_J2325.2+3957_daily_bin1606.fits', '/scratch/kocevski/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.fits', expMap='/scratch/kocevski/500284/expmap_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.fits', expCube='/scratch/kocevski/500284/ltcube_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/500284/Model_4FGL_J2325.2+3957_daily_bin1606.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.2+3957'

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  1.993e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/500284/ft1_filtered_4FGL_J2325.2+3957_daily_bin1606.fits
Spacecraft file(s): /scratch/kocevski/500284/ft2_4FGL_J2325.2+3957_daily_bin1606.fits
Exposure map: /scratch/kocevski/500284/expmap_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.fits
Exposure cube: /scratch/kocevski/500284/ltcube_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/500284/Model_4FGL_J2325.2+3957_daily_bin1606.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) = 6649.07240241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5143       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0329       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2913       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5349       1.0000         .10000E-03   10000.    
    12 'norm      '    .40930E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.718       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32372E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.178       1.0000         .10000E-03   10000.    
    18 'norm      '    .81230       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.429       1.0000         .10000E-03   10000.    
    22 'Prefactor '    87.384       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11269E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54843       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6648.913     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3007 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.291       -.12465E-05** at limit **
   2  Prefactor     .10000E-03    39.848        .20033E-05** at limit **
   3  norm          .10000E-03    12.431       -.69416E-07** at limit **
   4  Prefactor     .10000E-03    3.0558        .61146E-07** at limit **
   5  Prefactor     .10000E-03    5.3879        .51518E-06** at limit **
   6  Prefactor     2.5111        210.79       -.13283E-05    .76362E-06
   7  Prefactor     3.0337        6.3015        .14764E-06   -.14241E-03
   8  norm          2.2905        3.6958       -.25136E-06   -.21768E-03
   9  Prefactor     .10000E-03    21.453       -.39411E-06** at limit **
  10  Prefactor     .10000E-03    115.95        .84799E-05** at limit **
  11  Prefactor     4.5674        83.352        .22180E-05   -.12307E-04
  12  norm          .10000E-03    .73615       -.76490E-07** at limit **
  13  Prefactor     25.714        15.159       -.17052E-05   -.10404E-03
  14  Prefactor     .10000E-03    195.03        .70512E-05** at limit **
  15  norm          .10000E-03    5.2073        .55004E-06** at limit **
  16  norm          .10000E-03    9.0609       -.84649E-07** at limit **
  17  Prefactor     37.171        20.981        .56905E-06   -.32617E-04
  18  norm          .81238        2.2557        .38331E-06    .23820E-03
  19  Prefactor     .10000E-03    6.4161        .53672E-07** at limit **
  20  Prefactor     .10000E-03    20.050        .59501E-06** at limit **
  21  Prefactor     19.440        29.129        .30897E-06    .53341E-05
  22  Prefactor     87.397        67.312       -.12541E-05    .29598E-04
  23  Prefactor     .10000E-03    11.234       -.10294E-05** at limit **
  24  Normalizat    .54870        .27198       -.55953E-05   -.48566E-04
  25  Prefactor     1.1152        .10709        .13262E-05   -.34988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51113
  Prefactor  = 3.03369
  norm       = 2.29052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.56736
  norm       = 0.0001
  Prefactor  = 25.7144
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 37.171
  norm       = 0.812376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4401
  Prefactor  = 87.3972
  Prefactor  = 0.0001
  Normalizat = 0.5487
  Prefactor  = 1.11524
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.913     FROM HESSE     STATUS=OK           429 CALLS     3436 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0711        .13921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5111        212.19        .25767E-03   -1.5391    
   7  Prefactor     3.0337        6.1977        .23300E-03   -1.5360    
   8  norm          2.2905        3.6202        .18153E-03   -1.5405    
   9  Prefactor     .10000E-03    21.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    111.25        .35235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5674        81.892        .18905E-03   -1.5281    
  12  norm          .10000E-03    28.064        .12627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.714        15.125        .39496E-03   -1.4693    
  14  Prefactor     .10000E-03    201.57        .36735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.2278        .18081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.2293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.171        20.751        .65730E-04   -1.4488    
  18  norm          .81238        2.2479        .19848E-03   -1.5528    
  19  Prefactor     .10000E-03    6.4179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.440        29.113        .90865E-04   -1.4826    
  22  Prefactor     87.397        66.487        .42979E-04   -1.3836    
  23  Prefactor     .10000E-03    11.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .54870        .27804        .49165E-03   -1.1021    
  25  Prefactor     1.1152        .11060        .14525E-03   -.88981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25631e-10
Minuit parameter uncertainties:
  1  0.000624027
  2  0.000137004
  3  3.42808e-05
  4  6.10933e-06
  5  2.29278e-05
  6  46.3367
  7  6.19896
  8  3.62052
  9  0.000107766
  10  3.44658e-05
  11  38.7412
  12  0.000166809
  13  15.1273
  14  0.00139982
  15  1.56804e-05
  16  1.23178e-05
  17  20.7546
  18  2.24814
  19  2.10775e-06
  20  5.64156e-05
  21  29.1342
  22  66.5434
  23  4.42467e-05
  24  0.278746
  25  0.110624
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  8.124e-01  2.248e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  1.993e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.115e+00  1.106e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  5.487e-01  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 351.315 39.954
Photon Flux Upper Limit: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500284/likelihoodResults_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.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) = 6648.89364643
delta logL = 0.0194744497558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6648.8934478
delta logL = 0.0196730800844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77618       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2888       1.0000          .0000       5.0000    
     3 'Normalizat'    .54630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6648.893     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77689        35.561        .40119E-01    .10889E-02
   2  alpha         2.2893        3.3732        .41339        .28099E-04
   3  Normalizat    .54633        .34801E-01    .11110        .40034E-04
   4  Prefactor     1.1153        .14348E-01    .37033E-01   -.15317E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.776887
  alpha      = 2.28933
  Normalizat = 0.54633
  Prefactor  = 1.11526
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.893     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77689        2.1850        .17555E-03   -1.5532    
   2  alpha         2.2893        1.4590        .31743E-01   -.84367E-01
   3  Normalizat    .54633        .26181        .49261E-03   -1.1031    
   4  Prefactor     1.1153        .10850        .14524E-03   -.88980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59781e-09
Minuit parameter uncertainties:
  1  2.18521
  2  1.55872
  3  0.262404
  4  0.108522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500284': 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) = 6648.8934476
delta logL = 0.0196732851746

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  7.769e-01  2.185e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  2.289e+00  1.559e+00  0.000e+00  5.000e+00 ( 1.000e+00)
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.115e+00  1.085e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  5.463e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
Ra Dec: 351.315 39.954

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/500284/cmap_HighResolution_655603201_655862401_4FGL_J2325.2+3957_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-05', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-12-08 09:42:06.776583', job_id='500284', GAL2='1.12', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1638985326.78', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.97e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1606' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:42:06 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 500284: <4FGL_J2325.2+3957_daily_bin1606> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin1606> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 09:25:37 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:27:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:27:28 2021
Terminated at Wed Dec  8 09:42:07 2021
Results reported at Wed Dec  8 09:42:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin1606 351.315 39.9542 655603201 655862401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.2+3957 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            990 sec.

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

