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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin401
RA = 351.315, Dec = 39.9542
tmin = 343267201, tmax = 343526401
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='856589', job_status='RUN', time_executed='2021-09-29 17:01:02.464642', time_epoch_executed='1632960062.46' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856589/ft1_4FGL_J2325.2+3957_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856589/ft2_4FGL_J2325.2+3957_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856589/ft1_4FGL_J2325.2+3957_daily_bin401.fits outfile=/scratch/kocevski/856589/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin401.fits ra=351.315 dec=39.9542 rad=12.0 tmin=343267201.0 tmax=343526401.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.49
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856589/ft2_4FGL_J2325.2+3957_daily_bin401.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/856589/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin401.fits evtable="EVENTS" outfile="/scratch/kocevski/856589/ft1_filtered_4FGL_J2325.2+3957_daily_bin401.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856589/ft1_filtered_4FGL_J2325.2+3957_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/856589/ft2_4FGL_J2325.2+3957_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/856589/ltcube_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.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/856589/ft2_4FGL_J2325.2+3957_daily_bin401.fits
.....................!
real 12.01
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856589/ft1_filtered_4FGL_J2325.2+3957_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/856589/ft2_4FGL_J2325.2+3957_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/856589/ltcube_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.fits outfile=/scratch/kocevski/856589/expmap_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.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/856589/ltcube_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.fits
.....................!
real 190.67
user 185.47
sys 4.78

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/856589/ft1_filtered_4FGL_J2325.2+3957_daily_bin401.fits scfile=/scratch/kocevski/856589/ft2_4FGL_J2325.2+3957_daily_bin401.fits outfile=/scratch/kocevski/856589/cmap_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856589/ft1_filtered_4FGL_J2325.2+3957_daily_bin401.fits scfile=/scratch/kocevski/856589/ft2_4FGL_J2325.2+3957_daily_bin401.fits outfile=/scratch/kocevski/856589/cmap_HighResolution_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856589/ft1_filtered_4FGL_J2325.2+3957_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/856589/ft2_4FGL_J2325.2+3957_daily_bin401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856589/Model_4FGL_J2325.2+3957_daily_bin401.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/856589/ft1_filtered_4FGL_J2325.2+3957_daily_bin401.fits.....................!
real 117.05
user 115.32
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856589/ft1_filtered_4FGL_J2325.2+3957_daily_bin401.fits', '/scratch/kocevski/856589/ft2_4FGL_J2325.2+3957_daily_bin401.fits', expMap='/scratch/kocevski/856589/expmap_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.fits', expCube='/scratch/kocevski/856589/ltcube_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856589/Model_4FGL_J2325.2+3957_daily_bin401.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/856589/ft1_filtered_4FGL_J2325.2+3957_daily_bin401.fits
Spacecraft file(s): /scratch/kocevski/856589/ft2_4FGL_J2325.2+3957_daily_bin401.fits
Exposure map: /scratch/kocevski/856589/expmap_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.fits
Exposure cube: /scratch/kocevski/856589/ltcube_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856589/Model_4FGL_J2325.2+3957_daily_bin401.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) = 10456.0578695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    7.3142       1.0000         .10000E-03   10000.    
     3 'norm      '    28.450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2330       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18674E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.052       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .59004       1.0000         .10000E-03   10000.    
    16 'norm      '    11.800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.954       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5155       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85391       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94250       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10455.88     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2545 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2045         .0000    ** at limit **
   2  Prefactor     7.3167        14.165         .0000        .11169E-03
   3  norm          28.448        18.144         .0000        .52215E-03
   4  Prefactor     .10000E-03    2.9814         .0000    ** at limit **
   5  Prefactor     .10000E-03    2.0075         .0000    ** at limit **
   6  Prefactor     .10004E-03    27.328         .0000    ** at limit **
   7  Prefactor     1.2318        4.4017         .0000        .42397E-01
   8  norm          .10000E-03    1.3307         .0000    ** at limit **
   9  Prefactor     .10001E-03    4.4880         .0000    ** at limit **
  10  Prefactor     .10009E-03    3.4560         .0000    ** at limit **
  11  Prefactor     .10003E-03    5.8564         .0000    ** at limit **
  12  norm          1.1468        1.4478         .0000        .17417E-02
  13  Prefactor     32.052        12.213         .0000        .56041E-04
  14  Prefactor     .10001E-03    14.637         .0000    ** at limit **
  15  norm          .58996        4.7953         .0000        .65391E-01
  16  norm          11.799        10.734         .0000        .75018E-04
  17  Prefactor     .10002E-03    6.2849         .0000    ** at limit **
  18  norm          .10000E-03    1.3248         .0000    ** at limit **
  19  Prefactor     .10002E-03    4.7624         .0000    ** at limit **
  20  Prefactor     .10007E-03    15.753         .0000    ** at limit **
  21  Prefactor     24.957        28.955         .0000       -.10973E-02
  22  Prefactor     .10002E-03    47.308         .0000    ** at limit **
  23  Prefactor     4.5212        8.2636         .0000        .39842E-03
  24  Normalizat    .85352        .19816         .0000        .61923E-04
  25  Prefactor     .94262        .73084E-01     .0000        .32486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 7.31675
  norm       = 28.4481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 1.23175
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100092
  Prefactor  = 0.000100025
  norm       = 1.14684
  Prefactor  = 32.0523
  Prefactor  = 0.000100007
  norm       = 0.58996
  norm       = 11.7993
  Prefactor  = 0.000100023
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.000100069
  Prefactor  = 24.9568
  Prefactor  = 0.00010002
  Prefactor  = 4.52117
  Normalizat = 0.853523
  Prefactor  = 0.942621
 **********
 **   18 **HESSE 
 **********

 FCN=   10455.88     FROM HESSE     STATUS=OK           423 CALLS     2968 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3167        14.154        .14831E-03   -1.5167    
   3  norm          28.448        18.048        .75111E-04   -1.4641    
   4  Prefactor     .10000E-03    3.0020        .17225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0759        .28287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    27.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2318        4.2157        .18654E-02   -1.5486    
   8  norm          .10000E-03    2.3556        .22047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    4.4908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10009E-03    15.034        .35966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    5.8578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1468        1.4169        .12783E-03   -1.5494    
  13  Prefactor     32.052        12.205        .70775E-04   -1.4575    
  14  Prefactor     .10001E-03    14.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .58996        4.8156        .21277E-02   -1.5554    
  16  norm          11.799        10.734        .11662E-03   -1.5021    
  17  Prefactor     .10002E-03    6.3038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3817        .22963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    4.7665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10007E-03    15.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.957        29.087        .80189E-04   -1.4708    
  22  Prefactor     .10002E-03    47.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5212        8.1897        .18946E-03   -1.5283    
  24  Normalizat    .85352        .21981        .38985E-03   -.98113    
  25  Prefactor     .94262        .81950E-01    .14760E-03   -.94667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33328e-08
Minuit parameter uncertainties:
  1  0.000245736
  2  14.1604
  3  18.0511
  4  1.0008e-07
  5  4.8731e-08
  6  0.00200432
  7  4.21667
  8  1.86162e-06
  9  0.000333498
  10  0.00235219
  11  0.000766895
  12  1.4169
  13  12.2058
  14  0.000655568
  15  3.37115
  16  10.7359
  17  0.000766652
  18  2.63285e-06
  19  0.00067514
  20  0.00208082
  21  29.1037
  22  0.00193939
  23  8.19168
  24  0.220044
  25  0.0819609
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.000e-04  2.633e-06  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:  9.426e-01  8.196e-02  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:  8.535e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/856589/likelihoodResults_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.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) = 10455.8814932
delta logL = -0.000390441224226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10455.8810901
delta logL = 1.2623379007e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6623       1.0000          .0000       5.0000    
     3 'Normalizat'    .85352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94263       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10455.88     FROM MIGRAD    STATUS=FAILED        98 CALLS      298 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10017E-03    90.475        .13603E-02** at limit **
   2  alpha         2.7340        2.9477        .50000       -.26710E-05
   3  Normalizat    .85352        .33115E-01    .38985E-03    .10329E-03
   4  Prefactor     .94262        .13224E-01    .14760E-03    .29547E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10455.88     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      434 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10017E-03    90.475        .23256E-03** at limit **
   2  alpha         2.7340        2.9477        .57879E-04   -.26710E-05
   3  Normalizat    .85352        .33115E-01    .11573E-05    .10329E-03
   4  Prefactor     .94262        .13224E-01    .38121E-06    .29547E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10455.88     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      468 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    363.70        .27207E-03** at limit **
   2  alpha         2.7234        3.4675        .50000       -.42750E-05
   3  Normalizat    .85352        .87220E-01    .15594E-04    .89818E-04
   4  Prefactor     .94262        .34741E-01    .29519E-04    .26743E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100063
  alpha      = 2.72344
  Normalizat = 0.853522
  Prefactor  = 0.942622
 **********
 **   18 **HESSE 
 **********

 FCN=   10455.88     FROM HESSE     STATUS=OK            29 CALLS      497 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    2.3945        .54414E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7234        3.1782        .50000        .89495E-01
   3  Normalizat    .85352        .20113        .31188E-05   -.98113    
   4  Prefactor     .94262        .80364E-01    .59039E-05   -.94667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36316e-08
Minuit parameter uncertainties:
  1  0.000776487
  2  103.619
  3  0.201302
  4  0.080374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856589': 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) = 10455.8810899
delta logL = 1.28612100525e-05

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.001e-04  7.765e-04  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  2.723e+00  1.036e+02  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:  9.426e-01  8.037e-02  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:  8.535e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.315 39.954

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/856589/cmap_HighResolution_343267201_343526401_4FGL_J2325.2+3957_daily_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-29 17:17:19.032210', job_id='856589', GAL2='0.94', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632961039.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.29e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='401' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:17:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 856589: <4FGL_J2325.2+3957_daily_bin401> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin401> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 17:00:44 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:00:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 17:00:45 2021
Terminated at Wed Sep 29 17:17:19 2021
Results reported at Wed Sep 29 17:17:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin401 351.315 39.9542 343267201 343526401 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 :                                   970.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            995 sec.

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

