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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin936
RA = 351.359, Dec = -35.9878
tmin = 481939201, tmax = 482198401
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='868123', job_status='RUN', time_executed='2021-09-29 17:44:00.835310', time_epoch_executed='1632962640.84' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868123/ft1_4FGL_J2325.4-3559_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868123/ft2_4FGL_J2325.4-3559_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868123/ft1_4FGL_J2325.4-3559_daily_bin936.fits outfile=/scratch/kocevski/868123/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin936.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=481939201.0 tmax=482198401.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.57
user 3.35
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/868123/ft2_4FGL_J2325.4-3559_daily_bin936.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/868123/ft2_4FGL_J2325.4-3559_daily_bin936.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/868123/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin936.fits evtable="EVENTS" outfile="/scratch/kocevski/868123/ft1_filtered_4FGL_J2325.4-3559_daily_bin936.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/868123/ft1_filtered_4FGL_J2325.4-3559_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/868123/ft2_4FGL_J2325.4-3559_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/868123/ltcube_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.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/868123/ft2_4FGL_J2325.4-3559_daily_bin936.fits
.....................!
real 11.83
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868123/ft1_filtered_4FGL_J2325.4-3559_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/868123/ft2_4FGL_J2325.4-3559_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/868123/ltcube_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.fits outfile=/scratch/kocevski/868123/expmap_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.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/868123/ltcube_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.fits
.....................!
real 191.60
user 186.27
sys 4.98

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J2325.4-3559 @ 351.359 -35.9878

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/868123/ft1_filtered_4FGL_J2325.4-3559_daily_bin936.fits scfile=/scratch/kocevski/868123/ft2_4FGL_J2325.4-3559_daily_bin936.fits outfile=/scratch/kocevski/868123/cmap_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.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.359 yref=-35.9878 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868123/ft1_filtered_4FGL_J2325.4-3559_daily_bin936.fits scfile=/scratch/kocevski/868123/ft2_4FGL_J2325.4-3559_daily_bin936.fits outfile=/scratch/kocevski/868123/cmap_HighResolution_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.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.359 yref=-35.9878 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/868123/ft1_filtered_4FGL_J2325.4-3559_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/868123/ft2_4FGL_J2325.4-3559_daily_bin936.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/868123/Model_4FGL_J2325.4-3559_daily_bin936.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/868123/ft1_filtered_4FGL_J2325.4-3559_daily_bin936.fits.....................!
real 35.19
user 33.83
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/868123/ft1_filtered_4FGL_J2325.4-3559_daily_bin936.fits', '/scratch/kocevski/868123/ft2_4FGL_J2325.4-3559_daily_bin936.fits', expMap='/scratch/kocevski/868123/expmap_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.fits', expCube='/scratch/kocevski/868123/ltcube_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/868123/Model_4FGL_J2325.4-3559_daily_bin936.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.4-3559'

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  7.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  2.129e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
427         beta:  1.815e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
428           Eb:  6.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/868123/ft1_filtered_4FGL_J2325.4-3559_daily_bin936.fits
Spacecraft file(s): /scratch/kocevski/868123/ft2_4FGL_J2325.4-3559_daily_bin936.fits
Exposure map: /scratch/kocevski/868123/expmap_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.fits
Exposure cube: /scratch/kocevski/868123/ltcube_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/868123/Model_4FGL_J2325.4-3559_daily_bin936.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) = 4020.11412164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6357       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.405       1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.323       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5589       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11134E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.044       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.396       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9170       1.0000         .10000E-03   10000.    
    16 'norm      '    .10368E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    75.249       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .66774E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    6.6256       1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.361       1.0000         .10000E-03   10000.    
    22 'norm      '    .10371E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19234E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .17196E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97761       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4020.099     FROM MIGRAD    STATUS=CONVERGED   1330 CALLS     4327 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.425        .18142E-02** at limit **
   2  Prefactor     2.6408        4.0826        .15406E-03   -.30606E-03
   3  Prefactor     .10000E-03    22.222        .18142E-02** at limit **
   4  Prefactor     13.412        43.589        .10940E-03    .77418E-05
   5  Prefactor     53.321        32.628        .54927E-04    .34400E-04
   6  Prefactor     .10000E-03    16.510        .18142E-02** at limit **
   7  Prefactor     6.5586        12.269        .15670E-03    .26119E-05
   8  Prefactor     .10000E-03    2.8009        .10353E-02** at limit **
   9  norm          .10000E-03    1.3997        .73166E-03** at limit **
  10  Prefactor     .10000E-03    4.7878        .13545E-02** at limit **
  11  Prefactor     .10000E-03    5.5851        .14553E-02** at limit **
  12  norm          .10000E-03    2.4558        .84120E-03** at limit **
  13  Prefactor     14.171        79.171        .10688E-03   -.70203E-05
  14  Prefactor     11.389        11.183        .11867E-03   -.11352E-03
  15  norm          1.9157        9.9264        .30016E-03   -.13076E-03
  16  norm          .10000E-03    2.9643        .10631E-02** at limit **
  17  norm          .10000E-03    2.8755        .10492E-02** at limit **
  18  Prefactor     75.152        55.947        .46287E-04    .16652E-03
  19  Prefactor     .10017E-03    56.680        .12731    ** at limit **
  20  norm          6.6233        5.6867        .11619E-03    .28849E-03
  21  Prefactor     31.359        20.752        .71549E-04    .99198E-04
  22  norm          .10000E-03    6.1761        .21237E-02** at limit **
  23  Prefactor     .10001E-03    197.98        .18142E-02** at limit **
  24  Prefactor     .10000E-03    26.324        .18142E-02** at limit **
  25  Prefactor     .10007E-03    19.283        .32300E-02** at limit **
  26  Prefactor     .10000E-03    2.9743        .10655E-02** at limit **
  27  Prefactor     .10004E-03    186.73        .40720E-03** at limit **
  28  Normalizat    .97733        .25146        .22532E-03    .33913E-03
  29  Prefactor     .82208        .26227        .25934E-03    .31241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.64084
  Prefactor  = 0.000100001
  Prefactor  = 13.4124
  Prefactor  = 53.321
  Prefactor  = 0.0001
  Prefactor  = 6.5586
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.1709
  Prefactor  = 11.3892
  norm       = 1.91566
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 75.1516
  Prefactor  = 0.000100166
  norm       = 6.62325
  Prefactor  = 31.3593
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  Normalizat = 0.977331
  Prefactor  = 0.822079
 **********
 **   18 **HESSE 
 **********

 FCN=   4020.099     FROM HESSE     STATUS=OK           533 CALLS     4860 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6408        4.0824        .61624E-05   -1.5383    
   3  Prefactor     .10000E-03    22.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.412        43.574        .43761E-05   -1.4975    
   5  Prefactor     53.321        32.627        .10985E-04   -1.4246    
   6  Prefactor     .10000E-03    16.514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5586        12.268        .62679E-05   -1.5196    
   8  Prefactor     .10000E-03    2.8009        .20705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3997        .14633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7878        .27089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5863        .29106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.5026        .16824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.171        79.111        .42752E-05   -1.4955    
  14  Prefactor     11.389        11.169        .47469E-05   -1.5033    
  15  norm          1.9157        9.9256        .12007E-04   -1.5431    
  16  norm          .10000E-03    2.9645        .21261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8755        .20984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     75.152        55.941        .92574E-05   -1.3972    
  19  Prefactor     .10017E-03    56.203        .12803       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.6233        5.6864        .46478E-05   -1.5193    
  21  Prefactor     31.359        20.751        .14310E-04   -1.4587    
  22  norm          .10000E-03    6.2019        .42475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    198.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10007E-03    19.405        .64599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.9744        .21311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10004E-03    186.74        .81440E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .97733        .25168        .45064E-04   -.93794    
  29  Prefactor     .82208        .26251        .51868E-04   -.98920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36472e-09
Minuit parameter uncertainties:
  1  0.000159686
  2  4.08284
  3  0.000288885
  4  43.6773
  5  32.6382
  6  3.91369e-05
  7  12.2724
  8  8.87102e-06
  9  5.48571e-07
  10  7.2572e-06
  11  2.00299e-05
  12  1.33055e-05
  13  67.1013
  14  11.171
  15  8.72305
  16  5.51986e-07
  17  7.42575e-06
  18  55.98
  19  0.00611212
  20  5.68686
  21  20.7561
  22  4.61088e-05
  23  0.00242871
  24  8.56901e-05
  25  0.00231723
  26  1.50804e-05
  27  0.00551572
  28  0.251982
  29  0.262916
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.000e-04  7.426e-06  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  2.129e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
427         beta:  1.815e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
428           Eb:  6.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  8.221e-01  2.629e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  9.773e-01  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.359 -35.988
Photon Flux Upper Limit: 4.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/868123/likelihoodResults_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.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) = 4020.10103476
delta logL = -0.00163889654959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4020.09939601
delta logL = -1.47979335452e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1268       1.0000          .0000       5.0000    
     3 'Normalizat'    .97746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82194       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+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=   4020.099     FROM MIGRAD    STATUS=FAILED        81 CALLS      213 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    16.046        .10494E-02** at limit **
   2  alpha         2.0861        2.7459        .16698        .18116E-05
   3  Normalizat    .97733        .24153        .22532E-03   -.53937E-04
   4  Prefactor     .82208        .25837        .25934E-03   -.50193E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4020.099     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      343 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10008E-03    16.046        .22616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0861        2.7459        .13887E-03   -.16633    
   3  Normalizat    .97733        .24153        .45797E-04   -.93794    
   4  Prefactor     .82208        .25837        .48463E-04   -.98920    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4020.099     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      373 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8860        .20988E-03** at limit **
   2  alpha         2.0420        3.8412        .66794E-02   -.44253E-09
   3  Normalizat    .97733        .24184        .90128E-05    .51213E-04
   4  Prefactor     .82208        .25870        .10374E-04    .47015E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04197
  Normalizat = 0.977331
  Prefactor  = 0.822078
 **********
 **   18 **HESSE 
 **********

 FCN=   4020.099     FROM HESSE     STATUS=OK            23 CALLS      396 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8859        .41976E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0420        3.8421        .66794E-02   -.18425    
   3  Normalizat    .97733        .24163        .18026E-05   -.93794    
   4  Prefactor     .82208        .25853        .20747E-05   -.98920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86415e-12
Minuit parameter uncertainties:
  1  8.55817e-08
  2  243.921
  3  0.241896
  4  0.258913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868123': 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) = 4020.0993958
delta logL = 6.274694897e-08

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.000e-04  8.558e-08  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  2.042e+00  2.439e+02  0.000e+00  5.000e+00 ( 1.000e+00)
427         beta:  1.815e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
428           Eb:  6.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  8.221e-01  2.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  9.773e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.359 -35.988

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/868123/cmap_HighResolution_481939201_482198401_4FGL_J2325.4-3559_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-05', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2021-09-29 17:55:10.607500', job_id='868123', GAL2='0.82', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632963310.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='936' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:55:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 868123: <4FGL_J2325.4-3559_daily_bin936> in cluster <slac> Done

Job <4FGL_J2325.4-3559_daily_bin936> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 17:40:29 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:40:30 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:40:30 2021
Terminated at Wed Sep 29 17:55:11 2021
Results reported at Wed Sep 29 17:55:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin936 351.359 -35.9878 481939201 482198401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.4-3559 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

