/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 183 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 = 7658
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2330.5+1102_daily_bin68
RA = 352.629, Dec = 11.0479
tmin = 256953601, tmax = 257212801
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='994507', job_status='RUN', time_executed='2021-09-29 22:13:48.055932', time_epoch_executed='1632978828.06' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994507

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994507/ft1_4FGL_J2330.5+1102_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994507/ft2_4FGL_J2330.5+1102_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994507/ft1_4FGL_J2330.5+1102_daily_bin68.fits outfile=/scratch/kocevski/994507/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin68.fits ra=352.629 dec=11.0479 rad=12.0 tmin=256953601.0 tmax=257212801.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 1.42
user 1.26
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/994507/ft2_4FGL_J2330.5+1102_daily_bin68.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994507/ft2_4FGL_J2330.5+1102_daily_bin68.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/994507/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin68.fits evtable="EVENTS" outfile="/scratch/kocevski/994507/ft1_filtered_4FGL_J2330.5+1102_daily_bin68.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/994507/ft1_filtered_4FGL_J2330.5+1102_daily_bin68.fits" evtable="EVENTS" scfile=/scratch/kocevski/994507/ft2_4FGL_J2330.5+1102_daily_bin68.fits sctable="SC_DATA" outfile=/scratch/kocevski/994507/ltcube_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.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/994507/ft2_4FGL_J2330.5+1102_daily_bin68.fits
.....................!
real 12.53
user 12.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994507/ft1_filtered_4FGL_J2330.5+1102_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/994507/ft2_4FGL_J2330.5+1102_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/994507/ltcube_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.fits outfile=/scratch/kocevski/994507/expmap_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.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/994507/ltcube_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.fits
.....................!
real 190.30
user 185.16
sys 4.84

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

Setting source of interest to:
4FGL J2330.5+1102 @ 352.629 11.0479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/994507/ft1_filtered_4FGL_J2330.5+1102_daily_bin68.fits scfile=/scratch/kocevski/994507/ft2_4FGL_J2330.5+1102_daily_bin68.fits outfile=/scratch/kocevski/994507/cmap_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.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.629 yref=11.0479 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.51
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994507/ft1_filtered_4FGL_J2330.5+1102_daily_bin68.fits scfile=/scratch/kocevski/994507/ft2_4FGL_J2330.5+1102_daily_bin68.fits outfile=/scratch/kocevski/994507/cmap_HighResolution_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.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.629 yref=11.0479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994507/ft1_filtered_4FGL_J2330.5+1102_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/994507/ft2_4FGL_J2330.5+1102_daily_bin68.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994507/Model_4FGL_J2330.5+1102_daily_bin68.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/994507/ft1_filtered_4FGL_J2330.5+1102_daily_bin68.fits.....................!
real 81.80
user 80.51
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/994507/ft1_filtered_4FGL_J2330.5+1102_daily_bin68.fits', '/scratch/kocevski/994507/ft2_4FGL_J2330.5+1102_daily_bin68.fits', expMap='/scratch/kocevski/994507/expmap_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.fits', expCube='/scratch/kocevski/994507/ltcube_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/994507/Model_4FGL_J2330.5+1102_daily_bin68.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2330.5+1102'

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.056e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/994507/ft1_filtered_4FGL_J2330.5+1102_daily_bin68.fits
Spacecraft file(s): /scratch/kocevski/994507/ft2_4FGL_J2330.5+1102_daily_bin68.fits
Exposure map: /scratch/kocevski/994507/expmap_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.fits
Exposure cube: /scratch/kocevski/994507/ltcube_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/994507/Model_4FGL_J2330.5+1102_daily_bin68.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) = 7642.32716493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16560E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9036       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27317       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9878       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.805       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.151       1.0000         .10000E-03   10000.    
    15 'norm      '    .41436       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.386       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2566       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87241       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7642.308     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2047 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.265       -.18963E-05** at limit **
   2  Prefactor     24.928        18.199        .50616E-05    .30085E-04
   3  Prefactor     .16671E-01    .77206E-01   -.33704E-06   -.18081E-03
   4  Prefactor     .10000E-03    26.560       -.91366E-06** at limit **
   5  Prefactor     8.9053        7.7251       -.38860E-06    .31495E-03
   6  Prefactor     .10000E-03    4.1103       -.93122E-06** at limit **
   7  Prefactor     .10000E-03    5.5439       -.44040E-06** at limit **
   8  Prefactor     .28632        5.3332       -.68039E-06   -.70658E-04
   9  Prefactor     4.9898        9.5934       -.91637E-06   -.10783E-03
  10  Prefactor     .10000E-03    26.336       -.55238E-06** at limit **
  11  Prefactor     .10000E-03    13.427        .63514E-07** at limit **
  12  norm          25.805        13.137       -.16767E-07    .75239E-04
  13  Prefactor     15.452        9.6115       -.17673E-06    .10625E-03
  14  Prefactor     49.152        29.355        .17248E-05   -.33819E-04
  15  norm          .46011        6.1594       -.10903E-05   -.23271E-04
  16  Prefactor     44.387        35.521        .19506E-05   -.37793E-04
  17  Prefactor     4.2527        24.550       -.39557E-05   -.27175E-04
  18  Prefactor     .10000E-03    1.9659       -.31041E-06** at limit **
  19  Normalizat    .87233        .19503        .10246E-05    .30445E-03
  20  Prefactor     1.0360        .11846       -.72058E-06    .62292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.9283
  Prefactor  = 0.0166709
  Prefactor  = 0.0001
  Prefactor  = 8.90528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.286324
  Prefactor  = 4.98978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.805
  Prefactor  = 15.4523
  Prefactor  = 49.1518
  norm       = 0.460108
  Prefactor  = 44.3871
  Prefactor  = 4.2527
  Prefactor  = 0.0001
  Normalizat = 0.872326
  Prefactor  = 1.03597
 **********
 **   18 **HESSE 
 **********

 FCN=   7642.308     FROM HESSE     STATUS=OK           299 CALLS     2346 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.928        18.381        .80245E-04   -1.4709    
   3  Prefactor     .16671E-01    .18870        .44530E-03   -1.5682    
   4  Prefactor     .10000E-03    26.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9053        7.6476        .13433E-03   -1.5111    
   6  Prefactor     .10000E-03    4.1118        .17297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .28632        33.566        .37439E-02   -1.5601    
   9  Prefactor     4.9898        9.6082        .18007E-03   -1.5261    
  10  Prefactor     .10000E-03    26.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.805        13.107        .78859E-04   -1.4692    
  13  Prefactor     15.452        9.6077        .10189E-03   -1.4922    
  14  Prefactor     49.152        29.244        .57199E-04   -1.4305    
  15  norm          .46011        34.190        .42146E-02   -1.5572    
  16  Prefactor     44.387        35.388        .60177E-04   -1.4375    
  17  Prefactor     4.2527        24.957        .19529E-03   -1.5295    
  18  Prefactor     .10000E-03    1.9692        .11968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .87233        .22295        .32774E-03   -.97439    
  20  Prefactor     1.0360        .13589        .19294E-03   -.91540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26776e-07
Minuit parameter uncertainties:
  1  7.35856e-05
  2  18.3856
  3  0.111839
  4  3.55433e-05
  5  7.64843
  6  1.32568e-05
  7  6.42659e-06
  8  6.20268
  9  9.61119
  10  9.86295e-05
  11  4.66519e-06
  12  13.1085
  13  9.60866
  14  29.2524
  15  7.93635
  16  35.4051
  17  20.6173
  18  3.32761e-06
  19  0.223185
  20  0.135937
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.545e+01  9.609e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.036e+00  1.359e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  8.723e-01  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.38
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 6.73e-08
Energy Flux (Fixed Index): 2.45e-05 +/- 1.52e-05

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) = 7641.14004584
delta logL = 1.16786841771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7641.13876712
delta logL = 1.16914713541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.795       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9284       1.0000          .0000       10.000    
     3 'Normalizat'    .93486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0120       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7641.139     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.795        9.8879        .25194E-02    .25681E-03
   2  Index         1.9285        .35857        .20826       -.74634E-04
   3  Normalizat    .93500        .18360        .71926E-01    .22181E-04
   4  Prefactor     1.0120        .11647        .43048E-01    .16208E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.795
  Index      = 1.92846
  Normalizat = 0.934999
  Prefactor  = 1.01202
 **********
 **   18 **HESSE 
 **********

 FCN=   7641.139     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.795        12.001        .10078E-03   -1.4913    
   2  Index         1.9285        .52036        .76711E-02   -.66151    
   3  Normalizat    .93500        .21229        .31825E-03   -.95241    
   4  Prefactor     1.0120        .13440        .19500E-03   -.92330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27304e-09
Minuit parameter uncertainties:
  1  12.0026
  2  0.521883
  3  0.212479
  4  0.134448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994507': 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) = 7641.1387662
delta logL = 1.16914805621

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.580e+01  1.200e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  1.928e+00  5.219e-01  0.000e+00  1.000e+01 (-1.000e+00)
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.012e+00  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  9.350e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.84
Ra Dec: 352.629 11.048
Photon Index (Free Index): 1.93 +/- 0.52
Photon Flux (Free Index): 4.80e-08 +/- 4.80e-08
Energy Flux (Free Index): 3.99e-05 +/- 3.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/994507/cmap_HighResolution_256953601_257212801_4FGL_J2330.5+1102_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='3.99e-05', photon_flux_error='6.73e-08', dlogl='1.17e+00', energy_flux='2.45e-05', photon_flux2='4.80e-08', job_status='DONE', time_completed='2021-09-29 22:23:31.002633', photon_index_error2='0.52', photon_index2='1.93', ts='6.38', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='3.49e-05', EG='0.87', time_epoch_completed='1632979411.0', return_code='0', job_id='994507', GAL2='1.01', EG2='0.93', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='4.80e-08', ts2='8.84', photon_index='2.79' WHERE bin_id='68' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:23:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 994507: <4FGL_J2330.5+1102_daily_bin68> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin68> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 22:10:37 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:10:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:10:37 2021
Terminated at Wed Sep 29 22:23:31 2021
Results reported at Wed Sep 29 22:23:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin68 352.629 11.0479 256953601 257212801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2330.5+1102 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   583.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            774 sec.

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

