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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin748
RA = 351.315, Dec = 39.9542
tmin = 433209601, tmax = 433468801
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='858211', job_status='RUN', time_executed='2021-09-29 17:05:59.153441', time_epoch_executed='1632960359.15' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858211/ft1_4FGL_J2325.2+3957_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858211/ft2_4FGL_J2325.2+3957_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/858211/ft1_4FGL_J2325.2+3957_daily_bin748.fits outfile=/scratch/kocevski/858211/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin748.fits ra=351.315 dec=39.9542 rad=12.0 tmin=433209601.0 tmax=433468801.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 5.96
user 5.70
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/858211/ft2_4FGL_J2325.2+3957_daily_bin748.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/858211/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/858211/ft1_filtered_4FGL_J2325.2+3957_daily_bin748.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/858211/ft1_filtered_4FGL_J2325.2+3957_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/858211/ft2_4FGL_J2325.2+3957_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/858211/ltcube_433209601_433468801_4FGL_J2325.2+3957_daily_bin748.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/858211/ft2_4FGL_J2325.2+3957_daily_bin748.fits
.....................!
real 11.88
user 11.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858211/ft1_filtered_4FGL_J2325.2+3957_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/858211/ft2_4FGL_J2325.2+3957_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/858211/ltcube_433209601_433468801_4FGL_J2325.2+3957_daily_bin748.fits outfile=/scratch/kocevski/858211/expmap_433209601_433468801_4FGL_J2325.2+3957_daily_bin748.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/858211/ltcube_433209601_433468801_4FGL_J2325.2+3957_daily_bin748.fits
.....................!
real 190.74
user 185.95
sys 4.48

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/858211/ft1_filtered_4FGL_J2325.2+3957_daily_bin748.fits scfile=/scratch/kocevski/858211/ft2_4FGL_J2325.2+3957_daily_bin748.fits outfile=/scratch/kocevski/858211/cmap_433209601_433468801_4FGL_J2325.2+3957_daily_bin748.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/858211/ft1_filtered_4FGL_J2325.2+3957_daily_bin748.fits scfile=/scratch/kocevski/858211/ft2_4FGL_J2325.2+3957_daily_bin748.fits outfile=/scratch/kocevski/858211/cmap_HighResolution_433209601_433468801_4FGL_J2325.2+3957_daily_bin748.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.975       1.0000         .10000E-03   10000.    
     3 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4472       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    111.00       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12463E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.323       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    76.182       1.0000         .10000E-03   10000.    
    12 'norm      '    5.6721       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .45199       1.0000         .10000E-03   10000.    
    16 'norm      '    31.760       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.191       1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.726       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.495       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18739E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    70.183       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .24537       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2199       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=   5769.690     FROM MIGRAD    STATUS=FAILED      1023 CALLS     3800 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.203        .18142E-02** at limit **
   2  Prefactor     10.967        23.939        .12094E-03   -.28766E-04
   3  norm          .10000E-03    18.068        .18142E-02** at limit **
   4  Prefactor     7.4450        11.655        .14697E-03   -.79368E-04
   5  Prefactor     .10000E-03    2.8484        .12393E-02** at limit **
   6  Prefactor     110.77        138.56        .19089E-03    .25371E-04
   7  Prefactor     .10000E-03    21.415        .33173E-02** at limit **
   8  norm          .10000E-03    2.2369        .11070E-02** at limit **
   9  Prefactor     12.324        28.286        .11411E-03   -.24608E-04
  10  Prefactor     .10000E-03    20.617        .36285E-03** at limit **
  11  Prefactor     76.192        52.283        .46005E-04   -.26145E-04
  12  norm          5.6745        2.6923        .80910E-04    .11367E-03
  13  Prefactor     .10000E-03    6.1544        .18142E-02** at limit **
  14  Prefactor     .10000E-03    32.041        .18142E-02** at limit **
  15  norm          .38101        54.517        .39940E-02    .15452E-02
  16  norm          31.757        20.427        .71099E-04   -.36777E-04
  17  Prefactor     32.321        35.207        .70623E-04    .15084E-03
  18  norm          .10000E-03    2.7607        .24174E-03** at limit **
  19  Prefactor     31.732        30.045        .71137E-04   -.79907E-05
  20  Prefactor     31.469        55.214        .71396E-04   -.10987E-04
  21  Prefactor     .10000E-03    65.306        .18142E-02** at limit **
  22  Prefactor     70.116        61.467        .23958E-03   -.10155E-04
  23  Prefactor     .10000E-03    3.8096        .14463E-02** at limit **
  24  Normalizat    .24535        .32090        .77586E-03    .23240E-04
  25  Prefactor     1.2200        .12508        .14701E-03    .11422E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5769.690     FROM SIMPLEX   STATUS=UNCHANGED   1509 CALLS     5309 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.203        .56886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.967        23.939        .84208E-06   -1.5046    
   3  norm          .10000E-03    18.068        .52023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4450        11.655        .84800E-06   -1.5162    
   5  Prefactor     .10000E-03    2.8484        .23858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     110.77        138.56        .76191E-06   -1.3599    
   7  Prefactor     .10000E-03    21.415        .36136E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.2369        .13183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.324        28.286        .83874E-06   -1.5006    
  10  Prefactor     .10000E-03    20.617        .56098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     76.192        52.283        .78063E-06   -1.3960    
  12  norm          5.6745        2.6923        .85143E-06   -1.5231    
  13  Prefactor     .10000E-03    6.1544        .21271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.041        .31107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .38101        54.517        .87189E-06   -1.5585    
  16  norm          31.757        20.427        .81495E-06   -1.4580    
  17  Prefactor     32.321        35.207        .81441E-06   -1.4570    
  18  norm          .10000E-03    2.7607        .15844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.732        30.045        .81494E-06   -1.4581    
  20  Prefactor     31.469        55.214        .81532E-06   -1.4585    
  21  Prefactor     .10000E-03    65.306        .44905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     70.116        61.467        .78438E-06   -1.4031    
  23  Prefactor     .10000E-03    3.8096        .11063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .24535        .32090        .70596E-06   -1.2626    
  25  Prefactor     1.2200        .12508        .47926E-06   -.85720    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5769.690     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     5715 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.203        .36285E-03** at limit **
   2  Prefactor     10.967        23.932        .48374E-05    .94006E-07
   3  norm          .10000E-03    18.070        .36285E-03** at limit **
   4  Prefactor     7.4451        11.652        .58786E-05   -.38678E-06
   5  Prefactor     .10000E-03    2.8495        .24787E-03** at limit **
   6  Prefactor     110.77        138.54        .76357E-05    .29778E-06
   7  Prefactor     .10000E-03    21.729        .66346E-03** at limit **
   8  norm          .10000E-03    2.2370        .22139E-03** at limit **
   9  Prefactor     12.324        28.281        .45645E-05    .49813E-06
  10  Prefactor     .10000E-03    20.617        .72569E-04** at limit **
  11  Prefactor     76.192        52.282        .92010E-05   -.49424E-07
  12  norm          5.6745        2.6897        .32364E-05   -.16861E-04
  13  Prefactor     .10000E-03    6.1548        .36285E-03** at limit **
  14  Prefactor     .10000E-03    32.044        .36285E-03** at limit **
  15  norm          .38108        51.731        .79881E-03    .82688E-05
  16  norm          31.757        20.425        .28440E-05    .15990E-06
  17  Prefactor     32.321        34.144        .14125E-04   -.12556E-04
  18  norm          .10000E-03    2.7608        .48348E-04** at limit **
  19  Prefactor     31.732        30.037        .28455E-05   -.79907E-06
  20  Prefactor     31.469        55.180        .28559E-05     .0000    
  21  Prefactor     .10000E-03    65.315        .36285E-03** at limit **
  22  Prefactor     70.116        61.463        .95833E-05   -.47452E-06
  23  Prefactor     .10000E-03    3.8097        .28926E-03** at limit **
  24  Normalizat    .24535        .32012        .31035E-04   -.87918E-06
  25  Prefactor     1.2200        .12471        .58802E-05   -.15467E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.9669
  norm       = 0.0001
  Prefactor  = 7.44509
  Prefactor  = 0.0001
  Prefactor  = 110.769
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3241
  Prefactor  = 0.0001
  Prefactor  = 76.192
  norm       = 5.67447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.381079
  norm       = 31.7567
  Prefactor  = 32.3207
  norm       = 0.0001
  Prefactor  = 31.732
  Prefactor  = 31.4689
  Prefactor  = 0.0001
  Prefactor  = 70.1164
  Prefactor  = 0.0001
  Normalizat = 0.245352
  Prefactor  = 1.21995
 **********
 **   18 **HESSE 
 **********

 FCN=   5769.690     FROM HESSE     STATUS=OK           403 CALLS     6118 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.203        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.967        23.933        .48374E-05   -1.5046    
   3  norm          .10000E-03    18.070        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4451        11.652        .11757E-05   -1.5162    
   5  Prefactor     .10000E-03    2.8495        .49574E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     110.77        137.25        .15271E-05   -1.3599    
   7  Prefactor     .10000E-03    21.742        .13269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.2370        .44278E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.324        28.319        .91290E-06   -1.5006    
  10  Prefactor     .10000E-03    20.616        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     76.192        52.280        .92010E-05   -1.3960    
  12  norm          5.6745        2.6887        .64728E-06   -1.5231    
  13  Prefactor     .10000E-03    6.1548        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.044        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .38108        50.900        .31952E-04   -1.5585    
  16  norm          31.757        20.424        .28440E-05   -1.4580    
  17  Prefactor     32.321        33.893        .28249E-05   -1.4570    
  18  norm          .10000E-03    2.7607        .96696E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.732        29.979        .56910E-06   -1.4581    
  20  Prefactor     31.469        55.183        .28559E-05   -1.4585    
  21  Prefactor     .10000E-03    65.316        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     70.116        61.457        .19167E-05   -1.4031    
  23  Prefactor     .10000E-03    3.8097        .57852E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .24535        .31938        .62069E-05   -1.2626    
  25  Prefactor     1.2200        .12436        .11760E-05   -.85720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84967e-12
Minuit parameter uncertainties:
  1  9.38022e-08
  2  23.9539
  3  5.94564e-07
  4  11.6558
  5  2.03738e-08
  6  137.642
  7  9.33104e-06
  8  5.95029e-08
  9  28.3494
  10  1.52763e-07
  11  52.3111
  12  2.68877
  13  3.40382e-08
  14  1.54351e-06
  15  8.81492
  16  20.4288
  17  33.9135
  18  5.67395e-09
  19  29.9929
  20  55.2724
  21  1.8666e-06
  22  61.5125
  23  8.83254e-08
  24  0.321794
  25  0.124391
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.000e-04  5.674e-09  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.220e+00  1.244e-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:  2.454e-01  3.218e-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: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/858211/likelihoodResults_433209601_433468801_4FGL_J2325.2+3957_daily_bin748.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) = 5769.69176836
delta logL = -0.00172696488335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5769.69003096
delta logL = 1.04330229078e-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     '    3.2000       1.0000          .0000       5.0000    
     3 'Normalizat'    .24529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2200       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=   5769.690     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      265 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .12127        .30155E-01** at limit **
   2  alpha         3.1869        4.0064        .43403        .30855E-05
   3  Normalizat    .24535        .39232E-02    .17696        .80756E-04
   4  Prefactor     1.2200        .16056E-02    .34175E-01    .13187E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.1869
  Normalizat = 0.245346
  Prefactor  = 1.21995
 **********
 **   18 **HESSE 
 **********

 FCN=   5769.690     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      302 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    222.96        .93291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1869        3.4835        .50000        .27834    
   3  Normalizat    .24535        .44114E-01    .77585E-03   -1.2626    
   4  Prefactor     1.2200        .17908E-01    .14701E-03   -.85720    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.84439e-07
Minuit parameter uncertainties:
  1  5.05319e-05
  2  641.272
  3  0.0441198
  4  0.0179083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858211': 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) = 5769.69003092
delta logL = 1.04723567347e-05

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.000e-04  5.053e-05  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  3.187e+00  6.413e+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:  1.220e+00  1.791e-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:  2.453e-01  4.412e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/858211/cmap_HighResolution_433209601_433468801_4FGL_J2325.2+3957_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-05', job_status='DONE', photon_flux_upper_limit='7.60e-08', time_completed='2021-09-29 17:20:45.847432', job_id='858211', GAL2='1.22', fit_tolerance='1e-08', EG2='0.25', EG='0.25', time_epoch_completed='1632961245.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.05e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='748' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:20:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 858211: <4FGL_J2325.2+3957_daily_bin748> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 17:05:39 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:05:40 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:05:40 2021
Terminated at Wed Sep 29 17:20:47 2021
Results reported at Wed Sep 29 17:20:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin748 351.315 39.9542 433209601 433468801 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 :                                   873.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

