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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin84
RA = 352.629, Dec = 11.0479
tmin = 261100801, tmax = 261360001
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='994531', job_status='RUN', time_executed='2021-09-29 22:12:55.566314', time_epoch_executed='1632978775.57' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994531

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994531/ft1_4FGL_J2330.5+1102_daily_bin84.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994531/ft2_4FGL_J2330.5+1102_daily_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994531/ft1_4FGL_J2330.5+1102_daily_bin84.fits outfile=/scratch/kocevski/994531/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin84.fits ra=352.629 dec=11.0479 rad=12.0 tmin=261100801.0 tmax=261360001.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.50
user 1.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994531/ft2_4FGL_J2330.5+1102_daily_bin84.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/994531/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin84.fits evtable="EVENTS" outfile="/scratch/kocevski/994531/ft1_filtered_4FGL_J2330.5+1102_daily_bin84.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994531/ft1_filtered_4FGL_J2330.5+1102_daily_bin84.fits" evtable="EVENTS" scfile=/scratch/kocevski/994531/ft2_4FGL_J2330.5+1102_daily_bin84.fits sctable="SC_DATA" outfile=/scratch/kocevski/994531/ltcube_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.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/994531/ft2_4FGL_J2330.5+1102_daily_bin84.fits
.....................!
real 12.72
user 12.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994531/ft1_filtered_4FGL_J2330.5+1102_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/994531/ft2_4FGL_J2330.5+1102_daily_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/994531/ltcube_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.fits outfile=/scratch/kocevski/994531/expmap_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.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/994531/ltcube_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.fits
.....................!
real 192.41
user 187.57
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
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/994531/ft1_filtered_4FGL_J2330.5+1102_daily_bin84.fits scfile=/scratch/kocevski/994531/ft2_4FGL_J2330.5+1102_daily_bin84.fits outfile=/scratch/kocevski/994531/cmap_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994531/ft1_filtered_4FGL_J2330.5+1102_daily_bin84.fits scfile=/scratch/kocevski/994531/ft2_4FGL_J2330.5+1102_daily_bin84.fits outfile=/scratch/kocevski/994531/cmap_HighResolution_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.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.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/994531/ft1_filtered_4FGL_J2330.5+1102_daily_bin84.fits', '/scratch/kocevski/994531/ft2_4FGL_J2330.5+1102_daily_bin84.fits', expMap='/scratch/kocevski/994531/expmap_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.fits', expCube='/scratch/kocevski/994531/ltcube_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/994531/Model_4FGL_J2330.5+1102_daily_bin84.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/994531/ft1_filtered_4FGL_J2330.5+1102_daily_bin84.fits
Spacecraft file(s): /scratch/kocevski/994531/ft2_4FGL_J2330.5+1102_daily_bin84.fits
Exposure map: /scratch/kocevski/994531/expmap_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.fits
Exposure cube: /scratch/kocevski/994531/ltcube_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/994531/Model_4FGL_J2330.5+1102_daily_bin84.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) = 6414.40487452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.804       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11643E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .74233       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9986       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12541E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5257       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5781       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.2933       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.333       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.006       1.0000         .10000E-03   10000.    
    15 'norm      '    .98467E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.396       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11934E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88050       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93978       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=   6414.349     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2145 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.854        44.661       -.38831E-04    .57881E-04
   2  Prefactor     .10000E-03    26.251       -.59968E-06** at limit **
   3  Prefactor     .74201        .19741        .35598E-06   -.68908E-02
   4  Prefactor     .10000E-03    38.986       -.21829E-05** at limit **
   5  Prefactor     9.0003        5.6639        .21382E-07   -.94574E-04
   6  Prefactor     .10004E-03    4.3654        .14748E-05** at limit **
   7  Prefactor     .10000E-03    10.031        .13638E-07** at limit **
   8  Prefactor     1.5272        3.9460       -.57298E-06   -.84513E-03
   9  Prefactor     2.5754        12.913        .22050E-04   -.11730E-03
  10  Prefactor     .10000E-03    4.5679        .47534E-07** at limit **
  11  Prefactor     .10000E-03    33.172        .20840E-05** at limit **
  12  norm          9.3003        11.450        .23926E-05   -.40811E-03
  13  Prefactor     17.312        10.323       -.94290E-06   -.40950E-03
  14  Prefactor     28.009        27.699       -.20299E-04   -.20311E-03
  15  norm          .40225        13.965        .49323E-06   -.13611E-03
  16  Prefactor     59.414        40.259        .20424E-04   -.31529E-04
  17  Prefactor     .10000E-03    13.207       -.82224E-06** at limit **
  18  Prefactor     .10004E-03    4.5748       -.11024E-05** at limit **
  19  Normalizat    .88073        .20538       -.27964E-05   -.45526E-04
  20  Prefactor     .93929        .12484        .50685E-06   -.23992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.8545
  Prefactor  = 0.000100001
  Prefactor  = 0.742007
  Prefactor  = 0.0001
  Prefactor  = 9.00035
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 1.52722
  Prefactor  = 2.57537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.30034
  Prefactor  = 17.3123
  Prefactor  = 28.0088
  norm       = 0.402253
  Prefactor  = 59.4136
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Normalizat = 0.880733
  Prefactor  = 0.939287
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.349     FROM HESSE     STATUS=OK           291 CALLS     2436 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.854        44.692        .28998E-03   -1.4323    
   2  Prefactor     .10000E-03    26.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .74201        .19740        .17008E-04   -1.5536    
   4  Prefactor     .10000E-03    39.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0003        5.6605        .13361E-03   -1.5108    
   6  Prefactor     .10004E-03    14.895        .32422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5272        3.9190        .24640E-03   -1.5461    
   9  Prefactor     2.5754        12.510        .25418E-03   -1.5387    
  10  Prefactor     .10000E-03    4.5716        .16716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.3003        11.315        .13147E-03   -1.5098    
  13  Prefactor     17.312        10.303        .96202E-04   -1.4876    
  14  Prefactor     28.009        27.696        .75703E-04   -1.4649    
  15  norm          .40225        163.57        .56932E-02   -1.5581    
  16  Prefactor     59.414        40.351        .52059E-04   -1.4165    
  17  Prefactor     .10000E-03    13.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    15.261        .33012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88073        .24011        .31571E-03   -.97140    
  20  Prefactor     .93929        .14725        .19344E-03   -.94782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.958e-09
Minuit parameter uncertainties:
  1  44.7231
  2  0.000338369
  3  0.197396
  4  3.50248e-05
  5  5.66079
  6  0.00152065
  7  6.84144e-06
  8  3.91967
  9  11.3559
  10  6.13982e-06
  11  0.000152717
  12  11.3172
  13  10.3036
  14  27.7092
  15  16.2657
  16  40.3695
  17  1.81801e-05
  18  0.00147771
  19  0.240406
  20  0.147314
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.731e+01  1.030e+01  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:  9.393e-01  1.473e-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.807e-01  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.20
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 7.22e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.63e-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) = 6414.28079734
delta logL = 0.0679005370594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6414.27864434
delta logL = 0.0700535383385

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.249       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0031       1.0000          .0000       10.000    
     3 'Normalizat'    .86809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94605       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6414.279     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      305 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.257        12.872        .53055E-03   -.60663E-04
   2  Index         3.0038        .67839        .56349E-02    .39314E-03
   3  Normalizat    .86792        .23591        .31774E-03    .60253E-04
   4  Prefactor     .94599        .14720        .19285E-03    .95581E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.257
  Index      = 3.00383
  Normalizat = 0.867923
  Prefactor  = 0.945991
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.279     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.257        11.769        .21222E-04   -1.4953    
   2  Index         3.0038        .62031        .11270E-02   -.41068    
   3  Normalizat    .86792        .23605        .12710E-04   -.97597    
   4  Prefactor     .94599        .14716        .38571E-04   -.94552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28417e-11
Minuit parameter uncertainties:
  1  11.7714
  2  0.622218
  3  0.236326
  4  0.147226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994531': 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) = 6414.27863936
delta logL = 0.0700585229815

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.426e+01  1.177e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  3.004e+00  6.222e-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:  9.460e-01  1.472e-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.679e-01  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 352.629 11.048
Photon Index (Free Index): 3.00 +/- 0.62
Photon Flux (Free Index): 1.30e-07 +/- 6.92e-08
Energy Flux (Free Index): 2.59e-05 +/- 1.42e-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/994531/cmap_HighResolution_261100801_261360001_4FGL_J2330.5+1102_daily_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='2.59e-05', photon_flux_error='7.22e-08', dlogl='7.01e-02', energy_flux='2.74e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-29 22:22:08.107272', photon_index_error2='0.62', photon_index2='3.00', ts='5.20', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.88', time_epoch_completed='1632979328.11', return_code='0', job_id='994531', GAL2='0.95', EG2='0.87', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='6.92e-08', ts2='5.42', photon_index='2.79' WHERE bin_id='84' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:22:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 994531: <4FGL_J2330.5+1102_daily_bin84> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin84> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 22:10:38 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:10: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 22:10:40 2021
Terminated at Wed Sep 29 22:22:08 2021
Results reported at Wed Sep 29 22:22:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin84 352.629 11.0479 261100801 261360001 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 :                                   550.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            690 sec.

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

