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


Performing analysis on: 4FGL_J2328.3-4036_daily_bin1412
RA = 352.082, Dec = -40.6037
tmin = 605318401, tmax = 605577601
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='934556', job_status='RUN', time_executed='2021-09-29 20:40:46.537457', time_epoch_executed='1632973246.54' WHERE source_name='4FGL J2328.3-4036' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934556/ft1_4FGL_J2328.3-4036_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934556/ft1_4FGL_J2328.3-4036_daily_bin1412.fits outfile=/scratch/kocevski/934556/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1412.fits ra=352.082 dec=-40.6037 rad=12.0 tmin=605318401.0 tmax=605577601.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.51
user 5.25
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.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/934556/ft1_filteredMKT_4FGL_J2328.3-4036_daily_bin1412.fits evtable="EVENTS" outfile="/scratch/kocevski/934556/ft1_filtered_4FGL_J2328.3-4036_daily_bin1412.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934556/ft1_filtered_4FGL_J2328.3-4036_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/934556/ltcube_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.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/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.fits
.....................!
real 11.87
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934556/ft1_filtered_4FGL_J2328.3-4036_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/934556/ltcube_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.fits outfile=/scratch/kocevski/934556/expmap_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.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/934556/ltcube_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.fits
.....................!
real 191.83
user 185.54
sys 5.96

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2328.3-4036 @ 352.082 -40.6037

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934556/ft1_filtered_4FGL_J2328.3-4036_daily_bin1412.fits scfile=/scratch/kocevski/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.fits outfile=/scratch/kocevski/934556/cmap_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.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=352.082 yref=-40.6037 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934556/ft1_filtered_4FGL_J2328.3-4036_daily_bin1412.fits scfile=/scratch/kocevski/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.fits outfile=/scratch/kocevski/934556/cmap_HighResolution_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.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=352.082 yref=-40.6037 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934556/ft1_filtered_4FGL_J2328.3-4036_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934556/Model_4FGL_J2328.3-4036_daily_bin1412.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/934556/ft1_filtered_4FGL_J2328.3-4036_daily_bin1412.fits.....................!
real 33.79
user 31.96
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934556/ft1_filtered_4FGL_J2328.3-4036_daily_bin1412.fits', '/scratch/kocevski/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.fits', expMap='/scratch/kocevski/934556/expmap_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.fits', expCube='/scratch/kocevski/934556/ltcube_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934556/Model_4FGL_J2328.3-4036_daily_bin1412.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2328.3-4036'

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  4.981e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.333e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934556/ft1_filtered_4FGL_J2328.3-4036_daily_bin1412.fits
Spacecraft file(s): /scratch/kocevski/934556/ft2_4FGL_J2328.3-4036_daily_bin1412.fits
Exposure map: /scratch/kocevski/934556/expmap_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.fits
Exposure cube: /scratch/kocevski/934556/ltcube_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934556/Model_4FGL_J2328.3-4036_daily_bin1412.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) = 3827.98695327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6089       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.323       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26176E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.219       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.305       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11147E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3078       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54630E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.726       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5189       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11476E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0241       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.520       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    43.441       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.7868       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.7071       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .91744       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2729       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3827.980     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     3895 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5898        3.9437        .60652E-06   -.45106E-02
   2  Prefactor     .10000E-03    5.3755       -.24685E-05** at limit **
   3  Prefactor     .10001E-03    15.351       -.62935E-06** at limit **
   4  Prefactor     .10002E-03    5.6372       -.70904E-06** at limit **
   5  Prefactor     14.329        1.3259        .38362E-07    .58647E-03
   6  Prefactor     .10000E-03    13.963        .26258E-05** at limit **
   7  Prefactor     45.370        2.0291       -.26187E-08   -.14137E-02
   8  Prefactor     16.319        2.4846        .25316E-06   -.36853E-02
   9  Prefactor     .10002E-03    45.876        .91884E-06** at limit **
  10  Prefactor     14.546        4.2307       -.52308E-07    .55158E-02
  11  Prefactor     7.3232        10.183        .10603E-05    .41546E-02
  12  Prefactor     2.1727        152.22        .46418E-05   -.16998E-04
  13  Prefactor     .10005E-03    53.150        .92582E-06** at limit **
  14  Prefactor     .10000E-03    4.8485        .26539E-06** at limit **
  15  norm          .10000E-03    12.004        .17539E-05** at limit **
  16  norm          .10000E-03    2.2968        .20726E-06** at limit **
  17  norm          .10000E-03    3.8907        .10753E-06** at limit **
  18  norm          .10000E-03    5.4788        .21972E-05** at limit **
  19  Prefactor     19.722        1.2538       -.42462E-07    .67901E-03
  20  Prefactor     8.5985        1.7520       -.11843E-06    .94707E-03
  21  Prefactor     .10000E-03    168.12        .99722E-05** at limit **
  22  norm          5.0286        2.2615        .12338E-06   -.31697E-02
  23  Prefactor     14.538        2.5576        .12787E-06   -.41613E-02
  24  norm          .10000E-03    .43534        .26116E-07** at limit **
  25  norm          .10000E-03    3.5493       -.59887E-08** at limit **
  26  Prefactor     .10000E-03    1.4291       -.32261E-07** at limit **
  27  Prefactor     .10002E-03    6.0543       -.79972E-06** at limit **
  28  Prefactor     43.432        1.8617        .84039E-07   -.54077E-02
  29  Prefactor     4.8000        2.0847       -.23030E-07    .15213E-03
  30  Prefactor     2.7111        4.1038        .16805E-05    .28403E-03
  31  Prefactor     .10001E-03    15.248        .16827E-05** at limit **
  32  Normalizat    .91793        .29336       -.41095E-05   -.10055E-03
  33  Prefactor     1.2712        .32889        .15329E-05   -.82007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.58978
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100019
  Prefactor  = 14.3293
  Prefactor  = 0.000100001
  Prefactor  = 45.3697
  Prefactor  = 16.3194
  Prefactor  = 0.000100024
  Prefactor  = 14.5457
  Prefactor  = 7.32324
  Prefactor  = 2.17269
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7222
  Prefactor  = 8.59854
  Prefactor  = 0.000100001
  norm       = 5.0286
  Prefactor  = 14.5377
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 43.4325
  Prefactor  = 4.80004
  Prefactor  = 2.71111
  Prefactor  = 0.000100006
  Normalizat = 0.917934
  Prefactor  = 1.27121
 **********
 **   18 **HESSE 
 **********

 FCN=   3827.980     FROM HESSE     STATUS=OK           763 CALLS     4658 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5898        387.25        .46872E-02   -1.5279    
   2  Prefactor     .10000E-03    5.3607        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    16.208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    11.271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.329        9.1183        .26458E-02   -1.4951    
   6  Prefactor     .10000E-03    3.7910        .63109E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.370        70.903        .14906E-02   -1.4360    
   8  Prefactor     16.319        30.175        .24797E-02   -1.4900    
   9  Prefactor     .10002E-03    45.373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.546        23.235        .26280E-02   -1.4945    
  11  Prefactor     7.3232        10.725        .37093E-02   -1.5167    
  12  Prefactor     2.1727        147.91        .95389E-02   -1.5413    
  13  Prefactor     .10005E-03    53.145        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.8882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.4639        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.722        10.860        .22545E-02   -1.4819    
  20  Prefactor     8.5985        324.46        .34336E-02   -1.5121    
  21  Prefactor     .10000E-03    165.26        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0286        16.657        .44850E-02   -1.5259    
  23  Prefactor     14.538        24.626        .26278E-02   -1.4945    
  24  norm          .10000E-03    .42901        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.5365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.4244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    11.235        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     43.432        49.635        .15206E-02   -1.4389    
  29  Prefactor     4.8000        9.3068        .45972E-02   -1.5270    
  30  Prefactor     2.7111        4.0988        .61892E-02   -1.5379    
  31  Prefactor     .10001E-03    15.992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .91793        .26064        .45124E-01   -.95833    
  33  Prefactor     1.2712        .27193        .58731E-01   -.84167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02579e-06
Minuit parameter uncertainties:
  1  84.8912
  2  5.20222e-05
  3  0.000701444
  4  0.000919376
  5  9.1192
  6  0.000112748
  7  71.0352
  8  30.2027
  9  0.00210739
  10  23.2492
  11  10.7279
  12  35.9458
  13  0.00319063
  14  6.23995e-06
  15  5.57747e-05
  16  3.07746e-06
  17  3.10997e-06
  18  4.81686e-05
  19  10.8614
  20  106.265
  21  0.000826562
  22  16.6728
  23  24.6433
  24  1.33161e-07
  25  6.93699e-07
  26  3.05116e-07
  27  0.000954562
  28  49.6819
  29  9.30959
  30  4.09919
  31  0.00062812
  32  0.261001
  33  0.272232
Done.

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

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  5.029e+00  1.667e+01  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  2.333e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.271e+00  2.722e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.179e-01  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 352.082 -40.604
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934556/likelihoodResults_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.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) = 3826.80123952
delta logL = 1.17842378984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3826.78490703
delta logL = 1.19475628604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31615       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7437       1.0000          .0000       5.0000    
     3 'Normalizat'    .80286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3703       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+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=   3826.785     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      369 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31454        8.3481        .24526E-04   -.84365E-04
   2  alpha         4.7473        2.6834        .28366E-01   -.40525E-05
   3  Normalizat    .80257        .28111        .28488E-03   -.52277E-05
   4  Prefactor     1.3707        .30585        .25140E-03   -.41151E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.314543
  alpha      = 4.74732
  Normalizat = 0.802572
  Prefactor  = 1.37073
 **********
 **   18 **HESSE 
 **********

 FCN=   3826.785     FROM HESSE     STATUS=OK            25 CALLS      394 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31454        1.7220        .98103E-06   -1.5596    
   2  alpha         4.7473        4.7901        .11347E-02    1.1173    
   3  Normalizat    .80257        .30426        .11395E-04   -.99973    
   4  Prefactor     1.3707        .33483        .10056E-04   -.81228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90073e-12
Minuit parameter uncertainties:
  1  1.47178
  2  2.54131
  3  0.304912
  4  0.335364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934556': 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) = 3826.78490312
delta logL = 1.19476019674

Extracting fit parameters...

4FGL J2328.3-4036
   Spectrum: LogParabola
455         norm:  3.145e-01  1.472e+00  1.000e-04  1.000e+04 ( 1.000e-12)
456        alpha:  4.747e+00  2.541e+00  0.000e+00  5.000e+00 ( 1.000e+00)
457         beta:  7.057e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
458           Eb:  7.709e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.371e+00  3.354e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.026e-01  3.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 352.082 -40.604
Photon Index (Free Index): 4.75 +/- 2.54
Photon Flux (Free Index): 1.09e-07 +/- 8.30e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.30e-05

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/934556/cmap_HighResolution_605318401_605577601_4FGL_J2328.3-4036_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-05', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='1.19e+00', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-29 20:52:18.860544', photon_index_error2='2.54', photon_index2='4.75', ts='0.43', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.30e-05', EG='0.92', time_epoch_completed='1632973938.86', return_code='0', job_id='934556', GAL2='1.37', EG2='0.80', return_code2='0', photon_flux_error2='8.30e-08', ts2='3.01', photon_index='2.33' WHERE bin_id='1412' AND source_name='4FGL J2328.3-4036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:52:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 934556: <4FGL_J2328.3-4036_daily_bin1412> in cluster <slac> Done

Job <4FGL_J2328.3-4036_daily_bin1412> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 20:40:25 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:40:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:40:27 2021
Terminated at Wed Sep 29 20:52:19 2021
Results reported at Wed Sep 29 20:52:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2328.3-4036_daily_bin1412 352.082 -40.6037 605318401 605577601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2328.3-4036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   681.26 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             310.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            714 sec.

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

