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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin32
RA = 352.629, Dec = 11.0479
tmin = 247622401, tmax = 247881601
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='994457', job_status='RUN', time_executed='2021-09-29 22:13:22.151028', time_epoch_executed='1632978802.15' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994457/ft1_4FGL_J2330.5+1102_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994457/ft2_4FGL_J2330.5+1102_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994457/ft1_4FGL_J2330.5+1102_daily_bin32.fits outfile=/scratch/kocevski/994457/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin32.fits ra=352.629 dec=11.0479 rad=12.0 tmin=247622401.0 tmax=247881601.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.41
user 1.24
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994457/ft1_filtered_4FGL_J2330.5+1102_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/994457/ft2_4FGL_J2330.5+1102_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/994457/ltcube_247622401_247881601_4FGL_J2330.5+1102_daily_bin32.fits outfile=/scratch/kocevski/994457/expmap_247622401_247881601_4FGL_J2330.5+1102_daily_bin32.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/994457/ltcube_247622401_247881601_4FGL_J2330.5+1102_daily_bin32.fits
.....................!
real 191.66
user 186.11
sys 5.23

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/994457/ft1_filtered_4FGL_J2330.5+1102_daily_bin32.fits scfile=/scratch/kocevski/994457/ft2_4FGL_J2330.5+1102_daily_bin32.fits outfile=/scratch/kocevski/994457/cmap_247622401_247881601_4FGL_J2330.5+1102_daily_bin32.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994457/ft1_filtered_4FGL_J2330.5+1102_daily_bin32.fits scfile=/scratch/kocevski/994457/ft2_4FGL_J2330.5+1102_daily_bin32.fits outfile=/scratch/kocevski/994457/cmap_HighResolution_247622401_247881601_4FGL_J2330.5+1102_daily_bin32.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.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.735       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.158       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7208       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.830       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7742       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53683       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.309       1.0000         .10000E-03   10000.    
    12 'norm      '    42.710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.260       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.264       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2314       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89020       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=   8872.511     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     2013 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.730        51.889       -.13568E-05   -.82899E-04
   2  Prefactor     31.156        22.774       -.31944E-06   -.54977E-04
   3  Prefactor     2.7209        .30381        .96611E-08   -.62790E-03
   4  Prefactor     15.832        33.382        .13914E-05    .36230E-04
   5  Prefactor     3.7739        5.9724        .19624E-06   -.54832E-04
   6  Prefactor     .10000E-03    7.2787        .10068E-06** at limit **
   7  Prefactor     .10000E-03    8.2077        .47099E-06** at limit **
   8  Prefactor     .54018        6.6160        .30174E-05   -.33067E-03
   9  Prefactor     .10000E-03    12.733       -.13981E-06** at limit **
  10  Prefactor     4.1329        19.592       -.41847E-05   -.13369E-03
  11  Prefactor     29.311        39.341        .97034E-06    .43113E-04
  12  norm          42.706        13.982       -.54644E-06   -.26345E-03
  13  Prefactor     21.262        10.595        .60605E-06    .13162E-03
  14  Prefactor     22.262        21.579       -.55580E-06   -.89948E-04
  15  norm          .10000E-03    7.5360       -.20741E-06** at limit **
  16  Prefactor     9.6210        28.079        .27032E-05    .73537E-04
  17  Prefactor     .10000E-03    7.5868       -.21850E-06** at limit **
  18  Prefactor     .10000E-03    3.5476        .13246E-07** at limit **
  19  Normalizat    1.2313        .20715       -.61205E-06   -.29303E-04
  20  Prefactor     .89027        .12339        .41934E-07   -.89915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.7296
  Prefactor  = 31.1564
  Prefactor  = 2.72086
  Prefactor  = 15.8317
  Prefactor  = 3.77392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.540181
  Prefactor  = 0.0001
  Prefactor  = 4.13294
  Prefactor  = 29.3108
  norm       = 42.7056
  Prefactor  = 21.2625
  Prefactor  = 22.2618
  norm       = 0.0001
  Prefactor  = 9.621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23129
  Prefactor  = 0.890271
 **********
 **   18 **HESSE 
 **********

 FCN=   8872.511     FROM HESSE     STATUS=OK           293 CALLS     2306 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.730        52.328        .49500E-04   -1.4085    
   2  Prefactor     31.156        22.825        .71782E-04   -1.4591    
   3  Prefactor     2.7209        .30580        .16100E-04   -1.5378    
   4  Prefactor     15.832        33.495        .10067E-03   -1.4912    
   5  Prefactor     3.7739        5.9735        .20780E-03   -1.5319    
   6  Prefactor     .10000E-03    7.3357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .54018        8.2971        .45681E-02   -1.5561    
   9  Prefactor     .10000E-03    12.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1329        20.281        .19820E-03   -1.5301    
  11  Prefactor     29.311        39.399        .74005E-04   -1.4625    
  12  norm          42.706        14.115        .61342E-04   -1.4400    
  13  Prefactor     21.262        10.694        .86868E-04   -1.4785    
  14  Prefactor     22.262        21.645        .84889E-04   -1.4764    
  15  norm          .10000E-03    7.5500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.6210        28.297        .12922E-03   -1.5088    
  17  Prefactor     .10000E-03    7.6068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5895        .17323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2313        .24324        .32799E-03   -.85641    
  20  Prefactor     .89027        .14479        .23306E-03   -.96482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94646e-07
Minuit parameter uncertainties:
  1  52.3646
  2  22.8312
  3  0.305798
  4  33.5349
  5  5.97441
  6  7.43717e-06
  7  3.04416e-05
  8  4.23441
  9  3.46101e-05
  10  18.3202
  11  39.4338
  12  14.1159
  13  10.6952
  14  21.6526
  15  1.2546e-05
  16  28.3369
  17  1.66647e-05
  18  2.29627e-06
  19  0.243469
  20  0.144853
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.126e+01  1.070e+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:  8.903e-01  1.449e-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:  1.231e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.15
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.49e-07 +/- 7.49e-08
Energy Flux (Fixed Index): 3.37e-05 +/- 1.69e-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) = 8872.45917772
delta logL = 0.0519608928753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8872.45185377
delta logL = 0.0592848489487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.866       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6232       1.0000          .0000       10.000    
     3 'Normalizat'    1.2481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88354       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8872.452     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      268 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.866        11.276        .83767E-04   -.97180E-03
   2  Index         2.6233        .47763        .69275E-02   -.31475E-03
   3  Normalizat    1.2482        .23933        .32625E-03    .16280E-03
   4  Prefactor     .88355        .14424        .23387E-03    .26835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8664
  Index      = 2.6233
  Normalizat = 1.24817
  Prefactor  = 0.883547
 **********
 **   18 **HESSE 
 **********

 FCN=   8872.452     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.866        11.125        .16753E-04   -1.4751    
   2  Index         2.6233        .47070        .27710E-03   -.49535    
   3  Normalizat    1.2482        .23947        .13050E-04   -.85127    
   4  Prefactor     .88355        .14432        .46775E-04   -.96718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38432e-09
Minuit parameter uncertainties:
  1  11.1263
  2  0.471606
  3  0.239679
  4  0.144383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994457': 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) = 8872.45185363
delta logL = 0.0592849840777

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.287e+01  1.113e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.623e+00  4.716e-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:  8.835e-01  1.444e-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:  1.248e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.43
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.62 +/- 0.47
Photon Flux (Free Index): 1.33e-07 +/- 7.92e-08
Energy Flux (Free Index): 3.41e-05 +/- 1.59e-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/994457/cmap_HighResolution_247622401_247881601_4FGL_J2330.5+1102_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-07', energy_flux2='3.41e-05', photon_flux_error='7.49e-08', dlogl='5.93e-02', energy_flux='3.37e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-29 22:24:05.576984', photon_index_error2='0.47', photon_index2='2.62', ts='11.15', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='1.23', time_epoch_completed='1632979445.58', return_code='0', job_id='994457', GAL2='0.88', EG2='1.25', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='7.92e-08', ts2='11.43', photon_index='2.79' WHERE bin_id='32' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:24:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 994457: <4FGL_J2330.5+1102_daily_bin32> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin32 352.629 11.0479 247622401 247881601 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            814 sec.

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

